gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / ChangeLog
1 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2
3         gettimeofday: port recent C++ fix to Emacs
4         Without this further patch, Emacs won't build due to
5         the portcheck failing.  Also, this simplifies the patch a bit.
6         * lib/time.in.h (localtime, gmtime): Don't replace unless
7         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
8         * lib/time.in.h (localtime, gmtime):
9         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
10         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11         * modules/time (time.h):
12         Don't worry about about the possibility of localtime and gmtime
13         being absent; they're present in all C libraries we know about.
14         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15         Don't assume sys_time is present and has been initialized.
16         Instead, use a hack that should work even if it hasn't been.
17         Don't use a portcheck for gmtime or localtime; this supports
18         the hack.
19         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
20
21 2013-12-17  John W. Eaton  <jwe@gnu.org>
22
23         gettimeofday: fix C++ crosscompilation
24
25         Never replace gmtime and localtime by macros when compiling with
26         C++, this prevents <ctime> from being included.
27
28         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29         define gmtime and localtime as preprocessor macros.  Instead
30         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
31         REPLACE_LOCALTIME substitutions.
32         * lib/time.in.h: Declare gmtime and localtime when needed.
33         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
35         * modules/time: Depend on gettimeofday, and substitute the above
36         variables in time.h.
37
38 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39
40         qacl: port to Windows better
41         See Eli Zaretskii in
42         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
43         * lib/file-has-acl.c (acl_access_nontrivial):
44         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
45         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
46
47 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
48
49         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
50         * lib/gl_openssl.h: Cast void pointers to a specific type.
51
52 2013-12-07  Pádraig Brady <P@draigBrady.com>
53
54         open-tests: fix build failure with -Werror=old-style-declaration
55         * tests/test-open.h: Reorder the inline to avoid the issue.
56
57 2013-12-07  Pádraig Brady <P@draigBrady.com>
58
59         md5, sha1, sha256, sha512: fix link error with partial libcrypto
60         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
61         init time, so that if early checks find crypto routines,
62         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
63         avoiding link failures.
64
65 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66
67         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
68         This provides a new way to specify the default for
69         gl_CRYPTO_CHECK, one that is reflected in the --help message.
70         Emacs uses this, as well as the old way.
71         This attempts to implement a suggestion by Pádraig Brady in
72         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
73         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
74         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
75
76         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
77         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
78         Add support for a new option, --with-openssl=auto, which causes
79         the library to be used if available and silently ignored if not.
80         Add support to allow allow configure.ac to specify its own
81         default, by setting with_openssl_default before invoking gl_INIT.
82
83 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
84
85         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
86         Problem reported by Daiki Ueno in:
87         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
88         * tests/test-open.h (__always_inline):
89         New macro, if not already defined.
90         (test_open): Use it.
91
92 2013-12-04  Eric Blake  <eblake@redhat.com>
93
94         include_next: minimize code duplication
95         * modules/include_next (Depends-on): Add absolute-header.
96         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
97         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
98
99 2013-12-04  Pádraig Brady <P@draigBrady.com>
100
101         getcwd: fix compile error in configure check
102         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
103
104 2013-12-04  Pádraig Brady <P@draigBrady.com>
105
106         regex: suppress core dumps from detection code
107         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
108         to suppress core dumps that may well occur on glibc systems.
109         These core dumps might not be cleaned up automatically, or could
110         trigger some system core dump handling logic.
111
112 2013-12-03  Pádraig Brady <P@draigBrady.com>
113
114         md5, sha1, sha256, sha512: support mandating use of openssl
115         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
116         description, to list the now 3 separate options.  also don't
117         mention the default=no, since this is implicit given the option
118         is described as --with-openssl rather than --without-openssl.
119         If projects change the default they're free to document that.
120         with --with-openssl[=yes] we now error out when the specified
121         hash algorithm is not available in libcrypto.
122
123 2013-12-03  Ivailo  <xakepa10@gmail.com>
124
125         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
126         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
127         -Wformat-nonliteral checks, as these edge cases are part of the test.
128
129 2013-12-03  Eric Blake  <eblake@redhat.com>
130
131         regex: avoid glibc deadlock during configure
132         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
133         glibc bug 15078 in turn triggers bug 16159.
134         Reported by Michal Privoznik.
135
136 2013-12-02  Pádraig Brady <P@draigBrady.com>
137
138         md5, sha1, sha256, sha512: use openssl routines if available.
139         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
140         routines will be used if available, requiring apps to link @LIB_CRYPTO@
141         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
142         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
143         in the standard system location.
144         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
145         * m4/sha256.m4: Likewise with SHA256.
146         * m4/sha512.m4: Likewise with SHA512.
147         * m4/md5.m4: Likewise with MD5.
148         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
149         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
150         * lib/sha256.h: Likewise with SHA256.
151         * lib/sha512.h: Likewise with SHA512.
152         * lib/md5.h: Likewise with MD5.
153         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
154         * lib/sha256.c: Likewise with SHA256.
155         * lib/sha512.c: Likewise with SHA512.
156         * lib/md5.c: Likewise with MD5.
157         * modules/crypto/sha1 (Link:): Add the new optional lib.
158         (Depends-on:): Add dependency on extern-inline.
159         * modules/crypto/sha256: Likewise.
160         * modules/crypto/sha512: Likewise.
161         * modules/crypto/md5: Likewise.
162         * modules/crypto/sha1-tests: Reference the lib here too.
163         * modules/crypto/md5-tests: Likewise.
164         * modules/crypto/gc-des-tests: Likewise.
165         * modules/crypto/gc-hmac-md5-tests: Likewise.
166         * modules/crypto/gc-hmac-sha1-tests: Likewise.
167         * modules/crypto/gc-hmac-sha256-tests: Likewise.
168         * modules/crypto/gc-hmac-sha512-tests: Likewise.
169         * modules/crypto/gc-md5-tests: Likewise.
170         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
171         * modules/crypto/gc-sha1-tests: Likewise.
172         * modules/crypto/gc-tests: Likewise.
173         * modules/crypto/hmac-md5-tests: Likewise.
174         * modules/crypto/hmac-sha1-tests: Likewise.
175         * modules/crypto/hmac-sha256-tests: Likewise.
176         * modules/crypto/hmac-sha512-tests: Likewise.
177
178 2013-11-29  RV1971  <rv1971@web.de>
179
180         base64: (trivial) fix compilation regression on some compilers
181         * lib/base64.c: Don't return the void function,
182         instead split to a separate return statement.
183
184 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
185
186         ignore-value: revert previous code change
187         * lib/ignore-value.h (ignore_value): Use __extension__ and
188         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
189         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
190         Change the comment to try to explain this better.
191
192 2013-11-27  Pádraig Brady <P@draigBrady.com>
193
194         selinux-h: improve stub types and add more stub functions
195
196         * lib/se-selinux.in.h: Change security_context_t to a typedef
197         rather than a define, as it's a pointer type and so is better
198         as a typedef to avoid issues declaring multiple variables
199         with the comma operator.  Also add stub for string_to_security_class().
200         * lib/se-context.in.h: Add stub functions for
201         context_{type,range,role,user}_get().
202
203 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
204
205         ignore-value: prefer GCC version back through 2.0
206         The code didn't match the comments, so I did a bit of software
207         archaeology.  GCC 2.0 seems to support __extension__ and
208         __typeof__, so fix both code and comments to use 2.0.
209         * lib/ignore-value.h (ignore_value): Use __extension__ and
210         __typeof__ for GCC 2.0 through 3.3, too.
211
212 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
213
214         pty: Activate the signature wrapper of forkpty.
215         The intended preprocessor macro HAVE_FORKPTY is
216         never defined, yet `lib/forkpty.c' depends on it.
217
218         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
219         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
220         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
221
222 2013-11-18  Jim Meyering  <meyering@fb.com>
223         and Paul Eggert  <eggert@cs.ucla.edu>
224
225         quotearg: don't attempt to store 1 << 31 into an "int"
226         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
227         gcc's new -fsanitize=undefined and running its tests triggered some
228         new test failures due to undefined behavior, all with this diagnostic:
229           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
230             cannot be represented in type int
231         Rather than shifting "1" left to form a mask, shift the bits right and
232         simply use "1" as the mask.
233
234 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
235
236         error: depend on stdio
237         Problem reported by Nikos Mavrogiannopoulos in
238         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
239         * modules/error (Depends-on): Add stdio.
240
241 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
242
243         * doc/relocatable-maint.texi (Supporting Relocation): Improve
244         wording.
245         Reported by Reuben Thomas <rrt@sc3d.org>.
246
247 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
248
249         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
250         New function and macro, to work around _DARWIN_C_SOURCE problem.
251         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
252
253 2013-11-11  Pádraig Brady <P@draigBrady.com>
254
255         base64: provide a fast path for encoding well sized buffers
256         Avoid conditionals in the base64 encoding loop,
257         which was seen to give 60% better throughput.
258         * lib/base64.c (base64_encode_fast): A new function to be called
259         when we don't want to NUL terminate, and we have enough space
260         in the output to encode the given input.
261         (base64_encode): Call the _fast() version when appropriate.
262         Also remove a redundant mask with 0x3F on the first encoded byte.
263
264 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
265
266         extern-inline: port better to OS X 10.9
267         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
268         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
269         OS X 10.9, except for g++ where the bug is still present.
270         See <http://trac.macports.org/ticket/41033>.
271
272 2013-11-08  Eric Blake  <eblake@redhat.com>
273
274         fpending: fix regression on DragonFly BSD
275         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
276         * lib/fpending.h (__fpending): Don't declare twice.
277         Reported by GW in
278         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
279
280 2013-11-05  Jim Meyering  <meyering@fb.com>
281
282         hash: relax license to LGPLv2+, for libguestfs
283         * modules/hash (License): Change from GPL to LGPLv2+.
284
285 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
286
287         intprops: port to Oracle Studio c99
288         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
289         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
290
291 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
292
293         obstack: pacify HP C
294         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
295         warning "conversion from pointer to smaller integer" from HP
296         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
297         C89 or later nowadays, so cast to void instead of int.  Privately
298         reported by H.Merijn Brand.  Also, change header to match glibc's,
299         to make checking against glibc easier.
300
301 2013-10-29  Jim Meyering  <meyering@fb.com>
302
303         maint.mk: prefer gpgv2 over gpgv
304         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
305         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
306         Reported by Gary Vaughan.
307
308 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
309
310         isnan: port to VAX
311         Reported by John Klos for NetBSD-5/VAX in
312         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
313         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
314         (FUNC): Use it.
315
316 2013-10-28  Jim Meyering  <meyering@fb.com>
317
318         gnulib-tool: protect against CDPATH
319         * gnulib-tool: Many "cd" built-in functions print a directory name
320         to stdout when CDPATH is set, e.g.,
321           $ bash -c 'CDPATH=/; cd tmp'
322           /tmp
323         Unset it, when possible.  Prompted by a comment from Bruce Korb.
324
325         maint.mk: restore functionality removed by recent change...
326         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
327         the context of a shallow-cloned gnulib repository: "git describe"
328         would fail in such a directory.  However, that change made it so
329         the reported gnulib revision no longer includes the version number
330         or a commit count, even when run from a full clone.
331         * top/maint.mk (gnulib-version): Use the full "git describe"
332         output when possible, e.g., the form above, rather than the
333         abbreviated, no-tag, no-commit-count string, and fall back to
334         using a 10-byte hash, rather than the default minimal-length
335         hash prefix, since while the minimal-length one may be fine today,
336         it is likely not to be unique for very long.
337
338 2013-10-26  Jim Meyering  <meyering@fb.com>
339
340         maint.mk: fix "release" target to build _version
341         This fixes a bug in README-release whereby following the outlined
342         steps, one would publish a tarball whose programs would report
343         --version output not consistent with the package version number.
344         This bug caused grep-2.15 to produce a grep program whose
345         --version option made it print 2.14.56-1e3d rather than 2.15.
346         * top/maint.mk (release): Making this target build "_version"
347         ensures that the new version number is reflected in configure.
348
349 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
350
351         install-reloc: Support multi-binary installation.
352         * build-aux/install-reloc: Support installing multiple programs in
353         one invocation, as done by Automake starting with commit
354         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
355         Haible <bruno@clisp.org>, archived at
356         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
357         Reported by Sylvain <beuc@gnu.org>.
358
359 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
360
361         selinux-h: Really build without selinux when library is missing.
362         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
363         continue without selinux, as already told in the warning message.
364
365 2013-10-21  Jim Meyering  <meyering@fb.com>
366
367         regex: also remove dependency on HAVE_WCSCOLL
368         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
369
370 2013-10-21  Reuben Thomas <rrt@sc3d.org>
371
372         xfreopen: Fix typo. s/frepoen/freopen/
373         * lib/xfreopen.c: Fix description.
374         * modules/xfreopen: Likewise.
375
376 2013-10-21  Jim Meyering  <meyering@fb.com>
377
378         regex: don't depend on wcscoll
379         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
380         It is no longer used.
381
382 2013-10-20  Jim Meyering  <meyering@fb.com>
383
384         error: add the printf attribute to a static function
385         * lib/error.c (error_tail): Add the printf attribute, to placate
386         gcc's -Werror=suggest-attribute=format option.
387
388 2013-09-30  Jim Meyering  <meyering@fb.com>
389
390         fpending, obstack, strerror-override: use pure+const function attrs
391         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
392         * lib/obstack.c (_obstack_allocated_p): Likewise.
393         * lib/obstack.h (_obstack_memory_used): Likewise.
394         (_obstack_memory_used): Likewise.
395         * lib/strerror-override.h (strerror_override): Declare with
396         the "const" attribute.
397
398 2013-10-18  Eric Blake  <eblake@redhat.com>
399
400         extern-inline: make safe for -Wundef usage
401         Reported by Vladimir 'phcoder' Serbinenko in
402         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
403         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
404
405 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
406
407         mkfifo-tests, etc.: allow HP-UX 11.11 bug
408         Problem reported by Daniel Richard G. in
409         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
410         * doc/posix-functions/mkfifo.texi (mkfifo):
411         * doc/posix-functions/mkfifoat.texi (mkfifoat):
412         * doc/posix-functions/mknod.texi (mknod):
413         * doc/posix-functions/mknodat.texi (mknodat):
414         Document the HP-UX 11.11 bug.
415         * tests/test-mkfifo.h (test_mkfifo):
416         Allow the HP-UX 11.11 bug.
417
418 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
419
420         acl: allow cross-compilation to Gentoo
421         Problem reported by Gabriel Marcano in
422         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
423         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
424         test only whether it links.
425
426 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
427
428         mgetgroups: remove dependency on realloc-gnu
429         The dependency violates the comment in realloc-gnu, which
430         says that tests can't depend on realloc-gnu; some tests depend
431         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
432         Problem reported by Daniel Richard G. in
433         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
434         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
435         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
436         not realloc-gnu.
437
438 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
439
440         regex-tests: port to HP-UX 11.11
441         Problem reported by Daniel Richard G. in
442         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
443         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
444
445 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
446
447         verify: document some 'assume' pitfalls
448         * doc/verify.texi (Compile-time Assertions):
449         Mention that 'assume (E)' can sometimes slow things down.
450         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
451
452 2013-10-10  Eric Blake  <eblake@redhat.com>
453
454         strtoumax: fix typo in previous commit.
455         * modules/strtoumax (Depends-on): Fix typo.
456         * modules/strtoimax (Depends-on): Likewise.
457
458 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
459
460         strtoumax: port to Solaris 8
461         This problem was introduced in the recent HP-UX patch.
462         Reported by Tom G. Christensen in
463         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
464         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
465         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
466
467 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
468
469         strtoimax, strtoumax: port to HP-UX 11.11
470         Problem reported by Daniel Richard G. in
471         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
472         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
473         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
474         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
475         REPLACE_STRTOUMAX.
476         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
477         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
478         Replace the function if defined as a macro but not as a function.
479         * modules/inttypes-incomplete (inttypes.h): Substitute
480         REPLACE_STRTOUMAX.
481         * modules/strtoumax (configure.ac): Replace strtoumax if
482         REPLACE_STRTOUMAX.
483
484 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
485
486         strtoimax: port to HP-UX 11.11
487         Problem reported by Daniel Richard G.
488         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
489         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
490         they might clash with inttypes.h.
491
492 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
493
494         New module 'count-trailing-zeros'.
495         * MODULES.html.sh: Mention it.
496         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
497         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
498         * modules/count-trailing-zeros-tests:
499         * tests/test-count-trailing-zeros.c:
500         New files.
501
502         count-leading-zeros: port to MSC; support types wider than 64 bits
503         The ideas behind the MSC port are stolen from Emacs.
504         * lib/count-leading-zeros.h:
505         Don't include verify.h: it's no longer needed, as types wider than
506         64 bits are now supported.
507         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
508         performance with MSC.  All uses changed.  Do not assume that TYPE
509         has at most 64 bits.
510         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
511         All uses changed.  Fold the subtraction from 31 into the table.
512
513         count-one-bits: port to MSC; support types wider than 64 bits
514         The ideas behind the MSC port are stolen from Emacs.
515         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
516         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
517         Don't include verify.h: it's no longer needed, as types wider than
518         64 bits are now supported.
519         (COUNT_ONE_BITS_GENERIC): New macro.
520         (popcount_supported) [_MSC_VER]: New inline function.
521         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
522         performance with MSC.  All uses changed.  Do not assume that TYPE
523         has at most 64 bits.
524         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
525
526 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
527
528         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
529         * lib/mountlist.c (read_file_system_list): fix leak of directory
530         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
531
532 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
533
534         tests: improve diagnostic when an assertion fails
535         * tests/macros.h (ASSERT): Report the assertion that failed.
536
537 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
538
539         verify: new macro 'assume'
540         This is taken from Emacs, and should be generally useful.
541         * doc/verify.texi (assume): Document it.
542         * lib/verify.h (assume): New macro.
543         (__has_builtin): Expand to 0 if not defined.
544
545 2013-09-26  Eric Blake  <eblake@redhat.com>
546
547         dup2, dup3: work around another cygwin crasher
548         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
549         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
550         * tests/test-dup2.c (main): Likewise.
551         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
552         * lib/dup3.c (dup3): Likewise.
553         * doc/posix-functions/dup2.texi (dup2): Document it.
554         * doc/glibc-functions/dup3.texi (dup3): Likewise.
555
556         getdtablesize: work around cygwin issue
557         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
558         * modules/getdtablesize (configure.ac): Build replacement.
559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
560         * modules/unistd (Makefile.am): Expose the witness.
561         * lib/unistd.in.h (getdtablesize): Declare replacement.
562         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
563         * tests/test-getdtablesize.c (main): Test it.
564         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
565
566 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
567
568         pmccabe2html: escaping of special characters
569         Escape all '<', '>', and '&' in HTML output.
570         * build-aux/pmccabe2html (html_fnc): Call gsub()
571         instead of sub() to capture all '<', '>', and '&'.
572         Neither of '<' and '>' is special in a regexp,
573         so first arguments to gsub() are corrected. Also,
574         in replacement strings, ampersand must be escaped.
575         Finally, '&' must be handled first, then '<' and '>'.
576
577 2013-09-24  Eric Blake  <eblake@redhat.com>
578
579         manywarnings: enable nicer gcc warning messages
580         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
581         some -f options for optimal warnings.
582
583 2013-09-21  Jim Meyering  <meyering@fb.com>
584
585         timespec: use the new TIMESPEC_RESOLUTION in a few more places
586         * lib/timespec-add.c (timespec_add): Also replace 999999999
587         with TIMESPEC_RESOLUTION - 1.
588         * lib/timespec-sub.c (timespec_sub): Likewise.
589
590 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
591
592         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
593         Problem reported by Dagobert Michelsen via Eric Blake in
594         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
595         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
596         not AC_COMPILE_IFELSE.
597
598 2013-09-23  Eric Blake  <eblake@redhat.com>
599
600         configmake: support new --runstatedir option
601         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
602         even if autoconf was too old to provide the command line option.
603         * modules/configmake (Makefile.am): Propagate it to .h file.
604
605 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
606
607         ctype, string: depend on extern-inline
608         This is needed to complete the recent OS X fixes.
609         Also, fix related documentation as suggested by Eric Blake.
610         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
611         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
612         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
613         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
614         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
615         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
616         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
617         * doc/posix-functions/toupper.texi:
618         List the 'ctype' gnulib module.
619         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
620         * doc/posix-functions/strncpy.texi:
621         List the 'string' gnulib module.
622         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
623         Add string.
624         * modules/ctype, modules/string (Depends-on): Add extern-inline.
625
626 2013-09-19  Pádraig Brady  <P@draigBrady.com>
627
628         userspec: support optional parameters to parse_user_spec()
629         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
630         then avoid group processing and treat the full spec as a user.
631         (parse_with_separator): Allow the USERNAME and GROUPNAME to
632         be optional params (NULL), in which case they're ignored.
633
634 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
635
636         timespec: new function make_timespec, and new constants
637         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
638         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
639         (make_timespec): New function.
640         * lib/dtotimespec.c (dtotimespec):
641         * lib/timespec-add.c (timespec_add):
642         * lib/timespec-sub.c (timespec_sub):
643         * lib/utimens.c (validate_timespec):
644         * lib/utimensat.c (rpl_utimensat):
645         Use these new constants and functions.
646
647         stdio: OS X port of putc_unlocked + extern inline
648         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
649         * doc/posix-functions/putc_unlocked.texi:
650         * doc/posix-functions/putchar_unlocked.texi:
651         Document this portability problem.
652
653         signal: OS X port of sigaddset etc. + extern inline
654         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
655         (sigismember): #undef on problematic Apple platforms.
656         * doc/posix-functions/sigaddset.texi:
657         * doc/posix-functions/sigdelset.texi:
658         * doc/posix-functions/sigemptyset.texi:
659         * doc/posix-functions/sigfillset.texi:
660         * doc/posix-functions/sigismember.texi:
661         Document this portability problem.
662
663         extern-inline: do not always suppress extern inline on OS X
664         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
665         extern inline on Apple only if the particular compile-time
666         configuration is known to have the problem.
667         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
668         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
669         other Gnulib modules.
670
671         extern-inline: document fixes for ctype and wctype macros
672         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
673         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
674         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
675         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
676         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
677         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
678         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
679         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
680         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
681         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
682         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
683         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
684         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
685         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
686         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
687         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
688         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
689         * doc/posix-functions/strncpy.texi:
690         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
691         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
692         Document that Gnulib fixes portability problems with these
693         functions on OS X 10.8 and earlier when called from plain inline
694         or extern inline functions.
695
696 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
697
698         fflush, freadahead, fseeko: Fix for Android
699         Suggested by Bruno Haible in:
700         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
701         * lib/stdio-impl.h: Use local __sfileext definition.
702
703 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
704
705         pmccabe2html: Portability to other awk versions.
706         The functions systime() and strftime() are available
707         in Gawk only.  Properly close two HTML-tags 'style'
708         and 'span'.
709         * build-aux/pmccabe2html (BEGIN): Store timing
710         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
711         systime() in HTML_COMMENT.
712         (html_header): Correctly close tag 'style'.
713         (END): Replace strftime() by CHRONOS_TIME.  Close
714         tag 'span' correctly, not as 'div'.
715
716 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
717
718         getgroups: statement without effect
719         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
720         Change equality conditional to expected assignment.
721
722 2013-09-09  Eric Blake  <eblake@redhat.com>
723
724         glob: fix compilation
725         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
726
727 2013-09-07  Eric Blake  <eblake@redhat.com>
728
729         glob: fix build for platforms without __THROW
730         * lib/glob.in.h (__THROW): Add definition again.
731
732 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
733
734         regex-quote: fix buffer access out of bounds
735         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
736         * lib/regex-quote.c (regex_quote_spec_pcre):
737         Fix typo that resulted in an out-of-bounds read.
738
739 2013-09-04  Eric Blake  <eblake@redhat.com>
740
741         glob: avoid -Wattribute warnings on glibc
742         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
743         __THROWNL, not __THROW, on static functions.
744         * lib/glob.in.h (__THROW): Adjust...
745         (__THROWNL): ...accordingly.
746
747 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
748
749         headers: check that _GL_INLINE_HEADER_BEGIN is defined
750         Suggested by Bruce Korb in:
751         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
752         * doc/extern-inline.texi (extern inline):
753         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
754         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
755         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
756         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
757         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
758         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
759         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
760         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
761         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
762         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
763         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
764         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
765         * lib/xtime.h:
766         Check that _GL_INLINE_HEADER_BEGIN is defined.
767
768 2013-08-29  Pádraig Brady  <P@draigBrady.com>
769
770         bootstrap: remove the --version requirement from ancillary tools
771         * build-aux/bootstrap (check_exists): A new refactored function to
772         determine if a command exists.
773         (find_tool): Use the new function which does not require the
774         --version option to be supported.
775         (check_versions): Use the new function.
776
777 2013-08-26  Simon Josefsson  <simon@josefsson.org>
778
779         gc: support HMAC-SHA256 and HMAC-SHA512.
780         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
781         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
782         functions.
783         (gc_hmac_md5): Use symbolic constant.
784         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
785         (gc_hmac_sha256, gc_hmac_sha512): New functions.
786         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
787         * m4/sha256.m4: Protect against empty expansion.
788         * m4/sha512.m4: Likewise.
789         * lib/hmac-sha256.c: New file.
790         * lib/hmac-sha512.c: Likewise.
791         * m4/gc-hmac-sha256.m4: Likewise.
792         * m4/gc-hmac-sha512.m4: Likewise.
793         * m4/gc-sha256.m4: Likewise.
794         * m4/gc-sha512.m4: Likewise.
795         * modules/crypto/gc-hmac-sha256: Likewise.
796         * modules/crypto/gc-hmac-sha256-tests: Likewise.
797         * modules/crypto/gc-hmac-sha512: Likewise.
798         * modules/crypto/gc-hmac-sha512-tests: Likewise.
799         * modules/crypto/hmac-sha256: Likewise.
800         * modules/crypto/hmac-sha256-tests: Likewise.
801         * modules/crypto/hmac-sha512: Likewise.
802         * modules/crypto/hmac-sha512-tests: Likewise.
803         * tests/test-gc-hmac-sha256.c: Likewise.
804         * tests/test-gc-hmac-sha512.c: Likewise
805         * tests/test-hmac-sha256.c: Likewise.
806         * tests/test-hmac-sha512.c: Likewise
807
808 2013-08-24  Daiki Ueno  <ueno@gnu.org>
809
810         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
811         of AC_CHECK_DECLS.
812
813 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
814
815         selinux-at: omit unnecessary include
816         * lib/selinux-at.c: Don't include dosname.h; not needed, since
817         this source file doesn't use its macros, and subsidiary files that
818         use the macros already include it.
819
820 2013-08-21  Eric Blake  <eblake@redhat.com>
821
822         d-ino: avoid false negative on symlink
823         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
824         Reported by Stephane Chazelas.
825
826 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
827
828         bootstrap: port to OpenBSD sed
829         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
830         does not interpret `-' as a file argument to mean stdin.
831
832 2013-08-15  Eric Blake  <eblake@redhat.com>
833
834         warnings: minor optimization
835         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
836
837         warnings: check -Wfoo rather than -Wno-foo
838         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
839         -Wno-, test if the compiler recognizes the positive form instead.
840
841 2013-08-15  Karl Berry  <karl@gnu.org>
842
843         * config/srclist-update: add option "doclicense" to placate
844         pulling *.texi files from Emacs.  Write terse usage
845         documentation at the top.
846
847 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
848
849         xvasprintf-tests: port to GCC with hardening flags
850         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
851         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
852         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
853
854 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
855
856         fpending: port to recent Cygwin change to stdio_ext.h
857         Reported by LRN in
858         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
859         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
860         just declare __fpending unless it's a macro.
861         A duplicate decl shouldn't hurt.
862         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
863         call compiles and links, instead of separately checking for
864         decl and lib function.
865         * modules/fpending (configure-ac):
866         Adjust to fpending.m4's renaming of shell variable.
867
868 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
869
870         sys_time: port to OpenBSD
871         * lib/sys_time.in.h: Simply delegate to the system's header
872         in the BSDish cases as well.  Problem reported by Mike Miller in
873         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
874         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
875         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
876         wider than time_t.
877
878 2013-08-09  Pádraig Brady <P@draigBrady.com>
879
880         bootstrap: support checksum utils having -c but not --status
881         * build-aux/bootstrap: Only look for sha1sum if updating po files.
882         Add sha1 to the list of supported checksum utils since it's now
883         supported through adjustments below.
884         (update_po_files): Remove the use of --status
885         in a way that will suppress all error messages, but since this is
886         only used to minimize updates, it shouldn't cause an issue.
887         Exit early if there is a problem updating the po file checksums.
888         (find_tool): Remove the check for --version support as this
889         is optional as per commit 86186b17.  Don't even check for the
890         presence of the command as if that is needed, it's supported
891         through configuring prerequisites in bootstrap.conf.
892         Prompt that when a tool isn't found, one can define an environment
893         variable to add to the hardcoded search list.
894
895 2013-08-05  Jim Meyering  <meyering@fb.com>
896
897         regex: port to non-glibc/lock-using systems
898         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
899         system with GNULIB_LOCK would fail due to absence of the
900         included "glthread/lock.h".  This would affect any package
901         for which the "lock" module is used only by the regex module,
902         and not explicitly used.
903         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
904         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
905         Add a dependency on the "lock" module.
906
907 2013-07-20  Daiki Ueno  <ueno@gnu.org>
908
909         localecharset: make locale_charset thread-safe on Mac OS X
910         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
911         instead of MB_CUR_MAX.
912
913 2013-07-20  Daiki Ueno  <ueno@gnu.org>
914
915         gettext: update to version 0.18.3
916         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
917         require AC_PROG_SED to allow user to specify custom sed command when
918         generating en@quot PO file.
919
920 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
921
922         bootstrap: use correct source when copying build-aux files
923         * build-aux/bootstrap (gnulib_extra_files): This variable is
924         relative to upstream gnulib layout, not downstream.
925
926 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
927
928         tmpdir: fix bug in VMS port
929         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
930         See Steven M. Schweda in
931         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
932
933 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
934
935         tmpdir: port to VMS, to // != /, and to long dirs
936         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
937         __secure_getenv, so that we're more like the glibc version.
938         All uses changed.
939         (path_search): Don't put slash after directory if __VMS.
940         Problem reported by Steven M. Schweda in
941         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
942         Simplify code to add slash; no need for a loop.
943         Do not remove trailing slash from "//".
944         Do not assume dlen <= INT_MAX.
945
946 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
947
948         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
949         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
950         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
951         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
952
953         accept4, dup3, pipe2: port to Cygwin
954         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
955         * lib/accept4.c (accept4) [O_BINARY]:
956         * lib/dup3.c (dup3) [O_BINARY]:
957         * lib/pipe2.c (pipe2) [O_BINARY]:
958         Use set_binary_mode, not setmode.
959         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
960         * modules/binary-io (Depends-on): Remove module indicator.
961         These last two bits undo the previous change to pipe2 and binary-io.
962
963 2013-07-09  Pádraig Brady  <P@draigBrady.com>
964
965         mountlist: add support for deallocating returned list entries
966         * lib/mountlist.c (free_mount_entry): A new exported function
967         to deallocate a mount list entry.
968         (read_file_system_list): Refactor to use the new deallocation function.
969         Suggested by Anton Ovchinnikov.
970
971 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
972
973         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
974         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
975         * lib/stdalign.in.h (_Alignas, _Alignof):
976         Port to FreeBSD 9.1, and to C11 and C++11.
977         (_Alignas): Also support ICC.
978         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
979         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
980
981 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
982
983         fnmatch: don't goto over declaration
984         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
985         undefined behavior for goto over a declaration.
986         Problem reported by Charlie Brown in
987         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
988
989         pipe2: decouple from binary-io a bit
990         This is for Emacs, which needs pipe2 but not binary-io.
991         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
992         * modules/binary-io (Depends-on): Add module indicator.
993
994 2013-07-03  Eric Blake  <eblake@redhat.com>
995
996         mgetgroups: relax license to LGPLv2+
997         * modules/getugroups (License): Change from GPLv3+.
998         * modules/mgetgroups (License): Likewise.
999         * modules/getgroups (License): Change from LGPLv3+.
1000
1001         xalloc-oversized: relax license to LGPLv2+
1002         * modules/xalloc-oversized (License): Change from GPLv3+.
1003
1004         nproc: relax license to LGPLv2+
1005         * modules/nproc (License): Change from LGPLv3+.
1006
1007         bootstrap: honor --no-git
1008         * build-aux/bootstrap: Don't even try to use git when user is
1009         pointing to a static checkout.
1010
1011 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         ignore-value: port to gcc -pedantic
1014         * lib/ignore-value.h (ignore_value):
1015         Port to gcc -pedantic, by using __extension__.
1016         Reindent as per usual gnulib style nowadays.
1017         Simplify GCC version check.
1018
1019 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         extern-inline: port to gcc -std=c89
1022         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1023         Do not use __gnu_inline__ if pedantic and pre-C99.
1024
1025 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1026
1027         doc: document extern-inline
1028         * doc/extern-inline.texi: New file.
1029         * doc/gnulib.texi (alloca-opt): Include it.
1030         * m4/extern-inline.m4: Move some comments to documentation,
1031         and others closer to what they describe.
1032
1033         doc: chatter less
1034         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1035         (updated-stamp): Use it.  This causes 'make' to output just
1036         one file name rather than zillions.
1037
1038         fflush, fseeko: port to musl cross-compiles
1039         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1040         on some implementation that (1) is not known to be buggy,
1041         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1042         cross-compiled to so we can't easily check for lack of
1043         conformance.  This is for cross-compiling to musl.
1044         Reported by Rich Felker in
1045         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1046         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1047         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1048         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1049         Adjust to above change.
1050         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1051         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1052         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1053         known not to work, or unknown.
1054
1055 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         msvc-inval: port to mingw-w64
1058         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1059         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1060         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1061
1062 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1063
1064         getcwd-lgpl: port to Tru64
1065         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1066         Problem reported by Steven M. Schweda in
1067         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1068
1069         tests: port large-fd POSIX spawn tests to OS X
1070         Problem reported by Daiki Ueno in
1071         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1072         * tests/test-posix_spawn_file_actions_addclose.c:
1073         * tests/test-posix_spawn_file_actions_adddup2.c:
1074         * tests/test-posix_spawn_file_actions_addopen.c:
1075         Include <limits.h>, for OPEN_MAX, if available.
1076         (big_fd): New static function.
1077         (main): Use it.
1078
1079 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1080
1081         tests/nap.h: use an adaptive delay to avoid ctime update issues
1082         The recent change in nap.h (5191133e) decreased the probability of lost
1083         races to about a third, however such problems could still be observed
1084         in virtual machines and openSUSE's OBS.
1085         Before, nap() detected the needed time once empirically and then used
1086         that delay (together with a small correction multiplier) in further
1087         calls.  This problem has been reported and discussed several times,
1088         including guesses about possible kernel issues:
1089         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1090         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1091         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1092         http://bugs.gnu.org/12820
1093         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1094         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1095         Now, nap() avoids the race alltogether by verifying on a reference
1096         file whether a timestamp difference has happened.
1097         * tests/nap.h (nap_fd): Define file descriptor variable for the
1098         witness file.
1099         (nap_works): Change return value to bool.  Change passing
1100         the old file's status by value instead of by reference as this function
1101         does no longer update that timestamp; rename the function argument from
1102         st to old_st.  Remove the local variables cdiff and mdiff because that
1103         function now returns true/false instead of the precise delay.
1104         (guess_delay): Remove function.
1105         (clear_tmp_file): Add new function to close and unlink the witness file.
1106         (nap): Instead of re-using the delay which has been calculated during
1107         the first call, avoid the race by actually verifying that a timestamp
1108         difference can be observed on the current file system.  Use an adaptive
1109         approach for the delay to minimize execution time.  Assert that the
1110         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1111         = 2^31 - 1 = 2.1s.
1112         Use atexit to call clear_tmp_file when the process terminates.
1113
1114 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1115
1116         sig2str: port to C++
1117         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1118         Reported by Daniel J Sebald in
1119         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1120
1121 2013-05-30  Eric Blake  <eblake@redhat.com>
1122
1123         docs: mention cygwin shortcoming in <sys/un.h>
1124         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1125
1126         vasnprintf: silence mingw compiler warning
1127         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1128
1129 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1130
1131         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1132         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1133         This fixes a porting bug I recently reintroduced in regex, and
1134         some other instances that I discovered while testing the fix.
1135         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1136         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1137         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1138         with an empty argument if this is a pedantic pre-C99 GCC.
1139         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1140         pre-C11 GCC.
1141
1142         regex: adapt to locking regime instead of depending on pthread
1143         Instead of depending on pthread, adapt to whatever thread
1144         modules are in use.  Problem reported by Ludovic Courtès in
1145         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1146         and by Mats Erik Andersson in
1147         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1148         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1149         Support either the 'lock' module, or the 'pthread' module, or
1150         no module.
1151         (lock_lock, lock_unlock): New macros.
1152         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1153         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1154         * modules/regex (Depends-on): Remove pthread.
1155
1156 2013-05-22  Eric Blake  <eblake@redhat.com>
1157
1158         getgroups: document portability issues
1159         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1160         multithread safety.
1161         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1162         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1163         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1164         getugroups.
1165         * doc/posix-functions/getgroups.texi (getgroups): Mention
1166         multithread safety and mgetgroups.
1167
1168 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1169
1170         test-lchown, test-chown: also skip test if chown fails with EPERM
1171         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1172         skip this test, to handle FAT file systems.
1173         * tests/test-chown.h (test_chown): Likewise.
1174
1175 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1176
1177         regex: fix dfa race in multithreaded uses
1178         Problem reported by Ludovic Courtès in
1179         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1180         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1181         New macros.  All uses of __libc_lock_define, __libc_lock_init
1182         changed to use the first two of these.
1183         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1184         non-glibc platforms.
1185         (struct re_dfa_t): Define the lock unconditionally.
1186         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1187         '#ifdef _LIBC"s.
1188         * modules/regex (Depends-on): Add pthread, if we use the
1189         included regex.
1190
1191         * lib/regcomp.c: Do actions that are not needed for glibc,
1192         but may be needed elsewhere.
1193         (regfree, re_compile_internal): Destroy the lock.
1194         (re_compile_internal): Check for lock-initialization failure.
1195
1196         malloca: port to compilers that reject size-zero arrays
1197         This fixes a bug introduced in my previous patch.
1198         * lib/malloca.c (struct preliminary_header): Use an int
1199         rather than a character array of size int; that's simpler.
1200         (struct header): Remove, replacing with ...
1201         (union header): New type.  This avoids the need for declaring a
1202         character array of size zero, which is not allowed on some platforms.
1203         All uses changed.
1204
1205 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1206
1207         parse-datetime, tests: don't use "string" + int
1208         Recent versions of 'clang' complain about C source code that
1209         uses expressions of the form '"string literal" + integer',
1210         I guess on the theory that it's confusing for readers who are
1211         used to C++.  On those grounds I suppose it's OK to make this
1212         minor style change.
1213         * lib/parse-datetime.y (parse_datetime):
1214         * tests/test-fchdir.c (main):
1215         * tests/test-snprintf-posix.h (test_function):
1216         * tests/test-snprintf.c (main):
1217         * tests/test-vasnprintf-posix.c (test_function):
1218         * tests/test-vasnprintf.c (test_function):
1219         * tests/test-vsnprintf.c (main):
1220         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1221         Rewrite '"str" + E' to '&"str"[E]'.
1222
1223 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1224
1225         argmatch: port to C++
1226         * lib/argmatch.h [__cplusplus]: Add extern "C".
1227
1228         argp: typo fix
1229         * lib/argp-help.c: Typo in comment.
1230
1231 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1232
1233         manywarnings: update for GCC 4.8.0
1234         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1235         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1236         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1237         -Wmissing-noreturn, as they are duplicates of other warnings.
1238         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1239         was documented to be flaky in earlier versions of GCC.
1240
1241         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1242         * tests/test-spawn.c (main):
1243         * tests/test-sys_socket.c (main):
1244         * tests/test-sys_wait.c (main):
1245         Don't have a switch value that isn't covered by a case.
1246
1247         getaddrinfo-tests: port --enable-gcc-warnings to clang
1248         * tests/test-getaddrinfo.c (simple):
1249         Avoid casts from looser to stricter-aligned pointers.
1250
1251         thread: port --enable-gcc-warnings to clang
1252         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1253         Include <signal.h>, to pacify a warning about pthread_sigmask.
1254
1255         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1256         * lib/stdio.in.h (fwrite):
1257         When working around bug 11959, use __REDIRECT rather than '#define
1258         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1259         fix the -Wunused-value issue with clang, and it works with GCC too.
1260         Problem with targeting reported by Eric Blake in
1261         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1262         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1263         debugging the fwrite issue.
1264
1265         stdio: port --enable-gcc-warnings to clang
1266         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1267         since the GCC workaround for fwrite does not pacify clang.
1268
1269         sig2str: port --enable-gcc-warnings to clang
1270         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1271
1272         obstack: port --enable-gcc-warnings to clang
1273         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1274         Avoid casts from looser to stricter-aligned pointers.
1275
1276         memchr2: port --enable-gcc-warnings to clang
1277         * lib/memchr2.c (memchr2):
1278         Avoid casts from looser to stricter-aligned pointers.
1279
1280         mbsstr: port --enable-gcc-warnings to clang
1281         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1282         Avoid casts from looser to stricter-aligned pointers.
1283
1284         malloca: port --enable-gcc-warnings to clang
1285         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1286         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1287
1288         inttostr: port --enable-gcc-warnings to clang
1289         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1290
1291         warnings: port to clang
1292         Problem reported by Daniel P. Berrange via Eric Blake in
1293         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1294         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1295         (gl_WARN_ADD): Use it.
1296
1297 2013-05-11  Jim Meyering  <meyering@fb.com>
1298
1299         quotearg: do not read beyond end of buffer
1300         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1301         end of an ARG for which no length was specified.  With an N-byte
1302         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1303         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1304         via coreutils' misc/sort-debug-keys.sh test and detected by running
1305         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1306         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1307         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1308         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1309         characters correctly."
1310
1311 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1312
1313         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1314         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1315         compilation target is Mac OS X 10.6.
1316         Problem reported by parafin and Andoni Morales in
1317         <http://savannah.gnu.org/bugs/?37844> and
1318         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1319
1320 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1321
1322         mkdir-p: remove assumptions about umask and mode
1323         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1324         umask is 0, or that MODE is a subset of MODE_BITS.
1325
1326 2013-05-10  Eric Blake  <eblake@redhat.com>
1327
1328         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1329         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1330
1331 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1332
1333         deps: require Automake >= 1.9.6 in generated Makefile fragments
1334
1335         That is the same minimal version required in the DEPENDENCIES file.
1336         Moreover, the old code generated a requirement of Automake >= 1.5,
1337         and that is an insanely outdated version.
1338
1339         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1340         * tests/havelib/rpathlx/Makefile.am: Likewise.
1341         * tests/havelib/rpathly/Makefile.am: Likewise.
1342         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1343         * tests/havelib/rpathlz/Makefile.am: Likewise.
1344         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1345         * tests/havelib/rpathx/Makefile.am: Likewise.
1346         * tests/havelib/rpathy/Makefile.am: Likewise.
1347         * tests/havelib/rpathz/Makefile.am: Likewise.
1348
1349 2013-05-08  Eric Blake  <eblake@redhat.com>
1350
1351         bootstrap: AC_INIT may have more than four parameters
1352         * build-aux/bootstrap (extract_package_name): Correctly extract
1353         non-empty tarname field.  Avoid range in regex.
1354         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1355
1356 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1357
1358         qacl: port to MS-Windows port of GNU Emacs
1359         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1360         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1361         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1362         <http://bugs.gnu.org/14295#14>.
1363
1364 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1365
1366         acl: include quote.h
1367         * lib/copy-acl.c: Include quote.h.
1368         * lib/set-acl.c: Likewise.
1369
1370 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1371
1372         fchownat, renameat, unlinkat: update statat dependencies
1373         These modules use statat and lstatat, not fstatat; so depend on
1374         the statat module, which was split out recently from fstatat.
1375         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1376         * modules/renameat: Likewise.  Also delete fstat.
1377         URL: http://bugs.gentoo.org/468790
1378
1379 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1380
1381         Assume gnulib is checked out from Git, not CVS
1382
1383         In fact, access to the gnulib repository through CVS has been
1384         disabled, or more precisely, got broken and was never restored; see:
1385         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1386
1387         Note that support for CVS is not removed completely and unthinkingly
1388         by this change: only support for CVS checkouts of gnulib itself is
1389         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1390         files and CVS directories, for the benefit of those poor gnulib clients
1391         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1392
1393         * gnulib-tool: Simplify accordingly.
1394         * posix-modules: Likewise.
1395         * MODULES.html.sh: Likewise.
1396         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1397         repository.
1398         * doc/gnulib-intro.texi: Likewise.
1399         * doc/gnulib-readme.texi: Likewise.
1400         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1401         sample '.gitignore' file rather than a sample '.cvsignore'.
1402         * NEWS: Update.
1403         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1404         to "CVS Autoconf" rather than "git Autoconf".
1405
1406 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1407
1408         utimensat-tests, etc.: try to fix some races
1409         Problem reported by Bernhard Voelker in
1410         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1411         I don't know whether this patch fixes that race condition, but it
1412         fixes *some* race conditions, so it should be a win.
1413         * modules/chown-tests (Depends-on):
1414         * modules/fchownat-tests (Depends-on):
1415         * modules/fdutimensat-tests (Depends-on):
1416         * modules/futimens-tests (Depends-on):
1417         * modules/lchown-tests (Depends-on):
1418         * modules/stat-time-tests (Depends-on):
1419         * modules/utimens-tests (Depends-on):
1420         * modules/utimensat-tests (Depends-on):
1421         Depend on nanosleep, not usleep.
1422         * modules/chown-tests (test_chown_LDADD):
1423         * modules/lchown-tests (test_lchown_LDADD):
1424         * modules/stat-time-tests (test_stat_time_LDADD):
1425         New macro.
1426         * modules/fchownat-tests (test_fchownat_LDADD):
1427         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1428         * modules/futimens-tests (test_futimens_LDADD):
1429         * modules/utimens-tests (test_utimens_LDADD):
1430         * modules/utimensat-tests (test_utimensat_LDADD):
1431         Add $(LIB_NANOSLEEP).
1432         * modules/stat-time-tests (Files): Add tests/nap.h.
1433         * tests/nap.h: Include <limits.h>, for INT_MAX.
1434         (lt_mtime): Remove.
1435         (diff_timespec): New function.
1436         (get_stat): Rename from get_mtime.  All callers changed.
1437         (nap_works): Determine the needed delay by inspecting the
1438         file system's timestamp jumps; this should be more reliable.
1439         Look at both mtime and ctime, and take the maximum of the two jumps.
1440         (nap_works, guess_delay):
1441         Return a nanosecond cound, not a microsecond count.
1442         All callers changed.
1443         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1444         failure.
1445         (nap): Multiply the guess by 1.125, to accommodate the case where
1446         the file system's clock is a bit slower than nanosleep's clock.
1447         * tests/test-stat-time.c (BASE): New macro.
1448         Include nap.h.
1449         (nap): Remove; nap.h now defines this.  This removes a duplicate
1450         implementation of 'nap'.
1451
1452         utimens, utimensat: work around Solaris UTIME_OMIT bug
1453         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1454         Linux kernel 2.6.32 does.  Work around it in the same way.
1455         * doc/posix-functions/futimens.texi (futimens):
1456         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1457         * lib/utimens.c (fdutimens, lutimens):
1458         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1459
1460         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1461         Formerly, it was your responsibility to do this for all Makefile.ams
1462         other than Gnulib's.  Now it's your responsibility to do it for
1463         Gnulib's Makefile.am, too.
1464         * NEWS: Document this.
1465         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1466
1467         acl: include errno.h to get errno
1468         Reported by Daiki Ueno in
1469         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1470         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1471
1472 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         tests: don't assume getdtablesize () <= 10000000
1475         * modules/cloexec-tests:
1476         * modules/dup2-tests:
1477         * modules/dup3-tests:
1478         * modules/nonblocking-tests:
1479         * modules/posix_spawn_file_actions_addclose-tests:
1480         * modules/posix_spawn_file_actions_adddup2-tests:
1481         * modules/posix_spawn_file_actions_addopen-tests:
1482         * modules/unistd-safer-tests:
1483         Depend on the getdtablesize module.
1484         * tests/test-cloexec.c:
1485         * tests/test-dup-safer.c:
1486         * tests/test-dup2.c:
1487         * tests/test-dup3.c:
1488         * tests/test-fcntl.c:
1489         * tests/test-nonblocking.c:
1490         * tests/test-posix_spawn_file_actions_addclose.c:
1491         * tests/test-posix_spawn_file_actions_adddup2.c:
1492         * tests/test-posix_spawn_file_actions_addopen.c:
1493         Don't assume getdtablesize () <= 10000000.
1494
1495 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1496
1497         extern-inline: work around bug in Sun c99
1498         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1499         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1500
1501 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1502
1503         qacl: new module, broken out from the acl module
1504         This is for GNU Emacs, which wants the acl functions but does
1505         not want 'error' invoked when they fail.
1506         * lib/acl-internal.h: Do not include error.h, quote.h.
1507         (ENOSYS, ENOTSUP): Remove; no longer needed.
1508         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1509         * lib/acl.h: Include <stdbool.h>.
1510         (acl_errno_valid): New function.
1511         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1512         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1513         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1514         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1515         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1516         * lib/file-has-acl.c (file_has_acl):
1517         * lib/qcopy-acl.c (qcopy_acl):
1518         * lib/qset-acl.c (qset_acl):
1519         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1520         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1521         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1522         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1523         Add lib/set-acl.c.
1524         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1525         Add qacl.
1526         (configure.ac): Move gl_FUNC_ACL to qacl module.
1527         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1528         Rename set-mode-acl.c to set-acl.c.
1529         * lib/acl-errno-valid.c: New file.
1530         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1531         copy_acl function remains in copy-acl.c.
1532         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1533         (_): Remove; not needed.
1534         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1535         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1536         * modules/qacl: New file, moved from the old modules/acl.
1537         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1538         Remove set-mode-acl.c, copy-acl.c.
1539         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1540
1541         alignof, intprops, malloca: port better to IBM's C compiler
1542         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1543         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1544         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1545
1546 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1547
1548         wctype-h: fix gettext link error on mingw
1549         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1550         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1551         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1552         rpl_towupper and rpl_towupper.
1553
1554 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1555
1556         regex-tests, regex: allow glibc re_search behavior
1557         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1558         re_search input data to make the multi-character collating element
1559         in it clearly visible, and treat re_search return code 0 as valid.
1560         * m4/regex.m4 (gl_REGEX): Likewise.
1561
1562 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1563
1564         stdalign: doc fix
1565         * doc/posix-headers/stdalign.texi (stdalign.h):
1566         Gnulib doesn't support '_Alignof expr'.
1567
1568 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1569
1570         stdalign: port to stricter ISO C11
1571         ISO C11 says that _Alignof's operand must be a parenthesized type.
1572         Problem reported by Eli Zaretskii in
1573         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1574         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1575         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1576
1577 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1578
1579         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1580         Problem reported by Marco Atzeri in
1581         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1582         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1583         Simply delegate to the system <sys/select.h> in this case too.
1584         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1585         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1586         be needed on Solaris either.
1587         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1588         Simply delegate to the system <sys/time.h> in this case.
1589
1590 2013-03-19  Karl Berry  <karl@gnu.org>
1591
1592         * build-aux/gnupload: check for erroneous (with gnupload) use of
1593         ftp-upload.gnu.org, tweak help.
1594
1595 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         copy-file, rpmatch: fix problems found by cppcheck
1598         Reported by Arno Onken in
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1600         * lib/rpmatch.c (try): Fix memory leak.
1601         * lib/copy-file.c: Include "ignore-value.h".
1602         (qcopy_file_preserving): Ignore chown value.
1603         * modules/copy-file (Depends-on): Add ignore-value.
1604
1605 2013-01-27  Jim Meyering  <jim@meyering.net>
1606
1607         prefix-gnulib-mk: give better diagnostics
1608         * build-aux/prefix-gnulib-mk: Don't just "die".
1609         Give better diagnostics upon failure.
1610
1611 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         putenv: port to Solaris 10
1614         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1615         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1616         is not what is wanted here.
1617         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1618         declaration, not for its existence.
1619
1620 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         mktime: fix configure typo
1623         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1624
1625 2013-03-12  Eric Blake  <eblake@redhat.com>
1626
1627         regex-tests: skip UTF-8 test on mingw
1628         * modules/regex-tests (Depends-on): Add localcharset.
1629         * tests/test-regex.c (main): Use it to skip test on mingw.
1630
1631 2013-03-11  Eric Blake  <eblake@redhat.com>
1632
1633         tests: make it easier to bypass alarm time in debugger
1634         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1635         * tests/test-memmem.c (main): Likewise.
1636         * tests/test-passfd.c (main): Likewise.
1637         * tests/test-ptsname.c (main): Likewise.
1638         * tests/test-ptsname_r.c (main): Likewise.
1639         * tests/test-strcasestr.c (main): Likewise.
1640         * tests/test-strstr.c (main): Likewise.
1641
1642         regex: port to mingw's recent addition of undeclared alarm
1643         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1644         exists but still doesn't work in newer mingw.
1645         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1646         not existence.  Ensure SIGALRM is not trapped.
1647         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1648         * m4/regex.m4 (gl_REGEX): Likewise.
1649         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1650         * tests/test-regex.c (main): Use correct probe for alarm.
1651
1652         putenv: avoid compilation warning on mingw
1653         * lib/putenv.c (_unsetenv): Protect variable declaration.
1654         (putenv): Fix indentation.
1655
1656 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1657
1658         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1659         * lib/unistd.in.h: be careful not to include un-needed system
1660         stdlib.h from here, because that prevents gnulib stdlib.h from
1661         defining rpl_strtod correctly.
1662
1663 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1664
1665         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1666         changesets, but for the 'precision 0' test.
1667         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1668         round-to-even, since POSIX says rounding is implementation-defined
1669         and OS X 10.8.2 rounds 1.51 to 1 here.
1670
1671         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1672         changeset.
1673         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1674         round-to-even, since POSIX says rounding is implementation-defined
1675         and OS X 10.8.2 rounds 1.5 to 1 here.
1676
1677 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1678
1679         vasnprintf-posix-tests: allow rounding 1.5 to 1
1680         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1681         round-to-even, since POSIX says rounding is implementation-defined
1682         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1683         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1684
1685         bootstrap: port to FreeBSD
1686         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1687         that treat '--' differently.  Reported by Mats Erik Andersson in
1688         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1689
1690 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1691
1692         regex: rename remaining __attribute calls to __attribute__.
1693         2012-02-25 changed definition of __attribute, but left some uses
1694         unchanged, preventing compilation of regex module on most non-gcc
1695         environments.
1696         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1697         (lookup_collation_sequence_value, build_range_exp)
1698         (build_collating_symbol): Set attributes with newly renamed
1699         __attribute__ decorator.
1700         * lib/regex_internal.c (re_string_peek_byte_case)
1701         (re_node_set_compare, re_node_set_contains): Likewise.
1702         * lib/regexec.c (acquire_init_state_context): Likewise.
1703
1704 2013-03-06  Bruno Haible  <bruno@clisp.org>
1705
1706         execute: Revert last change, but use a different condition.
1707         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1708         on Windows.
1709
1710 2013-03-05  Eric Blake  <eblake@redhat.com>
1711
1712         execute: drop dead code
1713         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1714
1715 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1716
1717         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1718         * m4/non-recursive-gnulib-prefix-hack.m4
1719         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1720         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1721         <http://bugs.gnu.org/10305#237>.
1722
1723 2013-03-04  Eric Blake  <eblake@redhat.com>
1724
1725         test-getsockopt: avoid compiler warning
1726         * tests/test-getsockopt.c (includes): Ensure close is declared.
1727
1728 2013-03-02  Bruno Haible  <bruno@clisp.org>
1729
1730         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1731         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1732
1733 2013-03-02  Bruno Haible  <bruno@clisp.org>
1734
1735         gettext: Update to version 0.18.2.
1736         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1737         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1738                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1739
1740 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         regex: merge patches from libc
1743
1744         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1745         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1746         All uses changed.
1747         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1748         (re_string_wchar_at, re_string_elem_size_at):
1749         Mark function as possibly unused.
1750
1751         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1752         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1753         elements compare against the byte sequence of it, not its name.
1754
1755 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1756
1757         putenv: port better to native Windows
1758         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1759         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1760         (_unsetenv): Use _putenv if available.
1761         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1762         a bit less likely to cause damage.
1763         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1764         Fix the wrong value with SetEnvironmentVariable.
1765         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1766         code better.
1767
1768 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1769
1770         regex: ignore old-style-definition warnings
1771         * lib/regex.c: Add pragma to ignore these warnings.
1772         Problem reported for GNU tar by Pavel Raiskup.
1773
1774 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1775
1776         getcwd: support coreutils better
1777         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1778         but this might not be correct in coreutils, which disables
1779         the raw decl checks.  Problem reported by Nagendra in
1780         <http://bugs.gnu.org/10305#192>.
1781         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1782         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1783         Test the getcwd function, not any macro, since getcwd.c wants the
1784         function.
1785         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1786         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1787         compile, as might happen if there's a macro but no function.
1788
1789         strtod: support coreutils better
1790         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1791         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1792         disables the raw decl checks.  This assumes there is an underlying
1793         strtod, but that's a safe assumption these days.
1794         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1795
1796         mountlist: port to HP NonStop
1797         Reported by Joachim Schmitz in
1798         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1799         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1800         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1801
1802 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1803
1804         extern-inline: avoid compilation error with HP-UX cc
1805         Reported by Richard Lloyd in
1806         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1807         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1808         Suppress extern inline with HP-UX cc.  This should be safe,
1809         though it may hurt performance.  Perhaps someone with some HP-UX
1810         experience can come up with a higher-performance fix.
1811
1812 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1813
1814         putenv: fix heap corruption with mixed putenv/_putenv
1815         Problem reported by Michael Goffioul in
1816         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1817         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1818         Rely on _putenv to allocate the new environment.
1819         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1820         * modules/putenv (configure.ac): Use it.
1821
1822 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1823
1824         unsetenv etc.: port to Solaris 11 + GNU Emacs
1825         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1826         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1827         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1828         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1829         idea but is too painful to fix right now), and without this gnulib
1830         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1831         compiling unsetenv.c on Solaris 11.  Fix the problem for
1832         unsetenv.c, and fix other similar occurrences.
1833
1834 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         secure_getenv: fix C++ declaration typo
1837         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1838         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1839         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1840
1841 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         careadlinkat: stop exporting careadlinkatcwd
1844         Only Emacs used it directly, and Emacs no longer needs it.
1845         * NEWS: Document this simplification.
1846         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1847         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1848         for readlink.
1849         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1850         Don't include stdlib.h; no longer needed.
1851         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1852         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1853         * modules/areadlink (Depends-on): Add readlink.
1854         (Maintainer): Add self.
1855         * modules/careadlinkat (Depends-on): Remove readlink.
1856
1857         extensions: port better to HP-UX
1858         This is merged from git Autoconf.
1859         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1860         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1861         so that it's compatible with the value used when compiling.
1862
1863         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1864         Problem reported by Mats Erik Andersson in
1865         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1866         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1867         openpty function exists, not merely when we intend to replace it.
1868         This corrects the 2013-01-31 patch, which mistakenly defined
1869         HAVE_OPENPTY even on hosts that lacked it.
1870
1871 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1872
1873         secure_getenv: fix include typo
1874         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1875
1876         secure_getenv: port better to FreeBSD and Solaris
1877         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1878         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1879         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1880         This works better on BSDish platforms.
1881         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1882         Test for issetugid if __secure_getenv is missing.
1883
1884 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1885
1886         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1887         Some of these changes are merged in from git Autoconf.
1888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1889         When deciding whether to define _XOPEN_SOURCE, inspect the
1890         preprocessor macro __hpux instead of the more-heavyweight
1891         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1892         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1893         as the key for __EXTENSIONS__.
1894
1895         unistd: avoid namespace pollution on non-glibc systems
1896         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1897         This avoids namespace pollution on non-glibc systems, by causing
1898         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1899         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1900         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1901
1902 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1903
1904         tmpdir: use secure_getenv
1905         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1906         Define to secure_getenv, not getenv.
1907         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1908         as that's now secure_getenv's job.
1909         * modules/tmpdir (Depends-on): Add secure_getenv.
1910
1911         tempname: use secure_getenv
1912         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1913         Define to secure_getenv, not getenv.
1914         * modules/tempname (Depends-on):
1915         Add secure_getenv.
1916
1917         secure_getenv: new module
1918         * MODULES.html.sh (Extra functions based on ANSI C 89):
1919         Add secure_getenv.
1920         * doc/glibc-functions/secure_getenv.texi: New file.
1921         * doc/gnulib.texi: Include it.
1922         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1923         New files.
1924         * lib/stdlib.in.h (secure_getenv): New decl.
1925         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1926         * modules/stdlib (stdlib.h):
1927         Add secure_getenv checks.
1928
1929 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1930
1931         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1932         Reported for OS X 10.8.2 by Assaf Gordon in
1933         <http://bugs.gnu.org/13516>.
1934         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1935         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1936         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1937         so that they can be kept in sync more easily.  Avoid PATH_MAX
1938         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1939         mkdir or chdir failure.
1940         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1941         lib/getcwd.c.
1942         (test_abort_bug): Do not test for the deep directory bug unless we
1943         have openat support.  Avoid PATH_MAX test on the Hurd.
1944
1945         regex-tests, regex: fix bug: memset undeclared
1946         * tests/test-regex.c: Don't include regex.h twice.  Include
1947         string.h, to declare memset.  Christensen's report also mentioned
1948         this issue.
1949         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1950         test-regex.c, to avoid future problems like this.  Remove
1951         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1952         twice.
1953
1954         regex-tests: fix link errors on older Solaris
1955         These need to link with @LIBINTL@ to get libintl_gettext.
1956         Problem reported by Tom G. Christensen in
1957         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1958         * modules/regex-tests (test_regex_LDADD): New macro.
1959
1960 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1961
1962         regex-tests: new module
1963         * modules/regex-tests, tests/test-regex.c: New files.
1964
1965         regex: fix off-by-one error in configure test
1966         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1967
1968 2013-01-31  Eric Blake  <eblake@redhat.com>
1969
1970         regex: avoid infinite configure test
1971         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1972
1973 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1974
1975         openpty: fix bug where HAVE_OPENPTY wasn't defined
1976         See the thread starting at:
1977         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1978         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1979         openpty function exists, not merely when we intend to replace it.
1980
1981 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         sys_time: port to Solaris 2.6
1984         There is a circularity problem on Solaris 2.6, where <time.h> includes
1985         <sys/time.h> for struct timespec.  The include nesting is gnulib
1986         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1987         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1988         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1989         <sys/siginfo.h>; the last, innermost file needs struct
1990         timestruc_t, which is defined in <sys/time.h>, which has not been
1991         fully parsed.  Problem reported by Tom G. Christensen in
1992         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1993         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1994         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1995         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1996         uses split double-inclusion guards.
1997
1998 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1999
2000         regex: test for buffer overrun
2001         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2002         for the just-fixed regex bug.
2003
2004 2013-01-29  Andreas Schwab  <schwab@suse.de>
2005
2006         regex: fix buffer overrun in regexp matcher [BZ #15078]
2007         * lib/regexec.c (extend_buffers): Add parameter min_len.
2008         (check_matching): Pass minimum needed length.
2009         (clean_state_log_if_needed): Likewise.
2010         (get_subexp): Likewise.
2011
2012 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2013
2014         mountlist: don't consider "devtmpfs" as dummy
2015         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2016         as there is storage associcated with it.
2017
2018 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2019
2020         futimens-tests, utimens-tests: Depend on gettext.
2021         This works around a problem introduced in my 2013-01-12 patch,
2022         which added @LIBINTL@ to these modules.
2023         * modules/futimens-tests (Depends-on):
2024         * modules/utimens-tests (Depends-on): Add gettext.
2025
2026 2013-01-26  Eric Blake  <eblake@redhat.com>
2027
2028         test-getpeername: fix typo
2029         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2030
2031 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2032
2033         bootstrap: remove the need for a sorted .gitignore file
2034         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2035         rename to insert_if_absent(), so that we don't need or generate
2036         a sorted .gitignore file.  We do require a .gitignore with no
2037         existing duplicate entries and enforce that.
2038         (sort_patterns): Remove this function as we now use the simpler
2039         technigue of inserting blacklist entries at the top of the file,
2040         assuming gnulib won't be inserting !whitelist entries.
2041
2042 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         readlinkat: don't depend on gl_FUNC_OPENAT
2045         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2046         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2047         renameat.m4, symlinkat.m4; but one thing at a time.
2048
2049         statat: new module, split out from fstatat
2050         GNU Emacs needs the POSIX-specified fstatat, but not the
2051         gnulib-specified statat and lstat.  Split the latter two into a
2052         new module 'statat'.
2053         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2054         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2055         Rename from FSTATAT_INLINE. All uses changed.
2056         * modules/fstatat (Files): Remove lib/statat.c.
2057         (gl_MODULE_INDICATOR([fstatat])): Remove.
2058         (lib_SOURCES): Remove.
2059         (Maintainer): Add self.
2060         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2061         * tests/test-fstatat.c (BASE): Don't define if already defined.
2062         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2063
2064 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         tests: don't assume fd 99 is closed
2067         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2068         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2069         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2070         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2071         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2072         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2073         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2074         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2075         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2076         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2077         * tests/test-fwrite.c, tests/test-getpeername.c:
2078         * tests/test-getsockname.c, tests/test-getsockopt.c:
2079         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2080         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2081         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2082         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2083         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2084         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2085         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2086         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2087         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2088         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2089         Close file descriptor 99, instead of assuming it's already closed.
2090
2091 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2092
2093         stpncpy: port to OS X 10.8
2094         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2095         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2096
2097 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         unistd: port to recent mingw
2100         * lib/unistd.in.h: Remove special invocation convention for mingw,
2101         which breaks for the latest mingw version.  See John W. Eaton in
2102         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2103
2104         largefile: port better to Mac OS X 10.5
2105         This patch is backported from Autoconf git.
2106         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2107         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2108         with ino_t size being different for configuration time versus
2109         build/run time.  Problem reported by PHO in
2110         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2111
2112 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         doc: clarify -Werror
2115         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2116         clarify that it's intended for developers, not for ordinary builds,
2117         and mention --enable-gcc-warnings as one possible use.
2118
2119 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2120
2121         stdint: fix build with Android's Bionic fox x86
2122         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2123         was already included as _SSIZE_T_DEFINED_ might also be defined
2124         in include/machine/_types.h, which is included by stdio.h
2125
2126 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2127
2128         net_if-tests: port to Solaris 7 + GCC 3.4.6
2129         Problem reported by Tom G. Christensen in
2130         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2131         * tests/test-net_if.c (ni): Move to next the code that uses it,
2132         so that it's declared only if needed.
2133
2134 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         net_if-tests: port to older Solaris
2137         Problem reported by Tom G. Christensen in
2138         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2139         * modules/net_if-tests (NET_IF_LIB): New substitution.
2140         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2141         (HAVE_IF_NAMEINDEX): New C macro.
2142         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2143
2144         system-quote-tests: port to older Solaris
2145         Problem reported by Tom G. Christensen in
2146         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2147         * tests/test-system-quote-child.c (fopen, fread): Undef.
2148
2149         c-xvasprintf etc.: fix link errors on older Solaris
2150         These need to link with @LIBINTL@ to get libintl_gettext.
2151         Problem reported by Tom G. Christensen in
2152         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2153         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2154         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2155         * modules/futimens-tests (test_futimens_LDADD):
2156         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2157
2158 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         locale: port to Solaris 2.6 and 7 + GNU gettext
2161         * lib/locale.in.h: Just include_next <locale.h> when
2162         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2163         when combining the localename module with GNU gettext 0.18.2.
2164         Problem reported by Tom G. Christensen in
2165         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2166
2167 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         stdlib: port to Solaris 2.6
2170         Also, the code worked on Solaris 7 through 9 only by accident.
2171         Problem reported by Tom G. Christensen in
2172         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2173         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2174         simply include the system stdlib.h.
2175         * lib/getopt.in.h (__need_system_stdlib_h):
2176         * lib/pthread.in.h (__need_system_stdlib_h):
2177         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2178         Define when including <stdlib.h>, to avoid problems at least for
2179         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2180         with the system stdlib.h.
2181
2182 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2183
2184         doc: update main copyright year
2185         * doc/gnulib.texi: Update copyright date.
2186
2187         doc: improve ISO 8601 discussion
2188         * doc/parse-datetime.texi (Combined date and time of day items):
2189         Specify more carefully what formats are supported and what is
2190         done with excess precision.
2191
2192 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2193
2194         doc: avoid small caps
2195         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2196         they're more trouble than they're worth.  Suggested by Karl Berry
2197         in <http://bugs.gnu.org/13360>.
2198
2199         regex: conform to strict C
2200         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2201         From Aharon Robbins.
2202
2203         gnulib-tool: fix incompatibility with autopoint 0.18.2
2204         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2205         Problem reported by Tom G. Christensen in
2206         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2207
2208 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         fprintftime: bring back and reword fwrite comment
2211         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2212
2213         stdio: remove now-unnecessary stdio.c
2214         Since stdio.in.h no longer uses inline functions, we no longer
2215         need to compile the extern versions.
2216         * lib/stdio.c: Remove.
2217         * modules/stdio (Files): Remove lib/stdio.c.
2218         (lib_SOURCES): Remove.
2219
2220         unicodeio: depend on stdio, not ignore-value
2221         * lib/unicodeio.c: Do not include ignore-value.h.
2222         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2223         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2224
2225         fprintftime: depend on stdio, not ignore-value
2226         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2227         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2228         since the stdio module arranges to silence that warning now.
2229         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2230
2231 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2232
2233         stdint-tests: Fix expanded-before-required-warning.
2234         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2235
2236 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2237
2238         fwrite: silence __wur only for older glibc versions
2239         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2240         This will help us remove this workaround some time in the far future.
2241
2242 2013-01-03  Eric Blake  <eblake@redhat.com>
2243
2244         fwrite: silence __wur without using inline
2245         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2246         just gcc, and in a way that avoids inline issues.
2247         * modules/stdio (Depends-on): Drop extern-inline.
2248
2249 2013-01-03  Jim Meyering  <jim@meyering.net>
2250
2251         update-copyright: avoid copyright notice date corruption
2252         Given a sequence of copyright year numbers in which the final
2253         one was a two-digit number that happened to be a substring of
2254         a preceding four-digit year number, we would mistakenly update
2255         the substring (from two- to four-digit) rather than the two-digit
2256         number at the end, which, combined with the addition of the current
2257         4-digit year number would yield two 5-digit year numbers, e.g.,
2258         here, it would convert the first "99" to "1999, 2013" rather than
2259         the final one:
2260           1991, 99
2261           11999, 20131, 1999
2262         * build-aux/update-copyright: Tighten a regexp.
2263         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2264         Reported by Joseph Myers in
2265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2266
2267 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2268
2269         regex: omit needless signed-pointer casts
2270         * lib/regcomp.c (build_charclass, build_charclass_op):
2271         Use char *, not unsigned char *, for class name and extra.
2272         The char values are always nonnegative so there's no need to
2273         insist on unsigned char * here, and using char * removes the need
2274         for casts.  Reported by Aharon Robbins in
2275         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2276
2277         regex: support Gawk, which never uses alloca
2278         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2279         Do not include in this case.  Gawk doesn't supply a substitute
2280         alloca.h and doesn't need one.
2281
2282         regex: port __libc_lock_define usage to C89
2283         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2284         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2285         does not conform to C89, as it has an empty macro argument.
2286         Reported by Aharon Robbins in
2287         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2288
2289 2013-01-01  Eric Blake  <eblake@redhat.com>
2290
2291         maint: update all copyright year number ranges
2292         Run "make update-copyright".
2293
2294         version-etc: bump copyright year reported in --version
2295         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2296
2297 2012-12-31  Eric Blake  <eblake@redhat.com>
2298
2299         sigprocmask-tests: skip test if pid is unexpectedly large
2300         * tests/test-sigprocmask.c (main): Add range check.
2301
2302         git-version-gen: avoid test -z portability glitch
2303         * build-aux/git-version-gen: Prefer portable test spelling, since
2304         git-version-gen is run on more than just developer machines.
2305
2306 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2307
2308         git-version-gen: add --fallback option to use if git is not present
2309         * build-aux/git-version-gen: Add support for the new option --fallback,
2310         which comes into play when there is no $tarball_version_file and
2311         git is not working.
2312         (scriptversion): Update.
2313
2314         maint.mk: handle missing git with more grace
2315         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2316         Quietly proceed if git is not present.
2317
2318 2012-12-31  Eric Blake  <eblake@redhat.com>
2319
2320         dup2: work around cygwin bug
2321         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2322         * lib/dup2.c (rpl_dup2): Work around it.
2323         * doc/posix-functions/dup2.texi (dup2): Document it.
2324
2325 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2326
2327         regex: remove unnecessary dependency on localcharset.h
2328         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2329         hasn't been needed for years.
2330         * modules/regex (Depends-on): Remove localcharset.
2331
2332         regex: revert single-byte change
2333         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2334         to this function.  This was alredy fixed in a different way, at
2335         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2336         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2337         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2338
2339         regex: simplify based on Gawk version
2340         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2341         Reported by Aharon Robbins in
2342         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2343
2344 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         regex: check that pattern char is single-byte
2347         Reported by Aharon Robbins in
2348         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2349         * lib/regexec.c (check_node_accept_bytes):
2350         Return 0 if the pattern string has a multibyte character here.
2351
2352         regex: implement rational ranges
2353         Reported by Aharon Robbins in
2354         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2355         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2356         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2357         Implement rational ranges.
2358
2359         regex: avoid redefining __wctype
2360         Reported by Aharon Robbins in
2361         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2362         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2363         #undef before defining.
2364
2365         regex: port to hosts where malloc (0) == NULL
2366         Reported by Aharon Robbins in
2367         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2368         * lib/regex_internal.c (re_node_set_alloc):
2369         Don't assume that malloc (0) yields nonnull.
2370         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2371         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2372         * modules/regex (Files): Add m4/eealloc.m4.
2373
2374         regex: port to C89
2375         Reported by Aharon Robbins in
2376         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2377         * lib/regcomp.c (init_word_char): Declaration before statement.
2378
2379         regex: merge glibc changes
2380         Also, copy the license wording from glibc.  This simplifies
2381         merging changes.  gnulib-tool will change the wording to GPL as
2382         appropriate, when importing it to other packages.  The only
2383         glibc change made since the last merge, which needs merging, is:
2384         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2385         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2386
2387         * users.txt: Add Emacs.
2388
2389         doc: omit mention of version when not needed
2390         * doc/gnulib-intro.texi (Portability and Application Code):
2391         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2392         Don't mention particular dates or versions when not necessary, so
2393         that the documentation won't go out of date so quickly.
2394
2395         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2396
2397 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2398
2399         bootstrap: pass --force to autoreconf.
2400         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2401         Add "--force" so that Automake's ylwrap and other such tools
2402         be updated at each bootstrap invocation.
2403         Use it.
2404
2405 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2406
2407         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2408         The earlier patch forgot to update one of the #if conditions, causing
2409         a problem on Debian testing i386 reported by Mats Erik Andersson
2410         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2411         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2412         (__argp_fmtstream_puts, argp_fmtstream_puts)
2413         (__argp_fmtstream_write, argp_fmtstream_write)
2414         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2415
2416         * doc/gnulib-readme.texi: Minor fixups.
2417         (Portability guidelines): Modernize URLs.  Remove some repetition.
2418         (Indent with spaces not TABs): Reword to avoid too-long lines.
2419         Remove some '@ifset standalone' stuff that isn't used.
2420
2421         * doc/gnulib-readme.texi (Portability guidelines):
2422         ctype.h, not ctime.h.
2423
2424         Correct name of POSIX.1-2001.
2425         * doc/posix-functions/fgetc.texi (fgetc):
2426         * doc/posix-functions/fgets.texi (fgets):
2427         * doc/posix-functions/fread.texi (fread):
2428         * doc/posix-functions/fscanf.texi (fscanf):
2429         * doc/posix-functions/getc.texi (getc):
2430         * doc/posix-functions/getchar.texi (getchar):
2431         * doc/posix-functions/scanf.texi (scanf):
2432         POSIX.1-2001, not POSIX-2001.
2433
2434         doc: move README into manual
2435         * README: Move contents to new file doc/gnulib-readme.texi.
2436         Replace with a one-line summary.
2437         * doc/gnulib.texi (Brief Overview): New section,
2438         with old intro preface.  Include gnulib-readme.texi for contents.
2439         (Philosophy): Rename from "Introduction", since this
2440         section no longer introduces the rest.  Write a new preface.
2441         * doc/gnulib-readme.texi: New file, with the old contents of
2442         README texinfo-ized.  This way, the README info appears
2443         in the online and printed manual.
2444
2445 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2446
2447         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2448         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2449         c_vasprintf() prototype.
2450
2451 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2452
2453         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2454         * lib/c-vasprintf.h: Remove stray semicolon.
2455
2456 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2457
2458         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2459         It is obsolete and is planned to be removed from Automake 1.14; see
2460         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2461         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2462         (installdirs-data, installdirs-data-yes):
2463         Use $(MKDIR_P), not $(mkdir_p).
2464         * m4/intl.m4 (AM_INTL_SUBDIR):
2465         * m4/po.m4 (AM_PO_SUBDIRS):
2466         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2467
2468 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2469
2470         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2471         On this platform, we are not optimizing but we are using
2472         the substitute for extern inlines, so compile as if
2473         C99-style extern inline, or a substitute, is available.
2474         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2475         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2476         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2477         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2478         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2479         Declare as ARGP_FS_EI, not as extern.
2480         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2481         (__option_is_short, _option_is_end, __option_is_end)
2482         [!_LIBC && __USE_EXTERN_INLINES]:
2483         Declare as ARGP_EI, not as extern.
2484
2485 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2486
2487         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2488         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2489         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2490         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2491         ...), as the latter is fatal with older Autoconfs.
2492         Problem reported and fix suggested by Eric Blake in thread starting at
2493         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2494
2495 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2496
2497         AC_PROG_MKDIR_P: don't workaround if not buggy
2498         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2499         Define only for Autoconf versions before 2.62.
2500         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2501         undocumented m4_PACKAGE_VERSION, for consistency with the
2502         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2503         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2504         was introduced in 2.62.
2505
2506 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2507
2508         New 'c-*printf' modules for formatted output in C locale.
2509
2510         New module 'c-vasnprintf'.
2511         * modules/c-vasnprintf: New file.
2512         * lib/c-vasnprintf.c: New file.
2513         * lib/c-vasnprintf.h: New file.
2514
2515         New module 'c-snprintf'.
2516         * modules/c-snprintf: New file.
2517         * modules/c-snprintf-tests: New file.
2518         * lib/c-snprintf.c: New file.
2519         * lib/c-snprintf.h: New file.
2520         * tests/test-c-snprintf.c: New file.
2521         * tests/test-c-snprintf.sh: New file.
2522
2523         New module 'c-vsnprintf'.
2524         * modules/c-vsnprintf: New file.
2525         * modules/c-vsnprintf-tests: New file.
2526         * lib/c-vsnprintf.c: New file.
2527         * lib/c-vsnprintf.h: New file.
2528         * tests/test-c-vsnprintf.c: New file.
2529         * tests/test-c-vsnprintf.sh: New file.
2530
2531         New module 'c-vasprintf'.
2532         * modules/c-vasprintf: New file.
2533         * modules/c-vasprintf-tests: New file.
2534         * lib/c-asprintf.c: New file.
2535         * lib/c-vasprintf.c: New file.
2536         * lib/c-vasprintf.h: New file.
2537         * tests/test-c-vasprintf.c  +: New file.
2538         * tests/test-c-vasprintf.sh: New file.
2539
2540         New module 'c-xvasprintf'.
2541         * modules/c-xvasprintf: New file.
2542         * modules/c-xvasprintf-tests: New file.
2543         * lib/c-xasprintf.c: New file.
2544         * lib/c-xvasprintf.c: New file.
2545         * lib/c-xvasprintf.h: New file.
2546         * tests/test-c-xvasprintf.c: New file.
2547         * tests/test-c-xvasprintf.sh: New file.
2548
2549 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2550
2551         argp: better 'inline'
2552         Use extern-inline module to declare extern inline functions.
2553         This avoids some bogus warning diagnostics.  Problem discovered
2554         when modifying GNU tar to use the manywarnings module.
2555         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2556         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2557         Define based on extern-inline.
2558         * modules/argp (Depends-on): Add extern-inline.
2559
2560 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         filemode, sys_stat: Handle MPX files a la AIX.
2563         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2564         * lib/sys_stat.in.h (S_ISMPX): New macro.
2565         * tests/test-sys_stat.c: Add tests for MPX files.
2566
2567 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2568
2569         x-to-1: honor $PERL
2570         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2571         a chance to use his preferred version of Perl.  This is typically
2572         required by Darwin users whose default /usr/bin/perl does not have all
2573         the libraries required by help2man, and who need to use their MacPorts
2574         installation of Perl instead.
2575
2576 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2577
2578         gnu-web-doc-update: add all the new files, even in new directories
2579         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2580         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2581         Use it.
2582         (main): Don't use cvsutils to get the list of unknown files,
2583         just add all the existing files and directories.
2584
2585 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2586
2587         gnu-web-doc-update: improve --help
2588         * build-aux/gnu-web-doc-update: Move comments into --help.
2589
2590 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2591
2592         mountlist: recognize more "dummy" file systems
2593         * lib/mountlist.c (ME_DUMMY_0):
2594         Add these dummy FS names to the list:
2595         - "debugfs" virtual filesystem for kernel debugging
2596         - "devpts" PTY slave filesystem
2597         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2598         - "fusectl" control filesystem for FUSE
2599         - "mqueue" enumerates POSIX message queues
2600         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2601         - "sysfs" is for exporting kernel objects
2602         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2603
2604 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2605
2606         extern-inline: avoid incompatibility with Darwin Libc
2607         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2608         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2609         Problem reported by Akim Demaille in
2610         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2611
2612 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2613
2614         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2615         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2616         let it handle password prompting.
2617
2618 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2619
2620         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2621         * lib/canonicalize.c (canonicalize_filename_mode):
2622         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2623         fetching the current directory.  Don't overrun the beginning of
2624         rpath if there's no slashes after the MS-Windows drive letter.
2625
2626 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2627
2628         maint.mk: avoid extra forks
2629         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2630         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2631         So use that instead of "$(shell test -f FILE && echo FILE)".
2632
2633 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2634
2635         vasnprintf: fix ASCII_ONLY typo
2636         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2637         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2638         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2639         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2641
2642 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2643
2644         list, oset, xlist, xoset: fix extern inline issue with C99
2645         This was introduced by my recent changes for 'inline'.
2646         Problem reported for gettext by Daiki Ueno in
2647         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2648         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2649         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2650         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2651         (gl_list_previous_node, gl_list_get_at)
2652         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2653         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2654         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2655         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2656         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2657         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2658         (gl_list_iterator_free, gl_sortedlist_search)
2659         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2660         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2661         (gl_sortedlist_remove):
2662         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2663         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2664         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2665         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2666         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2667         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2668         (gl_list_add_at, gl_sortedlist_add):
2669         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2670         Wrap these extern decls inside "#if 0", because they are implemented
2671         as inline functions, and extern inline is not what's wanted here.
2672         It would simplify these .h files to remove the extern decls entirely,
2673         although a downside would be less-clear separation between
2674         specification and implementation.
2675
2676 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2677
2678         sys_stat: no 'static inline'
2679         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2681
2682         extern-inline: no 'static inline'
2683         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2684         Do not require AC_C_INLINE.
2685         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2686         'static inline', for older compilers.
2687
2688         snippet/warn-on-use: no 'static inline'
2689         * build-aux/snippet/warn-on-use.h:
2690         Remove unnecessary 'inline' in comment.
2691
2692         rbtree-list, rbtreehash-list: no 'static inline'
2693         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2694         * lib/gl_anytree_list2.h (node_at):
2695         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2696         (gl_oset_first, add_nodes_to_buckets):
2697         Now static, not static inline.
2698
2699         regex: no 'static inline'
2700         * lib/regex_internal.c (calc_state_hash):
2701         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2702         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2703         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2704         Now static, not static inline.
2705         (inline) [__GNUC__ < 3 && _LIBC]:
2706         Remove macro; no longer needed.
2707
2708         xvasprintf: no 'static inline'
2709         * lib/xvasprintf.c (xstrcat):
2710         Now static, not static inline.
2711         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2712         Do not require AC_C_INLINE.
2713
2714         parse-datetime, parse-duration: no 'static inline'
2715         * lib/parse-datetime.y (to_uchar):
2716         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2717         (scale_n_add):
2718         Now static, not static inline.
2719         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2720         * modules/parse-duration (configure.ac):
2721         Do not require AC_C_INLINE.
2722
2723         getaddrinfo: no 'static inline'
2724         * lib/getaddrinfo.c (validate_family):
2725         Now static, not static inline.
2726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2727         Do not require AC_C_INLINE.
2728
2729         ftruncate, fts, lstat, openat, raise: no 'static inline'
2730         * lib/ftruncate.c (chsize_nothrow):
2731         * lib/fts.c (opendirat, diropen):
2732         * lib/lstat.c (orig_lstat):
2733         * lib/openat.c (orig_openat):
2734         * lib/raise.c (raise_nothrow):
2735         Now static, not static inline.
2736         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2737         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2738         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2739         * m4/openat.m4 (gl_PREREQ_OPENAT):
2740         * m4/raise.m4 (gl_PREREQ_RAISE):
2741         Do not require AC_C_INLINE.
2742
2743         fflush, stat: no 'static inline'
2744         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2745         (clear_ungetc_buffer, disable_seek_optimization)
2746         (restore_seek_optimization, update_fpos_cache):
2747         * lib/stat.c (orig_stat):
2748         Now static, not static inline.
2749         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2750         (update_fpos_cache):
2751         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2752         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2753         * m4/stat.m4 (gl_PREREQ_STAT):
2754         Do not require AC_C_INLINE.
2755
2756         error, filevercmp: no 'static inline'
2757         * lib/error.c (is_open, flush_stdout):
2758         * lib/filevercmp.c (order):
2759         Now static, not static inline.
2760         * m4/error.m4 (gl_PREREQ_ERROR):
2761         * modules/filevercmp (configure.ac):
2762         Do not require AC_C_INLINE.
2763
2764         dup, execute, fatal-signal, etc.: no 'static inline'
2765         * lib/dup.c (dup_nothrow):
2766         * lib/execute.c (nonintr_close, nonintr_open):
2767         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2768         * lib/fopen.c (orig_fopen):
2769         * lib/freadseek.c (freadptrinc):
2770         * lib/freopen.c (orig_freopen):
2771         * lib/fstat.c (orig_fstat, fstat_nothrow):
2772         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2773         (get_rusage_as_via_iterator):
2774         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2775         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2776         * lib/isatty.c (_isatty_nothrow):
2777         * lib/open.c (orig_open):
2778         * lib/read.c (read_nothrow):
2779         * lib/sigprocmask.c (signal_nothrow):
2780         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2781         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2782         * lib/wait-process.c (unregister_slave_subprocess):
2783         * lib/write.c (write_nothrow):
2784         Now static, not static inline.
2785         * lib/spawn-pipe.c (nonintr_open): Define only if
2786         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2787         * m4/dup.m4 (gl_PREREQ_DUP):
2788         * m4/execute.m4 (gl_EXECUTE):
2789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2790         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2791         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2792         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2793         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2794         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2795         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2796         * m4/open.m4 (gl_PREREQ_OPEN):
2797         * m4/read.m4 (gl_PREREQ_READ):
2798         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2799         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2801         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2802         * m4/write.m4 (gl_PREREQ_WRITE):
2803         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2804         Do not require AC_C_INLINE.
2805
2806         c-strtod, memcoll, readutmp: no 'static inline'
2807         * lib/c-strtod.c (c_locale):
2808         * lib/memcoll.c (strcoll_loop):
2809         * lib/readutmp.c (desirable_utmp_entry):
2810         Now static, not static inline.
2811         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2812         * m4/memcoll.m4 (gl_MEMCOLL):
2813         * m4/readutmp.m4 (gl_READUTMP):
2814         Do not require AC_C_INLINE.
2815
2816         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2817         * lib/arctwo.c (to_uchar):
2818         * lib/md4.c (set_uint32):
2819         * lib/md5.c (set_uint32):
2820         * lib/sha1.c (set_uint32):
2821         * lib/sha256.c (set_uint32):
2822         * lib/sha512.c (set_uint64):
2823         Now static, not static inline.  This is a bit simpler, and doesn't
2824         affect performance with GCC and default optimization.
2825         * m4/arctwo.m4 (gl_ARCTWO):
2826         * m4/md4.m4 (gl_MD4):
2827         * m4/md5.m4 (gl_MD5):
2828         * m4/sha1.m4 (gl_SHA1):
2829         * m4/sha256.m4 (gl_SHA256):
2830         * m4/sha512.m4 (gl_SHA512):
2831         Do not require AC_C_INLINE.
2832
2833         cond, lock, thread: better 'inline'
2834         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2835         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2836         New macros.  Use them instead of static inline, for header functions.
2837         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2838         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2839         * lib/glthread/lock.c (gl_waitqueue_init)
2840         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2841         * lib/glthread/thread.c (get_current_thread_handle):
2842         Change 'static inline' to 'inline'.
2843         * lib/glthread/cond.h, lib/glthread/thread.h:
2844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2845         * m4/cond.m4 (gl_COND):
2846         * m4/lock.m4 (gl_PREREQ_LOCK):
2847         * m4/thread.m4 (gl_THREAD):
2848         Do not require AC_C_INLINE.
2849         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2850
2851         chdir-long, cycle-check, savewd: better 'inline'
2852         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2853         (find_non_slash):
2854         * lib/cycle-check.c (is_zero_or_power_of_two):
2855         * lib/savewd.c (savewd_delegating):
2856         Change 'static inline' to 'inline'.
2857         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2858         Replace all remaining uses of 'static inline' with it.
2859         * lib/savewd.h:
2860         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2861         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2862         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2863         * m4/savewd.m4 (gl_SAVEWD):
2864         Do not require AC_C_INLINE.
2865         * modules/savewd (Depends-on): Add extern-inline.
2866
2867         base32, base64: no need for 'inline'
2868         * lib/base32.c (to_uchar, get_8, decode_8):
2869         * lib/base64.c (to_uchar, get_4, decode_4):
2870         Change 'static inline' to 'inline'.
2871         * m4/base32.m4 (gl_PREREQ_BASE32):
2872         * m4/base64.m4 (gl_PREREQ_BASE64):
2873         Do not require AC_C_INLINE.
2874
2875         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2876         * lib/gl_array_oset.c (gl_array_nx_add_at):
2877         (gl_array_remove_at):
2878         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2879         (add_to_bucket, remove_from_bucket):
2880         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2881         Change 'static inline' to 'static', as it's simpler to omit
2882         'inline' unless there's a significant performance advantage.
2883
2884         list, oset, xlist, xoset, xsublist: simplify via extern inline
2885         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2886         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2887         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2888         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2889         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2890         New macro.  Replace all uses of 'static inline' with it.
2891         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2892         instead of as macros FOO that are defined to static inline
2893         functions FOO_inline.
2894         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2895         * lib/gl_xsublist.c:
2896         Reimplement from scratch, by defining the corresponding *_INLINE
2897         macro and including the corresponding .h file.  This is simpler.
2898         * modules/list, modules/oset, modules/xlist, modules/xoset:
2899         (Files): Remove m4/gl_list.m4.
2900         (configure.ac): Remove gl_LIST.
2901         * m4/gl_list.m4: Remove.
2902         * modules/list, modules/oset, modules/xlist, modules/xoset:
2903         * modules/xsublist:
2904         (Depends-on): Depend on extern-inline, not inline.
2905
2906         xalloc: better 'inline'
2907         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2908         New macro.  Replace all uses of 'static inline' with it.
2909         (static_inline): Remove.
2910         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2911         Let 'extern inline' do the work automatically, instead of doing
2912         it by hand.
2913         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2914         Remove.  All uses removed.
2915         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2916
2917         gethrxtime: better 'inline'
2918         * lib/xtime.c: New file.
2919         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2920         * lib/xtime.h (XTIME_INCLUDE):
2921         New macros.  Replace all uses of 'static inline' with them.
2922         * lib/gethrxtime.c (gethrxtime): Define only if
2923         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2924         this source file is now always compiled, because of the extern inline.
2925         * lib/gethrxtime.h, lib/xtime.h:
2926         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2927         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2928         if gethrtime works, as they're not needed in that case.
2929         (gl_XTIME): Do not require AC_C_INLINE.
2930         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2931         compiled now.  Move the check into gl_GETHRXTIME.
2932         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2933         (Depends-on): Add extern-inline.
2934         (configure.ac): gethrxtime is always compiled now.
2935         (lib_SOURCES): Add gethrxtime.c.
2936
2937         wctype-h: better 'inline'
2938         * lib/wctype-h.c: New file.
2939         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2940         New macro.  Replace all uses of 'static inline' with it.
2941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2942         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2943         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2944         (Depends-on): Add extern-inline.
2945
2946         unistd: better 'inline'
2947         * lib/unistd.c: New file.
2948         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2949         New macro.  Replace all uses of 'static inline' with it.
2950         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2951         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2952         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2953         (Depends-on): Add extern-inline.
2954
2955         sys_socket: better 'inline'
2956         * lib/sys_socket.c: New file.
2957         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2958         New macro.  Replace all uses of 'static inline' with it.
2959         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2960         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2961         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2962         (Depends-on): Add extern-inline.
2963
2964         stdio: better 'inline'
2965         * lib/stdio.c: New file.
2966         * lib/stdio.in.h (_GL_STDIO_INLINE):
2967         New macro.  Replace all uses of 'static inline' with it.
2968         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2969         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2970         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2971         (Depends-on): Add extern-inline.
2972
2973         sigaction: better 'inline'
2974         * lib/sig-handler.c: New file.
2975         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2976         New macro.  Replace all uses of 'static inline' with it.
2977         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2978         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2979         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2980         (Depends-on): Add extern-inline.
2981
2982         selinux-h: better 'inline'
2983         * lib/se-context.c, lib/se-selinux.c: New files.
2984         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2985         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2986         New macro.  Replace all uses of 'static inline' with it.
2987         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2988         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2989         New macro.  Replace all uses of 'static inline' with it.
2990         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2991         * modules/selinux-h (Files, lib_SOURCES):
2992         Add lib/se-context.c, lib/se-selinux.c.
2993         (Depends-on): Add extern-inline.
2994         (configure.ac): Do not require AC_C_INLINE.
2995
2996         pthread: better 'inline'
2997         * lib/pthread.c: New file.
2998         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2999         New macro.  Replace all uses of 'static inline' with it.
3000         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3001         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3002         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3003         * modules/pthread (Files): Add lib/pthread.c.
3004         (Depends-on): Add extern-inline.
3005
3006         math: better 'inline'
3007         * lib/math.c: New file.
3008         * lib/math.in.h (_GL_MATH_INLINE):
3009         New macro.  Replace all uses of 'static inline' with it.
3010         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3011         * m4/math_h.m4 (gl_MATH_H):
3012         Do not require AC_C_INLINE.
3013         * modules/math (Files, lib_SOURCES):
3014         Add lib/math.c.
3015         (Depends-on): Add extern-inline.
3016
3017         count-one-bits: better 'inline'
3018         * lib/count-one-bits.c: New file.
3019         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3020         New macro.  Replace all uses of 'static inline' with it.
3021         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3022         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3023         Do not require AC_C_INLINE.
3024         * modules/count-one-bits (Files, lib_SOURCES):
3025         Add lib/count-one-bits.c.
3026         (Depends-on): Add extern-inline.
3027
3028         count-leading-zeros: better 'inline'
3029         * lib/count-leading-zeros.c: New file.
3030         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3031         New macro.  Replace all uses of 'static inline' with it.
3032         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3033         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3034         Do not require AC_C_INLINE.
3035         * modules/count-leading-zeros (Files, lib_SOURCES):
3036         Add lib/count-leading-zeros.c.
3037         (Depends-on): Add extern-inline.
3038
3039         bitrotate: better 'inline'
3040         * lib/bitrotate.c: New file.
3041         * lib/bitrotate.h (BITROTATE_INLINE):
3042         New macros.
3043         Replace all uses of 'static inline' with them.
3044         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3045         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3046         (Depends-on): Add extern-inline.
3047         (configure.ac): Do not require AC_C_INLINE.
3048
3049 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3050
3051         maint.mk: avoid gratuitous failure
3052         Reported by Stefano Lattarini in
3053         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3054         * top/maint.mk (public-submodule-commit): Quote more safely.
3055
3056 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3057
3058         canonicalize, canonicalize-lgpl: support MS-Windows file names
3059         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3060         for test cases, which it'd be nice to add at some point.
3061         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3062         * lib/canonicalize.c (canonicalize_filename_mode):
3063         * lib/canonicalize-lgpl.c (__realpath):
3064         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3065         slash is at the beginning of the file name.  Use ISSLASH, instead
3066         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3067         the first character with '/'.  Test for
3068         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3069         with a drive letter.
3070         * lib/canonicalize.c (SLASHES): New macro.
3071         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3072
3073 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3074
3075         fts: introduce FTS_VERBATIM
3076         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3077         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3078         * lib/fts.c (fts_open): Honor it.
3079
3080 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3081
3082         getlogin-tests: allow errno == ENXIO
3083         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3084         with errno == ENXIO (No controlling tty).
3085         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3086         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3087         with errno == ENOENT.  This was reported to happen in various
3088         situations on GNU/Linux.
3089
3090 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3091
3092         getlogin-tests: allow errno == ENOENT
3093         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3094         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3095         when running a test in an Emacs shell buffer.
3096
3097 2012-11-08  Jim Meyering  <jim@meyering.net>
3098
3099         tests/nap.h: avoid warning about unused variable
3100         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3101
3102         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3103         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3104         white space before each of the special-cased file names, to avoid
3105         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3106         in http://bugs.gnu.org/12830.
3107
3108 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3109
3110         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3111         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3112         fails with errno == EBADF when fd is opened with O_PATH.
3113         Reported by Jim Meyering in
3114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3115         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3116         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3117
3118 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3119
3120         test-utimens: speed up by taking shorter naps
3121         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3122         New functions.
3123         (nap): Use them, to do a better job of guessing the delay.
3124         On Fedora 17 with ext4 atop md atop hard disks, this made
3125         test-utimens run 10x faster, because the test napped for
3126         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3127         <http://bugs.gnu.org/12820#11>.
3128
3129 2012-11-07  Jim Meyering  <jim@meyering.net>
3130
3131         mountlist.c: fix a compilation failure
3132         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3133         I introduced while transforming commit v0.0-7683-g613bcb6
3134
3135 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3136
3137         errno: port to LynxOS 178 2.2.2
3138         Problem reported by Joel Brobecker in
3139         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3140         * doc/posix-headers/errno.texi (errno.h): Document this.
3141         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3142         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3143         Supply a string for EILSEQ.
3144         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3145
3146 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3147
3148         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3149         Linux kernel 2.6.39 introduced O_PATH (see
3150         <http://lwn.net/Articles/433854/>) and this is a better fallback
3151         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3152         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3153         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3154         * lib/fcntl.in.h (O_ACCMODE):
3155         * tests/test-fcntl-h.c (main):
3156         Do not reject O_ACCMODE merely because it has more than the
3157         minimal number of bits, as POSIX allows extensions here.
3158
3159 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3160
3161         mountlist: do not classify a bind-mounted dir entry as "dummy"
3162         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3163         the "none"-testing clause.
3164         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3165         exception for bind-mounted directories.
3166
3167 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3168
3169         quote: provide a means to escape strings with nul characters
3170         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3171         (quote, quote_n): Rename formal arguments for consistency with
3172         quotearg.
3173
3174 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3175
3176         test-raise: don't assume 199 is an invalid signal
3177         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3178
3179         sh-quote-tests: port to Solaris 9
3180         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3181         Problem reported by Dagobert Michelsen in
3182         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3183
3184 2012-10-28  Jim Meyering  <jim@meyering.net>
3185
3186         maint.mk: rename a new configurable variable
3187         * top/maint.mk (_gl_translatable_string_re): Rename from
3188         translation-markers: _gl_ prefix to insulate from user Makefile code,
3189         and the _re suffix to inform that it's a regular expression.
3190
3191 2012-10-26  Eric Blake  <eblake@redhat.com>
3192
3193         maint.mk: let packages tweak sc_po_check pattern
3194         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3195         finding files with other translation markers.
3196
3197 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3198
3199         euidaccess: speed up 'configure' on GNU hosts
3200         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3201         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3202         it's needed only in this case.  Use AC_CHECK_DECLS, not
3203         AC_CHECK_DECLS_ONCE.
3204         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3205         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3206
3207         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3208
3209 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3210
3211         fchmodat, fchownat, fstatat: port to non-inlining compilers
3212         Problem reported for FreeBSD 9 by Jim Meyering in
3213         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3214         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3215         New files, which define FCHMODAT_INLINE etc.
3216         * lib/fchmodat.c (FCHMODAT_INLINE):
3217         * lib/fchownat.c (FCHOWNAT_INLINE):
3218         * lib/fstatat.c (FSTATAT_INLINE):
3219         Remove, as chmodat.c etc. now do this.
3220         * modules/fchmodat (Files): Add lib/chmodat.c.
3221         * modules/fchownat (Files): Add lib/chownat.c.
3222         * modules/fstatat (Files): Add lib/statat.c.
3223
3224 2012-10-15  Jim Meyering  <jim@meyering.net>
3225
3226         fchmodat.c, fchownat.c: compile-impeding typos
3227         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3228         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3229         Introduced in commit v0.0-7636-gd202279.
3230
3231 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         fcntl-h: support GNU flags like O_IGNORE_CTTY
3234         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3235         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3236         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3237         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3238         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3239         Define to 0 if not already defined.
3240         * tests/test-fcntl-h.c: Test these new flags.
3241
3242 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3243
3244         faccessat, etc.: support AT_FDCWD-only use
3245         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3246         this function only if its first argument is AT_FDCWD.
3247         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3248         values other than AT_FDCWD, so it doesn't want all the openat
3249         machinery with fchdir etc.
3250         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3251         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3252         * modules/unlinkat (Files):
3253         Remove lib/openat-priv.h, as at-internal supplies this file.
3254         Removing this file here allows us to support programs like Emacs
3255         that avoid at-internal.
3256
3257         faccessat: speed up 'configure' on mainstream hosts
3258         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3259         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3260         since it's only on unusual platforms that we need to check for
3261         'access', and it's better not to slow 'configure' down on all
3262         platforms.
3263
3264         faccessat: port to Solaris 10
3265         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3266         Needed on Solaris 10, which doesn't have AT_EACCESS,
3267         so we need the Gnulib fcntl.h, which defines it.
3268
3269 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3270         canonicalize: fix C89 compilation
3271         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3272         declarations so C89 is supported.  Also remove the comment
3273         referencing memorty allocation as the suggested feature could
3274         not be implemented as suggested.
3275         Reported by Michael Goffioul.
3276
3277 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3278
3279         group-member: omit unnecessary dependencies
3280         This is for Emacs, which has its own allocator and where we
3281         don't want to use xalloc.
3282         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3283         since we no longer use xmalloc.  Do not include stdbool.h, since
3284         the changes below happen to remove the only use of bool.
3285         (GROUPBUF_SIZE): New constant.
3286         (struct group_info): Remove n_groups member.  Add groupbuf member.
3287         This lets us get the groups without using malloc, usually.
3288         (free_group_info, get_group_info): Adjust to this.
3289         (get_group_info): Return the number of groups found, or -1 on error.
3290         Use plain malloc not xmalloc, and treat its failure as if there
3291         are no groups, as the user already loses in case of error.
3292         (group_member): Simplify, based on changes to get_group_info.
3293         * modules/group-member (Depends-on): Remove dependencies on
3294         xalloc and stdbool.  Add dependency on xalloc-oversized.
3295
3296 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3297
3298         gethrxtime: port to C++
3299         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3300
3301 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3302
3303         ptsname: fix macro-name typo
3304         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3305
3306 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3307
3308         inttostr: Relax license.
3309         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3310
3311 2012-10-03  Eric Blake  <eblake@redhat.com>
3312
3313         ptsname_r: support ptys returned by FreeBSD posix_openpt
3314         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3315         lives in /dev/pts/.
3316
3317 2012-10-02  Eric Blake  <eblake@redhat.com>
3318
3319         pselect: reject invalid file descriptors
3320         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3321         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3322         * modules/pselect (Depends-on): Add dup2.
3323         * doc/posix-functions/pselect.texi (pselect): Document this.
3324
3325         select: reject invalid file descriptors
3326         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3327         * lib/select.c (rpl_select) [!win32]: Work around it.
3328         * modules/select (Depends-on): Add dup2.
3329         * doc/posix-functions/select.texi (select): Document this.
3330
3331         select: enhance test
3332         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3333         New functions.
3334         (test_function): Enhance test.
3335         (do_select_bad_fd): Avoid any stale errno values.
3336
3337         ptsname: reject invalid file descriptors
3338         http://www.austingroupbugs.net/view.php?id=503
3339         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3341         * modules/stdlib (Makefile.am): Replace witness.
3342         * lib/stdlib.in.h (ptsname): Allow for replacement.
3343         * modules/ptsname (configure.ac): Trigger replacement.
3344         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3345
3346 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3347
3348         hash-pjw-bare: new module
3349         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3350         * lib/hash-pjw-bare.h: Likewise.
3351         * modules/hash-pjw-bare: New file.
3352         * MODULES.html.sh (Misc): Add it.
3353
3354 2012-10-02  Eric Blake  <eblake@redhat.com>
3355
3356         manywarnings: cater to more gcc infelicities
3357         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3358         -Wuninitialized without -O.
3359
3360 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3361
3362         select, poll tests: Make setsockopt invocation effective.
3363         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3364         the bind() call.
3365         * tests/test-select.h (open_server_socket): Likewise.
3366
3367 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3368
3369         sockets, sys_stat: restore AC_C_INLINE
3370         This undoes the 2012-09-22 patch.
3371         * m4/sockets.m4 (gl_SOCKETS):
3372         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3373         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3374         and does not support plain 'inline'.  Reported by Bruno Haible in
3375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3376
3377 2012-09-30  Bruno Haible  <bruno@clisp.org>
3378
3379         localeconv tests: Avoid test failure on OpenIndiana.
3380         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3381         skip the 'grouping' and 'mon_grouping' tests.
3382         Reported by Jim Meyering.
3383
3384 2012-09-30  Bruno Haible  <bruno@clisp.org>
3385
3386         havelib: Follow libtool developments.
3387         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3388         Suggested by Simon Josefsson.
3389
3390 2012-09-29  Jim Meyering  <meyering@redhat.com>
3391
3392         fstatat.c: fix a compile-impeding typo
3393         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3394         Introduced in commit v0.0-7636-gd202279.
3395         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3396
3397 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3398
3399         extern-inline: provide a -Wundef safe config.h
3400         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3401         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3402         to produce a -Wundef warning free config.h.
3403
3404 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         hash-pjw: relax license to LGPLv2+
3407         * modules/hash-pjw (License): Relax, with consent of author.
3408
3409 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3410
3411         maint.mk: fix strict vs. lazy variable issues with RELEASE
3412         * top/maint.mk (_equal): New function.
3413         (member_check): Strip the result to avoid spurious spaces.
3414         (url_dir_list): Do not use ifeq, which is strict, as it will
3415         require RELEASE_TYPE to be defined.
3416         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3417         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3418         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3419         (announcement_Cc_beta,announcement_mail_headers_beta)
3420         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3421         (release): Do not depend on $(release-type), as it forces its
3422         evaluation.  Bounce to it.
3423
3424 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3425
3426         maint.mk: formatting changes
3427         * top/maint.mk: Indent bodies of if's.
3428
3429 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3430
3431         maint.mk: factor the validation of RELEASE_TYPE
3432         With help from Jim Meyering.
3433         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3434         * top/maint.mk (_empty, _sp): Move their definition earlier.
3435         (member-check, release-type): New.
3436         Use the latter instead of $(RELEASE_TYPE).
3437         Remove now useless local checks.
3438
3439 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3440
3441         maint.mk: provide "make upload" to ease uploading
3442         See
3443         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3444         Do not depend simply on the current $(VERSION), as there may have been
3445         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3446         as "make release-commit" already does.
3447
3448         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3449         "make TYPE".
3450
3451         * top/maint.mk (upload_command, upload, release): New.
3452         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3453         (VERSION): first word of $(RELEASE) is always right.
3454         (emit_upload_commands): Adjust.
3455         * top/README-release: Update.
3456
3457 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3458
3459         maint.mk: silent rules
3460         With help from Stefano Lattarini.
3461         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3462         (announcement): Use $(AM_V_at).
3463
3464 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3465
3466         localename: port gl_locale_name_thread_unsafe to FreeBSD
3467         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3468         and use the simpler FreeBSD implementation on Mac OS X as well.
3469         Original idea suggested by Ed Maste in
3470         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3471
3472 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3475         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3476         * lib/mbuiter.c, lib/xsize.c: New files.
3477         * lib/binary-io.h (BINARY_IO_INLINE):
3478         * lib/eealloc.h (EEALLOC_INLINE):
3479         * lib/mbfile.h (MBFILE_INLINE):
3480         * lib/mbiter.h (MBITER_INLINE):
3481         * lib/mbuiter.h (MBUITER_INLINE):
3482         * lib/xsize.h (XSIZE_INLINE):
3483         New macros.
3484         Replace all uses of 'static inline' with them.
3485         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3486         * m4/eealloc.m4 (gl_EEALLOC):
3487         * m4/mbfile.m4 (gl_MBFILE):
3488         * m4/mbiter.m4 (gl_MBITER):
3489         * m4/xsize.m4 (gl_XSIZE):
3490         Do not require AC_C_INLINE.
3491         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3492         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3493         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3494         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3495         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3496         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3497         * modules/binary-io, modules/eealloc, modules/mbfile:
3498         * modules/mbiter, modules/mbuiter:
3499         (Depends-on): Add extern-inline.
3500
3501         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3502         * lib/pipe-filter-aux.c: New file.
3503         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3504         Replace all uses of 'static inline' with it.
3505         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3506         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3507         (filter_retcode): No real need for inline here.
3508         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3509         (Files): Add lib/pipe-filter-aux.c.
3510         (Depends-on): Add extern-inline.
3511         (configure.ac): Do not require AC_C_INLINE.
3512         (lib_SOURCES): Add pipe-filter-aux.c.
3513
3514         fdutimensat: omit unnecessary AC_C_INLINE
3515         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3516
3517         fchmodat, fchownat, fstatat: use extern-inline
3518         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3519         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3520         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3521         New macros.
3522         * lib/openat.h:
3523         Replace all uses of 'static inline' with them.
3524         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3525         * modules/fchmodat, modules/fchownat, modules/fstatat:
3526         * modules/openat-h:
3527         (Depends-on):
3528         Add extern-inline.
3529         (configure.ac): Remove AC_C_INLINE.
3530
3531         acl, mbchar, priv-set: use extern-inline
3532         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3533         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3534         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3535         New macros.
3536         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3537         Replace all uses of 'static inline' with it.
3538         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3539         * m4/acl.m4 (gl_FUNC_ACL):
3540         * m4/mbchar.m4 (gl_MBCHAR):
3541         * m4/priv-set.m4 (gl_PRIV_SET):
3542         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3543         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3544         Add extern-inline.
3545
3546         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3547         * m4/sockets.m4 (gl_SOCKETS):
3548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3549         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3550         environments where it's already guaranteed to work, so we needn't
3551         check for it at 'configure'-time.
3552
3553         tls-tests: omit unnecessary 'inline'
3554         * tests/test-tls.c (perhaps_yield): No longer inline.
3555         Simplicity and portability trump efficiency in test cases.
3556
3557         utimens-tests: avoid unnecessary 'inline'
3558         * modules/fdutimensat-tests (configure.ac):
3559         * modules/futimens-tests (configure.ac):
3560         * modules/utimens-tests (configure.ac):
3561         * modules/utimensat-tests (configure.ac):
3562         Remove AC_C_INLINE.
3563         * tests/test-utimens-common.h (ctime_compare):
3564         No longer inline.  Simplicity and portability trump efficiency here.
3565
3566         misc: don't limit commentary to inline functions
3567         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3568         * lib/xalloc-oversized.h, lib/xsize.h:
3569         Contrast macros to functions in general, not just to inline functions,
3570         when the commentary does not apply only to inline functions.
3571
3572 2012-09-20  Jim Meyering  <meyering@redhat.com>
3573
3574         non-recursive-gnulib-prefix-hack: new module
3575         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3576         the file that originated in Bison.
3577         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3578         largely copied from a snippet that resided in bison's configure.ac.
3579         * modules/non-recursive-gnulib-prefix-hack: New file.
3580         * MODULES.html.sh (Support for maintaining and releasing projects):
3581         Add it.
3582
3583 2012-09-18  Jim Meyering  <meyering@redhat.com>
3584
3585         maint.mk: generalize _gl_tight_scope for non-recursive make
3586         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3587         that *.h would describe additional .h files in the directory
3588         specified by $(_gl_TS_dir).  I.e., add this...
3589         (_gl_TS_other_headers): New variable.
3590
3591         maint.mk: exempt trailing blanks found in "binary" files
3592         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3593         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3594         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3595
3596 2012-09-17  Jim Meyering  <meyering@redhat.com>
3597
3598         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3599         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3600         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3601         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3602
3603 2012-09-17  Jim Meyering  <meyering@redhat.com>
3604
3605         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3606         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3607         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3608         It is not in the same category as "exit (0)" or "exit (1)", and
3609         besides, I know of no symbolic name for that 77.  Reported by
3610         Richard W.M. Jones in
3611         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3612
3613 2012-09-17  Jim Meyering  <meyering@redhat.com>
3614
3615         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3616         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3617         all uses of #define, not just those that start in column 1.
3618         Richard W.M. Jones reported a false positive in
3619         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3620
3621 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3622
3623         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3624         * lib/localcharset.c (locale_charset) [DARWIN7]:
3625         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3626         as these two values are incompatible.  Problem reported by Max Horn.
3627         For more discussion, please see
3628         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3629
3630         doc: document sticky-EOF issue
3631         * doc/posix-functions/fgetc.texi (fgetc):
3632         * doc/posix-functions/fgets.texi (fgets):
3633         * doc/posix-functions/fread.texi (fread):
3634         * doc/posix-functions/fscanf.texi (fscanf):
3635         * doc/posix-functions/getc.texi (getc):
3636         * doc/posix-functions/getchar.texi (getchar):
3637         * doc/posix-functions/scanf.texi (scanf):
3638         Mention that glibc and default Solaris do not conform to
3639         C99 and POSIX-2001 or later, with respect to how getchar
3640         etc. behave when feof reports nonzero.
3641
3642 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3643
3644         poll: fix poll(0, NULL, msec)
3645         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3646         but nfd is 0.  In that case poll should behave like select.
3647
3648 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3649             Paolo Bonzini <bonzini@gnu.org>
3650
3651         poll: fix for systems that can't recv() on a non-socket
3652         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3653         is readable.  In this case POLLHUP will not be supported.
3654         * doc/posix-functions/poll.texi: Document this.
3655
3656 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3657
3658         poll/select: document portability problems not fixed by Gnulib.
3659         * doc/posix-functions/poll.texi: poll does not work well on
3660         pipes under Windows.  It has the same limitations as select on
3661         BeOS.
3662         * doc/posix-functions/select.texi: select does not work well
3663         on pipes under Windows.
3664
3665 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3666
3667         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3668         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3669         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3670         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3671
3672 2012-09-06  Eric Blake  <eblake@redhat.com>
3673
3674         net_if: give more details about the bug being fixed
3675         * doc/posix-headers/net_if.texi: Add clarification.
3676
3677 2012-09-05  Eric Blake  <eblake@redhat.com>
3678
3679         net_if: new module
3680         * modules/net_if: New module, borrowing ideas from netinet_in.
3681         * m4/net_if_h.m4: New file.
3682         * lib/net_if.in.h: Likewise.
3683         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3684         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3685         * tests/test-net_if.c: Make function checks conditional.
3686         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3687
3688 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3689
3690         readutmp: fix non-portable UT_PID use
3691         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3692         Use `UT_PID (u) > 0' as absolute condition.
3693
3694 2012-09-04  Jim Meyering  <meyering@redhat.com>
3695
3696         fts: reduce two or more trailing spaces to just one, usually
3697         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3698         or more slashes, trim all but the final one.  But if a name consists
3699         solely of two slashes, don't modify it.  If it consists solely of
3700         three or more slashes, strip all but one.
3701
3702         This is part of the solution to a minor problem with rm:
3703         it would print a bogus ELOOP diagnostic when failing to remove
3704         the slash-decorated name of a symlink-to-directory:
3705
3706             $ mkdir d && ln -s d s && env rm -r s/
3707             rm: cannot remove 's': Too many levels of symbolic links
3708
3709         With the change below and a trivial don't-trim-trailing-slashes
3710         adjustment to remove.c, it does this:
3711
3712             $ env rm -r s/
3713             rm: cannot remove 's/': Not a directory
3714
3715         Improved by: Eric Blake
3716
3717         fts: when there is no risk of overlap, use memcpy, not memmove
3718         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3719
3720 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         stdbool: be more compatible with mixed C/C++ compiles
3723         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3724         Define to bool, true, false, respectively, as GCC's builtin
3725         stdbool.h does.  Problem reported by Michael Goffioul in
3726         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3727
3728 2012-08-28  Jim Meyering  <meyering@redhat.com>
3729
3730         revert last change: it was not needed
3731         * tests/test-vc-list-files-git.sh: There's already a test for
3732         a working git, just below.
3733
3734 2012-08-28  Jim Meyering  <meyering@redhat.com>
3735
3736         tests: test-vc-list-files-git.sh: skip if git is not available
3737         * tests/test-vc-list-files-git.sh: Skip this test when git is
3738         not available.
3739
3740 2012-08-26  Bruno Haible  <bruno@clisp.org>
3741
3742         gnulib-tool: Remove no-op option --no-changelog.
3743         * gnulib-tool (func_usage): Don't mention --no-changelog.
3744         (do_changelog): Remove variable.
3745         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3746
3747 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3748
3749         doc: remove fdl-1.2.texi
3750         It is no longer used or maintained, and its use of @acronym
3751         is problematic.  See the thread containing
3752         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3753         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3754         * doc/old-licenses/fdl-1.2.texi: Remove.
3755
3756         execinfo: port to FreeBSD
3757         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3758         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3760         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3761
3762 2012-08-23  Jim Meyering  <meyering@redhat.com>
3763
3764         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3765         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3766         to placate gcc's -Wold-style-declaration.
3767
3768 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3769
3770         doc: do not use @acronym
3771         * doc/inet_ntoa.texi (inet_ntoa):
3772         * doc/parse-datetime.texi (Seconds since the Epoch)
3773         (Specifying time zone rules):
3774         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3775         Don't use @acronym.  Problem reported by John Darlington in
3776         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3777
3778 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3779
3780         stdnoreturn: port to newer GCCs
3781         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3782         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3783         Problem reported by Jim Meyering in
3784         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3785         Also, rename the 'test' function to a void a clash with the
3786         already-supplied 'main' function; this fixes a bug that incorrectly
3787         rejected GCC 4.7.1's <stdnoreturn.h>.
3788         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3789         Document GCC problem.
3790
3791 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3792
3793         pipe-filter: fix comment typo
3794         * lib/pipe-filter.h: Mention correct function.
3795
3796 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3797
3798         execinfo: new module
3799         This is for Emacs.  Currently, it provides a no-effect stub
3800         on all platforms where it does not already work.
3801         It already works on glibc-based systems, and on Solaris 11.
3802         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3803         New files.
3804         * doc/glibc-headers/execinfo.texi (execinfo.h):
3805         * MODULES.html.sh (Misc): Document it.
3806
3807 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3808
3809         extern-inline: support old GCC 'inline'
3810         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3811         if available.  This applies to GCC versions 2.7 through 4.2, or
3812         when newer GCC is using -fgnu89-inline.  The goal is to address
3813         some of the performance issues mentioned by Bruno Haible in
3814         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3815
3816 2012-08-20  Eric Blake  <eblake@redhat.com>
3817
3818         maint.mk: avoid redundant file name in message
3819         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3820         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3821         (sc_makefile_path_separator_check): Remove bogus $(ME).
3822
3823 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3824
3825         timer-time: fix link order when static linking on glibc
3826         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3827         _after_ -lrt so that it's significant.
3828
3829 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3830
3831         timespec: omit unnecessary AC_C_INLINE
3832         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3833
3834         stat-time: omit unnecessary AC_C_INLINE
3835         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3836         Do not require AC_C_INLINE.
3837
3838         ignore-value: omit unnecessary AC_C_INLINE
3839         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3840
3841         sys_select: avoid 'static inline'
3842         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3843
3844         mktime: avoid 'static inline'
3845         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3847
3848 2012-08-19  Bruno Haible  <bruno@clisp.org>
3849
3850         gnulib-tool: Improve coding style.
3851         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3852         func_emit_lib_Makefile_am.
3853         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3854
3855 2012-08-19  Bruno Haible  <bruno@clisp.org>
3856
3857         gnulib-tool: Fix indentation.
3858         * gnulib-tool (func_import): Fix indentation.
3859
3860 2012-08-19  Bruno Haible  <bruno@clisp.org>
3861
3862         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3863         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3864         on the list of removed files.
3865
3866 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3867
3868         test-parse-datetime: avoid glibc leap-second glitch
3869         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3870         with the 2012 rules.  Problem reported by Bruce Dubbs in
3871         <http://bugs.gnu.org/12206>.
3872
3873 2012-08-14  Bruno Haible  <bruno@clisp.org>
3874
3875         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3876         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3877         from argument.
3878         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3879
3880 2012-08-14  Eric Blake  <eblake@redhat.com>
3881
3882         ldexp: relax license
3883         * modules/ldexp (License): Trivial relax, since the module only
3884         provides a permissively licensed m4 file.
3885
3886 2012-08-13  Bruno Haible  <bruno@clisp.org>
3887
3888         gnulib-tool: Fix persistence of --witness-c-macro option.
3889         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3890         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3891
3892 2012-08-11  Eric Blake  <eblake@redhat.com>
3893
3894         count-leading-zeros: use a lookup table on non-gcc compilers
3895         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3896         alternate implementation, suggested by Jim Meyering.
3897
3898 2012-08-10  Eric Blake  <eblake@redhat.com>
3899
3900         count-leading-zeros: new module
3901         * modules/count-leading-zeros: New module.
3902         * m4/count-leading-zeros.m4: New file.
3903         * lib/count-leading-zeros.h: Likewise.
3904         * modules/count-leading-zeros-tests: New test.
3905         * tests/test-count-leading-zeros.c: New file.
3906         * MODULES.html.sh (Integer arithmetic functions): Document it.
3907
3908 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3909             Jim Meyering  <meyering@redhat.com>
3910
3911         maintainer-makefile: Fix syntax error with dash.
3912         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3913         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3914
3915 2012-08-05  Jim Meyering  <meyering@redhat.com>
3916
3917         extern-inline: also ignore -Wmissing-declarations
3918         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3919         required with gcc-4.8.0-to-be.
3920
3921         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3922         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3923         for /error ?([^,]*)/.  This avoids false-positives for strings like
3924         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3925
3926 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3927
3928         gnumakefile: better interaction with Automake-NG
3929         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3930         Automake-NG always contain a definition of VPATH, even in non-VPATH
3931         builds (its value being simply '.' in that case).  So, in the
3932         'clean-GNUmakefile' rule, to determine whether running under a
3933         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3934         '$(VPATH)' expands to the empty string.
3935
3936 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3937
3938         base64: Use extern C scope in header file, for C++.
3939         * lib/base64.h: Add C++ namespace protection.
3940
3941 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3942
3943         stat-time, timespec, u64: support naive out-of-dir builds
3944         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3945         Use '#include "foo.h"', not '#include <foo.h>', when including
3946         one's own interface.  This works better when configuring with
3947         out-of-directory builds, since packages need not add an
3948         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3949
3950 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3951
3952         utimens: use extern-inline
3953         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3954         * lib/utimens.h: Add copyright notice, since this is now large enough
3955         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3956         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3957         * modules/utimens (Depends-on): Add extern-inline.
3958
3959         u64: use extern-inline
3960         * lib/u64.c: New file.
3961         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3962         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3963         * modules/u64 (Files): Add lib/u64.c.
3964         (Depends-on): Add extern-inline.
3965         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3966         does that now.
3967         (lib_SOURCES): Add u64.c.
3968
3969         timespec: use extern-inline
3970         * lib/timespec.c: New file.
3971         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3972         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3973         * modules/timespec (Files): Add lib/timespec.c.
3974         (Depends-on): Add extern-inline.
3975         (lib_SOURCES): Add timespec.c.
3976
3977         stat-time: use extern-inline
3978         * lib/stat-time.c: New file.
3979         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3980         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3981         * modules/stat-time (Files): Add lib/stat-time.c.
3982         (Depends-on): Add extern-inline.
3983         (lib_SOURCES): Add stat-time.c.
3984
3985         extern-inline: new module
3986         * modules/extern-inline, m4/extern-inline.m4: New files.
3987         This is for better support of 'extern inline' a la ISO C99,
3988         with a portable alternative on compilers that do not support
3989         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3990         of the Emacs executable, when compiled with debugging disabled,
3991         which is a typical way that Emacs is built while developing.
3992
3993 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3994
3995         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3996         * build-aux/do-release-commit-and-tag: Move variable definitions
3997         together.
3998         ($branch): Instead of defaulting to "master", default to the current
3999         branch (as gnu-web-doc-update does).
4000         (help): Display the current values of the option arguments.
4001         * top/maint.mk (release-commit): New.
4002         * top/README-release: Simplify the corresponding step.
4003
4004 2012-07-30  Eric Blake  <eblake@redhat.com>
4005
4006         passfd: fix comment on recvfd
4007         * lib/passfd.c (recvfd): Fix comment.
4008         Reported by Jann Horn <jannhorn@googlemail.com>.
4009
4010 2012-07-30  Jim Meyering  <meyering@redhat.com>
4011
4012         maint.mk: avoid a sub-shell
4013         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4014
4015 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4016
4017         maint.mk: use silent-rules support from Automake
4018         * top/maint.mk (news-check, vc-diff-check, announcement)
4019         (no-submodule-changes, alpha beta stable, release-prep)
4020         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4021
4022 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4023
4024         maint.mk: provide a web-manual-update target
4025         * top/maint.mk: here.
4026         * top/README-release: Use it to simplify the web manual update step.
4027
4028 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4029
4030         README-release: shorten the circuit to post a news
4031         * top/README-release: Point directly to the news submission form.
4032
4033 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4034
4035         gnu-web-doc-update: fix --help
4036         * build-aux/gnu-web-doc-update: The information "top level" was written
4037         twice.
4038
4039 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4040
4041         maint.mk: absolute VPATH issue
4042         * top/maint.mk (release-prep): Help Git find .git/.
4043         From Jim Meyering.
4044
4045 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4046
4047         gitlog-to-changelog: fix previous change
4048         * build-aux/gitlog-to-changelog: Fix condition.
4049         Add missing ";".
4050
4051 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4052
4053         gitlog-to-changelog: don't expect .git to be in $srcdir
4054         Reported by Bruno Haible.
4055         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4056         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4057         Use it.
4058
4059 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4060
4061         maint.mk: absolute VPATH build fix
4062         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4063         $(srcdir) is not a parent of $(builddir).
4064
4065 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4066
4067         clean-temp: Fix memory leak.
4068         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4069         'files' members of tmpdir.
4070
4071 2012-07-27  Jim Meyering  <meyering@redhat.com>
4072
4073         maint.mk: new rule: refresh-gnulib-patches
4074         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4075         Use this rule to refresh them.
4076         * top/maint.mk (refresh-gnulib-patches): New rule.
4077
4078 2012-07-24  Bruno Haible  <bruno@clisp.org>
4079
4080         gnulib-tool: Fix handling of inctests variable.
4081         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4082         Reported by Nick Bowler <nbowler@elliptictech.com>.
4083
4084 2012-07-22  Bruno Haible  <bruno@clisp.org>
4085
4086         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4087         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4088         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4089         Remove exemption for getpass.h.
4090         Suggested by Eric Blake.
4091
4092 2012-07-20  Eric Blake  <eblake@redhat.com>
4093
4094         verify: document conflict with -Wnested-externs
4095         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4096
4097         maint.mk: forbid exit(-1)
4098         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4099
4100 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4101
4102         fsusage: port back to Solaris
4103         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4104         error (fsd not declared) on Solaris 10.  Reported privately by
4105         Andrew Borodin.
4106
4107 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4108
4109         gnu-web-doc-update: fix error messages
4110         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4111
4112         gnu-web-doc-update: check the requirements.
4113         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4114         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4115         * build-aux/bootstrap (find_tool): Comment change.
4116
4117 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4118
4119         maint.mk: minor simplication.
4120         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4121         for default values.
4122
4123 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4124
4125         gitlog-to-changelog: VPATH build issues
4126         If builddir is not a subdirectory of srcdir, running git from it will
4127         fail.
4128         * build-aux/gitlog-to-changelog (--srcdir): New option.
4129
4130 2012-07-15  Bruno Haible  <bruno@clisp.org>
4131
4132         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4133         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4134         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4135         Remove exemption for fpending.h.
4136         Suggested by Eric Blake.
4137
4138 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4139
4140         pthread_sigmask: fix bug on FreeBSD 9
4141         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4142         Include string.h.
4143         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4144         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4145         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4146         but pthread_sigmask (1729, NULL, NULL) returns zero.
4147         See <http://bugs.gnu.org/11884>.
4148         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4149         by inspecting whether the main call changed the old mask.
4150
4151 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4152
4153         README-release: make it more legible
4154         * top/README-release: Improve typography slightly.
4155
4156 2012-07-15  Jim Meyering  <meyering@redhat.com>
4157
4158         maint: require that each sc_... command start with "@"
4159         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4160         "make sc_maint" helps us avoid this nit.
4161
4162 2012-07-15  Jim Meyering  <meyering@redhat.com>
4163
4164         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4165         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4166
4167 2012-07-13  Eric Blake  <eblake@redhat.com>
4168
4169         maint.mk: new syntax check for HAVE_DECL checks
4170         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4171         * cfg.mk
4172         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4173         Exempt some false positives.
4174         Based on a report by Karel Zak.
4175
4176         argp: make HAVE_DECL usage consistent
4177         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4178         macros, not whether they are defined.
4179         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4180         convention with other declaration checks.
4181         Reported by Karel Zak, with suggestions from Paul Eggert.
4182
4183         stat-time: relax license to LGPLv2+
4184         * modules/stat-time (License): Relax, with consent of all authors.
4185
4186         strndup: fix m4 usage error
4187         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4188         defined, to either 0 or 1.
4189         Reported by Karel Zak.
4190
4191 2012-07-11  Jim Meyering  <meyering@redhat.com>
4192
4193         maint: enable the sc_avoid_if_before_free syntax-check rule
4194         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4195         (if_before_free_offenders_): Define.
4196         (if_before_free_basename_re_): Define.
4197         Exempt current files with useless if-before-free.
4198
4199 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4200
4201         gettext: do not assume '#define ... defined ...' behavior
4202         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4203         Do not use '#define FOO ... defined BAR ...', as the C standard says
4204         it's not portable to expect that this works after macro expansion.
4205         Problem reported for gzip by Steven M. Schweda in
4206         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4207
4208 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4209
4210         getloadavg: clean out old Emacs and Autoconf cruft
4211         See Glenn Morris in <http://bugs.gnu.org/11905>.
4212         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4213         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4214         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4215         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4216
4217 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4218
4219         bootstrap: let warn be like tests/init.sh's warn_
4220         Reported by Jim Meyering.
4221         * build-aux/bootstrap (warn): Remove, replaced by...
4222         (warnf_, warn_): these.
4223         Adjust callers.
4224         Shorten messages that no longer fit in 80 columns.
4225
4226 2012-07-09  Bruno Haible  <bruno@clisp.org>
4227
4228         getopt: Simplify after Emacs changed.
4229         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4230         (gl_GETOPT_IFELSE): Remove macro.
4231
4232 2012-07-09  Jim Meyering  <meyering@redhat.com>
4233
4234         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4235         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4236
4237         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4238         Bugs in both of those conspired to make the
4239         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4240         _sc_search_regexp's handling of non-empty $in_files would filter
4241         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4242         choice of in_files value meant there would be no match in most
4243         projects, due to the presence of two or more Makefile.in files.
4244         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4245         Fix a bug in how a non-empty $$in_files was processed:
4246         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4247         in spite of the name, it's a regexp, not a list of file names.
4248
4249 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4250
4251         getloadavg, getopt: fix commentary re configure.in
4252         Autoconf is deprecating the name 'configure.in', so change it to
4253         to the new name 'configure.ac' in a couple of places.
4254         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4255         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4256         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4257         Emacs has renamed it to configure.ac, and it no longer refers
4258         to these macros anyway.
4259
4260         timespec: mark functions with const attributes
4261         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4262         Mark with _GL_ATTRIBUTE_CONST.
4263
4264 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4265
4266         canonicalize[-lgpl]: handle "guessing" values when cross-building
4267         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4268         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4269         matches "*yes" instead of just "yes".  Regression introduced in commit
4270         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4271
4272 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4273             Bruno Haible  <bruno@clisp.org>
4274
4275         canonicalize: make the right guess when cross-compiling to GNU
4276         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4277         determine whether cross-compiling to glibc systems, so as to
4278         include GNU/Hurd.
4279
4280 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4281
4282         timespec-sub: avoid duplicate include
4283         * lib/timespec-sub.c: Do not include <config.h> twice.
4284         Reported by Juanma Barranquero.
4285
4286 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4287
4288         bootstrap: use a more consistent error reporting scheme
4289         * build-aux/bootstrap (warn, die): New.
4290         Use them.
4291
4292 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4293
4294         sys_time: allow too-wide tv_sec
4295         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4296         timeval even if tv_sec is wider than time_t.  This allows
4297         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4298         as without this patch gnulib replaces struct timeval
4299         and OpenBSD futimes therefore has a type mismatch.
4300         * doc/posix-headers/sys_time.texi: Mention this.
4301
4302         pthread: check for both pthread_create and pthread_join
4303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4304         alter the check so that it tests for both pthread_create and
4305         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4306         Suggested by Bruno Haible and Richard Yao in
4307         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4308
4309         parse-datetime: doc tuneup
4310         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4311         spacing issues.
4312
4313 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4314
4315         do-release-commit-and-tag: fix the previous commit
4316         * build-aux/do-release-commit-and-tag: Actually the test was right,
4317         but the comment and the error message were misleading.
4318         Fix comment, and improve error message.
4319         Perform check first, so that NEWS is not modified uselessly.
4320
4321         do-release-commit-and-tag: fix typo
4322         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4323         _not_ start with a stub.
4324
4325 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4326
4327         pthread: check for pthread_create, not pthread_join
4328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4329         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4330         pthread_join in libc.  I hope this removes the need for all the
4331         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4332         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4333
4334 2012-07-04  Jim Meyering  <meyering@redhat.com>
4335
4336         parse-datetime: fix failure to diagnose invalid input
4337         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4338         rather than diagnosing the invalid input.  Now it reports this:
4339         date: invalid date '\260'
4340         * lib/parse-datetime.y (to_uchar): Define.
4341         (yylex): Don't sign-extend "other" bytes.
4342         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4343         Thanks to Bruno Haible for the patch to this file.
4344         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4345         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4346
4347 2012-07-03  Jim Meyering  <meyering@redhat.com>
4348
4349         bootstrap: do not require now-removed build-aux/missing
4350         Now that build-aux/missing is, er, missing, bootstrap would
4351         silently fail.
4352         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4353         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4354         no longer part of gnulib.
4355         Diagnose the failure.
4356
4357 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         alloca: add support for HP NonStop TNS/E native
4360         * lib/alloca.in.h (alloca): Support the new host.
4361         From a suggestion by Joachim Schmitz in
4362         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4363
4364 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4365
4366         fsusage: remove code not needed on non GNU/Linux systems.
4367
4368         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4369         Don't include headers no longer needed in this case.
4370         * lib/fsusage.c [STAT_STATVFS &&
4371         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4372         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4373
4374 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4375
4376         fsusage: include files needed for glibc 2.6 fallback
4377         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4378         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4379         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4380         Problem reported by Ludovic Courtès in
4381         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4382
4383         fsusage: avoid needless check on GNU/Linux
4384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4385         on GNU/Linux systems, since it can't possibly work.
4386
4387 2012-07-01  Bruno Haible  <bruno@clisp.org>
4388
4389         log: Fix an autoconf >= 2.64 warning.
4390         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4391         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4392
4393 2012-06-28  Bruno Haible  <bruno@clisp.org>
4394
4395         log10f: Fix possible configuration problem.
4396         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4397         $LOGF_LIBM.
4398         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4399
4400 2012-06-28  Bruno Haible  <bruno@clisp.org>
4401
4402         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4403         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4404         not gl_cv_func_unlink_works.
4405         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4406
4407 2012-06-27  Eric Blake  <eblake@redhat.com>
4408
4409         config: drop scripts that automake says are not independent
4410         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4411         * build-aux/elisp-comp: Delete.
4412         * build-aux/missing: Likewise.
4413         * build-aux/ylwrap: Likewise.
4414         * modules/elisp-comp: Likewise.
4415         * MODULES.html.sh: Drop mention of elisp-comp.
4416         * NEWS: Mention this.
4417
4418 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         root-uid: new module
4421         This is for portability to Tandem's NonStop Kernel.
4422         * lib/root-uid.h, modules/root-uid: New files.
4423         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4424         * lib/write-any-file.c, tests/test-sethostname2.c:
4425         Include "root-uid.h".
4426         * lib/euidaccess.c (euidaccess):
4427         * lib/pt_chown.c (main):
4428         * lib/unlinkdir.c (cannot_unlink_dir):
4429         * lib/write-any-file.c (can_write_any_file):
4430         * m4/mknod.m4 (gl_FUNC_MKNOD):
4431         * tests/test-sethostname2.c (geteuid, main):
4432         Don't assume ROOT_UID == 0.
4433         * modules/euidaccess (Depends-on):
4434         * modules/pt_chown (Depends-on):
4435         * modules/sethostname-tests (Depends-on):
4436         * modules/unlinkdir (Depends-on):
4437         * modules/write-any-file (Depends-on):
4438         Add root-uid.
4439
4440         regex: use locale-independent comparison for codeset name
4441         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4442         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4443         for codeset name.
4444         * lib/regex_internal.h: Do not include <strings.h>, since we
4445         no longer use strcasecmp.
4446         * modules/regex (Depends-on): Remove strcase.
4447
4448 2012-06-23  Bruno Haible  <bruno@clisp.org>
4449
4450         getopt-posix: No longer guarantee that option processing is resettable.
4451         * doc/posix-functions/getopt.texi: Drop description of problem with
4452         internal state. Fix info about mingw and msvc9.
4453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4454         option processing by getopt(). Run three test programs instead of one.
4455         Simplify cross-compilation guess.
4456         * NEWS: Mention the change.
4457         Reported by Rich Felker <dalias@aerifal.cx>.
4458
4459 2012-06-26  Bruno Haible  <bruno@clisp.org>
4460
4461         argp, regex: Ensure strcasecmp gets declared.
4462         * lib/argp-help.c: Include <strings.h>.
4463         * lib/regex_internal.h: Likewise.
4464         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4465
4466 2012-06-24  Bruno Haible  <bruno@clisp.org>
4467
4468         ptsname_r: Make it consistent with ptsname on AIX.
4469         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4470         implementation as for OSF/1.
4471         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4472         a pty master.
4473
4474         ptsname_r: Make it consistent with ptsname on OSF/1.
4475         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4476         OSF/1.
4477
4478 2012-06-24  Bruno Haible  <bruno@clisp.org>
4479
4480         ttyname_r: Fix result on OSF/1, Solaris.
4481         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4482
4483 2012-06-24  Bruno Haible  <bruno@clisp.org>
4484
4485         ptsname_r: Add support for Solaris.
4486         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4487         Solaris.
4488
4489         ptsname_r: Fix test failure on native Windows.
4490         * modules/ptsname_r (Depends-on): Add isatty.
4491
4492         ptsname_r: Fix test failures on IRIX, Solaris.
4493         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4494         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4495         accordingly.
4496         * lib/ptsname_r.c: Include <fcntl.h>.
4497         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4498         set errno if fd is invalid.
4499         * tests/test-isatty.c (main): Update comments.
4500
4501 2012-06-24  Bruno Haible  <bruno@clisp.org>
4502
4503         ptsname test: Extend test.
4504         * tests/test-ptsname.c: Include <errno.h>.
4505         (main): Test behaviour with invalid file descriptor.
4506
4507 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4508
4509         time: fix obsolete comment
4510         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4511         reference to HAVE_STRUCT_TIMESPEC in comment.
4512
4513 2012-06-23  Bruno Haible  <bruno@clisp.org>
4514
4515         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4517         does not handle abbreviated long options with equivalent
4518         disambiguations, set gl_replace_getopt to yes.
4519         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4520
4521 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4522
4523         time_r: fix typo that always overrode localtime_r decl
4524         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4525         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4526         not in a standard include.
4527
4528 2012-06-22  Bruno Haible  <bruno@clisp.org>
4529
4530         Write "Mac OS X" instead of "MacOS X".
4531         * README: Write "Mac OS X" instead of "MacOS X".
4532         * build-aux/bootstrap: Likewise.
4533         * build-aux/install-reloc: Likewise.
4534         * lib/acl-internal.h: Likewise.
4535         * lib/acl_entries.c: Likewise.
4536         * lib/argp-ba.c: Likewise.
4537         * lib/argp-pv.c: Likewise.
4538         * lib/config.charset: Likewise.
4539         * lib/copy-acl.c: Likewise.
4540         * lib/csharpexec.c: Likewise.
4541         * lib/euidaccess.c: Likewise.
4542         * lib/fbufmode.c: Likewise.
4543         * lib/fflush.c: Likewise.
4544         * lib/file-has-acl.c: Likewise.
4545         * lib/filemode.h: Likewise.
4546         * lib/fpurge.c: Likewise.
4547         * lib/freadable.c: Likewise.
4548         * lib/freadahead.c: Likewise.
4549         * lib/freading.c: Likewise.
4550         * lib/freadptr.c: Likewise.
4551         * lib/freadseek.c: Likewise.
4552         * lib/fseeko.c: Likewise.
4553         * lib/fseterr.c: Likewise.
4554         * lib/fsusage.c: Likewise.
4555         * lib/fwritable.c: Likewise.
4556         * lib/fwriting.c: Likewise.
4557         * lib/get-rusage-as.c: Likewise.
4558         * lib/get-rusage-data.c: Likewise.
4559         * lib/getdomainname.c: Likewise.
4560         * lib/idpriv-drop.c: Likewise.
4561         * lib/idpriv-droptemp.c: Likewise.
4562         * lib/localcharset.c: Likewise.
4563         * lib/locale.in.h: Likewise.
4564         * lib/localename.c: Likewise.
4565         * lib/mbsrtowcs-state.c: Likewise.
4566         * lib/nproc.c: Likewise.
4567         * lib/passfd.c: Likewise.
4568         * lib/posix_openpt.c: Likewise.
4569         * lib/printf-parse.c: Likewise.
4570         * lib/progreloc.c: Likewise.
4571         * lib/safe-read.h: Likewise.
4572         * lib/safe-write.h: Likewise.
4573         * lib/sched.in.h: Likewise.
4574         * lib/set-mode-acl.c: Likewise.
4575         * lib/signal.in.h: Likewise.
4576         * lib/stdint.in.h: Likewise.
4577         * lib/stdio-impl.h: Likewise.
4578         * lib/stdlib.in.h: Likewise.
4579         * lib/strtod.c: Likewise.
4580         * lib/sys_select.in.h: Likewise.
4581         * lib/tcgetsid.c: Likewise.
4582         * lib/unistd.in.h: Likewise.
4583         * lib/unlockpt.c: Likewise.
4584         * lib/vasnprintf.c: Likewise.
4585         * lib/vma-iter.c: Likewise.
4586         * lib/wcsrtombs-state.c: Likewise.
4587         * m4/acl.m4: Likewise.
4588         * m4/acosl.m4: Likewise.
4589         * m4/asinl.m4: Likewise.
4590         * m4/atanl.m4: Likewise.
4591         * m4/c-stack.m4: Likewise.
4592         * m4/cosl.m4: Likewise.
4593         * m4/expl.m4: Likewise.
4594         * m4/extensions.m4: Likewise.
4595         * m4/fdatasync.m4: Likewise.
4596         * m4/fmal.m4: Likewise.
4597         * m4/frexp.m4: Likewise.
4598         * m4/frexpf.m4: Likewise.
4599         * m4/frexpl.m4: Likewise.
4600         * m4/fsusage.m4: Likewise.
4601         * m4/getdomainname.m4: Likewise.
4602         * m4/getloadavg.m4: Likewise.
4603         * m4/getopt.m4: Likewise.
4604         * m4/gettext.m4: Likewise.
4605         * m4/gnulib-common.m4: Likewise.
4606         * m4/intdiv0.m4: Likewise.
4607         * m4/intlmacosx.m4: Likewise.
4608         * m4/largefile.m4: Likewise.
4609         * m4/ldexpl.m4: Likewise.
4610         * m4/link-follow.m4: Likewise.
4611         * m4/locale-ar.m4: Likewise.
4612         * m4/locale-fr.m4: Likewise.
4613         * m4/locale-ja.m4: Likewise.
4614         * m4/locale-tr.m4: Likewise.
4615         * m4/locale-zh.m4: Likewise.
4616         * m4/locale_h.m4: Likewise.
4617         * m4/lock.m4: Likewise.
4618         * m4/logl.m4: Likewise.
4619         * m4/mathfunc.m4: Likewise.
4620         * m4/minus-zero.m4: Likewise.
4621         * m4/mktime.m4: Likewise.
4622         * m4/mmap-anon.m4: Likewise.
4623         * m4/multiarch.m4: Likewise.
4624         * m4/nanosleep.m4: Likewise.
4625         * m4/nocrash.m4: Likewise.
4626         * m4/poll.m4: Likewise.
4627         * m4/printf-frexpl.m4: Likewise.
4628         * m4/printf.m4: Likewise.
4629         * m4/signbit.m4: Likewise.
4630         * m4/sinl.m4: Likewise.
4631         * m4/sqrtl.m4: Likewise.
4632         * m4/strerror_r.m4: Likewise.
4633         * m4/tanl.m4: Likewise.
4634         * m4/threadlib.m4: Likewise.
4635         * m4/ttyname_r.m4: Likewise.
4636         * m4/unlink.m4: Likewise.
4637         * m4/visibility.m4: Likewise.
4638         * m4/wcwidth.m4: Likewise.
4639         * tests/minus-zero.h: Likewise.
4640         * tests/test-alloca-opt.c: Likewise.
4641         * tests/test-copy-acl.sh: Likewise.
4642         * tests/test-copy-file.sh: Likewise.
4643         * tests/test-fdatasync.c: Likewise.
4644         * tests/test-file-has-acl.sh: Likewise.
4645         * tests/test-flock.c: Likewise.
4646         * tests/test-fsync.c: Likewise.
4647         * tests/test-localename.c: Likewise.
4648         * tests/test-malloca.c: Likewise.
4649         * tests/test-nonblocking-pipe.h: Likewise.
4650         * tests/test-nonblocking-socket.h: Likewise.
4651         * tests/test-openpty.c: Likewise.
4652         * tests/test-posix_openpt.c: Likewise.
4653         * tests/test-ptsname.c: Likewise.
4654         * tests/test-ptsname_r.c: Likewise.
4655         * tests/test-sameacls.c: Likewise.
4656         * tests/test-select.h: Likewise.
4657         * tests/test-set-mode-acl.sh: Likewise.
4658         * tests/test-snprintf-posix.h: Likewise.
4659         * tests/test-sprintf-posix.h: Likewise.
4660         * tests/test-strtod.c: Likewise.
4661         * tests/test-time.c: Likewise.
4662         * tests/test-vasnprintf-posix.c: Likewise.
4663         * tests/test-vasprintf-posix.c: Likewise.
4664         * doc/acl-resources.txt: Likewise.
4665         * doc/**/*.texi: Likewise.
4666         Reported by Max Horn <max@quendi.de>.
4667
4668 2012-06-22  Bruno Haible  <bruno@clisp.org>
4669
4670         grantpt: Relax requirement regarding invalid file descriptors.
4671         * lib/grantpt.c: Don't include <fcntl.h>.
4672         (grantpt): Don't verify the validity of the file descriptor.
4673         * modules/grantpt (Depends-on): Remove fcntl-h.
4674         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4675         file descriptors.
4676         * doc/posix-functions/grantpt.texi: Document more platforms on which
4677         grantpt succeeds for invalid file descriptors.
4678         Reported by Rich Felker <dalias@aerifal.cx>.
4679
4680 2012-06-22  Bruno Haible  <bruno@clisp.org>
4681
4682         fbufmode test: Don't test unportable behaviour.
4683         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4684         (main): Invoke it three times.
4685         Reported by Szabolcs Nagy <nsz@port70.net>
4686         and Rich Felker <dalias@aerifal.cx>.
4687
4688 2012-06-21  Bruno Haible  <bruno@clisp.org>
4689
4690         gnulib-tool: Refactor inctests variable.
4691         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4692         (func_modules_transitive_closure,
4693         func_modules_transitive_closure_separately,
4694         func_import, func_create_testdir): Update.
4695
4696         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4697         * gnulib-tool: Accept option --without-tests.
4698         (func_usage): Document --without-tests option. Rearrange.
4699         (inctests): Normalize according to the mode.
4700         * NEWS: Mention the change.
4701         Suggested by Simon Josefsson.
4702
4703 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4704
4705         parse-duration test: Avoid spurious output.
4706         * tests/test-parse-duration.sh: Reindent with leading tabs.
4707
4708 2012-06-21  Jim Meyering  <meyering@redhat.com>
4709
4710         maint: disable the strncpy prohibition
4711         * cfg.mk: Do not prohibit strncpy here.
4712
4713 2012-06-21  Bruno Haible  <bruno@clisp.org>
4714
4715         nonblocking: Avoid compilation error on mingw64.
4716         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4717         fscanf.
4718         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4719         * modules/vfscanf (configure.ac): Likewise.
4720         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4721         definition only if stdio.h has prepared it.
4722         Reported by Daniel P. Berrange <berrange@redhat.com>.
4723
4724 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4725
4726         gnulib-tool: Use readlink if it is available.
4727         * gnulib-tool (func_readlink): Choose function more appropriately.
4728
4729 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4730
4731         posixtm-tests: port to buggy compiler
4732         Problem reported by Simon Josefsson in
4733         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4734         * modules/posixtm-tests (Depends-on): Add stdint.
4735         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4736         Now of type int_least64_t, not int64_t, both because that's
4737         what INT64_C returns and because int_least64_t works even
4738         on 72-bit hosts.
4739         (T): Use INT64_C on constants outside the traditional int range,
4740         to work around compiler bug noted by Simon.
4741
4742         mktime: fix integer overflow in 'configure'-time test
4743         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4744         after integer overflow.  Problem reported by Rich Felker in
4745         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4746         Also, don't look for further instances of a bug if we've already
4747         found one instance; this helps 'configure' run faster.
4748
4749 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4750
4751         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4752         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4753         GetVersionEx correctly.
4754         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4755
4756 2012-06-20  Bruno Haible  <bruno@clisp.org>
4757
4758         fdopen: Allow implementations that don't reject invalid fd arguments.
4759         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4760         succeeds.
4761         Reported by Rich Felker <dalias@aerifal.cx>.
4762
4763 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4764
4765         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4766         bring in LIBINTL.
4767
4768 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         init.sh: do not rely on autoupated PWD
4771         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4772         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4773         Although Nelson's bug was not necessarily fixed by this patch,
4774         it seems wise to make the change for safety.
4775         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4776         automagically after 'cd'; this is not reliable on older shells.
4777         (setup_): Fail if we cannot cd to temporary directory.
4778
4779 2012-06-19  Bruno Haible  <bruno@clisp.org>
4780
4781         stat, fstat: Avoid warnings on mingw64.
4782         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4783         redefining.
4784         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4785         Reported by Daniel P. Berrange <berrange@redhat.com>.
4786
4787 2012-06-19  Bruno Haible  <bruno@clisp.org>
4788
4789         stdioext: Add support for musl libc.
4790
4791         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4792         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4793
4794         * m4/fseterr.m4: New file.
4795         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4796         function exists.
4797         * modules/fseterr (Files): Add m4/fseterr.m4.
4798         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4799         __fseterr does not exist.
4800         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4801
4802         * lib/freadable.h: Update comment.
4803
4804         * lib/fwritable.h: Update comment.
4805
4806         * lib/freading.h: Update comment.
4807
4808         * lib/fwriting.h: Update comment.
4809
4810         * m4/freadahead.m4: New file.
4811         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4812         that function exists.
4813         * modules/freadahead (Files): Add m4/freadahead.m4.
4814         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4815         __freadahead does not exist.
4816         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4817
4818         * m4/freadptr.m4: New file.
4819         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4820         function exists.
4821         * modules/freadptr (Files): Add m4/freadptr.m4.
4822         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4823         __freadptr does not exist.
4824         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4825
4826         * m4/freadseek.m4: New file.
4827         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4828         exists.
4829         * modules/freadseek (Files): Add m4/freadseek.m4.
4830         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4831
4832         * lib/fpurge.c (fpurge): Update comment.
4833
4834         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4835
4836 2012-06-19  Bruno Haible  <bruno@clisp.org>
4837
4838         *printf-posix: Put more info into config.log.
4839         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4840         exit code into config.log.
4841
4842 2012-06-19  Bruno Haible  <bruno@clisp.org>
4843
4844         getopt-gnu: Fix exit code overflow in autoconf test.
4845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4846         to keep them below < 128.
4847
4848 2012-06-17  Jim Meyering  <meyering@redhat.com>
4849
4850         maint.mk: fix typo in code to derive GPG key at release time
4851         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4852
4853 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4854
4855         regex: avoid warning when pointers are not long
4856         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4857         and uintptr_t, not long, for portability to hosts where pointers and
4858         long have different sizes.  Issue noted by Daniel P. Berrange in
4859         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4860         and fix suggested by Bruno Haible in
4861         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4862
4863 2012-06-17  Bruno Haible  <bruno@clisp.org>
4864
4865         dummy: Relicense into the public domain.
4866         * modules/dummy (License): Set to "public domain".
4867         Suggested by Reuben Thomas.
4868
4869 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4870
4871         announce-gen: VPATH issues
4872         * build-aux/announce-gen (--srcdir): New option, used to trim the
4873         $srcdir part of the path from $builddir to NEWS.
4874         * top/maint.mk (announcement): Adjust.
4875
4876 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4877
4878         gnu-web-doc-update: VPATH builds
4879         * build-aux/gnu-web-doc-update (--builddir): New option.
4880         Revamp the handling of options.
4881         Prefer $(...) to `...`.
4882         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4883         the template, and it is GNU mktemp specific.
4884         Prefer set -e to long series of &&.
4885         Restore the initial git branch, not "master".
4886         Properly initialize submodules (don't rely only on bootstrap).
4887         Do not reconfigure blindly, use config.status.
4888         * top/README-release: Update instructions for gnu-web-doc-update.
4889
4890 2012-06-11  Jim Meyering  <meyering@redhat.com>
4891
4892         maint.mk: revert most of the previous change re "all these"
4893         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4894         For rationale, see the discussion at
4895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4896
4897 2012-06-10  Karl Berry  <karl@gnu.org>
4898
4899         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4900
4901         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4902
4903 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4904
4905         parse-duration: Relicense under LGPLv2+.
4906         * modules/parse-duration (License): Change to LGPLv2+.
4907
4908 2012-06-10  Jim Meyering  <meyering@redhat.com>
4909
4910         maint.mk: prohibit common grammar error: "all these"
4911         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4912         the list of prohibited word sequences.  It should be "all of these".
4913         * lib/tempname.c (__gen_tempname): Fix one of them.
4914
4915 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4916
4917         do-release-commit-and-tag: support VPATH builds
4918         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4919         (noteworthy): Defined earlier to factor its value.
4920         (noteworthy_stub): New.
4921         Use it to factor.
4922         (help_version): Split into...
4923         (help, version): these.
4924         Adjust the option processing part.
4925         Support "--option=value" in addition to "--option value".
4926         (builddir): New.
4927         (--builddir): New option.
4928         * top/README-release: Document this.
4929         Reword slightly so that the reader cannot understand that he
4930         has to do these steps before calling do-release-commit-and-tag.
4931
4932 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4933
4934         readme-release: also require announce-gen and maintainer-makefile
4935         * modules/readme-release (Depends-on): here.
4936         * modules/announce-gen, modules/do-release-commit-and-tag,
4937         modules/gnu-web-doc-update, modules/maintainer-makefile
4938         (Description): Point to readme-release.
4939
4940 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4941
4942         maint.mk: fix VPATH issues.
4943         * top/maint.mk (news-check): GNU Make understand $< very well.
4944         (release-prep): NEWS is in $(srcdir).
4945
4946 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4947
4948         readme-release: require the promoted modules.
4949         * modules/readme-release (Depends-on): Add
4950         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4951         in this text.
4952
4953 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4954             Bruno Haible  <bruno@clisp.org>
4955
4956         error, strerror-override: Support mingw64 from Fedora 17.
4957         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4958         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4959         EINPROGRESS.
4960         * lib/strerror-override.h (strerror_override): Test it.
4961         * lib/strerror-override.c (strerror_override): Likewise.
4962         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4963
4964 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4965             Bruno Haible  <bruno@clisp.org>
4966
4967         error, strerror-override: Support mingw64 from Fedora 17.
4968         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4969         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4970         * lib/strerror-override.h (strerror_override): Test it.
4971         * lib/strerror-override.c (strerror_override): Likewise.
4972
4973 2012-06-03  Bruno Haible  <bruno@clisp.org>
4974
4975         error, strerror-override: Support new errno values from POSIX:2008.
4976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4977         ENOTRECOVERABLE.
4978         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4979         platforms.
4980         * lib/strerror-override.c (strerror_override): Conditionalize the
4981         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4982         * lib/strerror-override.h (strerror_override): Declare also if
4983         GNULIB_defined_EOWNERDEAD is defined.
4984         * tests/test-errno.c (e130, e131): New variables.
4985         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4986         ENOTRECOVERABLE.
4987         Reported by Paolo Bonzini.
4988
4989 2012-05-31  Jim Meyering  <meyering@redhat.com>
4990
4991         savewd: add missing dependency on sys_wait module
4992         * modules/savewd (Depends-on): Add sys_wait, needed at least
4993         for MSVC.  Report and suggested change by Michael Goffioul.
4994
4995 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         system-quote-tests: port to CentOS 5
4998         Problem reported by Tom G. Christensen in
4999         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5000         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5001
5002 2012-05-29  Jim Meyering  <meyering@redhat.com>
5003
5004         maint: fix typos in comments and ChangeLog
5005         Culprits identified and fixed mostly automatically using these commands:
5006         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5007         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5008         using http://github.com/lyda/misspell-check
5009         * ChangeLog: Fix typos.
5010         * doc/solaris-versions: Likewise.
5011         * lib/regexec.c (re_search_stub): Likewise.
5012         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5013
5014 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5015
5016         manywarnings: remove duplicate -Wmultichar entry
5017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5018         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5019         so keep the entry marked as documented.
5020
5021 2012-05-27  Karl Berry  <karl@gnu.org>
5022
5023         * config/srclist.txt (mktime.c): remove last libc sync,
5024         perhaps just temporarily.
5025
5026 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5027
5028         regex: don't assume uint64_t or uint32_t
5029         * lib/regcomp.c (init_word_char): Don't assume that the types
5030         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5031         them, and on some 32-bit compilers there is no uint64_t.
5032         Problem reported by Gianluigi Tiesi in
5033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5034
5035 2012-05-25  Jim Meyering  <meyering@redhat.com>
5036
5037         maint.mk: add strncpy-prohibiting syntax-check rule
5038         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5039
5040 2012-05-24  Jim Meyering  <meyering@redhat.com>
5041
5042         maint.mk: compute $(gpg_key_ID) more portably
5043         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5044         That use of sed is not portable to some fringe systems.
5045         Reported by Paul Eggert in
5046         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5047
5048 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5049
5050         mktime: sync from glibc
5051         * config/srclist.txt: Uncomment mktime.c.
5052         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5053         First, indent with tabs, since glibc uses tabs and doesn't want to
5054         change and we'd rather be identical to glibc.  Also, two small
5055         coding changes:
5056         (isdst_differ): Use &&, not &, as && is the usual style.
5057         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5058         for clarity.
5059
5060 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5061
5062         announce-gen: du -h is more portable than du --human
5063         * build-aux/announce-gen (sizes): Invoke du with -h instead
5064         of --human.  Accept leading white space in its output.
5065
5066 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5067
5068         announce-gen: Improve diagnostics.
5069         * build-aux/announce-gen: When parsing command line options,
5070         prefer "announce-gen: option --release-type requires an argument"
5071         to "Option release-type requires an argument".
5072
5073 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5074
5075         maint.mk: gpg_key_ID: use sed more portably
5076         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5077         the closing brace.
5078         (refresh-po): Fuse two sed invocations into one.
5079
5080 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5081
5082         gitlog-to-changelog: support the log message format used in Bison.
5083         * build-aux/gitlog-to-changelog: Support --strip-tab and
5084         --strip-cherry-picked.
5085
5086 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5087
5088         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5089         the rest of the current time slice to another thread in the current
5090         process. So if the thread that feeds the file decscriptor we're
5091         polling is not in the current process, we get busy-waiting.
5092         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5093         Patch from Theodore Leblond.
5094         * lib/select.c: Split polling out of the loop that sets the output
5095         fd_sets.  Check for zero result and loop if the wait timeout is
5096         infinite.
5097
5098 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5099
5100         select: Fix build error on IRIX 6.5.
5101         * lib/select.c: Include stddef.h for NULL.
5102
5103 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5104
5105         gc: fix libgcrypt detection on older machines.
5106         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5107         copyright years because the file has been distributed every year
5108         since it was created.
5109
5110 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         crypto: fix bug in large buffer handling
5113         Problem reported by Serge Belyshev for glibc in
5114         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5115         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5116         * lib/md4.c (md4_process_block):
5117         * lib/md5.c (md5_process_block):
5118         * lib/sha1.c (sha1_process_block):
5119         * lib/sha256.c (sha256_process_block):
5120         Don't assume the buffer length is less than 2**32.
5121         * lib/sha512.c (sha512_process_block): Likewise.
5122         Here, the bug is present only in the rare case where the host does
5123         not support uint64_t or where size_t is wider than 64 bits.
5124         Use u64size to work around the problems.
5125         * lib/u64.h (u64size): New macro.
5126
5127 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5128
5129         fsusage: fix block size returned on older Linux 2.6
5130
5131         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5132         which is available since Linux 2.6.
5133         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5134         when the member is available so it can be used as a fallback.
5135         * doc/posix-functions/statvfs.texi: Mention the hang issue
5136         on Linux < 2.6.36.
5137
5138 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5139
5140         bootstrap: suppress stderr chatter
5141         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5142         Omit unnecessary chatter to stderr.  The main program chatter
5143         was there only inadvertantly.
5144
5145         bootstrap: .gitignore files created by autopoint, libtool
5146         I ran into this problem when bootstrapping the latest diffutils.
5147         After './bootstrap', 'git status' reported lots of untracked files
5148         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5149         autopoint and do not need to be version-controlled.
5150         * build-aux/bootstrap: Put into .gitignore the files that
5151         autopoint and libtool create, by keeping track of files that exist
5152         after but not before these programs are run.
5153         (version_controlled_file): Move up.  2nd arg is now full file
5154         name, not base name; this is more convenient.  Put CVS at the end,
5155         as it's now somewhat deprecated.
5156
5157 2012-05-14  Jim Meyering  <meyering@redhat.com>
5158
5159         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5160         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5161         definition.  Reported by Bruno Haible.
5162
5163 2012-05-13  Bruno Haible  <bruno@clisp.org>
5164             Paul Eggert  <eggert@cs.ucla.edu>
5165
5166         binary-io: Define set_binary_mode function.
5167         * lib/binary-io.h (set_binary_mode): New function.
5168         (SET_BINARY): Define in terms of set_binary_mode.
5169         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5170         * tests/test-binary-io.c (main): Accept an argument, and test either
5171         set_binary_mode or SET_BINARY depending on the argument.
5172         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5173         argument. Clean up also t-bin-out0.tmp.
5174
5175 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5176
5177         bootstrap: take advantage of POSIX shell features
5178
5179         The 'bootstrap' script offered by Gnulib script already uses POSIX
5180         shell features (like $((...)) arithmetic expansions) that are not
5181         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5182         means that bootstrap must already be run using a proper POSIX shell,
5183         which will thus provide more features, like ${var#pattern} parameter
5184         expansion or inversion of a command exit status with '!'.  We can
5185         thus use these features to improve the clarity and the performances
5186         of the bootstrap script.
5187
5188         Suggested by Eric Blake.
5189
5190         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5191         of sed/expr plus command substitutions, to save some forks.  While
5192         we are at it, prefer the POSIX $(...) form of command substitution,
5193         rather than the legacy form `...` (since the former is visually
5194         clearer and interacts better with quoting), and prefer the idiom:
5195           "if ! CMD; then ACTION ..."
5196         over the idiom:
5197           "if CMD; then :; else ACTION ..."
5198         which was required by legacy Bourne shells not supporting '!'.
5199
5200 2012-05-12  Bruno Haible  <bruno@clisp.org>
5201
5202         system-quote: Add more comments.
5203         * lib/system-quote.h: Add more comments about wilcards and limitations.
5204         Suggested by Eli Zaretskii <eliz@gnu.org>.
5205
5206         sh-quote, system-quote: Add comments about wildcards.
5207         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5208         * lib/system-quote.h: Likewise.
5209         Reported by Eli Zaretskii <eliz@gnu.org>.
5210
5211 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5212
5213         fsusage: check for GNU/Linux statvfs problem dynamically
5214         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5215         Define STAT_STATFS2_BSIZE too, since in this case the code now
5216         checks dynamically whether statvfs is reliable, falling back on
5217         Linux-style statfs otherwise.
5218         (statvfs_works): New function, for dynamically testing statvfs.
5219         (get_fs_usage) [STAT_STATVFS]: Use it.
5220         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5221         statvfs on GNU/Linux hosts, since it's now done dynamically.
5222
5223 2012-05-10  Bruno Haible  <bruno@clisp.org>
5224
5225         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5226         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5227         '?' character.
5228         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5229         * tests/test-system-quote-main.c (check_all): Check also strings like
5230         "??????????".
5231         Reported by Eli Zaretskii <eliz@gnu.org>.
5232
5233 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         _Noreturn: port config.h to gcc -Wundef
5236         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5237         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5238         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5239
5240 2012-05-10  Bruno Haible  <bruno@clisp.org>
5241
5242         system-quote: Refactor.
5243         * lib/system-quote.h (system_quote_copy): Fix comment.
5244         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5245         New functions, extracted from system_quote_copy.
5246         (system_quote_length, system_quote_copy): Use these functions.
5247         Reported by Paul Eggert.
5248
5249 2012-05-08  Bruno Haible  <bruno@clisp.org>
5250
5251         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5252         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5253
5254 2012-05-08  Bruno Haible  <bruno@clisp.org>
5255
5256         Tests for module 'system-quote'.
5257         * modules/system-quote-tests: New file.
5258         * tests/test-system-quote.sh: New file.
5259         * tests/test-system-quote-main.c: New file.
5260         * tests/test-system-quote-child.c: New file.
5261
5262         New module 'system-quote'.
5263         * lib/system-quote.h: New file.
5264         * lib/system-quote.c: New file.
5265         * modules/system-quote: New file.
5266
5267 2012-05-08  Bruno Haible  <bruno@clisp.org>
5268
5269         sh-quote: Make C++ safe and allow multiple inclusion.
5270         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5271         declarations in extern "C".
5272
5273 2012-05-08  Bruno Haible  <bruno@clisp.org>
5274
5275         sh-quote tests: Make tests stricter.
5276         * tests/test-sh-quote.c (check_one): Check the return value of
5277         shell_quote_copy.
5278         (main): Check a string with a CR character. Check a string that
5279         contains UCHAR_MAX.
5280
5281 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5282
5283         warnings.m4: provide a means to specify the program to compile.
5284         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5285         (gl_WARN_ADD): here.
5286         Use gl_AS_VAR_APPEND.
5287         Support an argument to specify the program to compile.
5288         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5289         AC_SUBST the WARN_CFLAGS when they are used.
5290         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5291         leave this to gl_WARN_ADD.
5292
5293 2012-05-08  Eric Blake  <eblake@redhat.com>
5294
5295         doc: recommendations on gettext version
5296         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5297         choice between versions.
5298         * DEPENDENCIES (gettext): Cover both approaches.
5299
5300 2012-05-08  Jim Meyering  <meyering@redhat.com>
5301
5302         init.sh: explain why EXEEXT support uses aliases rather than functions
5303         * tests/init.sh: Add a comment.
5304
5305         init.sh: don't let bash aliases interfere with tests
5306         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5307         is bash.  This avoids problems for those who alias standard commands to
5308         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5309         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5310
5311 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5312
5313         stdint: be more consistent with glibc, SunOS libc
5314         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5315         (gl_int_fast16_t, gl_uint_fast16_t)
5316         (gl_int_fast32_t, gl_uint_fast32_t)
5317         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5318         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5319         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5320         Be consistent with glibc by default, and with SunOS 5.10 and later
5321         if __sun is defined.  This lessens the likelihood of clashes if
5322         code compiled for older hosts is combined with code compiled for
5323         newer ones.  Problem reported by Niels Möller in
5324         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5325
5326 2012-05-07  Eric Blake  <eblake@redhat.com>
5327
5328         isatty: relax license to LGPLv2+
5329         * modules/isatty (License): Relax license.
5330
5331 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5332
5333         stat-size: comment fix
5334         * lib/stat-size.h: Remove obsolete comment about indenting.
5335
5336 2012-05-06  Bruno Haible  <bruno@clisp.org>
5337
5338         Tests for module 'sh-quote'.
5339         * modules/sh-quote-tests: New file.
5340         * tests/test-sh-quote.c: New file.
5341
5342 2012-05-06  Bruno Haible  <bruno@clisp.org>
5343
5344         sh-quote: Improve shell_quote_argv's signature.
5345         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5346         * lib/sh-quote.c (shell_quote_argv): Likewise.
5347
5348 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5349
5350         stdint: document issues with int_fast8_t etc.
5351         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5352         stdint.h substitutes may define these types differently.  See
5353         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5354
5355 2012-05-05  Bruno Haible  <bruno@clisp.org>
5356
5357         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5359         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5360         or 'guessing no (mishandles large arguments)'.
5361
5362 2012-05-05  Bruno Haible  <bruno@clisp.org>
5363
5364         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5365         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5366         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5367         set gl_cv_func_link_follows_symlink to "guessing no".
5368
5369 2012-05-05  Bruno Haible  <bruno@clisp.org>
5370
5371         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5372         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5373         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5374         "guessing no".
5375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5376
5377 2012-05-05  Bruno Haible  <bruno@clisp.org>
5378
5379         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5380         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5381         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5382         set gl_cv_struct_dirent_d_ino to "guessing yes".
5383
5384 2012-05-05  Bruno Haible  <bruno@clisp.org>
5385
5386         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5387         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5388         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5389         "guessing yes".
5390
5391 2012-05-05  Bruno Haible  <bruno@clisp.org>
5392
5393         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5394         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5395         compiling to a glibc system, set gl_cv_func_signbit and
5396         gl_cv_func_signbit_gcc to "guessing yes".
5397
5398 2012-05-05  Bruno Haible  <bruno@clisp.org>
5399
5400         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5401         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5402         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5403         to "guessing yes".
5404         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5405         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5406
5407 2012-05-05  Bruno Haible  <bruno@clisp.org>
5408
5409         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5410         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5411         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5412         gl_cv_func_realpath_works to "guessing yes".
5413
5414 2012-05-05  Bruno Haible  <bruno@clisp.org>
5415
5416         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5418         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5419
5420 2012-05-04  Bruno Haible  <bruno@clisp.org>
5421
5422         Tweak last commit.
5423         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5424         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5425
5426 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5427
5428         unistd_h: make it easier to avoid sys_types_h
5429         This is useful for Emacs, which has its own method of porting to
5430         Windows, and which therefore does not need the sys_types_h module.
5431         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5432         code moved here from gl_SYS_TYPES_H.
5433         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5434         using the code directly.
5435         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5436         gl_SYS_TYPES_H.
5437         * modules/sys_types (Files):
5438         * modules/unistd (Files): Add m4/off_t.m4.
5439
5440 2012-05-03  Bruno Haible  <bruno@clisp.org>
5441
5442         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5443         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5444         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5445         "guessing yes" or "guessing no".
5446         (gl_FUNC_LSTAT): Update.
5447         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5448         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5449         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5450
5451 2012-05-03  Bruno Haible  <bruno@clisp.org>
5452
5453         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5454         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5455         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5456         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5457         cross-compiling, choose the first alternative on glibc systems.
5458         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5459
5460 2012-05-03  Bruno Haible  <bruno@clisp.org>
5461
5462         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5463         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5464         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5465
5466 2012-05-03  Bruno Haible  <bruno@clisp.org>
5467
5468         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5469         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5470
5471 2012-05-03  Bruno Haible  <bruno@clisp.org>
5472
5473         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5474         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5475         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5476         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5477         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5478         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5479         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5480         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5481         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5482         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5483         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5484         gl_cv_func_chown_ctime_works to "guessing yes".
5485         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5486         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5487         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5488         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5489         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5491         compiling to glibc systems, set gl_cv_func_open_directory_works to
5492         "guessing yes".
5493         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5494         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5495         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5496         "guessing yes".
5497         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5498         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5499         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5500         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5501         "guessing yes".
5502         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5503         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5504         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5505         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5506         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5507         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5508         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5509         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5510         "guessing yes".
5511         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5512         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5513         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5514         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5515         "guessing yes".
5516         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5517         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5518         "guessing yes".
5519         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5520         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5521         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5522         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5523         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5524         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5525         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5526         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5527         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5528         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5529         "guessing yes".
5530         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5531         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5532         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5533         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5534         "guessing yes".
5535         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5536         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5537         "guessing yes".
5538         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5539         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5540         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5541         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5542         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5543         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5544         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5545         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5546         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5547         "guessing yes".
5548         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5549         compiling to glibc systems, set gl_cv_func_mknod_works to
5550         "guessing yes".
5551         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5552         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5553         "guessing yes".
5554         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5555         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5556         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5557         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5558         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5559         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5560         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5561         compiling to glibc systems, set gl_cv_func_svid_putenv to
5562         "guessing yes".
5563         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5564         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5565         "guessing yes".
5566         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5567         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5568         "guessing yes".
5569         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5570         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5571         to "guessing yes".
5572         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5573         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5574         to "guessing yes".
5575         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5576         compiling to glibc systems, set gl_cv_func_rmdir_works to
5577         "guessing yes".
5578         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5579         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5580         gl_cv_func_unlink_parent_fails to "guessing yes".
5581         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5582         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5583         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5584         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5585         gl_cv_func_rename_dest_works to "guessing yes".
5586         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5587         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5589         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5590         "guessing yes".
5591         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5592         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5593         "guessing yes".
5594         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5595         compiling to glibc systems, set gl_cv_func_setenv_works to
5596         "guessing yes".
5597         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5598         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5599         "guessing yes".
5600         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5601         compiling to glibc systems, set gl_cv_func_sleep_works to
5602         "guessing yes".
5603         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5604         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5605         "guessing yes".
5606         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5607         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5608         "guessing yes".
5609         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5610         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5611         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5612         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5613         "guessing yes".
5614         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5615         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5616         "guessing yes".
5617         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5618         compiling to glibc systems, set gl_cv_func_usleep_works to
5619         "guessing yes".
5620         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5621         compiling to glibc systems, set gl_cv_func_futimesat_works to
5622         "guessing yes".
5623
5624 2012-05-03  Bruno Haible  <bruno@clisp.org>
5625
5626         Say "guessing yes" or "guessing no" when cross-compiling.
5627         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5628         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5629         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5630         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5631         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5632         am_cv_func_working_getline to "guessing yes" or "guessing no".
5633         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5634         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5635         (gl_FUNC_MEMMEM): When cross-compiling, set
5636         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5638         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5640         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5641         "guessing no".
5642         (gl_FUNC_STRCASESTR): When cross-compiling, set
5643         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5644         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5645         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5646         (gl_FUNC_STRSTR): When cross-compiling, set
5647         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5648         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5649         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5650         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5651         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5652
5653 2012-05-01  Bruno Haible  <bruno@clisp.org>
5654
5655         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5656         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5657         * build-aux/reloc-ldflags: Likewise.
5658         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5659
5660 2012-05-01  Bruno Haible  <bruno@clisp.org>
5661
5662         gnulib-tool: Remove transitional code.
5663         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5664         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5665
5666 2012-05-01  Bruno Haible  <bruno@clisp.org>
5667
5668         getcwd: Fix misindentation.
5669         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5670
5671 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5672
5673         exclude: process exclude and include directives in order
5674         This restores the pre-2009 behavior, and is part of a fix of a
5675         grep bug reported by Quentin Arce in
5676         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5677         * lib/exclude.c (struct exclude): Remove 'tail' member.
5678         (new_exclude_segment): Prepend the new segment instead of appending.
5679         Return void, since that's now more convenient.
5680         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5681         (file_name_matches): Renamed from excluded_file_name_p.
5682         (file_pattern_matches, file_name_matches):
5683         Return true if the pattern matches, not if it excludes.
5684         All callers changed.
5685         (excluded_file_name): Process the list in reverse order;
5686         since the list is now reversed this restores the pre-2009 behavior.
5687         (add_exclude): Adjust to new reversed-order list.  Use local var
5688         rather than macro, for clarity.
5689         * tests/test-exclude7.sh: Adjust to corrected behavior.
5690
5691         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5692         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5693         it's not possible here.  Handle the case of \ at end of pattern
5694         without dumping core.
5695         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5696
5697         _Noreturn: future-proof non-GNU and non-MSVC compilers
5698         * build-aux/snippet/_Noreturn.h (_Noreturn):
5699         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5700         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5701         C11 or later.  This is more likely to work with random future C
5702         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5704
5705         exclude: handle wildcards with FNM_EXTMATCH
5706         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5707         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5708         comment that "has wildcards" really means "has or may have
5709         wildcards".  Simplify by avoiding the need to call strcspn.
5710
5711 2012-04-29  Bruno Haible  <bruno@clisp.org>
5712
5713         gnulib-tool: Fix list of authors.
5714         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5715
5716 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5717
5718         bootstrap: support Automake-NG in $buildreq
5719         * bootstrap (check_versions): Handle automake and aclocal from
5720         Automake-NG specially.  They can be specified as respectively
5721         the "automake-ng" and "aclocal-ng" requirements.
5722
5723 2012-04-25  Eric Blake  <eblake@redhat.com>
5724
5725         bootstrap: only force latest Makefile.in.in for gettext module
5726         * build-aux/bootstrap (with_gettext): Only install latest
5727         Makefile.in.in for projects requesting bleeding edge gettext.
5728
5729 2012-04-22  Bruno Haible  <bruno@clisp.org>
5730
5731         doc: Mention reason for replacement on glibc/Linux systems.
5732         * doc/posix-functions/dprintf.texi: Mention the problem with special
5733         'long double' values.
5734         * doc/posix-functions/fprintf.texi: Likewise.
5735         * doc/posix-functions/printf.texi: Likewise.
5736         * doc/posix-functions/snprintf.texi: Likewise.
5737         * doc/posix-functions/sprintf.texi: Likewise.
5738         * doc/posix-functions/vdprintf.texi: Likewise.
5739         * doc/posix-functions/vfprintf.texi: Likewise.
5740         * doc/posix-functions/vprintf.texi: Likewise.
5741         * doc/posix-functions/vsnprintf.texi: Likewise.
5742         * doc/posix-functions/vsprintf.texi: Likewise.
5743         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5744         platforms with F_DUPFD_CLOEXEC problems.
5745         * doc/posix-functions/glob.texi: Mention which platforms are affected
5746         by the problem with symbolic links.
5747         * doc/posix-functions/linkat.texi: Mention the problem with
5748         AT_SYMLINK_FOLLOW on Linux.
5749
5750 2012-04-22  Bruno Haible  <bruno@clisp.org>
5751
5752         pwrite: Don't replace on all platforms.
5753         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5754
5755 2012-04-22  Bruno Haible  <bruno@clisp.org>
5756
5757         rint* tests: Avoid gcc warnings.
5758         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5759         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5760         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5761
5762 2012-04-21  Bruno Haible  <bruno@clisp.org>
5763
5764         users.txt: Update.
5765         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5766         switched from CVS to git, bzr, or svn.
5767
5768 2012-04-21  Bruno Haible  <bruno@clisp.org>
5769
5770         Large File Support for native Windows platforms.
5771
5772         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5773         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5774
5775         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5776         type.
5777         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5778         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5779         * doc/posix-headers/sys_types.texi: Mention the effect of the
5780         'largefile' module.
5781
5782         * lib/fcntl.in.h: Add comments about off_t.
5783         * modules/fcntl-h (Depends-on): Add sys_types.
5784
5785         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5786         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5787         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5788         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5789         * modules/unistd (Depends-on): Add sys_types.
5790         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5791
5792         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5793         instead of lseek.
5794         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5795         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5796         * modules/lseek (Depends-on): Add sys_types.
5797
5798         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5799         msvc-nothrow.h.
5800         (SetFileSize): New function.
5801         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5802         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5803         if Large File Support is requested.
5804         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5805         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5806
5807         * lib/stdio.in.h: Add comments about off_t.
5808         * modules/stdio (Depends-on): Add sys_types.
5809
5810         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5811         instead of ftello.
5812         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5813         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5814         (gl_PREREQ_FTELLO): New macro.
5815         * modules/ftello (Depends-on): Add sys_types.
5816         (configure.ac): Incoke gl_PREREQ_FTELLO.
5817
5818         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5819         instead of fseeko.
5820         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5821         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5822         (gl_PREREQ_FSEEKO): New macro.
5823         * modules/fseeko (Depends-on): Add sys_types.
5824         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5825
5826         * lib/sys_stat.in.h: Add comments about off_t.
5827         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5828         64-bit integer for st_size in 'struct stat'.
5829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5830         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5831         * modules/sys_stat (Depends-on): Add sys_types.
5832         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5833
5834         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5835         instead of stat or _stat.
5836
5837         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5838         'struct _stati64' instead of fstat and 'struct stat'.
5839         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5840         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5841
5842         Reported by Ray Satiro <raysatiro@yahoo.com>.
5843
5844 2012-04-19  Eric Blake  <eblake@redhat.com>
5845
5846         bootstrap: accommodate older libtool
5847         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5848         Reported by Daniel P. Berrange.
5849
5850 2012-04-19  Jim Meyering  <meyering@redhat.com>
5851
5852         announce-gen: avoid failure due to lack of Digest::SHA1
5853         Even with the preferred Digest::SHA available, this script
5854         would fail when the backup module, Digest::SHA1, was not installed.
5855         * build-aux/announce-gen: Quote the conditional use of "use".
5856         Reported by Reuben Thomas in:
5857         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5858
5859         bootstrap: don't let a user's CDPATH setting affect this script
5860         When CDPATH is set, cd will sometimes generate output.
5861         When "cd" is run in a subshell whose output matters, that
5862         surprising-to-some output can cause malfunction.
5863         Unsetting CDPATH turns off this shell "feature."
5864         * build-aux/bootstrap (CDPATH): Unset.
5865         Reported by Reuben Thomas in:
5866         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5867         and inspired by his patch here:
5868         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5869
5870 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5871         and Jim Meyering  <meyering@redhat.com>
5872
5873         maint.mk: catch "see @xref{}" and similar
5874         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5875         prohibit "See also @xref{", "Also see @pxref{", and similar.
5876
5877 2012-04-16  Jim Meyering  <meyering@redhat.com>
5878
5879         bootstrap: really use gnulib's po/Makefile.in.in
5880         * build-aux/bootstrap: Correct the source file name in previous change.
5881         Reported by Akim Demaille.
5882
5883         configmake: correct minor inconsistency in Makefile rule
5884         * modules/configmake (Makefile.am): All other rules like this one
5885         run the final "mv -f ..." in the same backslash-continued command
5886         as the one that does everything else.  This one put the mv -f ...
5887         command on a separate, non-backslash-continued line.
5888         Make it like the others.
5889
5890         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5891         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5892         the one from gettext.  Reported by Akim Demaille.
5893
5894 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5895
5896         Fix recursion of install-* into po directories.
5897         Bison's install-pdf bug reported by Hans Aberg at
5898         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5899         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5900         (install-info, install-pdf, install-ps): New targets.
5901
5902 2012-04-16  Jim Meyering  <meyering@redhat.com>
5903
5904         maint: avoid spurious "make sc_maint" failure
5905         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5906         exempt all *.class file names, for lib/javaversion.class.
5907
5908 2012-04-15  Bruno Haible  <bruno@clisp.org>
5909
5910         lseek: Make configure test independent of environment.
5911         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5912         Windows, we know that lseek() on pipes is broken; skip the runtime
5913         test.
5914
5915 2012-04-14  Bruno Haible  <bruno@clisp.org>
5916
5917         stat: Bypass buggy override in mingw64.
5918         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5919         * lib/stat.c (stat) [mingw64]: Define to _stat.
5920         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5921
5922 2012-04-14  Bruno Haible  <bruno@clisp.org>
5923
5924         pathmax: Fix compilation error on MSVC 9.
5925         * modules/pathmax (Depends-on): Add unistd.
5926
5927 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5928
5929         README: document pointer comparison assumption
5930         * README (Portability guidelines): Document assumption about
5931         pointer comparisons, in response to a recent bug-gnulib comment by
5932         Jeffrey Kegler.
5933
5934 2012-04-12  Bruno Haible  <bruno@clisp.org>
5935
5936         Tests for module 'getrusage'.
5937         * modules/getrusage-tests: New file.
5938         * tests/test-getrusage.c: New file.
5939
5940         New module 'getrusage'.
5941         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5942         warn-on-use.h.
5943         (getrusage): New declaration.
5944         * lib/getrusage.c: New file.
5945         * m4/getrusage.m4: New file.
5946         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5947         is declared.
5948         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5949         HAVE_GETRUSAGE.
5950         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5951         snippet/c++defs, snippet/warn-on-use.
5952         (Makefile.am): Update generation of sys/resource.h. Substitute
5953         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5954         * modules/getrusage: New file.
5955         * doc/posix-functions/getrusage.texi: Mention the new module.
5956
5957 2012-04-12  Bruno Haible  <bruno@clisp.org>
5958
5959         Tests for module 'sys_resource'.
5960         * modules/sys_resource-tests: New file.
5961         * tests/test-sys_resource.c: New file.
5962
5963         New module 'sys_resource'.
5964         * lib/sys_resource.in.h: New file.
5965         * m4/sys_resource_h.m4: New file.
5966         * modules/sys_resource: New file.
5967         * doc/posix-headers/sys_resource.texi: Mention the new module.
5968
5969 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5970
5971         ioctl: Fix compilation error on mingw.
5972         * lib/ioctl.c: Include <windows.h>.
5973         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5974
5975 2012-04-04  Jim Meyering  <meyering@redhat.com>
5976
5977         regex: correct #pragma guard expression
5978         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5979         not 4.3.  Correct its cpp guard expression.
5980
5981 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5982
5983         regex: remove unnecessary type punning
5984         Problem reported by Vladimir Serbinenko in
5985         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5986         * lib/regex.h (struct re_pattern_buffer): Change the type of
5987         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5988         Fix comment to match code.
5989         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5990         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5991         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5992         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5993         (set_regs):
5994         Omit no-longer-necessary casts.
5995
5996 2012-04-03  Bruno Haible  <bruno@clisp.org>
5997
5998         Tests for module 'ilogbl'.
5999         * modules/ilogbl-tests: New file.
6000         * tests/test-ilogbl.c: New file.
6001
6002         New module 'ilogbl'.
6003         * lib/math.in.h (ilogbl): New declaration.
6004         * lib/ilogbl.c: New file.
6005         * m4/ilogbl.m4: New file.
6006         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6008         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6009         Split sed invocation, to avoid the limit of 100 substitutions of
6010         HP-UX 'sed'.
6011         * modules/ilogbl: New file.
6012         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6013         * doc/posix-functions/ilogbl.texi: Mention the new module.
6014
6015 2012-04-03  Bruno Haible  <bruno@clisp.org>
6016
6017         Tests for module 'ilogbf'.
6018         * modules/ilogbf-tests: New file.
6019         * tests/test-ilogbf.c: New file.
6020
6021         New module 'ilogbf'.
6022         * lib/math.in.h (ilogbf): New declaration.
6023         * lib/ilogbf.c: New file.
6024         * m4/ilogbf.m4: New file.
6025         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6027         REPLACE_ILOGBF.
6028         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6029         REPLACE_ILOGBF.
6030         * modules/ilogbf: New file.
6031         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6032         * doc/posix-functions/ilogbf.texi: Mention the new module.
6033
6034 2012-04-03  Bruno Haible  <bruno@clisp.org>
6035
6036         Tests for module 'ilogb'.
6037         * modules/ilogb-tests: New file.
6038         * tests/test-ilogb.c: New file.
6039         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6040         tests/test-logb-ieee.h.
6041
6042         New module 'ilogb'.
6043         * lib/math.in.h (ilogb): New declaration.
6044         * lib/ilogb.c: New file.
6045         * m4/ilogb.m4: New file.
6046         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6048         REPLACE_ILOGB.
6049         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6050         REPLACE_ILOGB.
6051         * modules/ilogb: New file.
6052         * tests/test-math-c++.cc: Check the declaration of ilogb.
6053         * doc/posix-functions/ilogb.texi: Mention the new module.
6054
6055 2012-04-03  Bruno Haible  <bruno@clisp.org>
6056
6057         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6058         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6059         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6060         (main): Check their values.
6061         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6062         problem.
6063
6064 2012-04-03  Bruno Haible  <bruno@clisp.org>
6065
6066         Tests for module 'logbl-ieee'.
6067         * modules/logbl-ieee-tests: New file.
6068         * tests/test-logbl-ieee.c: New file.
6069
6070         New module 'logbl-ieee'.
6071         * modules/logbl-ieee: New file.
6072
6073         Tests for module 'logb-ieee'.
6074         * modules/logb-ieee-tests: New file.
6075         * tests/test-logb-ieee.c: New file.
6076
6077         New module 'logb-ieee'.
6078         * modules/logb-ieee: New file.
6079
6080         Tests for module 'logbf-ieee'.
6081         * modules/logbf-ieee-tests: New file.
6082         * tests/test-logbf-ieee.c: New file.
6083         * tests/test-logb-ieee.h: New file.
6084
6085         New module 'logbf-ieee'.
6086         * modules/logbf-ieee: New file.
6087
6088 2012-04-03  Bruno Haible  <bruno@clisp.org>
6089
6090         Tests for module 'logbl'.
6091         * modules/logbl-tests: New file.
6092         * tests/test-logbl.c: New file.
6093
6094         New module 'logbl'.
6095         * lib/math.in.h (logbl): New declaration.
6096         * lib/logbl.c: New file.
6097         * m4/logbl.m4: New file.
6098         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6100         REPLACE_LOGBL.
6101         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6102         REPLACE_LOGBL.
6103         * modules/logbl: New file.
6104         * tests/test-math-c++.cc: Check the declaration of logbl.
6105         * doc/posix-functions/logbl.texi: Mention the new module.
6106
6107 2012-04-02  Bruno Haible  <bruno@clisp.org>
6108
6109         Tests for module 'logbf'.
6110         * modules/logbf-tests: New file.
6111         * tests/test-logbf.c: New file.
6112
6113         New module 'logbf'.
6114         * lib/math.in.h (logbf): New declaration.
6115         * lib/logbf.c: New file.
6116         * m4/logbf.m4: New file.
6117         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6119         REPLACE_LOGBF.
6120         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6121         REPLACE_LOGBF.
6122         * modules/logbf: New file.
6123         * tests/test-math-c++.cc: Check the declaration of logbf.
6124         * doc/posix-functions/logbf.texi: Mention the new module.
6125
6126 2012-04-02  Bruno Haible  <bruno@clisp.org>
6127
6128         logb tests: More tests.
6129         * tests/test-logb.h: New file, based on tests/test-logb.c and
6130         tests/test-frexp.h.
6131         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6132         (main): Just invoke test_function.
6133         * modules/logb-tests (Files): Add tests/test-logb.h,
6134         tests/minus-zero.h, tests/randomd.c.
6135         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6136
6137         logb: Provide replacement and workarounds.
6138         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6139         is 1.
6140         * lib/logb.c: New file.
6141         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6142         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6144         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6145         * modules/logb (Files): Add lib/logb.c.
6146         (Depends-on): Add isfinite, frexp, isnand.
6147         (configure.ac): Compile the replacement code logb.c if needed.
6148         * tests/test-math-c++.cc: Check the declaration of logb.
6149         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6150         with subnormal numbers.
6151
6152 2012-04-02  Bruno Haible  <bruno@clisp.org>
6153
6154         log10* tests: Speed up.
6155         * tests/test-log10.h (test_function): Reduce amount of random numbers
6156         to test.
6157
6158 2012-04-01  Bruno Haible  <bruno@clisp.org>
6159
6160         logf-ieee: Fix test whether logf works.
6161         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6162
6163 2012-04-01  Bruno Haible  <bruno@clisp.org>
6164
6165         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6166         * lib/log10l.c: Include <float.h>
6167         (log10l): On IRIX, normalize the +Infinity value.
6168         * modules/log10l (Depends-on): Add 'float'.
6169         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6170         +Infinity.
6171
6172         log10f-ieee: Work around test failure on NetBSD 5.1.
6173         * m4/log10f-ieee.m4: New file.
6174         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6175         test whether log10f works with a negative argument. Replace it if not.
6176         * lib/log10f.c (log10f): For negative arguments, return NaN.
6177         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6178         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6179         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6180
6181         log10f-ieee: Work around test failure on Solaris 9.
6182         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6183         (configure.ac): Require gl_FUNC_LOG10F.
6184
6185         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6186         * m4/log10-ieee.m4: New file.
6187         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6188         whether log10 works with a negative argument. Replace it if not.
6189         * lib/log10.c (log10): For negative arguments, return NaN.
6190         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6191         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6192         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6193
6194         Tests for module 'log10l-ieee'.
6195         * modules/log10l-ieee-tests: New file.
6196         * tests/test-log10l-ieee.c: New file.
6197
6198         New module 'log10l-ieee'.
6199         * modules/log10l-ieee: New file.
6200
6201         Tests for module 'log10-ieee'.
6202         * modules/log10-ieee-tests: New file.
6203         * tests/test-log10-ieee.c: New file.
6204
6205         New module 'log10-ieee'.
6206         * modules/log10-ieee: New file.
6207
6208         Tests for module 'log10f-ieee'.
6209         * modules/log10f-ieee-tests: New file.
6210         * tests/test-log10f-ieee.c: New file.
6211         * tests/test-log10-ieee.h: New file.
6212
6213         New module 'log10f-ieee'.
6214         * modules/log10f-ieee: New file.
6215
6216 2012-04-01  Bruno Haible  <bruno@clisp.org>
6217
6218         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6219         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6220         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6221         workaround.
6222         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6223         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6225         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6226         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6227         (Depends-on): Update conditions.
6228         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6229         IRIX 6.5, OSF/1 5.1 problems.
6230
6231 2012-04-01  Bruno Haible  <bruno@clisp.org>
6232
6233         log10f: Work around OSF/1 5.1 bug.
6234         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6235         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6236         workaround.
6237         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6238         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6240         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6241         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6242         (Depends-on): Update conditions.
6243         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6244
6245 2012-04-01  Bruno Haible  <bruno@clisp.org>
6246
6247         log10: Work around OSF/1 5.1 bug.
6248         * lib/math.in.h (log10): New declaration.
6249         * lib/log10.c: New file.
6250         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6251         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6252         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6254         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6255         * modules/log10 (Files): Add lib/log10.c.
6256         (Depends-on): Add math.
6257         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6258         * tests/test-math-c++.cc: Check the declaration of log10.
6259         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6260
6261 2012-03-31  Bruno Haible  <bruno@clisp.org>
6262
6263         log10l tests: More tests.
6264         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6265         tests/minus-zero.h, tests/randoml.c.
6266         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6267         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6268         (main): Invoke test_function.
6269
6270         log10f tests: More tests.
6271         * modules/log10f-tests (Files): Add tests/test-log10.h,
6272         tests/minus-zero.h, tests/randomf.c.
6273         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6274         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6275         (main): Invoke test_function.
6276
6277         log10 tests: More tests.
6278         * tests/test-log10.h: New file.
6279         * modules/log10-tests (Files): Add tests/test-log10.h,
6280         tests/minus-zero.h, tests/randomd.c.
6281         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6282         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6283         (main): Invoke test_function.
6284
6285 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6286
6287         fflush: Fix syntax error.
6288         * lib/fflush.c: Include unused-parameter.h, needed for
6289         _GL_UNUSED_PARAMETER.
6290         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6291
6292 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6293
6294         regex: pacify GCC when compiling GRUB
6295         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6296         a diagnostic.  Reported by Vladimir Serbinenko in
6297         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6298
6299 2012-03-29  Eric Blake  <eblake@redhat.com>
6300
6301         stdio: don't assume gets any more
6302         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6303         support.
6304         * modules/stdio (Makefile.am): Likewise.
6305         * lib/stdio-read.c (gets): Likewise.
6306         * tests/test-stdio-c++.cc: Likewise.
6307         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6308         * lib/stdio.in.h (gets): Make warning occur in more places.
6309         * doc/posix-functions/gets.texi (gets): Update documentation.
6310         Reported by Christer Solskogen.
6311
6312         maint.mk: fix syntax checks without exclusions
6313         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6314         Reported by Daniel P. Berrange.
6315
6316         strerror_r: avoid compiler warning
6317         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6318         level.
6319
6320         fflush: avoid compiler warning
6321         * lib/fflush.c (update_fpos_cache): Mark variables that are
6322         potentially unused.
6323
6324 2012-03-25  Bruno Haible  <bruno@clisp.org>
6325
6326         Tests for module 'localeconv'.
6327         * modules/localeconv-tests: New file.
6328         * tests/test-localeconv.c: New file.
6329
6330         New module 'localeconv'.
6331         * lib/locale.in.h (localeconv): New declaration.
6332         * lib/localeconv.c: New file.
6333         * m4/localeconv.m4: New file.
6334         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6335         REPLACE_LOCALECONV.
6336         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6337         REPLACE_LOCALECONV.
6338         * modules/localeconv: New file.
6339         * modules/nl_langinfo (Depends-on): Add localeconv.
6340         * modules/human (Depends-on): Likewise.
6341         * doc/posix-functions/localeconv.texi: Mention the new module.
6342
6343 2012-03-25  Bruno Haible  <bruno@clisp.org>
6344
6345         locale: Provide a complete 'struct lconv'.
6346         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6347         'struct lconv' does not contain int_p_cs_precedes.
6348         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6349         * doc/posix-headers/locale.texi: Update.
6350
6351         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6352         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6353         * doc/posix-headers/locale.texi: Update.
6354
6355         locale: Provide a working 'struct lconv'.
6356         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6357         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6358         'struct lconv' does not even contain decimal_point.
6359         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6360         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6361         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6362         * doc/posix-headers/locale.texi: Mention the problems with
6363         'struct lconv'.
6364         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6365
6366 2012-03-24  Bruno Haible  <bruno@clisp.org>
6367
6368         Enable common subexpression optimization in GCC.
6369         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6370         macros.
6371         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6372         GCC attribute 'const'.
6373         (uc_locale_language): Declare with GCC attribute 'pure'.
6374         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6375         with GCC attribute 'const'.
6376         * lib/unictype.in.h (uc_is_general_category_withtable,
6377         uc_combining_class, uc_combining_class_name,
6378         uc_combining_class_long_name, uc_bidi_class_name,
6379         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6380         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6381         uc_decimal_value, uc_digit_value, uc_numeric_value,
6382         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6383         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6384         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6385         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6386         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6387         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6388         Declare with GCC attribute 'const'.
6389         (uc_general_category_name, uc_general_category_long_name,
6390         uc_general_category_byname, uc_general_category,
6391         uc_is_general_category, uc_combining_class_byname,
6392         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6393         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6394         Declare with GCC attribute 'pure'.
6395         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6396         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6397         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6398         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6399         with GCC attribute 'pure'.
6400         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6401         'const'.
6402         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6403         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6404         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6405         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6406         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6407         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6408         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6409         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6410         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6411         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6412         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6413         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6414         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6415         GCC attribute 'pure'.
6416         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6417         'const'.
6418         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6419         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6420         u32_strwidth): Declare with GCC attribute 'pure'.
6421
6422         Enable common subexpression optimization in GCC.
6423         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6424         (alphasort): Declare with GCC attribute 'pure'.
6425         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6426         (atoll): Declare with GCC attribute 'pure'.
6427         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6428         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6429         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6430         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6431         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6432         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6433         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6434
6435 2012-03-24  Bruno Haible  <bruno@clisp.org>
6436
6437         gnulib-tool: Avoid unintended error output from 'cmp'.
6438         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6439         "cmp -s", not "cmp > /dev/null".
6440
6441 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6442
6443         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6444
6445         It's not just Automake versions < 1.9b that creates an empty
6446         pkgdatadir at installation time if pkgdata_DATA is specified
6447         to empty; modern automake versions do this as well, at least
6448         until automake 1.11.4 (not yet released at the moment of writing,
6449         but soon to appear).  That behaviour was generally considered a
6450         feature rather than a bug, at least until this discussion:
6451         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6452
6453         See also automake bugs #10997 and #11030.
6454
6455         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6456         reference to relevant automake bug numbers.
6457         (func_emit_tests_Makefile_am): Likewise.
6458
6459 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6460
6461         announce-gen: use Digest::SHA when possible
6462         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6463         back to Digest::SHA1 if necessary.
6464
6465 2012-03-20  Jim Meyering  <meyering@redhat.com>
6466
6467         tests: avoid gcc warnings about argv vs. const initializers
6468         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6469         warnings about discarding 'const' qualifier from pointer target type.
6470         * tests/test-posix_spawn2.c (main): Likewise.
6471
6472 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6473
6474         README-release: simplify slightly
6475         * top/README-release: Run "git checkout master" only once.
6476
6477 2012-03-15  Mark Wielaard  <mark@klomp.org>
6478
6479         git-merge-changelog: add specific example on how to use with hg.
6480         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6481
6482 2012-03-18  Mark Wielaard  <mark@klomp.org>
6483
6484         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6485
6486 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6487
6488         git-version-gen: don't let "prefix" envvar cause trouble
6489         * build-aux/git-version-gen (prefix): Initialize properly,
6490         so as not to use a value specified via the environment.
6491         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6492
6493 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6494
6495         regex: diagnose too-large repeat counts in EREs
6496         Previously, the code did not diagnose the too-large repeat count
6497         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6498         as if it were 'b\{1000000000}', which is unexpected.
6499         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6500         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6501         is a reasonable one for this problem.  Another option would be to
6502         create a new REG_OVERFLOW error for repeat counts that are too large.
6503         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6504         count is too large, so that the caller can distinguish the two cases.
6505         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6506         "Too large" return code, and that repeat counts are one example of this.
6507
6508 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6509
6510         doc: some glibc x32 integer width issues
6511         * doc/posix-headers/sys_types.texi (sys/types.h):
6512         * doc/posix-headers/time.texi (time.h):
6513         Mention that glibc x32 does not conform to POSIX in a couple of
6514         areas related to integer widths.
6515
6516 2012-03-15  Bruno Haible  <bruno@clisp.org>
6517
6518         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6519         * lib/fma.c (VOLATILE): New macro.
6520         (FUNC): Use it to work around a GCC compiler bug.
6521
6522 2012-03-13  Bruno Haible  <bruno@clisp.org>
6523
6524         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6525         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6526         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6527         REPLACE_HYPOTL to 1.
6528         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6529
6530 2012-03-13  Bruno Haible  <bruno@clisp.org>
6531
6532         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6533         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6534         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6535         REPLACE_REMAINDERL to 1.
6536         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6537         bug.
6538
6539 2012-03-13  Bruno Haible  <bruno@clisp.org>
6540
6541         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6542         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6543         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6544         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6545         too big rounding errors.
6546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6547         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6548         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6549         (Depends-on): Update conditions.
6550         * tests/test-sqrtl.c (my_ldexpl): New function.
6551         (main): Add test of a particular value.
6552         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6553
6554 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6555
6556         doc: Update timer_* platform portability notes.
6557         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6558         that always return ENOSYS.
6559         * doc/posix-functions/timer_delete.texi: Likewise.
6560         * doc/posix-functions/timer_gettime.texi: Likewise.
6561         * doc/posix-functions/timer_settime.texi: Likewise.
6562
6563 2012-03-13  Bruno Haible  <bruno@clisp.org>
6564
6565         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6566         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6567         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6568         REPLACE_CBRTL to 1.
6569         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6570
6571 2012-03-13  Bruno Haible  <bruno@clisp.org>
6572
6573         remainderl: Avoid compilation error on AIX >= 5.2.
6574         * lib/math.in.h (remainderl): Undefine macro from the system header.
6575
6576 2012-03-13  Bruno Haible  <bruno@clisp.org>
6577
6578         Avoid compilation errors with MSVC option -fp:strict.
6579         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6580         * lib/cbrtf.c: Likewise.
6581         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6582
6583 2012-03-12  Bruno Haible  <bruno@clisp.org>
6584
6585         uninorm: Don't crash in out-of-memory conditions.
6586         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6587         gracefully.
6588         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6589         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6590
6591 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6592
6593         quote: fix syntax-check
6594         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6595         also exports quote_quoting_options.
6596
6597 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6598
6599         Collapse list of copyright years to ranges.  See
6600         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6601         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6602         build-aux/csharpexec.sh.in, build-aux/gnupload,
6603         build-aux/install-reloc, build-aux/javacomp.sh.in,
6604         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6605         build-aux/move-if-change, build-aux/reloc-ldflags,
6606         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6607
6608 2012-03-11  Bruno Haible  <bruno@clisp.org>
6609
6610         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6611         * m4/log2f-ieee.m4: New file.
6612         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6613         whether log2f works with a minus zero argument. Replace it if not.
6614         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6615         (Depends-on): Add log2-ieee.
6616         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6617         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6618
6619         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6620         * m4/log2-ieee.m4: New file.
6621         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6622         whether log2 works with a minus zero argument. Replace it if not.
6623         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6624         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6625         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6626
6627         Tests for module 'log2l-ieee'.
6628         * modules/log2l-ieee-tests: New file.
6629         * tests/test-log2l-ieee.c: New file.
6630
6631         New module 'log2l-ieee'.
6632         * modules/log2l-ieee: New file.
6633
6634         Tests for module 'log2-ieee'.
6635         * modules/log2-ieee-tests: New file.
6636         * tests/test-log2-ieee.c: New file.
6637
6638         New module 'log2-ieee'.
6639         * modules/log2-ieee: New file.
6640
6641         Tests for module 'log2f-ieee'.
6642         * modules/log2f-ieee-tests: New file.
6643         * tests/test-log2f-ieee.c: New file.
6644         * tests/test-log2-ieee.h: New file.
6645
6646         New module 'log2f-ieee'.
6647         * modules/log2f-ieee: New file.
6648
6649 2012-03-11  Bruno Haible  <bruno@clisp.org>
6650
6651         Tests for module 'log2l'.
6652         * modules/log2l-tests: New file.
6653         * tests/test-log2l.c: New file.
6654
6655         New module 'log2l'.
6656         * lib/math.in.h (log2l): New declaration.
6657         * lib/log2l.c: New file.
6658         * m4/log2l.m4: New file.
6659         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6661         REPLACE_LOG2L.
6662         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6663         REPLACE_LOG2L.
6664         * modules/log2l: New file.
6665         * tests/test-math-c++.cc: Check the declaration of log2l.
6666         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6667         and OSF/1 problems.
6668
6669 2012-03-11  Bruno Haible  <bruno@clisp.org>
6670
6671         Tests for module 'log2f'.
6672         * modules/log2f-tests: New file.
6673         * tests/test-log2f.c: New file.
6674
6675         New module 'log2f'.
6676         * lib/math.in.h (log2f): New declaration.
6677         * lib/log2f.c: New file.
6678         * m4/log2f.m4: New file.
6679         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6681         REPLACE_LOG2F.
6682         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6683         REPLACE_LOG2F.
6684         * modules/log2f: New file.
6685         * tests/test-math-c++.cc: Check the declaration of log2f.
6686         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6687         and OSF/1 and Cygwin problems.
6688
6689 2012-03-11  Bruno Haible  <bruno@clisp.org>
6690
6691         Tests for module 'log2'.
6692         * modules/log2-tests: New file.
6693         * tests/test-log2.c: New file.
6694         * tests/test-log2.h: New file.
6695
6696         New module 'log2'.
6697         * lib/math.in.h (log2): New declaration.
6698         * lib/log2.c: New file.
6699         * m4/log2.m4: New file.
6700         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6702         REPLACE_LOG2.
6703         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6704         REPLACE_LOG2.
6705         * modules/log2: New file.
6706         * tests/test-math-c++.cc: Check the declaration of log2.
6707         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6708         and OSF/1 and Cygwin problems.
6709
6710 2012-03-11  Bruno Haible  <bruno@clisp.org>
6711
6712         exp2* tests: More tests.
6713         * tests/test-exp2.h (test_function): Test all integral arguments that
6714         don't need to overflow or denormalized numbers.
6715         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6716         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6717         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6718
6719 2012-03-10  Bruno Haible  <bruno@clisp.org>
6720
6721         log1pl-ieee: Work around test failure on AIX 7.1.
6722         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6723
6724         log1pl-ieee: Work around test failure on IRIX 6.5.
6725         * m4/log1pl-ieee.m4: New file.
6726         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6727         test whether log1pl works with a minus zero argument. Replace it if
6728         not.
6729         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6731         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6732         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6733         (Depends-on): Update conditions.
6734         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6735         m4/signbit.m4.
6736         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6737         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6738
6739         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6740         * m4/log1pf-ieee.m4: New file.
6741         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6742         test whether log1pf works with a minus zero argument. Replace it if
6743         not.
6744         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6745         m4/signbit.m4.
6746         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6747         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6748
6749         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6750         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6751         (configure.ac): Require gl_FUNC_LOG1PF.
6752
6753         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6754         * m4/log1p-ieee.m4: New file.
6755         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6756         whether log1p works with a minus zero argument. Replace it if not.
6757         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6759         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6760         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6761         (Depends-on): Update conditions.
6762         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6763         m4/signbit.m4.
6764         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6765         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6766
6767         Tests for module 'log1pl-ieee'.
6768         * modules/log1pl-ieee-tests: New file.
6769         * tests/test-log1pl-ieee.c: New file.
6770
6771         New module 'log1pl-ieee'.
6772         * modules/log1pl-ieee: New file.
6773
6774         Tests for module 'log1p-ieee'.
6775         * modules/log1p-ieee-tests: New file.
6776         * tests/test-log1p-ieee.c: New file.
6777
6778         New module 'log1p-ieee'.
6779         * modules/log1p-ieee: New file.
6780
6781         Tests for module 'log1pf-ieee'.
6782         * modules/log1pf-ieee-tests: New file.
6783         * tests/test-log1pf-ieee.c: New file.
6784         * tests/test-log1p-ieee.h: New file.
6785
6786         New module 'log1pf-ieee'.
6787         * modules/log1pf-ieee: New file.
6788
6789 2012-03-10  Bruno Haible  <bruno@clisp.org>
6790
6791         Tests for module 'log1pl'.
6792         * modules/log1pl-tests: New file.
6793         * tests/test-log1pl.c: New file.
6794
6795         New module 'log1pl'.
6796         * lib/math.in.h (log1pl): New declaration.
6797         * lib/log1pl.c: New file.
6798         * m4/log1pl.m4: New file.
6799         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6801         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6802         * modules/log1pl: New file.
6803         * tests/test-math-c++.cc: Check the declaration of log1pl.
6804         * doc/posix-functions/log1pl.texi: Mention the new module.
6805
6806 2012-03-10  Bruno Haible  <bruno@clisp.org>
6807
6808         Tests for module 'log1pf'.
6809         * modules/log1pf-tests: New file.
6810         * tests/test-log1pf.c: New file.
6811
6812         New module 'log1pf'.
6813         * lib/math.in.h (log1pf): New declaration.
6814         * lib/log1pf.c: New file.
6815         * m4/log1pf.m4: New file.
6816         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6818         REPLACE_LOG1PF.
6819         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6820         REPLACE_LOG1PF.
6821         * modules/log1pf: New file.
6822         * tests/test-math-c++.cc: Check the declaration of log1pf.
6823         * doc/posix-functions/log1pf.texi: Mention the new module.
6824
6825 2012-03-10  Bruno Haible  <bruno@clisp.org>
6826
6827         log1p tests: More tests.
6828         * tests/test-log1p.h: New file.
6829         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6830         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6831         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6832         (main): Invoke test_function.
6833
6834         log1p: Provide replacement for Minix and MSVC.
6835         * lib/math.in.h (log1p): New declaration.
6836         * lib/log1p.c: New file.
6837         * m4/log1p.m4: New file.
6838         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6840         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6841         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6842         (Depends-on): Add math, isnand, log, round.
6843         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6844         HAVE_LOG1P is 0.
6845         * tests/test-math-c++.cc: Check the declaration of log1p.
6846         * doc/posix-functions/log1p.texi: Mention the replacement.
6847
6848 2012-03-10  Bruno Haible  <bruno@clisp.org>
6849
6850         math tests: Small simplification.
6851         * tests/test-exp.h (test_function): Use the same err_bound for
6852         'double' on platforms with sizeof (long double) == sizeof (double)
6853         than on platforms with sizeof (long double) > sizeof (double).
6854         * tests/test-exp2.h (test_function): Likewise.
6855         * tests/test-expm1.h (test_function): Likewise.
6856         * tests/test-log.h (test_function): Likewise.
6857
6858 2012-03-10  Bruno Haible  <bruno@clisp.org>
6859
6860         Fix some comments.
6861         * lib/expl.c: Fix an ambiguous comment.
6862         * lib/expm1.c: Likewise.
6863         * lib/expm1l.c: Likewise.
6864         * lib/exp2.c: Likewise.
6865         * lib/exp2l.c: Likewise.
6866
6867 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6868
6869         regex: allow inclusion of <regex.h> before <limits.h>
6870         Without this patch, portable programs had to include <limits.h> before
6871         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6872         I ran into this problem with a test version of GNU grep on Solaris 8.
6873         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6874         This is done conditionally so that this change can be merged
6875         back to glibc.
6876         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6877         using the included regex.
6878
6879         fts: depend on fdopendir
6880         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6881         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6882         problem was introduced when fdopendir was split out.
6883
6884 2012-03-10  Bruno Haible  <bruno@clisp.org>
6885
6886         Remove unused variables.
6887         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6888         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6889
6890 2012-03-10  Bruno Haible  <bruno@clisp.org>
6891
6892         isnanf-nolibm: Fix last commit.
6893         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6894
6895         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6896         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6897
6898 2012-03-10  Bruno Haible  <bruno@clisp.org>
6899
6900         logf-ieee: Work around test failure on NetBSD 5.1.
6901         * m4/logf-ieee.m4: New file.
6902         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6903         whether logf works with a negative argument. Replace it if not.
6904         * lib/logf.c (logf): For negative arguments, return NaN.
6905         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6906         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6907         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6908
6909         logf-ieee: Work around test failure on Solaris 9.
6910         * modules/logf-ieee (Depends-on): Add log-ieee.
6911         (configure.ac): Require gl_FUNC_LOGF.
6912
6913         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6914         * m4/log-ieee.m4: New file.
6915         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6916         log works with a negative argument. Replace it if not.
6917         * lib/log.c (log): For negative arguments, return NaN.
6918         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6919         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6920         * doc/posix-functions/log.texi: Mention the log-ieee module.
6921
6922         Tests for module 'logl-ieee'.
6923         * modules/logl-ieee-tests: New file.
6924         * tests/test-logl-ieee.c: New file.
6925
6926         New module 'logl-ieee'.
6927         * modules/logl-ieee: New file.
6928
6929         Tests for module 'log-ieee'.
6930         * modules/log-ieee-tests: New file.
6931         * tests/test-log-ieee.c: New file.
6932
6933         New module 'log-ieee'.
6934         * modules/log-ieee: New file.
6935
6936         Tests for module 'logf-ieee'.
6937         * modules/logf-ieee-tests: New file.
6938         * tests/test-logf-ieee.c: New file.
6939         * tests/test-log-ieee.h: New file.
6940
6941         New module 'logf-ieee'.
6942         * modules/logf-ieee: New file.
6943
6944 2012-03-10  Bruno Haible  <bruno@clisp.org>
6945
6946         log: Fix bug introduced on 2012-03-09.
6947         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6948
6949 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6950
6951         timer-time: link explicitly with pthreads on glibc
6952         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6953         to support static linking, when newer glibc is
6954         detected, as that contains pthread emulation of
6955         POSIX timer functions where required.
6956         * modules/timer-time: Depend on threadlib to
6957         pull in the appropriate library to link.
6958
6959 2012-03-10  Bruno Haible  <bruno@clisp.org>
6960
6961         log* tests: More tests.
6962         * tests/test-log.h: New file.
6963         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6964         (main): Invoke test_function.
6965         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6966         (main): Invoke test_function.
6967         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6968         (main): Invoke test_function.
6969         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6970         tests/randomd.c.
6971         (Makefile.am): Add randomd.c to test_log_SOURCES.
6972         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6973         tests/randomf.c.
6974         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6975         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6976         tests/randoml.c.
6977         (Depends-on): Add 'float'.
6978         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6979
6980 2012-03-09  Bruno Haible  <bruno@clisp.org>
6981
6982         logl: Work around OSF/1 5.1 bug.
6983         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6984         * lib/logl.c (logl): If logl exists, use it and provide just the
6985         workaround.
6986         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6987         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6989         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6990         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6991         (Depends-on): Update conditions.
6992         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6993
6994 2012-03-09  Bruno Haible  <bruno@clisp.org>
6995
6996         logf: Work around OSF/1 5.1 bug.
6997         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6998         * lib/logf.c (logf): If logf exists, use it and provide just the
6999         workaround.
7000         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7001         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7003         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7004         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7005         (Depends-on): Update conditions.
7006         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7007
7008 2012-03-09  Bruno Haible  <bruno@clisp.org>
7009
7010         log: Work around OSF/1 5.1 bug.
7011         * lib/math.in.h (log): New declaration.
7012         * lib/log.c: New file.
7013         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7014         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7015         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7017         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7018         * modules/log (Files): Add lib/log.c.
7019         (Depends-on): Add math.
7020         (configure.ac): If REPLACE_LOG is 1, compile an override.
7021         * tests/test-math-c++.cc: Check the declaration of log.
7022         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7023
7024 2012-03-09  Jim Meyering  <meyering@redhat.com>
7025
7026         readtokens.c: adjust wording in a comment
7027         * lib/readtokens.c: Insert omitted "that" in a comment.
7028
7029 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7030
7031         modechange: add notations +40, 00440, etc.
7032         * lib/modechange.c (mode_compile): Support new notations
7033         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7034
7035 2012-03-08  Bruno Haible  <bruno@clisp.org>
7036
7037         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7038         * m4/exp2l-ieee.m4: New file.
7039         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7040         test whether exp2l works with a NaN argument and with a negative
7041         infinity argument. Replace it if not.
7042         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7044         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7045         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7046         (Depends-on): Update conditions.
7047         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7048         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7049         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7050
7051         Tests for module 'exp2l-ieee'.
7052         * modules/exp2l-ieee-tests: New file.
7053         * tests/test-exp2l-ieee.c: New file.
7054
7055         New module 'exp2l-ieee'.
7056         * modules/exp2l-ieee: New file.
7057
7058         Tests for module 'exp2-ieee'.
7059         * modules/exp2-ieee-tests: New file.
7060         * tests/test-exp2-ieee.c: New file.
7061
7062         New module 'exp2-ieee'.
7063         * modules/exp2-ieee: New file.
7064
7065         Tests for module 'exp2f-ieee'.
7066         * modules/exp2f-ieee-tests: New file.
7067         * tests/test-exp2f-ieee.c: New file.
7068         * tests/test-exp2-ieee.h: New file.
7069
7070         New module 'exp2f-ieee'.
7071         * modules/exp2f-ieee: New file.
7072
7073 2012-03-08  Bruno Haible  <bruno@clisp.org>
7074
7075         Tests for module 'exp2l'.
7076         * modules/exp2l-tests: New file.
7077         * tests/test-exp2l.c: New file.
7078
7079         New module 'exp2l'.
7080         * lib/math.in.h (exp2l): New declaration.
7081         * lib/exp2l.c: New file.
7082         * lib/expl-table.c: New file, extracted from lib/expl.c.
7083         * lib/expl.c (gl_expl_table): New declaration.
7084         (expl): Remove expl_table. Update reference.
7085         * m4/exp2l.m4: New file.
7086         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7088         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7089         * modules/exp2l: New file.
7090         * modules/expl (Files): Add lib/expl-table.c.
7091         (configure.ac): Compile also expl-table.c.
7092         * tests/test-math-c++.cc: Check the declaration of exp2l.
7093         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7094         problem.
7095
7096 2012-03-08  Bruno Haible  <bruno@clisp.org>
7097
7098         Tests for module 'exp2f'.
7099         * modules/exp2f-tests: New file.
7100         * tests/test-exp2f.c: New file.
7101
7102         New module 'exp2f'.
7103         * lib/math.in.h (exp2f): New declaration.
7104         * lib/exp2f.c: New file.
7105         * m4/exp2f.m4: New file.
7106         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7108         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7109         * modules/exp2f: New file.
7110         * tests/test-math-c++.cc: Check the declaration of exp2f.
7111         * doc/posix-functions/exp2f.texi: Mention the new module and the
7112         IRIX problem.
7113
7114 2012-03-08  Bruno Haible  <bruno@clisp.org>
7115
7116         Tests for module 'exp2'.
7117         * modules/exp2-tests: New file.
7118         * tests/test-exp2.c: New file.
7119         * tests/test-exp2.h: New file.
7120
7121         New module 'exp2'.
7122         * lib/math.in.h (exp2): New declaration.
7123         * lib/exp2.c: New file.
7124         * m4/exp2.m4: New file.
7125         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7127         REPLACE_EXP2.
7128         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7129         REPLACE_EXP2.
7130         * modules/exp2: New file.
7131         * tests/test-math-c++.cc: Check the declaration of exp2.
7132         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7133         and OpenBSD problems.
7134
7135 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7136
7137         savedir: fix comment typo
7138         * lib/savedir.c (savedirstream): Fix typo in comment.
7139
7140 2012-03-08  Bruno Haible  <bruno@clisp.org>
7141
7142         test-readtokens.c: use const; remove unwarranted cast
7143         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7144
7145 2012-03-08  Bruno Haible  <bruno@clisp.org>
7146
7147         fmal: Avoid compilation error on AIX.
7148         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7149         AIX 5.2..7.1.
7150
7151 2012-03-08  Bruno Haible  <bruno@clisp.org>
7152
7153         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7154         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7155         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7156         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7157         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7158         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7159         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7160
7161 2012-03-08  Bruno Haible  <bruno@clisp.org>
7162
7163         remainderf: Override buggy system function on IRIX 6.5.
7164         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7165         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7166         when it exists.
7167         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7168
7169 2012-03-08  Jim Meyering  <meyering@redhat.com>
7170
7171         test-readtokens.c: avoid const-related compilation warnings
7172         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7173
7174 2012-03-07  Jim Meyering  <meyering@redhat.com>
7175             Bruno Haible  <bruno@clisp.org>
7176
7177         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7178         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7179         tests/randomd.c.
7180         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7181         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7182         tests/randoml.c.
7183         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7184
7185 2012-03-07  Bruno Haible  <bruno@clisp.org>
7186
7187         expm1l: Avoid compilation error on AIX.
7188         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7189         AIX 5.2..7.1.
7190
7191 2012-03-07  Bruno Haible  <bruno@clisp.org>
7192
7193         expm1l: Don't override undeclared system function on IRIX 6.5.
7194         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7195         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7196         it exists. Set HAVE_DECL_EXPM1L.
7197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7198         HAVE_EXPM1L.
7199         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7200         HAVE_EXPM1L.
7201         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7202
7203 2012-03-07  Bruno Haible  <bruno@clisp.org>
7204
7205         remainderl: Don't override undeclared system function on IRIX 6.5.
7206         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7207         HAVE_REMAINDERL.
7208         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7209         declared when it exists. Set HAVE_DECL_REMAINDERL.
7210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7211         not HAVE_REMAINDERL.
7212         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7213         HAVE_REMAINDERL.
7214         * doc/posix-functions/remainderl.texi: Mention missing declaration
7215         problem.
7216
7217 2012-03-07  Bruno Haible  <bruno@clisp.org>
7218
7219         rintf: Don't override undeclared system function on IRIX 6.5.
7220         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7221         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7222         exists. Set HAVE_DECL_RINTF.
7223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7224         HAVE_RINTF.
7225         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7226         HAVE_RINTF.
7227         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7228
7229 2012-03-07  Bruno Haible  <bruno@clisp.org>
7230
7231         roundl: Avoid compilation error on AIX.
7232         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7233         AIX 5.2..7.1.
7234
7235 2012-03-07  Bruno Haible  <bruno@clisp.org>
7236
7237         roundl: Don't override undeclared system function on IRIX 6.5.
7238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7239         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7240         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7241         * modules/roundl (configure.ac): For replacement code, test
7242         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7243         (Depends-on): Update conditions.
7244         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7245
7246 2012-03-07  Bruno Haible  <bruno@clisp.org>
7247
7248         roundf: Don't override undeclared system function on IRIX 6.5.
7249         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7250         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7251         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7252         * modules/roundf (configure.ac): For replacement code, test
7253         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7254         (Depends-on): Update conditions.
7255         * modules/roundf-ieee (Depends-on): Update conditions.
7256         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7257
7258 2012-03-07  Bruno Haible  <bruno@clisp.org>
7259
7260         round: Don't override undeclared system function on IRIX 6.5.
7261         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7262         argument.
7263         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7264         also when it is not declared. Set HAVE_ROUND. For replacement code,
7265         test HAVE_ROUND, not HAVE_DECL_ROUND.
7266         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7267         not HAVE_DECL_ROUND.
7268         (Depends-on): Update conditions.
7269         * modules/round-ieee (Depends-on): Update conditions.
7270         * doc/posix-functions/round.texi: Mention the IRIX problem.
7271
7272 2012-03-07  Bruno Haible  <bruno@clisp.org>
7273
7274         copysignf: Don't override undeclared system function on IRIX 6.5.
7275         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7276         HAVE_COPYSIGNF.
7277         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7278         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7280         not HAVE_COPYSIGNF.
7281         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7282         HAVE_COPYSIGNF.
7283         * doc/posix-functions/copysignf.texi: Mention missing declaration
7284         problem.
7285
7286 2012-03-07  Jim Meyering  <meyering@redhat.com>
7287
7288         readtokens: add tests
7289         * modules/readtokens-tests: New file.
7290         * tests/test-readtokens.c: New file.
7291
7292 2012-03-07  Jim Meyering  <meyering@redhat.com>
7293
7294         quotearg: the module must now include quote.h
7295         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7296         So must the module.
7297         * modules/quotearg (Files): Add quote.h.
7298
7299 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7300
7301         readtokens: avoid core dumps with unusual calling patterns
7302         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7303         * lib/readtokens.c: Include limits.h.
7304         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7305         (readtoken): Don't cache the delimiters; the cache code was buggy
7306         if !delim && saved_delim, or if the new n_delim differs from the old.
7307         Also, it wasn't thread-safe.
7308
7309 2012-03-07  Bruno Haible  <bruno@clisp.org>
7310
7311         quote: Adhere to common module description layout.
7312         * modules/quote (Makefile.am): Add back empty section.
7313
7314 2012-03-06  Akim Demaille  <demaille@gostai.com>
7315
7316         quote: fuse into quotearg
7317         This patch is made for the benefit of Bison.
7318         quote does not leave the choice of the quoting style to the user.
7319         quoting_style provides poor customizability, yet quoting_options,
7320         which is very rich, is hidden inside quotearg.c.  So in order to
7321         allow quote customization, move its implementation to quotearg.c.
7322         * lib/quote.c: Remove.
7323         * modules/quote: Adjust.
7324         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7325         warning: provide all the members of literal structs.
7326         (quote_quoting_options): New.
7327         (quote, quote_n): Import implementation from quote.c.
7328         * lib/quote.h: Import the comments from quote.c.
7329         (quote_quoting_options): New.
7330
7331 2012-03-06  Bruno Haible  <bruno@clisp.org>
7332
7333         Tests for module 'expm1l-ieee'.
7334         * modules/expm1l-ieee-tests: New file.
7335         * tests/test-expm1l-ieee.c: New file.
7336
7337         New module 'expm1l-ieee'.
7338         * modules/expm1l-ieee: New file.
7339
7340         Tests for module 'expm1f-ieee'.
7341         * modules/expm1f-ieee-tests: New file.
7342         * tests/test-expm1f-ieee.c: New file.
7343
7344         New module 'expm1f-ieee'.
7345         * modules/expm1f-ieee: New file.
7346
7347         Tests for module 'expm1-ieee'.
7348         * modules/expm1-ieee-tests: New file.
7349         * tests/test-expm1-ieee.c: New file.
7350         * tests/test-expm1-ieee.h: New file.
7351
7352         New module 'expm1-ieee'.
7353         * modules/expm1-ieee: New file.
7354         * m4/expm1-ieee.m4: New file.
7355         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7356         whether expm1 works with a minus zero argument. Replace it if not.
7357         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7359         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7360         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7361         (Depends-on): Update conditions.
7362         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7363         AIX problem.
7364
7365 2012-03-06  Bruno Haible  <bruno@clisp.org>
7366
7367         Work around expm1f bug on IRIX 6.5.
7368         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7369         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7370         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7371         not work.
7372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7373         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7374         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7375         (Depends-on): Update conditions.
7376         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7377
7378 2012-03-06  Bruno Haible  <bruno@clisp.org>
7379
7380         Tests for module 'expm1l'.
7381         * modules/expm1l-tests: New file.
7382         * tests/test-expm1l.c: New file.
7383
7384         New module 'expm1l'.
7385         * lib/math.in.h (expm1l): New declaration.
7386         * lib/expm1l.c: New file.
7387         * m4/expm1l.m4: New file.
7388         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7390         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7391         * modules/expm1l: New file.
7392         * tests/test-math-c++.cc: Check the declaration of expm1l.
7393         * doc/posix-functions/expm1l.texi: Mention the new module.
7394
7395 2012-03-06  Bruno Haible  <bruno@clisp.org>
7396
7397         Tests for module 'expm1f'.
7398         * modules/expm1f-tests: New file.
7399         * tests/test-expm1f.c: New file.
7400
7401         New module 'expm1f'.
7402         * lib/math.in.h (expm1f): New declaration.
7403         * lib/expm1f.c: New file.
7404         * m4/expm1f.m4: New file.
7405         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7407         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7408         * modules/expm1f: New file.
7409         * tests/test-math-c++.cc: Check the declaration of expm1f.
7410         * doc/posix-functions/expm1f.texi: Mention the new module.
7411
7412 2012-03-06  Bruno Haible  <bruno@clisp.org>
7413
7414         Tests for module 'expm1'.
7415         * modules/expm1-tests: New file.
7416         * tests/test-expm1.c: New file.
7417         * tests/test-expm1.h: New file.
7418
7419         New module 'expm1'.
7420         * lib/math.in.h (expm1): New declaration.
7421         * lib/expm1.c: New file.
7422         * m4/expm1.m4: New file.
7423         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7425         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7426         * modules/expm1: New file.
7427         * tests/test-math-c++.cc: Check the declaration of expm1.
7428         * doc/posix-functions/expm1.texi: Mention the new module.
7429
7430 2012-03-06  Bruno Haible  <bruno@clisp.org>
7431
7432         math: Ensure declarations of math functions.
7433         * modules/acosf (Depends-on): Add 'extensions'.
7434         * modules/asinf (Depends-on): Likewise.
7435         * modules/atan2f (Depends-on): Likewise.
7436         * modules/atanf (Depends-on): Likewise.
7437         * modules/cbrt (Depends-on): Likewise.
7438         * modules/cbrtf (Depends-on): Likewise.
7439         * modules/cbrtl (Depends-on): Likewise.
7440         * modules/copysignf (Depends-on): Likewise.
7441         * modules/copysignl (Depends-on): Likewise.
7442         * modules/cosf (Depends-on): Likewise.
7443         * modules/coshf (Depends-on): Likewise.
7444         * modules/expf (Depends-on): Likewise.
7445         * modules/fabsf (Depends-on): Likewise.
7446         * modules/fabsl (Depends-on): Likewise.
7447         * modules/fmaf (Depends-on): Likewise.
7448         * modules/fmal (Depends-on): Likewise.
7449         * modules/fmodf (Depends-on): Likewise.
7450         * modules/fmodl (Depends-on): Likewise.
7451         * modules/frexpf (Depends-on): Likewise.
7452         * modules/frexpl (Depends-on): Likewise.
7453         * modules/hypot (Depends-on): Likewise.
7454         * modules/hypotf (Depends-on): Likewise.
7455         * modules/hypotl (Depends-on): Likewise.
7456         * modules/ldexpf (Depends-on): Likewise.
7457         * modules/ldexpl (Depends-on): Likewise.
7458         * modules/log10f (Depends-on): Likewise.
7459         * modules/log10l (Depends-on): Likewise.
7460         * modules/log1p (Depends-on): Likewise.
7461         * modules/logb (Depends-on): Likewise.
7462         * modules/logf (Depends-on): Likewise.
7463         * modules/modff (Depends-on): Likewise.
7464         * modules/modfl (Depends-on): Likewise.
7465         * modules/powf (Depends-on): Likewise.
7466         * modules/remainderf (Depends-on): Likewise.
7467         * modules/remainderl (Depends-on): Likewise.
7468         * modules/rintf (Depends-on): Likewise.
7469         * modules/rintl (Depends-on): Likewise.
7470         * modules/sinf (Depends-on): Likewise.
7471         * modules/sinhf (Depends-on): Likewise.
7472         * modules/sqrtf (Depends-on): Likewise.
7473         * modules/tanf (Depends-on): Likewise.
7474         * modules/tanhf (Depends-on): Likewise.
7475         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7476         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7477         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7478         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7479         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7480         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7481         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7482         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7483         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7484         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7485         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7486         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7487         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7488         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7489         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7490         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7491         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7492         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7493         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7494         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7495         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7496         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7497         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7498         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7500         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7501         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7502         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7503         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7504         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7505         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7506         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7507         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7508         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7509         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7510         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7511         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7512         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7513         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7514         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7515         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7516
7517 2012-03-06  Bruno Haible  <bruno@clisp.org>
7518
7519         math: Update module names in warnings.
7520         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7521         tanl): Use specific module name in warn-on-use warning.
7522
7523 2012-03-06  Bruno Haible  <bruno@clisp.org>
7524
7525         expl: Simplify computation.
7526         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7527
7528 2012-03-05  Bruno Haible  <bruno@clisp.org>
7529
7530         exp* tests: More tests.
7531         * tests/test-exp.h: New file.
7532         * tests/test-exp.c: Include <float.h> and test-exp.h.
7533         (main): Invoke test_function.
7534         * tests/test-expf.c: Include <float.h> and test-exp.h.
7535         (main): Invoke test_function.
7536         * tests/test-expl.c: Include <float.h> and test-exp.h.
7537         (main): Invoke test_function.
7538         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7539         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7540         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7541         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7542         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7543         (Depends-on): Add 'float'.
7544         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7545
7546         expl: Fix precision of computed result.
7547         * lib/expl.c: Completely rewritten.
7548         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7549         (Maintainer): Add me.
7550         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7551
7552 2012-03-05  Bruno Haible  <bruno@clisp.org>
7553
7554         cbrt* tests: More tests.
7555         * tests/test-cbrt.h: New file.
7556         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7557         (main): Invoke test_function.
7558         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7559         (main): Invoke test_function.
7560         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7561         (main): Invoke test_function.
7562         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7563         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7564         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7565         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7566         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7567         (Depends-on): Add 'float'.
7568         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7569
7570 2012-03-05  Bruno Haible  <bruno@clisp.org>
7571
7572         hypot* tests: More tests.
7573         * tests/test-hypot.h: New file, partially extracted from
7574         tests/test-hypotl.c.
7575         * tests/test-hypot.c: Include test-hypot.h.
7576         (main): Invoke test_function.
7577         * tests/test-hypotf.c: Include test-hypot.h.
7578         (main): Invoke test_function.
7579         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7580         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7581         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7582         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7583         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7584         tests/randomf.c.
7585         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7586         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7587         tests/randoml.c.
7588         (Depends-on): Add 'fpucw', 'float'.
7589         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7590
7591 2012-03-05  Bruno Haible  <bruno@clisp.org>
7592
7593         fpucw: Doc about FreeBSD.
7594         * lib/fpucw.h: Mention FreeBSD in comments.
7595
7596 2012-03-04  Bruno Haible  <bruno@clisp.org>
7597
7598         sqrt* tests: More tests.
7599         * tests/test-sqrt.h: New file.
7600         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7601         (main): Invoke test_function.
7602         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7603         (main): Invoke test_function.
7604         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7605         (main): Invoke test_function.
7606         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7607         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7608         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7609         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7610         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7611         (Depends-on): Add 'float'.
7612         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7613
7614 2012-03-04  Bruno Haible  <bruno@clisp.org>
7615
7616         remainder* tests: More tests.
7617         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7618         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7619         (main): Invoke test_function.
7620         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7621         (main): Invoke test_function.
7622         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7623         (main): Invoke test_function.
7624         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7625         tests/randomd.c.
7626         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7627         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7628         tests/randomf.c.
7629         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7630         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7631         tests/randoml.c.
7632         (Depends-on): Add 'float'.
7633         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7634
7635 2012-03-04  Bruno Haible  <bruno@clisp.org>
7636
7637         remainder, remainderf, remainderl: Fix computation for large quotients.
7638         * lib/remainder.c: Completely rewritten.
7639         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7640         USE_FLOAT.
7641         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7642         USE_LONG_DOUBLE.
7643         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7644         isnand, isinf. Remove round, fma.
7645         * modules/remainderf (Files): Add lib/remainder.c.
7646         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7647         Remove roundf, fmaf.
7648         * modules/remainderl (Files): Add lib/remainder.c.
7649         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7650         isinf. Remove roundl, fmal.
7651         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7652         REMAINDER_LIBM.
7653         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7654         REMAINDERF_LIBM.
7655         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7656         REMAINDERL_LIBM.
7657
7658 2012-03-04  Bruno Haible  <bruno@clisp.org>
7659
7660         fmod* tests: More tests.
7661         * tests/test-fmod.h (my_ldexp): New function.
7662         (test_function): Reduce amount of random numbers to test. Add tests
7663         of very large quotients x / y.
7664         * tests/test-fmod.c (MAX_EXP): New macro.
7665         * tests/test-fmodf.c (MAX_EXP): Likewise.
7666         * tests/test-fmodl.c (MAX_EXP): Likewise.
7667
7668 2012-03-04  Bruno Haible  <bruno@clisp.org>
7669
7670         fmod, fmodl: Fix computation for large quotients x / y.
7671         * lib/fmod.c: Completely rewritten.
7672         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7673         USE_LONG_DOUBLE.
7674         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7675         isnand. Remove fma.
7676         * modules/fmodl (Files): Add lib/fmod.c.
7677         (Depends-on): Add float, isfinite, signbit, fabsl,
7678         frexpl, ldexpl, isnanl. Remove fma.
7679         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7680         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7681
7682 2012-03-03  Bruno Haible  <bruno@clisp.org>
7683
7684         fmod* tests: More tests.
7685         * tests/test-fmod.h: New file.
7686         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7687         (main): Invoke test_function.
7688         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7689         (main): Invoke test_function.
7690         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7691         (main): Invoke test_function.
7692         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7693         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7694         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7695         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7696         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7697         (Depends-on): Add 'float'.
7698         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7699
7700 2012-03-03  Bruno Haible  <bruno@clisp.org>
7701
7702         rint* tests: More tests.
7703         * tests/test-rint.h: New file, partially extracted from
7704         tests/test-rintl.c.
7705         * tests/test-rint.c: Include test-rint.h.
7706         (main): Invoke test_function.
7707         * tests/test-rintf.c: Include test-rint.h.
7708         (main): Invoke test_function.
7709         * tests/test-rintl.c: Include test-rint.h.
7710         (main): Invoke test_function.
7711         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7712         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7713         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7714         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7715         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7716         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7717
7718 2012-03-03  Bruno Haible  <bruno@clisp.org>
7719
7720         modf* tests: More tests.
7721         * tests/test-modf.h: New file.
7722         * tests/test-modf.c: Include <float.h> and test-modf.h.
7723         (main): Invoke test_function.
7724         * tests/test-modff.c: Include <float.h> and test-modf.h.
7725         (main): Invoke test_function.
7726         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7727         (main): Invoke test_function.
7728         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7729         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7730         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7731         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7732         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7733         (Depends-on): Add 'float'.
7734         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7735
7736 2012-03-03  Bruno Haible  <bruno@clisp.org>
7737
7738         fabs* tests: More tests.
7739         * tests/test-fabs.h: New file, partially extracted from
7740         tests/test-fabsl.c.
7741         * tests/test-fabs.c (RANDOM): New macro.
7742         * tests/test-fabsf.c (RANDOM): New macro.
7743         * tests/test-fabsl.c (RANDOM): New macro.
7744         * modules/fabs-tests (Files): Add tests/randomd.c.
7745         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7746         * modules/fabsf-tests (Files): Add tests/randomf.c.
7747         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7748         * modules/fabsl-tests (Files): Add tests/randoml.c.
7749         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7750
7751 2012-03-03  Bruno Haible  <bruno@clisp.org>
7752
7753         ldexp* tests: More tests.
7754         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7755         * tests/test-ldexp.c (RANDOM): New macro.
7756         * tests/test-ldexpf.c (RANDOM): New macro.
7757         * tests/test-ldexpl.c (RANDOM): New macro.
7758         * modules/ldexp-tests (Files): Add tests/randomd.c.
7759         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7760         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7761         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7762         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7763         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7764
7765 2012-03-03  Bruno Haible  <bruno@clisp.org>
7766
7767         frexp* tests: More tests.
7768         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7769         * tests/test-frexp.c (RANDOM): New macro.
7770         * tests/test-frexpf.c (RANDOM): New macro.
7771         * tests/test-frexpl.c (RANDOM): New macro.
7772         * modules/frexp-tests (Files): Add tests/randomd.c.
7773         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7774         * modules/frexpf-tests (Files): Add tests/randomf.c.
7775         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7776         * modules/frexpl-tests (Files): Add tests/randoml.c.
7777         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7778
7779 2012-03-03  Bruno Haible  <bruno@clisp.org>
7780
7781         Support for pseudo-random numbers in tests.
7782         * tests/randomf.c: New file.
7783         * tests/randomd.c: New file.
7784         * tests/randoml.c: New file.
7785         * tests/macros.h (randomf, randomd, randoml): New declarations.
7786
7787 2012-03-03  Bruno Haible  <bruno@clisp.org>
7788
7789         frexp* tests: Refactor.
7790         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7791         * tests/test-frexp.c: Include and use it.
7792         * tests/test-frexpf.c: Likewise.
7793         * tests/test-frexpl.c: Likewise.
7794         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7795         * modules/frexpf-tests (Files): Likewise.
7796         * modules/frexpl-tests (Files): Likewise.
7797
7798 2012-03-02  Jim Meyering  <meyering@redhat.com>
7799
7800         maint: don't specify XZ_OPT=-9ev in dist-related rule
7801         Using xz's -9 option is warranted only if you have a very large
7802         tarball (see xz's documentation for the sizes vs. presets), and
7803         requires 64MiB of memory at decompression time.
7804         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7805         Automake's default of just "-e" is fine.  Override on a
7806         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7807
7808 2012-03-01  Eric Blake  <eblake@redhat.com>
7809
7810         maint.mk: allow announcement for non-gnulib project
7811         * maint.mk (announcement): Skip gnulib version if not used.
7812
7813 2012-03-01  Jim Meyering  <meyering@redhat.com>
7814
7815         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7816         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7817         envvar settings cannot interfere.  Otherwise, setting envvars like
7818         prohibit=foo require=bar, etc. would cause spurious test failures.
7819
7820 2012-03-01  Eric Blake  <eblake@redhat.com>
7821
7822         maint.mk: add per-line exclusions to prohibitions
7823         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7824         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7825         (sc_const_long_option): Use it.
7826
7827 2012-03-01  Bruno Haible  <bruno@clisp.org>
7828
7829         Tests for module 'expl-ieee'.
7830         * modules/expl-ieee-tests: New file.
7831         * tests/test-expl-ieee.c: New file.
7832
7833         New module 'expl-ieee'.
7834         * modules/expl-ieee: New file.
7835
7836         Tests for module 'exp-ieee'.
7837         * modules/exp-ieee-tests: New file.
7838         * tests/test-exp-ieee.c: New file.
7839
7840         New module 'exp-ieee'.
7841         * modules/exp-ieee: New file.
7842
7843         Tests for module 'expf-ieee'.
7844         * modules/expf-ieee-tests: New file.
7845         * tests/test-expf-ieee.c: New file.
7846         * tests/test-exp-ieee.h: New file.
7847
7848         New module 'expf-ieee'.
7849         * modules/expf-ieee: New file.
7850
7851 2012-02-29  Bruno Haible  <bruno@clisp.org>
7852
7853         cbrtl-ieee: Work around test failure on IRIX 6.5.
7854         * m4/cbrtl-ieee.m4: New file.
7855         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7856         test whether cbrtl works with a minus zero argument. Replace it if not.
7857         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7859         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7860         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7861         (Depends-on): Update conditions.
7862         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7863         m4/signbit.m4.
7864         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7865         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7866         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7867
7868         Tests for module 'cbrtl-ieee'.
7869         * modules/cbrtl-ieee-tests: New file.
7870         * tests/test-cbrtl-ieee.c: New file.
7871
7872         New module 'cbrtl-ieee'.
7873         * modules/cbrtl-ieee: New file.
7874
7875         Tests for module 'cbrt-ieee'.
7876         * modules/cbrt-ieee-tests: New file.
7877         * tests/test-cbrt-ieee.c: New file.
7878
7879         New module 'cbrt-ieee'.
7880         * modules/cbrt-ieee: New file.
7881
7882         Tests for module 'cbrtf-ieee'.
7883         * modules/cbrtf-ieee-tests: New file.
7884         * tests/test-cbrtf-ieee.c: New file.
7885         * tests/test-cbrt-ieee.h: New file.
7886
7887         New module 'cbrtf-ieee'.
7888         * modules/cbrtf-ieee: New file.
7889
7890 2012-02-29  Bruno Haible  <bruno@clisp.org>
7891
7892         cbrtf: Work around bug in IRIX 6.5 system function.
7893         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7894         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7895         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7896         work.
7897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7898         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7899         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7900         (Depends-on): Update conditions.
7901         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7902
7903 2012-02-29  Bruno Haible  <bruno@clisp.org>
7904
7905         Tests for module 'cbrtl'.
7906         * modules/cbrtl-tests: New file.
7907         * tests/test-cbrtl.c: New file.
7908
7909         New module 'cbrtl'.
7910         * lib/math.in.h (cbrtl): New declaration.
7911         * lib/cbrtl.c: New file.
7912         * m4/cbrtl.m4: New file.
7913         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7915         HAVE_DECL_CBRTL.
7916         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7917         HAVE_DECL_CBRTL.
7918         * modules/cbrtl: New file.
7919         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7920         * doc/posix-functions/cbrtl.texi: Mention the new module.
7921
7922 2012-02-29  Bruno Haible  <bruno@clisp.org>
7923
7924         Tests for module 'cbrtf'.
7925         * modules/cbrtf-tests: New file.
7926         * tests/test-cbrtf.c: New file.
7927
7928         New module 'cbrtf'.
7929         * lib/math.in.h (cbrtf): New declaration.
7930         * lib/cbrtf.c: New file.
7931         * m4/cbrtf.m4: New file.
7932         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7934         HAVE_DECL_CBRTF.
7935         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7936         HAVE_DECL_CBRTF.
7937         * modules/cbrtf: New file.
7938         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7939         * doc/posix-functions/cbrtf.texi: Mention the new module.
7940
7941 2012-02-29  Bruno Haible  <bruno@clisp.org>
7942
7943         cbrt: Provide replacement on MSVC and Minix.
7944         * lib/math.in.h (cbrt): New declaration.
7945         * lib/cbrt.c: New file.
7946         * m4/cbrt.m4: New file.
7947         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7949         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7950         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7951         (Depends-on): Add dependencies.
7952         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7953         * tests/test-math-c++.cc: Check the declaration of cbrt.
7954         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7955         replacement.
7956
7957 2012-02-29  Bruno Haible  <bruno@clisp.org>
7958
7959         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7960         * m4/hypotl-ieee.m4: New file.
7961         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7962         test whether hypotl works with mixed NaN and Infinity arguments.
7963         Replace it if not.
7964         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7966         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7967         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7968         (Depends-on): Update conditions.
7969         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7970         (Depends-on): Add hypot-ieee.
7971         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7972         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7973
7974         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7975         * m4/hypotf-ieee.m4: New file.
7976         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7977         test whether hypotf works with mixed NaN and Infinity arguments.
7978         Replace it if not.
7979         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7980         (Depends-on): Add hypot-ieee.
7981         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7982         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7983
7984         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7985         * lib/math.in.h (hypot): New declaration.
7986         * lib/hypot.c: New file.
7987         * m4/hypot-ieee.m4: New file.
7988         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7989         whether hypot works with mixed NaN and Infinity arguments. Replace it
7990         if not.
7991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7992         REPLACE_HYPOT.
7993         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7994         * modules/hypot (Files): Add lib/hypot.c.
7995         (Depends-on): Add dependencies.
7996         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7997         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7998         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7999         * tests/test-math-c++.cc: Check the declaration of hypot.
8000         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8001
8002         Tests for module 'hypotl-ieee'.
8003         * modules/hypotl-ieee-tests: New file.
8004         * tests/test-hypotl-ieee.c: New file.
8005
8006         New module 'hypotl-ieee'.
8007         * modules/hypotl-ieee: New file.
8008
8009         Tests for module 'hypot-ieee'.
8010         * modules/hypot-ieee-tests: New file.
8011         * tests/test-hypot-ieee.c: New file.
8012
8013         New module 'hypot-ieee'.
8014         * modules/hypot-ieee: New file.
8015
8016         Tests for module 'hypotf-ieee'.
8017         * modules/hypotf-ieee-tests: New file.
8018         * tests/test-hypotf-ieee.c: New file.
8019         * tests/test-hypot-ieee.h: New file.
8020
8021         New module 'hypotf-ieee'.
8022         * modules/hypotf-ieee: New file.
8023
8024 2012-02-29  Bruno Haible  <bruno@clisp.org>
8025
8026         Remove unused variables.
8027         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8028         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8029         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8030         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8031
8032 2012-02-29  Eric Blake  <eblake@redhat.com>
8033
8034         termios: fix pid_t always, not just for tcgetsid
8035         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8036         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8037         just when building tcgetsid.
8038
8039 2012-02-29  Bruno Haible  <bruno@clisp.org>
8040
8041         Tests for module 'hypotl'.
8042         * modules/hypotl-tests: New file.
8043         * tests/test-hypotl.c: New file.
8044
8045         New module 'hypotl'.
8046         * lib/math.in.h (hypotl): New declaration.
8047         * lib/hypotl.c: New file.
8048         * m4/hypotl.m4: New file.
8049         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8051         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8052         * modules/hypotl: New file.
8053         * tests/test-math-c++.cc: Check the hypotl declaration.
8054         * doc/posix-functions/hypotl.texi: Mention the new module.
8055
8056 2012-02-29  Eric Blake  <eblake@redhat.com>
8057
8058         tcgetsid: fix cygwin header bug
8059         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8060
8061         docs: update cygwin progress
8062         * doc/posix-functions/llround.texi (llround): Added in cygwin
8063         1.7.8.
8064         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8065         * doc/glibc-functions/program_invocation_name.texi
8066         (program_invocation_name): Likewise.
8067         * doc/glibc-functions/program_invocation_short_name.texi
8068         (program_invocation_short_name): Likewise.
8069         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8070         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8071         Likewise.
8072         * doc/posix-functions/pthread_spin_destroy.texi
8073         (pthread_spin_destroy): Added in cygwin 1.7.10.
8074         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8075         Likewise.
8076         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8077         Likewise.
8078         * doc/posix-functions/pthread_spin_trylock.texi
8079         (pthread_spin_trylock): Likewise.
8080         * doc/posix-functions/pthread_spin_unlock.texi
8081         (pthread_spin_unlock): Likewise.
8082         * doc/posix-functions/pthread_setschedprio.texi
8083         (pthread_setschedprio): Likewise.
8084         * doc/posix-functions/pthread_attr_getstack.texi
8085         (pthread_attr_getstack): Likewise.
8086         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8087         (pthread_attr_getstackaddr): Likewise.
8088         * doc/glibc-functions/pthread_getattr_np.texi
8089         (pthread_getattr_np): Likewise.
8090         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8091         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8092         * doc/posix-functions/clock_settime.texi (clock_settime):
8093         Likewise.
8094         * doc/posix-functions/pthread_attr_getguardsize.texi
8095         (pthread_attr_getguardsize): Likewise.
8096         * doc/posix-functions/pthread_attr_setguardsize.texi
8097         (pthread_attr_setguardsize): Likewise.
8098         * doc/posix-functions/pthread_attr_setstack.texi
8099         (pthread_attr_setstack): Likewise.
8100         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8101         (pthread_attr_setstackaddr): Likewise.
8102         * doc/posix-functions/clock_getcpuclockid.texi
8103         (clock_getcpuclockid): Likewise.
8104         * doc/posix-functions/pthread_getcpuclockid.texi
8105         (pthread_getcpuclockid): Likewise.
8106         * doc/glibc-functions/error.texi (error): Likewise.
8107         * doc/glibc-functions/error_at_line.texi (error_at_line):
8108         Likewise.
8109         * doc/glibc-functions/error_message_count.texi
8110         (error_message_count): Likewise.
8111         * doc/glibc-functions/error_one_per_line.texi
8112         (error_one_per_line): Likewise.
8113         * doc/glibc-functions/error_print_progname.texi
8114         (error_print_progname): Likewise.
8115         * doc/posix-functions/pthread_condattr_getclock.texi
8116         (pthread_condattr_getclock): Likewise.
8117         * doc/posix-functions/pthread_condattr_setclock.texi
8118         (pthread_condattr_setclock): Likewise.
8119         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8120         Likewise.
8121         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8122         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8123         * doc/glibc-functions/get_current_dir_name.texi
8124         (get_current_dir_name): Likewise.
8125         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8126         Likewise.
8127         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8128         wrong return type.
8129         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8130         1.7.11.
8131
8132 2012-02-29  Bruno Haible  <bruno@clisp.org>
8133
8134         Tests for module 'hypotf'.
8135         * modules/hypotf-tests: New file.
8136         * tests/test-hypotf.c: New file.
8137
8138         New module 'hypotf'.
8139         * lib/math.in.h (hypotf): New declaration.
8140         * lib/hypotf.c: New file.
8141         * m4/hypotf.m4: New file.
8142         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8144         REPLACE_HYPOTF.
8145         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8146         REPLACE_HYPOTF.
8147         * modules/hypotf: New file.
8148         * tests/test-math-c++.cc: Check the hypotf declaration.
8149         * doc/posix-functions/hypotf.texi: Mention the new module.
8150
8151         hypot: Prepare for hypotf module.
8152         * m4/hypot.m4: New file.
8153         * modules/hypot (Files): Add m4/hypot.m4.
8154         (configure.ac): Invoke gl_FUNC_HYPOT.
8155
8156 2012-02-29  Bruno Haible  <bruno@clisp.org>
8157
8158         hypot tests: More tests.
8159         * tests/test-hypot.c: Include <float.h>.
8160         (main): Add tests about overflow and underflow.
8161
8162 2012-02-29  Bruno Haible  <bruno@clisp.org>
8163
8164         math code: Add comments.
8165         * lib/acosl.c: Add comment about related glibc source files.
8166         * lib/asinl.c: Likewise.
8167         * lib/atanl.c: Likewise.
8168         * lib/expl.c: Likewise.
8169         * lib/logl.c: Likewise.
8170         * lib/sincosl.c: Likewise.
8171         * lib/sinl.c: Likewise.
8172         * lib/tanl.c: Likewise.
8173         * lib/trigl.c: Likewise.
8174         * lib/cosl.c: Likewise. Fix comments.
8175
8176 2012-02-28  Bruno Haible  <bruno@clisp.org>
8177
8178         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8179         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8180         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8181         HUGE_VALL are defined.
8182         (numeric_equald): Renamed from numeric_equal.
8183         (numeric_equalf, numeric_equall): New functions.
8184         (main): Check also HUGE_VALF, HUGE_VALL.
8185         * modules/math-tests (Files): Add tests/macros.h.
8186         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8187         HUGE_VALL.
8188
8189 2012-02-28  Bruno Haible  <bruno@clisp.org>
8190
8191         doc: Move ISO C11 feature notes into POSIX chapters.
8192         * doc/posix-functions/aligned_alloc.texi: Renamed from
8193         doc/glibc-functions/aligned_alloc.texi.
8194         * doc/posix-functions/quick_exit.texi: Renamed from
8195         doc/glibc-functions/quick_exit.texi.
8196         * doc/posix-headers/uchar.texi: Renamed from
8197         doc/glibc-headers/uchar.texi.
8198         * doc/posix-functions/c16rtomb.texi: Renamed from
8199         doc/glibc-functions/c16rtomb.texi.
8200         * doc/posix-functions/c32rtomb.texi: Renamed from
8201         doc/glibc-functions/c32rtomb.texi.
8202         * doc/posix-functions/mbrtoc16.texi: Renamed from
8203         doc/glibc-functions/mbrtoc16.texi.
8204         * doc/posix-functions/mbrtoc32.texi: Renamed from
8205         doc/glibc-functions/mbrtoc32.texi.
8206         * doc/gnulib.texi: Update.
8207         (Glibc uchar.h): Remove section.
8208         Suggested by Eric Blake.
8209
8210 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8211
8212         stdnoreturn: port to MSVC better
8213         MSVC standard headers use __declspec(noreturn), so #define noreturn
8214         to empty on that platform.  Reported by Bruno Haible in
8215         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8216         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8217         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8218
8219 2012-02-28  Bruno Haible  <bruno@clisp.org>
8220
8221         doc: Mention new glibc headers and functions.
8222         * doc/glibc-headers/uchar.texi: New file.
8223         * doc/glibc-functions/aligned_alloc.texi: New file.
8224         * doc/glibc-functions/c16rtomb.texi: New file.
8225         * doc/glibc-functions/c32rtomb.texi: New file.
8226         * doc/glibc-functions/clock_adjtime.texi: New file.
8227         * doc/glibc-functions/fanotify_init.texi: New file.
8228         * doc/glibc-functions/fanotify_mark.texi: New file.
8229         * doc/glibc-functions/inet6_opt_append.texi: New file.
8230         * doc/glibc-functions/inet6_opt_find.texi: New file.
8231         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8232         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8233         * doc/glibc-functions/inet6_opt_init.texi: New file.
8234         * doc/glibc-functions/inet6_opt_next.texi: New file.
8235         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8236         * doc/glibc-functions/inet6_rth_add.texi: New file.
8237         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8238         * doc/glibc-functions/inet6_rth_init.texi: New file.
8239         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8240         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8241         * doc/glibc-functions/inet6_rth_space.texi: New file.
8242         * doc/glibc-functions/login.texi: New file.
8243         * doc/glibc-functions/mbrtoc16.texi: New file.
8244         * doc/glibc-functions/mbrtoc32.texi: New file.
8245         * doc/glibc-functions/name_to_handle_at.texi: New file.
8246         * doc/glibc-functions/ntp_gettimex.texi: New file.
8247         * doc/glibc-functions/open_by_handle_at.texi: New file.
8248         * doc/glibc-functions/prlimit.texi: New file.
8249         * doc/glibc-functions/process_vm_readv.texi: New file.
8250         * doc/glibc-functions/process_vm_writev.texi: New file.
8251         * doc/glibc-functions/recvmmsg.texi: New file.
8252         * doc/glibc-functions/scandirat.texi: New file.
8253         * doc/glibc-functions/sendmmsg.texi: New file.
8254         * doc/glibc-functions/setns.texi: New file.
8255         * doc/glibc-functions/timespec_get.texi: New file.
8256         * doc/gnulib.texi: Include them.
8257         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8258         sections.
8259         Reported by Eric Blake.
8260
8261 2012-02-28  Bruno Haible  <bruno@clisp.org>
8262
8263         Avoid compilation errors with MSVC option -fp:strict.
8264         * lib/floor.c: Use MSVC specific pragma fenv_access.
8265         * lib/ceil.c: Likewise.
8266         * lib/trunc.c: Likewise.
8267         * lib/round.c: Likewise.
8268         * lib/rint.c: Likewise.
8269         * lib/fma.c: Likewise.
8270         * lib/integer_length.c: Likewise.
8271         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8272         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8273         * tests/test-floor2.c: Likewise.
8274         * tests/test-floorf2.c: Likewise.
8275         * tests/test-ceil2.c: Likewise.
8276         * tests/test-ceilf2.c: Likewise.
8277         * tests/test-trunc2.c: Likewise.
8278         * tests/test-truncf2.c: Likewise.
8279         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8280
8281 2012-02-27  Bruno Haible  <bruno@clisp.org>
8282
8283         Tests for module 'sqrtl-ieee'.
8284         * modules/sqrtl-ieee-tests: New file.
8285         * tests/test-sqrtl-ieee.c: New file.
8286
8287         New module 'sqrtl-ieee'.
8288         * modules/sqrtl-ieee: New file.
8289
8290         Tests for module 'sqrt-ieee'.
8291         * modules/sqrt-ieee-tests: New file.
8292         * tests/test-sqrt-ieee.c: New file.
8293
8294         New module 'sqrt-ieee'.
8295         * modules/sqrt-ieee: New file.
8296
8297         Tests for module 'sqrtf-ieee'.
8298         * modules/sqrtf-ieee-tests: New file.
8299         * tests/test-sqrtf-ieee.c: New file.
8300         * tests/test-sqrt-ieee.h: New file.
8301
8302         New module 'sqrtf-ieee'.
8303         * modules/sqrtf-ieee: New file.
8304
8305 2012-02-27  Bruno Haible  <bruno@clisp.org>
8306
8307         remainderl-ieee: Work around test failure on OSF/1.
8308         * m4/remainderl-ieee.m4: New file.
8309         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8310         present, test whether remainderl works with a zero second argument.
8311         Replace it if not.
8312         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8314         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8315         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8316         (Depends-on): Update conditions.
8317         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8318         (Depends-on): Add remainder-ieee.
8319         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8320         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8321         module.
8322
8323         remainderf-ieee: Work around test failure on OSF/1.
8324         * m4/remainderf-ieee.m4: New file.
8325         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8326         present, test whether remainderf works with a zero second argument.
8327         Replace it if not.
8328         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8330         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8331         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8332         (Depends-on): Update conditions.
8333         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8334         (Depends-on): Add remainder-ieee.
8335         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8336         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8337         module.
8338
8339         remainder-ieee: Work around test failure on OSF/1.
8340         * m4/remainder-ieee.m4: New file.
8341         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8342         present, test whether remainder works with a zero second argument.
8343         Replace it if not.
8344         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8346         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8347         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8348         (Depends-on): Update dependencies.
8349         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8350         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8351         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8352
8353         Tests for module 'remainderl-ieee'.
8354         * modules/remainderl-ieee-tests: New file.
8355         * tests/test-remainderl-ieee.c: New file.
8356
8357         New module 'remainderl-ieee'.
8358         * modules/remainderl-ieee: New file.
8359
8360         Tests for module 'remainder-ieee'.
8361         * modules/remainder-ieee-tests: New file.
8362         * tests/test-remainder-ieee.c: New file.
8363
8364         New module 'remainder-ieee'.
8365         * modules/remainder-ieee: New file.
8366
8367         Tests for module 'remainderf-ieee'.
8368         * modules/remainderf-ieee-tests: New file.
8369         * tests/test-remainderf-ieee.c: New file.
8370         * tests/test-remainder-ieee.h: New file.
8371
8372         New module 'remainderf-ieee'.
8373         * modules/remainderf-ieee: New file.
8374
8375 2012-02-27  Bruno Haible  <bruno@clisp.org>
8376
8377         modff, modfl: Fix configure syntax error.
8378         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8379         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8380
8381 2012-02-27  Bruno Haible  <bruno@clisp.org>
8382
8383         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8384         * m4/fmodl-ieee.m4: New file.
8385         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8386         whether fmodl works with zero arguments. Replace it if not.
8387         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8388         (Depends-on): Add fmod-ieee.
8389         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8390         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8391
8392         fmodf-ieee: Work around test failure on OSF/1.
8393         * m4/fmodf-ieee.m4: New file.
8394         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8395         whether fmodf works with zero arguments. Replace it if not.
8396         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8398         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8399         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8400         (Depends-on): Update dependencies.
8401         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8402         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8403         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8404
8405         fmodf-ieee: Work around test failure on MSVC 9.
8406         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8407         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8408
8409         fmod-ieee: Work around test failures on OSF/1, mingw.
8410         * m4/fmod-ieee.m4: New file.
8411         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8412         whether fmod works with zero arguments. Replace it if not.
8413         * lib/math.in.h (fmod): New declaration.
8414         * lib/fmod.c: New file.
8415         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8417         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8418         * modules/fmod (Files): Add lib/fmod.c.
8419         (Depends-on): Add math, isinf, trunc, fma.
8420         (configure.ac): Arrange to compile lib/fmod.c if needed.
8421         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8422         m4/signbit.m4.
8423         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8424         * tests/test-math-c++.cc: Check the declaration of fmod.
8425         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8426
8427         fmodl-ieee: Fix test failures.
8428         * lib/fmodl.c (fmodl): Treat Inf specially.
8429         * modules/fmodl (Depends-on): Add isinf.
8430
8431         Tests for module 'fmodl-ieee'.
8432         * modules/fmodl-ieee-tests: New file.
8433         * tests/test-fmodl-ieee.c: New file.
8434
8435         New module 'fmodl-ieee'.
8436         * modules/fmodl-ieee: New file.
8437
8438         Tests for module 'fmod-ieee'.
8439         * modules/fmod-ieee-tests: New file.
8440         * tests/test-fmod-ieee.c: New file.
8441
8442         New module 'fmod-ieee'.
8443         * modules/fmod-ieee: New file.
8444
8445         Tests for module 'fmodf-ieee'.
8446         * modules/fmodf-ieee-tests: New file.
8447         * tests/test-fmodf-ieee.c: New file.
8448         * tests/test-fmod-ieee.h: New file.
8449
8450         New module 'fmodf-ieee'.
8451         * modules/fmodf-ieee: New file.
8452
8453 2012-02-27  Bruno Haible  <bruno@clisp.org>
8454
8455         Tests for module 'rintl-ieee'.
8456         * modules/rintl-ieee-tests: New file.
8457         * tests/test-rintl-ieee.c: New file.
8458
8459         New module 'rintl-ieee'.
8460         * modules/rintl-ieee: New file.
8461
8462         Tests for module 'rint-ieee'.
8463         * modules/rint-ieee-tests: New file.
8464         * tests/test-rint-ieee.c: New file.
8465
8466         New module 'rint-ieee'.
8467         * modules/rint-ieee: New file.
8468
8469         Tests for module 'rintf-ieee'.
8470         * modules/rintf-ieee-tests: New file.
8471         * tests/test-rintf-ieee.c: New file.
8472         * tests/test-rint-ieee.h: New file.
8473
8474         New module 'rintf-ieee'.
8475         * modules/rintf-ieee: New file.
8476
8477 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8478
8479         regex: re_search etc. should return -2 when memory exhausted
8480         This bug was uncovered when testing 'grep'.  Without the fix,
8481         re_search and friends return -1 when memory is exhausted, but -1
8482         means no match, and this causes grep to falsely report no-match
8483         instead of memory-exhaustion.  See
8484         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8485         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8486         trouble; this can occur if re_search_internal ran out of memory.
8487
8488 2012-02-26  Bruno Haible  <bruno@clisp.org>
8489
8490         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8491         * m4/modfl-ieee.m4: New file.
8492         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8493         whether modfl works with Inf. Replace it if not.
8494         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8496         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8497         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8498         (Depends-on): Update dependencies.
8499         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8500         m4/signbit.m4.
8501         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8502         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8503
8504         modfl-ieee: Fix dependencies.
8505         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8506
8507         modfl-ieee: Fix test failures.
8508         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8509         * modules/modfl (Depends-on): Add isfinite, isinf.
8510
8511         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8512         * m4/modff-ieee.m4: New file.
8513         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8514         whether modff works with NaN and Inf. Replace it if not.
8515         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8517         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8518         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8519         (Depends-on): Update dependencies.
8520         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8521         m4/signbit.m4.
8522         (Depends-on): Add modf-ieee.
8523         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8524         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8525
8526         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8527         * m4/modf-ieee.m4: New file.
8528         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8529         whether modf works with NaN and Inf. Replace it if not.
8530         * lib/math.in.h (modf): New declaration.
8531         * lib/modf.c: New file.
8532         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8534         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8535         * modules/modf (Files): Add lib/modf.c.
8536         (Depends-on): Add math, isfinite, trunc, isinf.
8537         (configure.ac): Addrange to compile lib/modf.c if needed.
8538         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8539         m4/signbit.m4.
8540         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8541         * tests/test-math-c++.cc: Check the declaration of modf.
8542         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8543
8544         Tests for module 'modfl-ieee'.
8545         * modules/modfl-ieee-tests: New file.
8546         * tests/test-modfl-ieee.c: New file.
8547
8548         New module 'modfl-ieee'.
8549         * modules/modfl-ieee: New file.
8550
8551         Tests for module 'modf-ieee'.
8552         * modules/modf-ieee-tests: New file.
8553         * tests/test-modf-ieee.c: New file.
8554
8555         New module 'modf-ieee'.
8556         * modules/modf-ieee: New file.
8557
8558         Tests for module 'modff-ieee'.
8559         * modules/modff-ieee-tests: New file.
8560         * tests/test-modff-ieee.c: New file.
8561         * tests/test-modf-ieee.h: New file.
8562
8563         New module 'modff-ieee'.
8564         * modules/modff-ieee: New file.
8565
8566 2012-02-26  Bruno Haible  <bruno@clisp.org>
8567
8568         Tests for module 'fabsl-ieee'.
8569         * modules/fabsl-ieee-tests: New file.
8570         * tests/test-fabsl-ieee.c: New file.
8571
8572         New module 'fabsl-ieee'.
8573         * modules/fabsl-ieee: New file.
8574
8575         Tests for module 'fabs-ieee'.
8576         * modules/fabs-ieee-tests: New file.
8577         * tests/test-fabs-ieee.c: New file.
8578
8579         New module 'fabs-ieee'.
8580         * modules/fabs-ieee: New file.
8581
8582         Tests for module 'fabsf-ieee'.
8583         * modules/fabsf-ieee-tests: New file.
8584         * tests/test-fabsf-ieee.c: New file.
8585         * tests/test-fabs-ieee.h: New file.
8586
8587         New module 'fabsf-ieee'.
8588         * modules/fabsf-ieee: New file.
8589
8590 2012-02-26  Bruno Haible  <bruno@clisp.org>
8591
8592         Tests for module 'fmal-ieee'.
8593         * modules/fmal-ieee-tests: New file.
8594         * tests/test-fmal-ieee.c: New file.
8595
8596         New module 'fmal-ieee'.
8597         * modules/fmal-ieee: New file.
8598
8599         Tests for module 'fma-ieee'.
8600         * modules/fma-ieee-tests: New file.
8601         * tests/test-fma-ieee.c: New file.
8602
8603         New module 'fma-ieee'.
8604         * modules/fma-ieee: New file.
8605
8606         Tests for module 'fmaf-ieee'.
8607         * modules/fmaf-ieee-tests: New file.
8608         * tests/test-fmaf-ieee.c: New file.
8609         * tests/test-fma-ieee.h: New file.
8610
8611         New module 'fmaf-ieee'.
8612         * modules/fmaf-ieee: New file.
8613
8614 2012-02-26  Bruno Haible  <bruno@clisp.org>
8615
8616         Tests for module 'ldexpl-ieee'.
8617         * modules/ldexpl-ieee-tests: New file.
8618         * tests/test-ldexpl-ieee.c: New file.
8619
8620         New module 'ldexpl-ieee'.
8621         * modules/ldexpl-ieee: New file.
8622
8623         Tests for module 'ldexp-ieee'.
8624         * modules/ldexp-ieee-tests: New file.
8625         * tests/test-ldexp-ieee.c: New file.
8626
8627         New module 'ldexp-ieee'.
8628         * modules/ldexp-ieee: New file.
8629
8630         Tests for module 'ldexpf-ieee'.
8631         * modules/ldexpf-ieee-tests: New file.
8632         * tests/test-ldexpf-ieee.c: New file.
8633         * tests/test-ldexp-ieee.h: New file.
8634
8635         New module 'ldexpf-ieee'.
8636         * modules/ldexpf-ieee: New file.
8637
8638 2012-02-26  Bruno Haible  <bruno@clisp.org>
8639
8640         Refactor frexp*-ieee tests.
8641         * tests/test-frexp-ieee.h: New file.
8642         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8643         (main): Just call test_function.
8644         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8645         (main): Just call test_function.
8646         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8647         (main): Just call test_function.
8648         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8649         * modules/frexp-ieee-tests (Files): Likewise.
8650         * modules/frexpl-ieee-tests (Files): Likewise.
8651
8652         Tests for module 'frexpl-ieee'.
8653         * modules/frexpl-ieee-tests: New file.
8654         * tests/test-frexpl-ieee.c: New file.
8655
8656         New module 'frexpl-ieee'.
8657         * modules/frexpl-ieee: New file.
8658
8659         Tests for module 'frexp-ieee'.
8660         * modules/frexp-ieee-tests: New file.
8661         * tests/test-frexp-ieee.c: New file.
8662
8663         New module 'frexp-ieee'.
8664         * modules/frexp-ieee: New file.
8665
8666         Tests for module 'frexpf-ieee'.
8667         * modules/frexpf-ieee-tests: New file.
8668         * tests/test-frexpf-ieee.c: New file.
8669
8670         New module 'frexpf-ieee'.
8671         * modules/frexpf-ieee: New file.
8672
8673 2012-02-26  Bruno Haible  <bruno@clisp.org>
8674
8675         roundl-ieee tests: More tests.
8676         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8677         (main): Add tests for [MX] shaded specification in POSIX.
8678         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8679         (Depends-on): Add isnanl-nolibm.
8680
8681         round-ieee tests: More tests.
8682         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8683         (main): Add tests for [MX] shaded specification in POSIX.
8684         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8685         (Depends-on): Add isnand-nolibm.
8686
8687         roundf-ieee tests: More tests.
8688         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8689         (main): Add tests for [MX] shaded specification in POSIX.
8690         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8691         (Depends-on): Add isnanf-nolibm.
8692
8693         truncl-ieee tests: More tests.
8694         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8695         (main): Add tests for [MX] shaded specification in POSIX.
8696         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8697         (Depends-on): Add isnanl-nolibm.
8698
8699         trunc-ieee tests: More tests.
8700         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8701         (main): Add tests for [MX] shaded specification in POSIX.
8702         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8703         (Depends-on): Add isnand-nolibm.
8704
8705         truncf-ieee tests: More tests.
8706         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8707         (main): Add tests for [MX] shaded specification in POSIX.
8708         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8709         (Depends-on): Add isnanf-nolibm.
8710
8711         ceill-ieee tests: More tests.
8712         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8713         (main): Add tests for [MX] shaded specification in POSIX.
8714         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8715         (Depends-on): Add isnanl-nolibm.
8716
8717         ceil-ieee tests: More tests.
8718         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8719         (main): Add tests for [MX] shaded specification in POSIX.
8720         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8721         (Depends-on): Add isnand-nolibm.
8722
8723         ceilf-ieee tests: More tests.
8724         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8725         (main): Add tests for [MX] shaded specification in POSIX.
8726         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8727         (Depends-on): Add isnanf-nolibm.
8728
8729         floorl-ieee tests: More tests.
8730         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8731         (main): Add tests for [MX] shaded specification in POSIX.
8732         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8733         (Depends-on): Add isnanl-nolibm.
8734
8735         floor-ieee tests: More tests.
8736         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8737         (main): Add tests for [MX] shaded specification in POSIX.
8738         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8739         (Depends-on): Add isnand-nolibm.
8740
8741         floorf-ieee tests: More tests.
8742         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8743         (main): Add tests for [MX] shaded specification in POSIX.
8744         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8745         (Depends-on): Add isnanf-nolibm.
8746
8747 2012-02-26  Bruno Haible  <bruno@clisp.org>
8748
8749         fpieee: More comments.
8750         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8751
8752 2012-02-25  Bruno Haible  <bruno@clisp.org>
8753
8754         Tests for module 'log10l'.
8755         * modules/log10l-tests: New file.
8756         * tests/test-log10l.c: New file.
8757         * tests/test-math-c++.cc: Check the declaration of log10l.
8758
8759         New module 'log10l'.
8760         * lib/math.in.h (log10l): New declaration.
8761         * lib/log10l.c: New file.
8762         * m4/log10l.m4: New file.
8763         * modules/log10l: New file.
8764         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8766         HAVE_DECL_LOG10L.
8767         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8768         HAVE_DECL_LOG10L.
8769         * doc/posix-functions/log10l.texi: Mention the new module.
8770
8771 2012-02-25  Bruno Haible  <bruno@clisp.org>
8772
8773         fmodl, remainder*: Avoid wrong results due to rounding errors.
8774         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8775         expected bounds.
8776         * lib/remainderf.c (remainderf): Likewise.
8777         * lib/remainder.c (remainder): Likewise.
8778         * lib/remainderl.c (remainderl): Likewise.
8779
8780 2012-02-25  Bruno Haible  <bruno@clisp.org>
8781
8782         Tests for module 'remainderl'.
8783         * modules/remainderl-tests: New file.
8784         * tests/test-remainderl.c: New file.
8785         * tests/test-math-c++.cc: Check the declaration of remainderl.
8786
8787         New module 'remainderl'.
8788         * lib/math.in.h (remainderl): New declaration.
8789         * lib/remainderl.c: New file.
8790         * m4/remainderl.m4: New file.
8791         * modules/remainderl: New file.
8792         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8794         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8795         HAVE_REMAINDERL.
8796         * doc/posix-functions/remainderl.texi: Mention the new module.
8797
8798 2012-02-25  Bruno Haible  <bruno@clisp.org>
8799
8800         Tests for module 'remainderf'.
8801         * modules/remainderf-tests: New file.
8802         * tests/test-remainderf.c: New file.
8803         * tests/test-math-c++.cc: Check the declaration of remainderf.
8804
8805         New module 'remainderf'.
8806         * lib/math.in.h (remainderf): New declaration.
8807         * lib/remainderf.c: New file.
8808         * m4/remainderf.m4: New file.
8809         * modules/remainderf: New file.
8810         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8812         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8813         HAVE_REMAINDERF.
8814         * doc/posix-functions/remainderf.texi: Mention the new module.
8815
8816 2012-02-25  Bruno Haible  <bruno@clisp.org>
8817
8818         remainder: Support for MSVC.
8819         * lib/math.in.h (remainder): New declaration.
8820         * lib/remainder.c: New file.
8821         * m4/remainder.m4: New file.
8822         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8823         (Depends-on): Add math, round, fma.
8824         (configure.ac): Use results of gl_FUNC_REMAINDER.
8825         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8827         HAVE_DECL_REMAINDER.
8828         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8829         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8830         * tests/test-math-c++.cc: Check the declaration of remainder.
8831         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8832         problems are fixed.
8833
8834 2012-02-25  Bruno Haible  <bruno@clisp.org>
8835
8836         Tests for module 'fmodl'.
8837         * modules/fmodl-tests: New file.
8838         * tests/test-fmodl.c: New file.
8839         * tests/test-math-c++.cc: Check the declaration of fmodl.
8840
8841         New module 'fmodl'.
8842         * lib/math.in.h (fmodl): New declaration.
8843         * lib/fmodl.c: New file.
8844         * m4/fmodl.m4: New file.
8845         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8847         REPLACE_FMODL.
8848         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8849         REPLACE_FMODL.
8850         * modules/fmodl: New file.
8851         * doc/posix-functions/fmodl.texi: Mention the new module.
8852
8853 2012-02-25  Bruno Haible  <bruno@clisp.org>
8854
8855         Tests for module 'modfl'.
8856         * modules/modfl-tests: New file.
8857         * tests/test-modfl.c: New file.
8858         * tests/test-math-c++.cc: Check the declaration of modfl.
8859
8860         New module 'modfl'.
8861         * lib/math.in.h (modfl): New declaration.
8862         * lib/modfl.c: New file.
8863         * m4/modfl.m4: New file.
8864         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8866         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8867         * modules/modfl: New file.
8868         * doc/posix-functions/modfl.texi: Mention the new module.
8869
8870 2012-02-25  Bruno Haible  <bruno@clisp.org>
8871
8872         Tests for module 'fabsl'.
8873         * modules/fabsl-tests: New file.
8874         * tests/test-fabsl.c: New file.
8875         * tests/test-math-c++.cc: Check the declaration of fabsl.
8876
8877         New module 'fabsl'.
8878         * lib/math.in.h (fabsl): New declaration.
8879         * lib/fabsl.c: New file.
8880         * m4/fabsl.m4: New file.
8881         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8883         REPLACE_FABSL.
8884         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8885         REPLACE_FABSL.
8886         * modules/fabsl: New file.
8887         * doc/posix-functions/fabsl.texi: Mention the new module.
8888
8889 2012-02-25  Bruno Haible  <bruno@clisp.org>
8890
8891         fabs tests: More tests.
8892         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8893         (zero): New variable.
8894         (main): Add tests for signed zero.
8895         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8896
8897         fabsf tests: More tests.
8898         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8899         (zero): New variable.
8900         (main): Add tests for signed zero.
8901         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8902
8903 2012-02-24  Bruno Haible  <bruno@clisp.org>
8904
8905         atanl: Provide function definition on MSVC.
8906         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8907         function pointer.
8908         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8909
8910 2012-02-24  Bruno Haible  <bruno@clisp.org>
8911
8912         acosl: Provide function definition on MSVC.
8913         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8914         function pointer.
8915         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8916
8917 2012-02-24  Bruno Haible  <bruno@clisp.org>
8918
8919         asinl: Provide function definition on MSVC.
8920         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8921         function pointer.
8922         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8923
8924 2012-02-24  Bruno Haible  <bruno@clisp.org>
8925
8926         tanl: Provide function definition on MSVC.
8927         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8928         function pointer.
8929         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8930
8931 2012-02-24  Bruno Haible  <bruno@clisp.org>
8932
8933         cosl: Provide function definition on MSVC.
8934         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8935         function pointer.
8936         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8937
8938 2012-02-24  Bruno Haible  <bruno@clisp.org>
8939
8940         sinl: Provide function definition on MSVC.
8941         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8942         function pointer.
8943         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8944
8945 2012-02-24  Bruno Haible  <bruno@clisp.org>
8946
8947         logl: Provide function definition on MSVC.
8948         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8949         function pointer.
8950         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8951
8952 2012-02-24  Bruno Haible  <bruno@clisp.org>
8953
8954         expl: Provide function definition on MSVC.
8955         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8956         function pointer.
8957         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8958
8959 2012-02-24  Bruno Haible  <bruno@clisp.org>
8960
8961         sqrtl: Provide function definition on MSVC.
8962         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8963         a function pointer.
8964         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8965
8966 2012-02-24  Bruno Haible  <bruno@clisp.org>
8967
8968         ceill: Provide function definition on MSVC.
8969         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8970         used as a function pointer.
8971         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8972
8973 2012-02-24  Bruno Haible  <bruno@clisp.org>
8974
8975         floorl: Provide function definition on MSVC.
8976         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8977         used as a function pointer.
8978         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8979
8980 2012-02-24  Bruno Haible  <bruno@clisp.org>
8981
8982         ceilf: Provide function definition on MSVC.
8983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8984         used as a function pointer.
8985         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8986
8987 2012-02-24  Bruno Haible  <bruno@clisp.org>
8988
8989         floorf: Provide function definition on MSVC.
8990         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8991         used as a function pointer.
8992         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8993
8994 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8995
8996         stdnoreturn: new module
8997         This implements a replacement for C11's <stdnoreturn.h>.
8998         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8999         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9000         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9001         * tests/test-stdnoreturn.c: New files.
9002
9003 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9004
9005         regex: fix false multibyte matches in some regular expressions
9006         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9007         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9008         * lib/regex_internal.c (re_string_skip_chars):
9009         Fix miscomputation of remain_len that may cause incomplete
9010         multi-byte character and false match.
9011
9012 2012-02-24  Jim Meyering  <meyering@redhat.com>
9013
9014         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9015         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9016         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9017         Remove now-unnecessary str''cmp obfuscation.
9018         Suggested by Akim Demaille.
9019
9020 2012-02-24  Bruno Haible  <bruno@clisp.org>
9021
9022         streq: Rename macro.
9023         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9024         * NEWS: Mention the change.
9025         * lib/mbrtowc.c (mbrtowc): Update.
9026         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9027         * lib/wcwidth.c (wcwidth): Update.
9028         Suggested by Akim Demaille and Jim Meyering.
9029
9030 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9031
9032         regex: fix typo in definition of MIN
9033         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9034         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9035
9036 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9037             Bruno Haible  <bruno@clisp.org>
9038
9039         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9040         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9041         entries into a stack-allocated buffer directly.
9042         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9043
9044 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9045             Bruno Haible  <bruno@clisp.org>
9046
9047         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9048
9049          - There were several instances of this pattern:
9050
9051              for (;;) {
9052                n = acl (f, GETACLCNT, 0, NULL);
9053                [ allocate an array A of size N ]
9054                if (acl (f, GETACL, n, a) == n)
9055                  break;
9056              }
9057
9058            This loop might never terminate if some other process is constantly
9059            manipulating the file's ACL.  The loop should be rewritten to
9060            terminate.
9061
9062          - The acl (... GETACLNT ...) call is merely an optimization; its value
9063            is merely a hint as to how big to make the array.  A better
9064            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9065            and just guess a reasonably-big size, growing the size and trying
9066            again if it's not large enough.  This guarantees termination, and
9067            saves a system call.
9068
9069         * lib/acl-internal.h: Include <limits.h>.
9070         (MIN, SIZE_MAX): New macros.
9071         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9072         a stack-allocated buffer, and use malloc if it does not fit. Don't
9073         use GETACLCNT.
9074         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9075
9076 2012-02-19  Bruno Haible  <bruno@clisp.org>
9077
9078         acl: Fix endless loop on Solaris with vxfs.
9079         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9080         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9081         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9082         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9083         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9084         Reported by Bill Jones in
9085         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9086
9087 2012-02-19  Bruno Haible  <bruno@clisp.org>
9088
9089         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9090         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9091         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9092         that this function returns 0 in some more cases.
9093
9094 2012-02-19  Bruno Haible  <bruno@clisp.org>
9095
9096         acl: Update doc references.
9097         * doc/acl-resources.txt: Update links to Solaris documentation.
9098
9099 2012-02-19  Bruno Haible  <bruno@clisp.org>
9100
9101         Fix test failure in many locales on Solaris 11.
9102         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9103         'tr' arguments.
9104         * tests/test-pipe-filter-ii1.c (main): Likewise.
9105         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9106         expressions in the C locale.
9107         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9108         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9109
9110 2012-02-19  Bruno Haible  <bruno@clisp.org>
9111
9112         gnulib-tool: Improve usage message.
9113         * gnulib-tool (func_usage): Move doc of --help and --version to the
9114         section "Operation modes".
9115
9116 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9117
9118         README-release: make it easier to execute commands
9119         * top/README-release: break commands out on to separate lines.
9120
9121 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9122
9123         GNUmakefile: simplify detection of unconfigured trees
9124         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9125         whether the tree make is being run from is already configured or
9126         not.  Related simplifications.
9127
9128 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9129
9130         * gnulib-tool (func_usage): Document --help and --version.
9131
9132 2012-02-11  Jim Meyering  <meyering@redhat.com>
9133
9134         bootstrap: don't exit 0 upon gnulib-tool failure
9135         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9136         its exit status, not 0.
9137
9138 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9139
9140         README-release: various improvements
9141         * top/README-release: Give a command to push changes for the
9142         release.  Add "distcheck" to list of other pre-release checks.
9143         Fix instance of "make stable" which should be "make TYPE".
9144
9145 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9146
9147         maint: replace FSF snail-mail addresses with URLs
9148         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9149         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9150         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9151         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9152         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9153         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9154         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9155         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9156         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9157         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9158         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9159         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9160         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9161         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9162         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9163         * lib/glthread/thread.c, lib/glthread/thread.h:
9164         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9165         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9166         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9167         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9168         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9169         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9170         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9171         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9172         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9173         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9174         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9175         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9176         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9177         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9178         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9179         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9180         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9181         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9182         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9183         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9184         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9185         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9186         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9187         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9188         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9189         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9190         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9191         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9192         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9193         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9194         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9195         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9196         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9197         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9198         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9199         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9200         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9201         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9202         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9203         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9204         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9205         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9206         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9207         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9208         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9209         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9210         * tests/test-poll.c, tests/test-quotearg-simple.c:
9211         * tests/test-quotearg.c, tests/test-quotearg.h:
9212         * tests/test-round-ieee.c, tests/test-round1.c:
9213         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9214         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9215         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9216         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9217         * tests/test-strerror.c, tests/test-strerror_r.c:
9218         * tests/test-strsignal.c, tests/test-strverscmp.c:
9219         * tests/test-xmemdup0.c:
9220         Replace FSF snail mail addresses with URLs, as per GNU coding
9221         standards.  See glibc bug
9222         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9223
9224 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9225
9226         README-release: capitalize a word and split a line
9227         * top/README-release: Fix punctuation and spacing.
9228
9229 2012-02-08  Akim Demaille  <demaille@gostai.com>
9230
9231         fatal-signal: use C prototypes (with explicit void).
9232         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9233         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9234
9235 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9236
9237         regex: spelling fix
9238         * lib/regexec.c: spelling fix
9239
9240         regex: rely on stdint.h for SIZE_MAX
9241         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9242
9243 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9244
9245         regex: merge glibc changes
9246
9247         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9248         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9249         (init_word_char): Work even if bitset words are not exactly 32 or
9250         64 bits wide.  Don't assume there are no padding bits.
9251         * lib/regex.c [_LIBC]: Do not include <config.h>.
9252         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9253         and -Wtype-limits.
9254         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9255         needless disagreement with glibc.  All uses changed.  Define it to
9256         1 only if _GNU_SOURCE, to match glibc.
9257         (_REG_RM_NAME): Remove; no longer needed, since the names in
9258         question are now all protected by __USE_GNU.
9259         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9260         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9261         * lib/regex_internal.h (MIN): New macro.
9262
9263         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9264         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9265
9266         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9267         * lib/regex_internal.c (re_string_fetch_byte_case):
9268         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9269         is miscompiled, and it turns out it is because of an incorrect
9270         attribute on re_string_fetch_byte_case.  Unlike
9271         re_string_peek_byte_case, this one is really not pure, it modifies
9272         memory (increments pstr->cur_idx), and with the pure attribute GCC
9273         assumed it doesn't and it cached the presumed value of
9274         regexp->cur_idx in a variable across the
9275          for (;; ++i)
9276            {
9277              if (i >= BRACKET_NAME_BUF_SIZE)
9278                return REG_EBRACK;
9279              if (token->type == OP_OPEN_CHAR_CLASS)
9280                ch = re_string_fetch_byte_case (regexp);
9281              else
9282                ch = re_string_fetch_byte (regexp);
9283              if (re_string_eoi(regexp))
9284                return REG_EBRACK;
9285              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9286                break;
9287              elem->opr.name[i] = ch;
9288            }
9289
9290         2011-11-29 Andreas Schwab <schwab@redhat.com>
9291         * lib/regcomp.c (build_equiv_class):
9292         Fix access after end of search string in regex matcher.
9293
9294         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9295         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9296
9297         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9298         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9299
9300         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9301         * lib/regcomp.c (parse_branch, parse_sub_exp):
9302         More regex memory leak fixes and tests.
9303         (parse_sub_exp, parse_bracket_exp):
9304         Fix memory leak for some invalid regular expressions.
9305
9306         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9307         * lib/regex_internal.c, lib/regexec.c:
9308         Fix unnecessary overallocation due to incomplete character.  When
9309         incomplete characters are found at the end of a string the code
9310         ran amok and allocated lots of memory.  Stricter limits are now in
9311         place.
9312
9313         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9314         * lib/regex.h: Update documentation.
9315
9316         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9317         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9318
9319         2010-05-05 Andreas Schwab <schwab@redhat.com>
9320         * lib/regexec.c (find_collation_sequence_value):
9321         Fix lookup of collation sequence value during regexp matching.
9322
9323         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9324         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9325
9326         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9327         * lib/regex.h: Cleanup namespace.
9328
9329         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9330         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9331
9332         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9333         * lib/regex_internal.h: Prevent some declarations and definitions
9334         to be seen when used in tests.
9335
9336         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9337         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9338         __libc_lock_* macros if not _LIBC.
9339         (struct re_dfa_t): Add lock.
9340
9341 2012-02-07  Eric Blake  <eblake@redhat.com>
9342
9343         maint.mk: also prohibit lower-case @var@
9344         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9345         lower case, like @top_srcdir@.
9346
9347 2012-02-04  Eric Blake  <eblake@redhat.com>
9348
9349         canonicalize: avoid uninitialized memory use
9350         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9351         random '/' left in dest.
9352         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9353
9354 2012-02-04  Bruno Haible  <bruno@clisp.org>
9355
9356         isatty: Fix test failure of ptsname_r on native Windows.
9357         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9358         and don't set errno.
9359         (isatty): Test first whether fd is valid. Set errno when returning 0.
9360
9361 2012-02-04  Bruno Haible  <bruno@clisp.org>
9362
9363         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9364         * tests/test-spawn-pipe-main.c: Include progname.h.
9365         (main): Invoke set_program_name.
9366         * modules/spawn-pipe-tests (Depends-on): Add progname.
9367
9368         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9369         * tests/test-nonblocking-socket-main.c: Include progname.h.
9370         (main): Invoke set_program_name.
9371         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9372
9373         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9374         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9375         (main): Invoke set_program_name.
9376         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9377
9378 2012-02-04  Eric Blake  <eblake@redhat.com>
9379
9380         canonicalize-lgpl: fix // handling
9381         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9382
9383         canonicalize: fix // handling
9384         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9385         /// to //, since only // is special.
9386
9387 2012-02-04  Bruno Haible  <bruno@clisp.org>
9388
9389         ioctl: Fix test failure on native Windows.
9390         * lib/ioctl.c: Include msvc-nothrow.h.
9391         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9392
9393 2012-02-04  Bruno Haible  <bruno@clisp.org>
9394
9395         fsync: Avoid test failure on native Windows.
9396         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9397         read-only.
9398
9399 2012-02-04  Bruno Haible  <bruno@clisp.org>
9400
9401         sys_select: Avoid syntax error on OpenBSD 5.0.
9402         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9403         currently being included, just include the system's <sys/select.h>.
9404
9405 2012-02-04  Bruno Haible  <bruno@clisp.org>
9406
9407         sys_select: Avoid syntax error on OpenBSD 5.0.
9408         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9409         <sys/select.h>, not before.
9410         Reported by Jiri B <jirib@devio.us>.
9411
9412 2012-02-04  Bruno Haible  <bruno@clisp.org>
9413
9414         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9415         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9416         global variables.
9417         * tests/test-get-rusage-data.c (main): Likewise.
9418         Reported by Jim Meyering.
9419
9420 2012-02-04  Bruno Haible  <bruno@clisp.org>
9421
9422         stdioext: Fix last commit.
9423         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9424
9425 2012-02-03  Bruno Haible  <bruno@clisp.org>
9426
9427         stdioext: Add tentative support for Plan9.
9428         * lib/stdio-impl.h: Include <errno.h>.
9429         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9430         * lib/freadable.c (freadable): Likewise.
9431         * lib/fwritable.c (fwritable): Likewise.
9432         * lib/fbufmode.c (fbufmode): Likewise.
9433         * lib/freading.c (freading): Likewise.
9434         * lib/fwriting.c (fwriting): Likewise.
9435         * lib/freadptr.c (freadptr): Likewise.
9436         * lib/freadseek.c (freadptrinc): Likewise.
9437         * lib/freadahead.c (freadahead): Likewise.
9438         * lib/fpurge.c (fpurge): Likewise.
9439         * lib/fseeko.c (rpl_fseeko): Likewise.
9440         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9441         Reported by Jens Staal <staal1978@gmail.com>.
9442
9443 2012-02-02  Jim Meyering  <meyering@redhat.com>
9444
9445         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9446         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9447         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9448         not even to try to add the attribute.  Instead, add a pragma to suppress
9449         the suggestion/warning.
9450
9451 2012-01-31  Karl Berry  <karl@gnu.org>
9452
9453         setstate doc: typo.
9454         * doc/posix-functions/setstate.texi (setstate): { not (.
9455
9456 2012-01-31  Bruno Haible  <bruno@clisp.org>
9457
9458         popen: Make more robust on Windows.
9459         * lib/popen.c: On native Windows, use the _popen based code even if
9460         HAVE_POPEN is set.
9461         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9462         environment variable on native Windows.
9463
9464 2012-01-30  Bruno Haible  <bruno@clisp.org>
9465
9466         pclose: Fix typo.
9467         * lib/stdio.in.h (pclose): Fix typo in warning message.
9468
9469 2012-01-30  Bruno Haible  <bruno@clisp.org>
9470
9471         doc about getlogin_r, setstate.
9472         * doc/posix-functions/getlogin_r.texi: List the incompatible
9473         declaration problem under "not fixed by gnulib".
9474         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9475         problem on Solaris 11 and other platforms.
9476
9477 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9478             Bruno Haible  <bruno@clisp.org>
9479
9480         poll tests: Make test more robust.
9481         * tests/test-poll.c: Include macros.h.
9482         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9483         return value of various I/O operations.
9484         * modules/poll-tests (Files): Add tests/macros.h.
9485
9486 2012-01-30  Bruno Haible  <bruno@clisp.org>
9487
9488         sys_stat: Fix support for mingw64 and MSVC.
9489         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9490         header files already do it.
9491         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9492         stat itself.
9493         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9494
9495 2012-01-30  Bruno Haible  <bruno@clisp.org>
9496
9497         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9499         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9500
9501 2012-01-29  Bruno Haible  <bruno@clisp.org>
9502
9503         quotearg: Fix test failure on MacOS X 10.5.
9504         * tests/test-quotearg-simple.c: Include localcharset.h.
9505         (main): If the locale encoding is not ASCII, bypass the tests of
9506         locale_quoting_style and clocale_quoting_style.
9507         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9508
9509 2012-01-29  Jim Meyering  <meyering@redhat.com>
9510
9511         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9512         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9513         detect uses of canonicalize_file_name.
9514
9515 2012-01-28  Bruno Haible  <bruno@clisp.org>
9516
9517         test-framework-sh: Fix test failure with AIX 7.1 diff.
9518         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9519         in column 1, like 'diff -c' does.
9520         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9521         whether 'diff -u' is used. Instead, test whether the output contains
9522         some '@' character.
9523
9524 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9525
9526         strtoimax: eliminate need for stdint.h, inttypes.h checks
9527         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9528         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9529         the prerequisites for a recently-introduced strtoimax test.
9530         I guess this might cause strtoimax to be replaced when not
9531         strictly necessary on older hosts, but this shouldn't introduce
9532         any bugs and it should make Emacs 'configure' faster on typical
9533         modern hosts.  Problem discovered when importing the latest gnulib
9534         to an Emacs test version.
9535         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9536
9537 2012-01-28  Bruno Haible  <bruno@clisp.org>
9538
9539         sys_time: Override 'struct timeval' on some native Windows platforms.
9540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9541         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9542         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9543         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9544         needs to be overridden.
9545         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9546         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9547         * tests/test-sys_select.c: Check that the tv_sec member has the same
9548         size as a 'time_t'.
9549         * tests/test-sys_time.c: Likewise.
9550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9551         is set, set also REPLACE_GETTIMEOFDAY.
9552         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9553         convert the resulting 'struct timeval' before returning.
9554         * lib/select.c: Include <sys/time.h>.
9555         (select, timeval): Undefine at the right place.
9556         * modules/select (Depends-on): Add sys_time.
9557         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9558         some Windows platforms.
9559         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9560
9561 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9562
9563         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9564         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9565         an integer.
9566         * lib/fcntl.c (dupfd): Likewise.
9567         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9568
9569 2012-01-28  Bruno Haible  <bruno@clisp.org>
9570
9571         fcntl: Avoid compilation error on native Windows.
9572         * modules/fcntl (Depends-on): Add 'close'.
9573
9574 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9575
9576         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9577         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9578         pointer to an integer.
9579         * lib/poll.c (IsConsoleHandle): Likewise.
9580         * lib/isatty.c (IsConsoleHandle): Likewise.
9581
9582 2012-01-28  Jim Meyering  <meyering@redhat.com>
9583
9584         doc: clarify README-release
9585         * top/README-release: Clarify: you should make a point to have
9586         the latest stable versions of build tools in your PATH, and the
9587         reference to buildreq is solely for its list of tool names, not
9588         for its minimal-functional version numbers.
9589         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9590
9591         maint.mk: use more readable (yet functionally equivalent) quoting
9592         It is common to quote a single quote in a single quoted string like
9593         this:  '...'\''...'.  Unless you know the idiom, that looks like
9594         gibberish, so prefer to double-quote the string when possible.
9595         Then you can use a more readable, lone single quote: "...'..."
9596         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9597         "don't" is more readable than the equivalent 'don'\''t'.
9598         (sc_cast_of_x_alloc_return_value): Likewise.
9599         (sc_cast_of_alloca_return_value): Likewise.
9600         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9601         rather than '\'':'\''.
9602
9603 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9604
9605         stdalign: relax _Alignof and tighten _Alignas test
9606         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9607         as it was too strict: alignof must divide offsetof, but it need
9608         not equal offsetof.  Inspired by Joseph S. Myers's comment
9609         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9610         Conversely, tighten the _Alignas test a bit, as the resulting
9611         alignment must be exactly 8.
9612
9613 2012-01-27  Bruno Haible  <bruno@clisp.org>
9614
9615         stdalign: Document the last change.
9616         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9617
9618 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9619
9620         stdalign: check that alignof and offsetof are consistent
9621         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9622         Problem reported for gnulib by Richard W.M. Jones in
9623         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9624
9625 2012-01-27  Jim Meyering  <meyering@redhat.com>
9626
9627         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9628         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9629         convert a sequence with gaps to the minimal containing range.
9630         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9631         * tests/test-update-copyright.sh: Test for this.
9632         The FSF confirmed it is ok to do this, assuming there is at
9633         least one significant change per year in the affected range:
9634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9635
9636 2012-01-26  Bruno Haible  <bruno@clisp.org>
9637
9638         pipe2: refine doc about thread-safety
9639         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9640         multithread-safety problem.
9641         * doc/glibc-functions/accept4.texi: Likewise.
9642
9643 2012-01-26  Bruno Haible  <bruno@clisp.org>
9644
9645         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9646         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9647         In the test program, include <fcntl.h>, for O_RDONLY.
9648
9649 2012-01-26  Eric Blake  <eblake@redhat.com>
9650
9651         pipe2: document lack of thread-safety in replacement
9652         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9653         issue in replacement.
9654         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9655         Based on a report by Eric Wong.
9656
9657 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9658             Bruno Haible  <bruno@clisp.org>
9659
9660         malloca: Avoid warnings on x86_64 mingw64.
9661         * lib/malloca.c: Include <stdint.h>.
9662         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9663         * modules/malloca (Depends-on): Add stdint.
9664         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9665
9666 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9667
9668         obstack: remove __STDC__ conditionals
9669         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9670         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9671         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9672         m4/include_next.m4 as the only gnulib-maintained places that still
9673         refer to __STDC__.
9674
9675 2012-01-24  Bruno Haible  <bruno@clisp.org>
9676
9677         havelib: Modern quoting.
9678         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9679         the recent change to the GNU coding standards.
9680
9681 2012-01-24  Bruno Haible  <bruno@clisp.org>
9682
9683         stdint: Improve support for Android.
9684         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9685         Reported by Simon Josefsson <simon@josefsson.org>.
9686
9687 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9688
9689         doc: omit trailing empty lines from INSTALL etc.
9690         * doc/Makefile (INSTALL): Omit trailing empty lines.
9691         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9692         omit trailing empty lines.  This simplifies the build procedure.
9693
9694 2012-01-23  Jim Meyering  <meyering@redhat.com>
9695
9696         tests: avoid spurious warnings about gl_sockets_startup
9697         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9698         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9699         reporting a "statement with no effect".
9700         * tests/test-accept.c (main): Mark as "(void)".
9701         * tests/test-accept4.c (main): Likewise.
9702         * tests/test-bind.c (main): Likewise.
9703         * tests/test-connect.c (main): Likewise.
9704         * tests/test-getpeername.c (main): Likewise.
9705         * tests/test-getsockname.c (main): Likewise.
9706         * tests/test-getsockopt.c (main): Likewise.
9707         * tests/test-listen.c (main): Likewise.
9708         * tests/test-recv.c (main): Likewise.
9709         * tests/test-recvfrom.c (main): Likewise.
9710         * tests/test-send.c (main): Likewise.
9711         * tests/test-sendto.c (main): Likewise.
9712         * tests/test-setsockopt.c (main): Likewise.
9713         * tests/test-shutdown.c (main): Likewise.
9714
9715 2012-01-21  Bruno Haible  <bruno@clisp.org>
9716
9717         locale-fr.m4: Fix for Android.
9718         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9719         failure of the test program on Bionic libc.
9720
9721 2012-01-21  Jim Meyering  <meyering@redhat.com>
9722
9723         bootstrap: fail when bootstrap_post_import_hook fails
9724         Otherwise, it's far too easy to miss diagnostics emitted
9725         between gnulib-tool's output and that of running configure.
9726         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9727
9728 2012-01-17  Jim Meyering  <meyering@redhat.com>
9729
9730         maint: enable sc_trailing_blank
9731         * build-aux/pmccabe.css: Remove trailing blanks.
9732         * doc/acl-cygwin.txt: Likewise.
9733         * doc/gnu-oids.texi: Likewise
9734         * cfg.mk: Enable sc_trailing_blank.
9735         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9736
9737 2012-01-17  Jim Meyering  <meyering@redhat.com>
9738
9739         maint: enable sc_prohibit_openat_without_use
9740         * cfg.mk: Enable sc_prohibit_openat_without_use.
9741         Exempt lib/selinux-at.c.
9742
9743 2012-01-17  Jim Meyering  <meyering@redhat.com>
9744
9745         maint: enable sc_prohibit_cloexec_without_use
9746         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9747         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9748
9749 2012-01-17  Jim Meyering  <meyering@redhat.com>
9750
9751         maint: enable sc_prohibit_intprops_without_use
9752         * cfg.mk: Enable sc_prohibit_intprops_without_use
9753         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9754
9755 2012-01-17  Jim Meyering  <meyering@redhat.com>
9756
9757         maint: enable sc_prohibit_hash_pjw_without_use
9758         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9759         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9760         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9761         following " (".
9762
9763 2012-01-17  Jim Meyering  <meyering@redhat.com>
9764
9765         maint: enable double-word-prohibiting rule
9766         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9767         Exempt three files.
9768
9769 2012-01-17  Jim Meyering  <meyering@redhat.com>
9770
9771         maint: remove empty lines at EOF, but excluding modules/*
9772         Apply syntax rules at home as well as abroad.  Most changes
9773         were induced by running this:
9774           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9775             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9776             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9777         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9778         Exempt modules/* and two binary files.
9779         Also exempt doc/INSTALL*, per request from Bruno Haible.
9780         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9781         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9782         * doc/Copyright/request-assign.future: Likewise.
9783         * doc/Copyright/request-disclaim.changes: Likewise.
9784         * doc/INSTALL: Likewise.
9785         * doc/INSTALL.ISO: Likewise.
9786         * doc/INSTALL.UTF-8: Likewise.
9787         * doc/acl-cygwin.txt: Likewise.
9788         * doc/acl-resources.txt: Likewise.
9789         * doc/fdl-1.2.texi: Likewise.
9790         * doc/fdl-1.3.texi: Likewise.
9791         * doc/fdl.texi: Likewise.
9792         * lib/argp-pin.c: Likewise.
9793         * lib/round.c: Likewise.
9794         * lib/unicase/u16-totitle.c: Likewise.
9795         * lib/unictype/block_test.c: Likewise.
9796         * lib/uninorm/canonical-decomposition.c: Likewise.
9797         * m4/README: Likewise.
9798         * m4/relocatable-lib.m4: Likewise.
9799         * tests/test-isnand-nolibm.c: Likewise.
9800         * tests/test-isnand.c: Likewise.
9801         * tests/uninorm/NormalizationTest.txt: Likewise.
9802
9803 2012-01-17  Jim Meyering  <meyering@redhat.com>
9804
9805         maint: add framework to run syntax-check rules against gnulib sources
9806         * cfg.mk: New file, to disable all currently-failing tests.
9807         We'll enable them one by one, as they are made to pass.
9808         * Makefile (sc_maint): New rule.
9809
9810 2012-01-21  Bruno Haible  <bruno@clisp.org>
9811
9812         stdint: Add support for Android.
9813         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9814         include the system's <stdint.h>.
9815         Reported by Simon Josefsson <simon@josefsson.org>.
9816
9817 2012-01-19  Jim Meyering  <meyering@redhat.com>
9818
9819         bootstrap: add bootstrap_post_import_hook
9820         Bison does still need something like the gnulib_mk_hook whose
9821         invocation I had to remove along with slurp in commit 767ccd40.
9822         Technically, we could get along without it, but doing so would
9823         have required living with a warning and a mandatory post-bootstrap
9824         automake rerun.
9825         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9826         (bootstrap_post_import_hook): New function.
9827         Invoke it after gnulib-tool --import and before autoreconf.
9828
9829 2012-01-18  Jim Meyering  <meyering@redhat.com>
9830
9831         gitlog-to-changelog: don't use "no_"-prefixed variable name
9832         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9833         to enable both --cluster and --no-cluster.  Change variable name,
9834         s/\$no_cluster/$cluster/, and reverse usage to match.
9835
9836         gitlog-to-changelog: use "||", not "or" in expressions
9837         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9838         expressions.
9839
9840 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9841
9842         gitlog-to-changelog: new option --no-cluster
9843         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9844         clustering of adjacent commit messages.
9845
9846 2012-01-17  Jim Meyering  <meyering@redhat.com>
9847
9848         maint: spell file systems with two words, not one
9849         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9850         two words, not one.
9851
9852 2012-01-16  Jim Meyering  <meyering@redhat.com>
9853
9854         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9855         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9856
9857 2012-01-16  Eric Blake  <eblake@redhat.com>
9858
9859         bootstrap: cater to autoconf 2.59
9860         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9861         is not available.
9862
9863         bootstrap: properly check for libtool
9864         * build-aux/bootstrap (libtoolize): Also run libtool when older
9865         usage is detected.
9866
9867 2012-01-15  Bruno Haible  <bruno@clisp.org>
9868
9869         Improve support for MSVC 9.
9870         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9871         clashes on MSVC.
9872         * lib/fcntl.in.h: Likewise.
9873         * lib/stdlib.in.h: Likewise.
9874         * lib/sys_stat.in.h: Likewise.
9875
9876 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9877
9878         gnupload: we hold the master copy of this script now
9879         For motivation and more information, see:
9880         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9881         * build-aux/gnupload: Make it clear in the heading comments that the
9882         master copy of this file is maintained by gnulib.  Since we are at
9883         it, bump its copyright year and ...
9884         ($scriptversion): ... the date in its version.
9885         ($usage): Patches and bug reports should be sent to the gnulib list,
9886         not the automake one.
9887         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9888         anymore.
9889
9890 2012-01-15  Bruno Haible  <bruno@clisp.org>
9891
9892         Fix module 'random'.
9893         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9894         initstate, setstate are declared.
9895
9896 2012-01-14  Bruno Haible  <bruno@clisp.org>
9897
9898         Tests for module 'random'.
9899         * modules/random-tests: New file.
9900         * tests/test-random.c: New file, based on tests/test-random_r.c.
9901
9902         New module 'random'.
9903         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9904         declarations.
9905         * lib/random.c: New file, based on glibc/stdlib/random.c.
9906         * m4/random.m4: New file.
9907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9908         HAVE_RANDOM.
9909         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9910         * modules/random: New file.
9911         * config/srclist.txt: Add an entry for random.c.
9912         * doc/posix-functions/random.texi: Mention the 'random' module.
9913         * doc/posix-functions/initstate.texi: Likewise.
9914         * doc/posix-functions/setstate.texi: Likewise.
9915         * doc/posix-functions/srandom.texi: Likewise.
9916
9917 2012-01-12  Bruno Haible  <bruno@clisp.org>
9918
9919         random_r: Use common idioms.
9920         * lib/random_r.c: Include <stdlib.h> first.
9921
9922         random_r: Override incompatible API on AIX, OSF/1.
9923         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9924         Override the system function if REPLACE_RANDOM_R is 1.
9925         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9926         and OSF/1, set REPLACE_RANDOM_R.
9927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9928         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9929         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9930         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9931         * doc/glibc-functions/random_r.texi: Likewise.
9932         * doc/glibc-functions/setstate_r.texi: Likewise.
9933
9934         random_r: Support for MSVC 9.
9935         * lib/random_r.c: Include stdint.h, not inttypes.h.
9936
9937 2012-01-12  Eric Blake  <eblake@redhat.com>
9938
9939         inet_ntop: guard extra work by IF_LINT
9940         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9941         better code generation when not checking for warnings.
9942         Suggested by Paul Eggert and Jim Meyering.
9943
9944         strptime: fix regression on mingw
9945         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9946         Fix regression.  Reported by Bruno Haible.
9947
9948 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9949             Bruno Haible  <bruno@clisp.org>
9950
9951         copy-file: add error-code-returning variant.
9952         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9953         (qcopy_file_preserving): New declaration.
9954         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9955         copy_file_preserving. Change return type to 'int'. Don't emit an error
9956         message here.
9957         (copy_file_preserving): New function.
9958         * tests/test-copy-file.c: Include <stdlib.h>.
9959         (main): Test qcopy_file_preserving if the environment variable
9960         NO_STDERR_OUTPUT is set.
9961         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9962         with NO_STDERR_OUTPUT
9963         * tests/test-copy-file-2.sh: Likewise.
9964
9965 2012-01-10  Bruno Haible  <bruno@clisp.org>
9966
9967         copy-file: Use 'quote' module consistently.
9968         * lib/copy-file.c (copy_file_preserving): Use quote().
9969
9970         copy-file: Refactor.
9971         * lib/copy-file.c: Include quote.h.
9972         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9973         message here.
9974         * modules/copy-file (Depends-on): Add quote.
9975
9976         acl: Export qcopy_acl.
9977         * lib/acl.h (qcopy_acl): New declaration.
9978         * lib/copy-acl.c (qcopy_acl): Make non-static.
9979
9980         acl: Rename a local variable.
9981         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9982
9983         acl: Align return values of copy_acl and qcopy_acl.
9984         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9985         maybe < -1.
9986
9987 2012-01-11  Eric Blake  <eblake@redhat.com>
9988
9989         strptime: silence gcc warnings
9990         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9991         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9992         Reported by Daniel P. Berrange.
9993
9994         inet_ntop: silence gcc warning
9995         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9996         Reported by Daniel P. Berrange.
9997
9998 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9999
10000         getloadavg test: skip the test on GNU/Linux without /proc mounted
10001         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10002         file.  When /proc is not mounted, it always fails with ENOENT.
10003         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10004         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10005
10006 2012-01-10  Bruno Haible  <bruno@clisp.org>
10007
10008         regex: Avoid link error on MSVC 9.
10009         * modules/regex (Depends-on): Add wctype.
10010
10011 2012-01-10  Bruno Haible  <bruno@clisp.org>
10012
10013         doc: Mention --with-tests option.
10014         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10015         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10016         --with-tests.
10017         Reported by Reuben Thomas.
10018
10019 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10020
10021         users.txt: order package names lexicographically.
10022         * users.txt: Order package names lexicographically.
10023
10024 2012-01-10  Jim Meyering  <meyering@redhat.com>
10025
10026         maint.mk: fix description in comment
10027         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10028
10029         ignore-value: remove deprecated ignore_ptr function
10030         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10031         * NEWS: Note this.
10032
10033 2012-01-09  Jim Meyering  <meyering@redhat.com>
10034
10035         test-init.sh: avoid a subshell
10036         * tests/test-init.sh: Remove protective subshell.
10037         Suggested by Bernhard Voelker.  While a subshell is normally
10038         required to protect against older shells (Solaris, FreeBSD) that
10039         warn about a missing program before performing redirection, the
10040         shell-selection tests performed by init.sh probably exclude any
10041         offending shell.
10042
10043 2012-01-08  Bruno Haible  <bruno@clisp.org>
10044
10045         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10046         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10047         variable.
10048
10049 2012-01-08  Bruno Haible  <bruno@clisp.org>
10050
10051         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10052         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10053         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10054         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10055         macro.
10056         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10057         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10058         * lib/spawn_faction_addopen.c: Add workaround implementation if
10059         HAVE_WORKING_POSIX_SPAWN.
10060         * modules/spawn (Makefile): Substitute
10061         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10062         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10063         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10064         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10065         (Depends-on): Update conditions.
10066         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10067         the Solaris 11 bug.
10068
10069 2012-01-08  Bruno Haible  <bruno@clisp.org>
10070
10071         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10072         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10074         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10075         macro.
10076         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10078         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10079         HAVE_WORKING_POSIX_SPAWN.
10080         * modules/spawn (Makefile): Substitute
10081         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10082         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10083         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10084         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10085         (Depends-on): Update conditions.
10086         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10087         the Solaris 11 bug.
10088
10089 2012-01-08  Bruno Haible  <bruno@clisp.org>
10090
10091         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10092         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10094         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10095         HAVE_WORKING_POSIX_SPAWN.
10096         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10097         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10098         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10099         * lib/spawn_faction_addclose.c: Add workaround implementation if
10100         HAVE_WORKING_POSIX_SPAWN.
10101         * modules/spawn (Makefile): Substitute
10102         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10103         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10104         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10105         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10106         (Depends-on): Update conditions.
10107         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10108         the Solaris 11 bug.
10109
10110 2012-01-08  Bruno Haible  <bruno@clisp.org>
10111
10112         doc: Update for Solaris 11 2011-11.
10113         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10114         * m4/printf.m4: Update comments.
10115
10116 2012-01-08  Bruno Haible  <bruno@clisp.org>
10117
10118         mktime: Avoid compilation error on Solaris 11.
10119         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10120
10121 2012-01-08  Bruno Haible  <bruno@clisp.org>
10122
10123         doc: Small fix.
10124         * doc/posix-headers/nl_types.texi: Correct platforms list.
10125
10126 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10127
10128         Add lgpl-3.0 module.
10129         * MODULES.html.sh (Support for building documentation): Add
10130         lgpl-3.0.
10131         * modules/lgpl-3.0: New file.
10132
10133 2012-01-08  Jim Meyering  <meyering@redhat.com>
10134
10135         select.c: indent with spaces, not TABs
10136         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10137
10138 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10139
10140         quotearg: do not use grave accent for left quote
10141         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10142         locale_quoting_style.
10143         (quotearg_buffer_restyled): Fix example.
10144         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10145
10146 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10147
10148         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10149         Most programs do not have translation catalogs for English and much
10150         less separate catalogs for British and American English.  Drop the
10151         suggestion to translators about these two, and provide it
10152         automatically for Unicode locales.  Like most programs, even those
10153         using American English, we use single quotation marks.  This conflicts
10154         with the American typographic convention, but works better when you
10155         cite the entire error message within double quotes.  It also tries not
10156         to clash with established practice and with what non-gnulib programs
10157         will usually do.
10158         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10159         using an UTF-8 or GB-18030 locale.  The list of other locales with
10160         quotes was provided by Bruno Haible.
10161         (quotearg_buffer_restyled): Adjust instructions to translators.
10162         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10163         text, since this would be wrong when using Unicode.
10164         * modules/quotearg: Depend on c-strcaseeq.
10165
10166 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10167
10168         quotearg: fix Wikipedia link
10169         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10170
10171 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10172
10173         Fix for mingw with MSVC9.
10174         * m4/ld-version-script.m4: Check that compiler rejects version
10175         scripts with syntax errors.  Reported by Bruno Haible
10176         <bruno@clisp.org>.
10177
10178 2012-01-06  Bruno Haible  <bruno@clisp.org>
10179
10180         Talk about "native Windows API", not "Woe32".
10181         * lib/accept4.c: Update comments to mention native Windows.
10182         * lib/execute.c: Likewise.
10183         * lib/fatal-signal.c: Likewise.
10184         * lib/localcharset.c: Likewise.
10185         * lib/nanosleep.c: Likewise.
10186         * lib/nl_langinfo.c: Likewise.
10187         * lib/pclose.c: Likewise.
10188         * lib/pipe-filter-gi.c: Likewise.
10189         * lib/pipe-filter-ii.c: Likewise.
10190         * lib/pipe.c: Likewise.
10191         * lib/pipe2.c: Likewise.
10192         * lib/popen.c: Likewise.
10193         * lib/progreloc.c: Likewise.
10194         * lib/relocatable.c: Likewise.
10195         * lib/sigaction.c: Likewise.
10196         * lib/sigprocmask.c: Likewise.
10197         * lib/spawn-pipe.h: Likewise.
10198         * lib/spawn-pipe.c: Likewise.
10199         * lib/spawni.c: Likewise.
10200         * lib/stat-time.h: Likewise.
10201         * lib/w32spawn.h: Likewise.
10202         * tests/test-isatty.c: Likewise.
10203         * lib/config.charset: More comments.
10204         * doc/gnulib-intro.texi: Mention native Windows.
10205         * doc/posix-functions/_Exit_C99.texi: Likewise.
10206         * doc/posix-headers/fcntl.texi: Likewise.
10207
10208 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10209
10210         argp: Avoid crash if translator uses % characters in a translation.
10211         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10212         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10213
10214 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10215
10216         doc: C11 and C++11 are now official
10217         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10218         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10219         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10220         * modules/stdalign:
10221         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10222
10223 2012-01-06  Bruno Haible  <bruno@clisp.org>
10224
10225         uc-is-grapheme-break tests: Tweak.
10226         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10227         message.
10228
10229 2012-01-06  Bruno Haible  <bruno@clisp.org>
10230
10231         test-init.sh: correct the test for diff -u
10232         * tests/test-init.sh: Also redirect stdout to /dev/null.
10233
10234 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10235
10236         Use ', not `, for quoting output.
10237         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10238         (print_changelog_deltas, get_tool_versions, main program):
10239         * build-aux/git-version-gen:
10240         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10241         * build-aux/move-if-change (help):
10242         * build-aux/useless-if-before-free (usage, main program):
10243         * check-module (parse_module_file, usage)
10244         (find_included_lib_files, check_module):
10245         * lib/argmatch.c (main) [TEST]:
10246         * lib/argp-help.c (_help):
10247         * lib/getopt1.c (main) [TEST]:
10248         * lib/git-merge-changelog.c (usage):
10249         * lib/xstrtol-error.c (xstrtol_error):
10250         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10251         * m4/argz.m4 (gl_FUNC_ARGZ):
10252         * m4/bison.m4 (gl_BISON):
10253         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10254         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10255         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10256         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10257         * m4/gc-random.m4 (gl_GC_RANDOM):
10258         * m4/intl.m4 (gt_CHECK_DECL):
10259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10260         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10261         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10262         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10263         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10264         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10265         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10266         * tests/test-dirname.c (main):
10267         * tests/test-getpass.c (main):
10268         * tests/test-iconvme.c (main):
10269         * tests/test-parse-datetime.c (LOG):
10270         * tests/test-xstrtoimax.sh:
10271         * tests/test-xstrtol.sh:
10272         * tests/test-xstrtoll.sh:
10273         * tests/test-xstrtoumax.sh:
10274         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10275         * top/GNUmakefile (abort-due-to-no-makefile):
10276         Quote 'like this', not `like this', as per the recent change to
10277         the GNU coding standards.
10278
10279 2012-01-05  Bruno Haible  <bruno@clisp.org>
10280
10281         strtoimax: Don't force a replacement on systems where intmax_t is int.
10282         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10283         'intmax_t' is not larger than 'int'.
10284         Reported by Pádraig Brady <P@draigBrady.com>.
10285
10286 2012-01-05  Bruno Haible  <bruno@clisp.org>
10287
10288         doc: Mention NetBSD bugs.
10289         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10290         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10291
10292 2012-01-05  Bruno Haible  <bruno@clisp.org>
10293
10294         strtoumax tests: Enhance tests.
10295         * tests/test-strtoumax.c (main): Add tests for large values.
10296
10297 2012-01-05  Bruno Haible  <bruno@clisp.org>
10298
10299         strtoimax: Work around AIX 5.1 bug.
10300         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10301         definition.
10302         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10303         Set HAVE_STRTOIMAX.
10304         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10305         REPLACE_STRTOIMAX.
10306         * modules/inttypes-incomplete (Makefile.am): Substitute
10307         REPLACE_STRTOIMAX.
10308         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10309         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10310         (Depends-on): Update conditions.
10311         * tests/test-strtoimax.c (main): Add tests for large values.
10312         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10313
10314 2012-01-05  Bruno Haible  <bruno@clisp.org>
10315
10316         inttypes: Modernize.
10317         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10318         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10319         (Makefile.am): Update inttypes.h rule.
10320
10321 2012-01-05  Jim Meyering  <meyering@redhat.com>
10322
10323         init.sh: don't waste a subshell just to redirect stderr
10324         * tests/init.sh: In testing for diff -u and diff -c, use a
10325         stderr-redirecting exec inside `...` rather than a subshell.
10326
10327         test-init.sh: avoid failure on HP-UX 11.00
10328         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10329         resolves to diff -c or cmp.  Reported by Bruno Haible.
10330
10331 2012-01-05  Bruno Haible  <bruno@clisp.org>
10332
10333         Tests for module 'strtoull'.
10334         * modules/strtoull-tests: New file.
10335         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10336
10337 2012-01-05  Bruno Haible  <bruno@clisp.org>
10338
10339         Tests for module 'strtoll'.
10340         * modules/strtoll-tests: New file.
10341         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10342
10343 2012-01-05  Bruno Haible  <bruno@clisp.org>
10344
10345         Tests for module 'strtoul'.
10346         * modules/strtoul-tests: New file.
10347         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10348
10349 2012-01-05  Bruno Haible  <bruno@clisp.org>
10350
10351         Tests for module 'strtol'.
10352         * modules/strtol-tests: New file.
10353         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10354
10355 2012-01-04  Jim Meyering  <meyering@redhat.com>
10356
10357         test-init.sh: accommodate Solaris 5.10's different diff -u output
10358         * tests/test-init.sh: Also exempt @@ lines from the comparison
10359         of diff output, since Solaris 5.10 and GNU diff formats differ.
10360         Reported by Stefano Lattarini.
10361
10362 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10363
10364         test-posixtm: don't assume signed integer wraparound
10365         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10366         after signed integer overflow.  Inspired by (though it may not
10367         fix) Bruno Haible's bug report in
10368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10369
10370         Spell out "Windows 9x" and "Windows XP".
10371         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10372         "Windows 9x" and "WinXP" with "Windows XP".
10373
10374 2012-01-04  Jim Meyering  <meyering@redhat.com>
10375
10376         test-vc-list-files-cvs.sh: remove obsolete comment
10377         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10378         double exit.  Now that's all encapsulated via skip_ and Exit.
10379
10380 2012-01-04  Bruno Haible  <bruno@clisp.org>
10381
10382         Talk about "native Windows API", not "Win32".
10383         * lib/classpath.c: Update comments to mention native Windows.
10384         * lib/csharpexec.c: Likewise.
10385         * lib/dup2.c: Likewise.
10386         * lib/error.c: Likewise.
10387         * lib/fcntl.c: Likewise.
10388         * lib/filename.h: Likewise.
10389         * lib/findprog.c: Likewise.
10390         * lib/get-rusage-as.c: Likewise.
10391         * lib/get-rusage-data.c: Likewise.
10392         * lib/getpagesize.c: Likewise.
10393         * lib/javaexec.c: Likewise.
10394         * lib/msvc-inval.c: Likewise.
10395         * lib/msvc-nothrow.c: Likewise.
10396         * lib/nanosleep.c: Likewise.
10397         * lib/nonblocking.c: Likewise.
10398         * lib/printf-parse.c: Likewise.
10399         * lib/setlocale.c: Likewise.
10400         * lib/sigaction.c: Likewise.
10401         * lib/strerror_r.c: Likewise.
10402         * lib/tmpdir.c: Likewise.
10403         * lib/vasnprintf.c: Likewise.
10404         * lib/w32spawn.h: Likewise.
10405         * lib/waitpid.c: Likewise.
10406         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10407         * m4/locale-ar.m4: Likewise.
10408         * m4/locale-fr.m4: Likewise.
10409         * m4/locale-ja.m4: Likewise.
10410         * m4/locale-tr.m4: Likewise.
10411         * m4/locale-zh.m4: Likewise.
10412         * m4/printf.m4: Likewise.
10413         * tests/test-cloexec.c: Likewise.
10414         * tests/test-copy-acl.sh: Likewise.
10415         * tests/test-copy-file.sh: Likewise.
10416         * tests/test-file-has-acl.sh: Likewise.
10417         * tests/test-set-mode-acl.sh: Likewise.
10418         * tests/test-dup-safer.c: Likewise.
10419         * tests/test-dup2.c: Likewise.
10420         * tests/test-dup3.c: Likewise.
10421         * tests/test-fcntl.c: Likewise.
10422         * tests/test-nonblocking-pipe.h: Likewise.
10423         * tests/test-nonblocking-socket.h: Likewise.
10424         * tests/test-pipe.c: Likewise.
10425         * tests/test-pipe2.c: Likewise.
10426         * tests/test-spawn-pipe-child.c: Likewise.
10427         * doc/acl-resources.txt: Likewise.
10428         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10429         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10430         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10431         * lib/localcharset.c: Update comments to mention native Windows.
10432         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10433         * lib/localename.c: Likewise.
10434         * lib/progreloc.c: Likewise.
10435         * lib/relocatable.c: Likewise.
10436         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10437         (windows_compute_revents): Renamed from win32_compute_revents.
10438         (windows_compute_revents_socket): Renamed from
10439         win32_compute_revents_socket.
10440         * lib/select.c: Update comments to mention native Windows.
10441         (windows_poll_handle): Renamed from win32_poll_handle.
10442         * m4/threadlib.m4: Update comments to mention native Windows.
10443         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10444         --enable-threads=windows instead of --enable-threads=win32. Set
10445         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10446         * lib/glthread/lock.h: Update comments to mention native Windows.
10447         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10448         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10449         USE_WIN32_THREADS.
10450         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10451         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10452         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10453         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10454         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10455         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10456         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10457         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10458         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10459         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10460         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10461         * tests/test-tls.c: Likewise.
10462         Rationale:
10463         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10464         on both 32-bit and 64-bit Windows systems.
10465         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10466         line of distinction is between "native Windows" on one side and Unix/
10467         POSIX systems on the other side. More details in
10468         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10469         Suggested by Paul Eggert.
10470
10471 2012-01-03  Bruno Haible  <bruno@clisp.org>
10472
10473         isatty: Support for MSVC 9.
10474         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10475         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10476         (_isatty_nothrow): New function.
10477         (isatty): Use it instead of _isatty.
10478         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10479         * lib/poll.c (IsConsoleHandle): Likewise.
10480         * lib/select.c (IsConsoleHandle): Likewise.
10481         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10482         (gl_PREREQ_ISATTY): New macro.
10483         * modules/isatty (Depends-on): Add msvc-inval.
10484         (configure.ac): Invoke gl_PREREQ_ISATTY.
10485
10486 2012-01-03  Jim Meyering  <meyering@redhat.com>
10487
10488         maint.mk: remove temporary transition aid from over 1.5 years ago
10489         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10490         purpose was to aid in the transition (avoiding silent malfunction)
10491         from that old name to the new _sc_search_regexp.  This shim was
10492         added by commit 219c504b.
10493
10494         init.sh: do not try to accommodate compare arguments starting with "-"
10495         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10496         compare arguments that start with "-".  Besides, we do not worry
10497         about this when invoking diff or cmp; why start now with sed?
10498         Using "--" to separate options from argument would trigger sed
10499         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10500         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10501
10502 2012-01-02  Bruno Haible  <bruno@clisp.org>
10503
10504         Enhance tests for module 'isatty'.
10505         * modules/isatty-tests (Depends-on): Add pipe-posix.
10506         * tests/test-isatty.c: Include <fcntl.h>.
10507         (DEV_NULL): New macro.
10508         (main): Test the resut of isatty() also on regular files, pipes, and
10509         /dev/null.
10510
10511         New module 'isatty'.
10512         * lib/unistd.in.h (isatty): New declaration.
10513         * lib/isatty.c: New file, based on an idea of
10514         Bastien Roucariès <roucaries.bastien@gmail.com>.
10515         * m4/isatty.m4: New file.
10516         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10517         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10518         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10519         REPLACE_ISATTY.
10520         * modules/isatty: New file.
10521         * doc/posix-functions/isatty.texi: Mention the new module.
10522         Suggested by Paolo Bonzini.
10523
10524 2012-01-02  Bruno Haible  <bruno@clisp.org>
10525
10526         canonicalize: Tweak 2011-12-29 commit.
10527         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10528         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10529
10530 2012-01-02  Jim Meyering  <meyering@redhat.com>
10531
10532         gitlog-to-changelog: describe input syntax in --help output
10533         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10534
10535         gitlog-to-changelog: fix typo in --help: show backslash before email @
10536         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10537         in sources, but not in actual output.
10538
10539 2011-12-30  Jim Meyering  <meyering@redhat.com>
10540
10541         gitlog-to-changelog: don't malfunction when name contains %-directive
10542         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10543         in a name string cause trouble.  E.g., with a user name of "%s",
10544         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10545
10546 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10547
10548         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10549         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10550         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10551         the "  (tiny change)" notation that is appended to the standard
10552         ChangeLog "date  name  email" header line.
10553
10554 2012-01-01  Jim Meyering  <meyering@redhat.com>
10555
10556         test-framework-sh: init.sh: fix "make dist" failure
10557         When using gnulib-tool's --with-tests option and any module that
10558         depends on test-framework-sh, "make dist" would fail due to the
10559         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10560         in the gltests directory, and not in the gllib/ directory.
10561         One way to work around that is to move the EXTRA_DIST += init.sh
10562         from the primary module to the -tests one:
10563         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10564         * modules/test-framework-sh (Makefile.am): ...not here.
10565         Reported by Tom G. Christensen in
10566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10567
10568         version-etc: update copyright year reported by --version
10569         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10570
10571 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10572
10573         canonicalize: only stat() if required
10574         * lib/canonicalize.c (canonicalize_filename_mode):
10575         Avoid calling l?stat() when both CAN_MISSING,
10576         and CAN_NOLINKS are set, as we neither need
10577         to resolve symlinks or test component existence.
10578
10579 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10580
10581         doc: cover st_ino issues once; add OpenVMS etc.
10582         * doc/posix-functions/stat.texi (stat):
10583         * doc/posix-functions/lstat.texi (lstat):
10584         * doc/posix-functions/fstatat.texi (fstatat):
10585         * doc/posix-functions/fstat.texi (fstat):
10586         Move general 'struct stat' stuff to sys_stat.texi,
10587         leaving behind a pointer.
10588         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10589         Merge duplicate info about 'struct stat' problems into here.
10590         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10591         and suggest partial workarounds.
10592
10593         same-inode: port to OpenVMS
10594         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10595         three st_ino values.
10596
10597 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10598
10599         canonicalize: fix references to stat() and lstat()
10600         * lib/canonicalize.c (canonicalize_filename_mode):
10601         Ensure references always resolve to a replacement
10602         function if required (even via a macro).
10603
10604 2011-12-30  Jim Meyering  <meyering@redhat.com>
10605
10606         gitlog-to-changelog: remove a little duplication
10607         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10608         rather than twice.
10609
10610 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10611
10612         canonicalize: add support for not resolving symlinks
10613         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10614         indicate we don't want to follow symlinks.  Also
10615         provide CAN_MODE_MASK to aid setting these existing
10616         mutually exclusive values.
10617         * lib/canonicalize.c (canonicalize_filename_mode):
10618         Extract the flags from can_mode parameter, which
10619         are currently just used to select between stat()
10620         and lstat().  Also ensure that mutually exclusive
10621         values are flagged immediately as invalid.
10622         * tests/test-canonicalize.c: Verify symlinks are
10623         not followed, and that invalid flag combinations
10624         are diagnosed.
10625
10626 2011-12-25  Jim Meyering  <meyering@redhat.com>
10627
10628         gitlog-to-changelog: do not clump multi-paragraph entries
10629         Identical header lines (date,name,email+coauthors) are suppressed,
10630         thus putting all entries with those same characteristics under
10631         a single header.  However, when a log entry consists of two or
10632         more paragraphs, it may not be clear where it starts and ends.
10633         This change makes it so that such an entry is always separated
10634         from others by a header line, even when that header would
10635         otherwise be suppressed.
10636         * build-aux/gitlog-to-changelog: Implement the above.
10637         Inspired by a related request from Stefano Lattarini in
10638         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10639
10640 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         announce-gen: fix `cmd' typo in diagnostic
10643         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10644         diagnostic: a missing '$' meant that the command was not output.
10645
10646 2011-12-23  Jim Meyering  <meyering@redhat.com>
10647
10648         test-framework-sh: distribute init.sh
10649         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10650         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10651         fail due to the lack of init.sh.
10652
10653         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10654         * modules/atexit-tests: Rather than listing tests/init.sh,
10655         now that there's a module for it, simply depend on that new module.
10656         * modules/closein-tests: Likewise.
10657         * modules/exclude-tests: Likewise.
10658         * modules/getcwd-tests: Likewise.
10659         * modules/perror-tests: Likewise.
10660         * modules/pread-tests: Likewise.
10661         * modules/pwrite-tests: Likewise.
10662         * modules/vc-list-files-tests: Likewise.
10663         * modules/verify-tests: Likewise.
10664         * modules/xalloc-die-tests: Likewise.
10665         * modules/xstrtoimax-tests: Likewise.
10666         * modules/xstrtol-tests: Likewise.
10667         * modules/xstrtoll-tests: Likewise.
10668         * modules/xstrtoumax-tests: Likewise.
10669         * modules/yesno-tests: Likewise.
10670
10671 2011-12-22  Jim Meyering  <meyering@redhat.com>
10672
10673         test-framework-sh: add minimal tests of init.sh's compare function
10674         * modules/test-framework-sh-tests: New file.
10675         * tests/test-init.sh: New file.
10676
10677         test-framework-sh: new module
10678         * modules/test-framework-sh: New file.
10679         * MODULES.html.sh (Support for maintaining and releasing projects):
10680         List it.
10681
10682         init.sh: do not emit simulated diff output to stderr
10683         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10684
10685 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10686
10687         .gitignore: ignore gnulib.dvi and regex.info
10688         * doc/.gitignore:add gnulib.dvi and regex.info
10689
10690 2011-12-22  Jim Meyering  <meyering@redhat.com>
10691
10692         init.sh: correct previous change
10693         * tests/init.sh (compare): My previous change was wrong.
10694         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10695
10696         init.sh: avoid unwarranted test failure when using "set -e"
10697         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10698         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10699         a use like "compare exp out" would get evoke an unconditional failure.
10700
10701 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10702
10703         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10704         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10705         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10706         autoreconf that did not.
10707         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10708         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10709
10710 2011-12-17  Jim Meyering  <meyering@redhat.com>
10711
10712         bootstrap: remove some now-unneeded code
10713         This script arose back when gnulib-tool was young.
10714         Since then, it has seen improvements that render much of this
10715         script unnecessary.  In particular, it can now make symlinks
10716         to the files it uses.  Also, I no longer see as much value in
10717         marking files as read-only via comments.
10718         If you relied on the symlink-creation feature of the preceding
10719         version of this script, you can get most of that functionality
10720         by adding the --symlink option to the definition of
10721         gnulib_tool_option_extras in your bootstrap.conf file.
10722         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10723         Run autopoint and libtoolize *before* gnulib-tool.
10724         After it, run an abbreviated autoreconf, rather than a loop around
10725         all tools.
10726         (slirp, bt_mark_as_generated): Remove functions.
10727
10728 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10729
10730         ftoastr: fix typo
10731         * lib/ftoastr.h: Fix misspelling in comment.
10732
10733 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10734
10735         * top/README-release: fix punctuation.
10736
10737 2011-12-17  Jim Meyering  <meyering@redhat.com>
10738
10739         bootstrap: correct the recent buildreq change
10740         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10741         had no effect.
10742         * build-aux/bootstrap (buildreq): Bracket each search term with
10743         "*...*", so that the shell "case" statement works as intended.
10744         Add comments.
10745
10746 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10747
10748         build: let bootstrap resort to wget when downloading .po files
10749         * build-aux/bootstrap (download_po_files): Fallback to wget when
10750         downloading the .po files via rsync fails.  This is necessary to
10751         bootstrap from behind a strict firewall.
10752
10753 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10754
10755         stdint: don't assume C++11 when compiling with g++
10756         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10758         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10759         work also in C++ before C++11, as that improperly inhibits
10760         generating a substitute stdint.h for that case.
10761
10762 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10763
10764         alloca: protect comment from gnulib-tool
10765         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10766         that gnulib-tool doesn't think it's a license, and munge it to
10767         say "GCC version 3".
10768
10769 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10770
10771         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10772         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10773         $(abs_top_builddir) instead of $(top_builddir).
10774
10775 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10776
10777         strftime-tests: also test nanoseconds
10778         * tests/test-strftime.c (T): Add a test of %N.
10779
10780 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10781
10782         inttypes, stdint: add C++11 support
10783         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10784         when including inttypes.h and stdint.h.  Support this change to
10785         the standard.
10786         * doc/posix-headers/inttypes.texi (inttypes.h):
10787         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10788         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10789         Define if not defined already, for the benefit of pre-C++11 hosts.
10790         Define the standard format macros (e.g., PRId8) always.
10791         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10792         Likewise, if __cpluspus.  Define the standard constant and limit
10793         macros (e.g., INT8_C, INT8_MAX) always.
10794         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10795         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10796         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10797         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10798         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10799         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10800         Likewise.
10801
10802 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         nonblocking tests: Fix test failure on Linux/PPC.
10805         Suggested by Prerna Saxena in
10806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10807         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10808         Set to 1100000.
10809
10810 2011-12-12  Jim Meyering  <meyering@redhat.com>
10811
10812         argmatch: don't hard-code `' when listing valid option arguments
10813         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10814         use the quote function to add quotes.  Use fputs rather than
10815         fprintf for the format string with no format directive.
10816
10817 2011-12-07  Eric Blake  <eblake@redhat.com>
10818
10819         bootstrap: detect tools required by gnulib-tool
10820         * build-aux/bootstrap (buildreq): Provide minimum implicit
10821         dependencies.
10822         * DEPENDENCIES: Mention patch as a prereq.
10823
10824 2011-12-04  Bruno Haible  <bruno@clisp.org>
10825
10826         sethostname: Port to Windows platforms.
10827         * lib/sethostname.c: Provide an alternate implementation for Windows
10828         platforms.
10829         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10830         (main): Skip the test if sethostname() fails with EPERM. On Windows
10831         platforms, don't check the result of gethostname().
10832
10833 2011-12-04  Bruno Haible  <bruno@clisp.org>
10834             Jim Meyering  <meyering@redhat.com>
10835
10836         tests: Avoid spurious error message on platforms without mktemp program.
10837         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10838
10839 2011-12-04  Bruno Haible  <bruno@clisp.org>
10840
10841         sethostname: Fix documentation.
10842         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10843         "not fixed" section.
10844
10845 2011-12-03  Bruno Haible  <bruno@clisp.org>
10846
10847         gnulib-tool: Verify that the License field is present and non-empty.
10848         * gnulib-tool (func_get_license_raw): New function, extracted from
10849         func_get_license.
10850         (func_get_license): Use it. Warn if the module is not a test module and
10851         has no license.
10852         Suggested by Jim Meyering.
10853
10854 2011-12-03  Bruno Haible  <bruno@clisp.org>
10855
10856         sethostname tests: Fix link error on mingw.
10857         * tests/test-sethostname1.c: New file, extracted from
10858         tests/test-sethostname.c.
10859         * tests/test-sethostname2.c: New file, extracted from
10860         tests/test-sethostname.c.
10861         * tests/test-sethostname.c: Remove file.
10862         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10863         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10864         (Depends-on): Add gethostname.
10865         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10866         Link the latter with $(GETHOSTNAME_LIB).
10867
10868         sethostname tests: Fix compilation error on mingw.
10869         * tests/test-sethostname.c: Don't include <sys/types.h>.
10870         (geteuid): Use a dummy value without uid_t.
10871         * modules/sethostname-tests (Depends-on): Remove sys_types.
10872
10873         sethostname tests: Avoid a gcc warning.
10874         * tests/test-sethostname.c (main): Remove an unused variable.
10875
10876         Tweak last commit.
10877         * modules/sethostname-tests (Files): Sort by decreasing importance.
10878         (configure.ac): Check for geteuid.
10879         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10880         the test when there's nothing to test. Drop an unnecessary cast.
10881         Improve an error message. Verify that the final sethostname() call
10882         succeeds.
10883
10884 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10885
10886         Add a test suite for the sethostname module.
10887         * modules/sethostname-tests: New file.  A test program
10888         for the sethostname module.
10889         * tests/test-sethostname.c: Likewise.
10890
10891 2011-12-03  Bruno Haible  <bruno@clisp.org>
10892
10893         Tweak last commit.
10894         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10895         Fix preprocessor directives indentation. Fix typos.
10896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10897         * modules/unistd (Makefile): Likewise.
10898
10899 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10900
10901         Integrate the sethostname module into unistd.
10902         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10903         into the unistd.h header.
10904         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10905         preprocessor directives.
10906         * modules/unistd: Setup the Makefile substitutions of the
10907         SETHOSTNAME preprocessor directives.
10908
10909 2011-12-03  Bruno Haible  <bruno@clisp.org>
10910
10911         Tweak last commit.
10912         * lib/sethostname.c: Don't include <string.h>.
10913         (sethostname): No need to copy the argument string to the stack. Don't
10914         call clearerr. Preserve errno when fprintf failed.
10915         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10916         Don't invoke AC_REPLACE_FUNCS.
10917         * modules/sethostname (Link): Remove empty section.
10918         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10919         failure problem.
10920
10921 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10922
10923         New module 'sethostname'.
10924         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10925         for systems that lack it.
10926         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10927         sethostname declaration and function.
10928         * modules/sethostname: New file.  Define the sethostname module.
10929
10930 2011-12-03  Bruno Haible  <bruno@clisp.org>
10931
10932         Tweak last commit.
10933         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10934
10935 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10936
10937         Split the HOST_NAME_MAX detection into a separate m4 macro.
10938         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10939         macro so it can be used by the pending sethostname module.
10940
10941 2011-12-03  Bruno Haible  <bruno@clisp.org>
10942
10943         Fix module descriptions syntax.
10944         * modules/argv-iter (License): Fix syntax.
10945         * modules/di-set (License): Likewise.
10946         * modules/ino-map (License): Likewise.
10947         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10948
10949 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10950
10951         stdalign: port to Clang 3.0
10952         Problem reported by Simon Josefsson in
10953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10954         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10955         which has <stdalign.h> but which does not define alignof.
10956         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10957
10958 2011-12-01  Eric Blake  <eblake@redhat.com>
10959
10960         mktempd: silence dd usage
10961         * build-aux/mktempd (rand_bytes): Silence dd.
10962
10963 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10964
10965         manywarnings: Don't mention gcc version in docstring.
10966         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10967         Jim Meyering <meyering@redhat.com>.
10968
10969 2011-11-30  Jim Meyering  <meyering@redhat.com>
10970
10971         hash: mark a few floating point constants with "f" suffix
10972         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10973         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10974         floating point constants with "f", since they're destined to be
10975         saved/used as "float"s.
10976
10977 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10978
10979         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10980         * tests/test-float.c (test_long_double): Correct and re-enable the
10981         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10982
10983 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10984
10985         Avoid subtracting two pointers that don't point into the same block.
10986         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10987         only pointers into the same memory block are subtracted. We cannot
10988         assume that sizeof (ptrdiff_t) == sizeof (void *).
10989
10990 2011-11-29  Eric Blake  <eblake@redhat.com>
10991
10992         maint.mk: add syntax check for use of compare from init.sh
10993         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10994         moved here from coreutils.
10995
10996         manywarnings: drop -Wunsuffixed-float-constants
10997         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10998         '1.0D', which is the only way to silence this warning for 'double'.
10999
11000 2011-11-29  Jim Meyering  <meyering@redhat.com>
11001
11002         hash: mark compute_bucket_size with the pure attribute
11003         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11004
11005         quotearg, propername: correct pragma guard expression
11006         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11007         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11008
11009 2011-11-28  Jim Meyering  <meyering@redhat.com>
11010
11011         propername: do not mark proper_name with the const attribute
11012         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11013         since it examines data pointed to by its parameter.
11014         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11015         the suggestion from -Wsuggest-attribute=const.
11016
11017         propername: mark one more function as const
11018         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11019
11020 2011-11-27  Jim Meyering  <meyering@redhat.com>
11021
11022         mark functions with const and pure attributes
11023
11024         Mark functions per suggestions from gcc-4.6 when using these options:
11025         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11026         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11027         Follow these guidelines: when possible, apply the attribute to
11028         an extern declaration, not to its definition.  Apply it to the
11029         definition only when the definition is static.
11030         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11031         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11032         * lib/base64.h (isbase64): Likewise.
11033         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11034         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11035         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11036         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11037         (c_tolower, c_toupper): Likewise.
11038         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11039         * lib/chdir-long.c (find_non_slash): Likewise.
11040         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11041         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11042         * lib/file-type.h (file_type): Likewise.
11043         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11044         * lib/filevercmp.c (verrevcmp): Likewise.
11045         * lib/freadahead.h (freadahead): Likewise.
11046         * lib/fts.c (fts_maxarglen): Likewise.
11047         * lib/hash-pjw.h (hash_pjw): Likewise.
11048         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11049         * lib/hash.c (is_prime, next_prime): Likewise.
11050         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11051         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11052         (hash_table_ok, hash_get_first, hash_string): Likewise.
11053         (compute_bucket_size): Likewise.
11054         * lib/i-ring.h (i_ring_empty): Likewise.
11055         * lib/isnan.c (isnanl): Likewise.
11056         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11057         * lib/memcasecmp.h (memcasecmp): Likewise.
11058         * lib/memchr2.h (memchr2): Likewise.
11059         * lib/memcmp2.h (memcmp2): Likewise.
11060         * lib/parse-datetime.y (lookup_zone): Likewise.
11061         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11062         [!WINDOWS_SOCKETS]: Likewise.
11063         * lib/strnlen1.h (strnlen1): Likewise.
11064         * lib/uniwidth.in.h (uc_width): Likewise.
11065         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11066         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11067         (quoting_options_from_style): Add a comment.
11068         * lib/propername.h (proper_name): Add a comment.
11069
11070 2011-11-27  Bruno Haible  <bruno@clisp.org>
11071
11072         Remove unused macros from !_LIBC code in glibc-borrowed files.
11073         * lib/fnmatch.c (STRCOLL): Remove macro.
11074         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11075         * lib/glob.c (__stat, __readdir64): Remove macros.
11076         * lib/tempname.c (__open64, __xstat64): Remove macros.
11077         Suggested by Paul Eggert.
11078
11079 2011-11-27  Bruno Haible  <bruno@clisp.org>
11080
11081         getcwd: Fix link error on MSVC 9.
11082         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11083
11084 2011-11-27  Bruno Haible  <bruno@clisp.org>
11085
11086         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11087         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11088         HAVE_OPENDIR is 0.
11089         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11090         HAVE_CLOSEDIR is 0.
11091         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11092         is 0.
11093         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11094
11095 2011-11-27  Bruno Haible  <bruno@clisp.org>
11096
11097         getcwd: Fix bug from 2011-08-17.
11098         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11099         platforms that need it.
11100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11101         code of 4 to be a failure, not a success. This ensures that
11102         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11103
11104 2011-11-27  Bruno Haible  <bruno@clisp.org>
11105
11106         binary-io tests: Avoid test failure on mingw when libtool is used.
11107         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11108         Don't verify the size of t-bin-out1.tmp here.
11109         * tests/test-binary-io.sh: Verify it here.
11110         Reported by Simon Josefsson.
11111
11112 2011-11-26  Bruno Haible  <bruno@clisp.org>
11113
11114         Fix conflict between two instantiations of module 'unistd'.
11115         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11116         ${include_guard_prefix} also in the autoconf snippet.
11117         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11119         GNULIB_UNISTD_H_GETOPT.
11120         * modules/getopt-posix (configure.ac): Set the
11121         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11122         * modules/getopt-gnu (configure.ac): Likewise.
11123         * modules/unistd (Makefile.am): Change the substitution value of
11124         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11125         Reported by Simon Josefsson.
11126
11127 2011-11-25  Bruno Haible  <bruno@clisp.org>
11128
11129         pagealign_alloc: Doc and comments.
11130         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11131         module.
11132         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11133
11134 2011-11-25  Jim Meyering  <meyering@redhat.com>
11135
11136         test-update-copyright.sh: avoid false-positive failure
11137         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11138         around false positive failure on Cygwin/Windows.  The latter was
11139         matching erroneously-created files with names like
11140         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11141
11142 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11143
11144         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11145         * m4/valgrind-tests.m4: Check that the parameters that will be
11146         used works, not just a subset of them.  Reported by Bruno Haible
11147         <bruno@clisp.org>.
11148
11149 2011-11-24  Jim Meyering  <meyering@redhat.com>
11150
11151         test-stdalign.c: comment out long double tests
11152         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11153         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11154         error: '_Alignas' specifiers cannot reduce alignment of \
11155         'static_longdouble_alignas'.
11156
11157 2011-11-22  Jim Meyering  <meyering@redhat.com>
11158
11159         init.sh: make "compare /dev/null FILE" output more readable
11160         * tests/init.sh (compare_): Document the preferred order of arguments.
11161         (emit_diff_u_header_): New function.
11162         (compare_dev_null_): Emit a simulated diff, rather than just the
11163         contents of the unexpected file.  Suggestion from Bruno Haible.
11164
11165 2011-11-21  Jim Meyering  <meyering@redhat.com>
11166             Eric Blake  <eblake@redhat.com>
11167
11168         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11169         * tests/init.sh: Make our compare function slightly more portable.
11170         Reported by Bruno Haible in
11171         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11172
11173 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11174
11175         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11176         before using it, in code that ends up in config.h.
11177
11178 2011-11-20  Bruno Haible  <bruno@clisp.org>
11179
11180         getcwd: Work around getcwd bug on AIX 5..7.
11181         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11182         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11183         Use a different value for gl_cv_func_getcwd_path_max. Move the
11184         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11185         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11186         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11187         Define HAVE_MINIMALLY_WORKING_GETCWD.
11188         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11189         where it is not even minimally working, that is, on AIX.
11190         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11191         m4/getcwd-path-max.m4.
11192         (main): Update exit code computation.
11193         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11194         getcwd does not handle long file names.
11195
11196 2011-11-20  Bruno Haible  <bruno@clisp.org>
11197
11198         getcwd: Fix bug from 2009-09-10.
11199         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11200         like "no".
11201
11202 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11203
11204         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11205
11206 2011-11-20  Bruno Haible  <bruno@clisp.org>
11207
11208         fma tests: Avoid shadowing local variables.
11209         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11210         expected.
11211
11212 2011-11-20  Bruno Haible  <bruno@clisp.org>
11213
11214         copysignf tests: Fix.
11215         * tests/test-copysignf.c: Fix signature check.
11216
11217 2011-11-20  Bruno Haible  <bruno@clisp.org>
11218
11219         fma: Remove unused code.
11220         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11221         unused macros.
11222
11223 2011-11-20  Bruno Haible  <bruno@clisp.org>
11224
11225         sethostname: Fix doc about AIX.
11226         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11227         sethostname; it has it.
11228
11229         sethostname: Mention more portability problems.
11230         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11231         problem.
11232         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11233
11234 2011-11-19  Bruno Haible  <bruno@clisp.org>
11235
11236         Depend on module fcntl-h when AT_FDCWD is used.
11237         * modules/utimens (Depends-on): Add fcntl-h.
11238         * modules/areadlinkat (Depends-on): Likewise.
11239         * modules/areadlinkat-with-size (Depends-on): Likewise.
11240         * modules/faccessat (Depends-on): Likewise.
11241         * modules/fchmodat (Depends-on): Likewise.
11242         * modules/fchownat (Depends-on): Likewise.
11243         * modules/getcwd (Depends-on): Likewise.
11244         * modules/mkdirat (Depends-on): Likewise.
11245         * modules/mkfifoat (Depends-on): Likewise.
11246         * modules/readlinkat (Depends-on): Likewise.
11247         * modules/symlinkat (Depends-on): Likewise.
11248         * modules/dup2-tests (Depends-on): Likewise.
11249         * modules/fdutimensat-tests (Depends-on): Likewise.
11250         * modules/futimens-tests (Depends-on): Likewise.
11251
11252 2011-11-19  Bruno Haible  <bruno@clisp.org>
11253
11254         euidaccess: Update a comment.
11255         * lib/euidaccess.c: Update comment about platforms with faccessat.
11256
11257 2011-11-19  Bruno Haible  <bruno@clisp.org>
11258
11259         openat: Fix file list.
11260         * modules/openat (Files): Remove lib/at-func.c.
11261
11262 2011-11-19  Bruno Haible  <bruno@clisp.org>
11263
11264         fstatat: Simplify.
11265         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11266         gnulib should define rpl_fstatat, there is a
11267         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11268
11269 2011-11-19  Bruno Haible  <bruno@clisp.org>
11270
11271         Ensure 'inline' can be used in tests/test-utimens-common.h.
11272         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11273         * modules/futimens-tests (configure.ac): Likewise.
11274         * modules/utimens-tests (configure.ac): Likewise.
11275         * modules/utimensat-tests (configure.ac): Likewise.
11276
11277 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11278
11279         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11280         not hash_insert0.
11281         (hash_insert_if_absent): Doc fix.
11282
11283 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11284
11285         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11286
11287 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         test-getcwd: disambiguate exit status
11290         * tests/test-getcwd.c (test_long_name): Return 0..7.
11291         (main): Exit with an unambiguous exit status.  The old
11292         code yielded a mysterious mixture of two failure codes.
11293
11294         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11295         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11296         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11297         rpl_fstatat or fstatat.  This should fix the other problem
11298         reported by Kai Habel in
11299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11300         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11302         and I reproduced it on a Solaris 8 host we still have in production.
11303
11304 2011-11-18  Jim Meyering  <meyering@redhat.com>
11305
11306         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11307         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11308         Add a sentence to the comment.
11309         (hash_insert0): New function that simply calls hash_insert_if_absent.
11310         * lib/hash.h (hash_insert_if_absent): Declare it.
11311         (hash_insert0): Add deprecation attribute.
11312         (_GL_ATTRIBUTE_DEPRECATED): Define.
11313         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11314         not hash_insert0.
11315         * NEWS: Mention it, even though it's not really an incompatible change.
11316
11317 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11318
11319         openat: avoid compilation failure due to lack of <errno.h> inclusion
11320         * lib/openat.c: Include <errno.h>.
11321
11322 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11323
11324         * modules/getcwd (Depends-on): Add fdopendir.
11325         This fixes one of the two problems reported by Kai Habel in
11326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11327
11328         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11329         stdalign problem reported by Ian Beckwith in
11330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11331         * modules/crypto/gc-arcfour (Depends-on):
11332         Depend conditionally on crypto/arcfour.
11333         * modules/crypto/gc-arctwo (Depends-on):
11334         Depend conditionally on crypto/arctwo.
11335         * modules/crypto/gc-des (Depends-on):
11336         Depend conditionally on crypto/des.
11337         * modules/crypto/gc-hmac-md5 (Depends-on):
11338         Depend conditionally on crypto/hmac-md5.
11339         * modules/crypto/gc-hmac-sha1 (Depends-on):
11340         Depend conditionally on crypto/hmac-sha1.
11341         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11342         * modules/crypto/gc-md4 (Depends-on):
11343         Depend conditionally on crypto/md4.
11344         * modules/crypto/gc-md5 (Depends-on):
11345         Depend conditionally on crypto/md5.
11346         * modules/crypto/gc-rijndael (Depends-on):
11347         Depend conditionally on crypto/rijndael.
11348         * modules/crypto/gc-sha1 (Depends-on):
11349         Depend conditionally on crypto/sha1.
11350         * modules/crypto/gc-arcfour:
11351         * modules/crypto/gc-arctwo:
11352         * modules/crypto/gc-des:
11353         * modules/crypto/gc-hmac-md5:
11354         * modules/crypto/gc-hmac-sha1:
11355         * modules/crypto/gc-md2:
11356         * modules/crypto/gc-md4:
11357         * modules/crypto/gc-md5:
11358         * modules/crypto/gc-rijndael:
11359         * modules/crypto/gc-sha1:
11360         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11361         now that the conditional dependencies do the work for us.
11362
11363 2011-11-17  Jim Meyering  <meyering@redhat.com>
11364
11365         tests: factor st_ctime-comparison out of two headers
11366         * tests/test-utimens-common.h (ctime_compare): Define.
11367         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11368         * tests/test-lutimens.h (test_lutimens): Likewise.
11369         * tests/test-utimens.h (test_utimens): Likewise.
11370
11371         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11372         Invoke the test program via an init.sh-using wrapper.
11373         * tests/test-getcwd.sh: New file.
11374         * modules/getcwd-tests (Files): Add it.
11375         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11376
11377 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11378
11379         gitlog-to-changelog: support multi-author commits.
11380         The FSF cares about keeping track of all authors of patches to its
11381         projects, but Git doesn't provide obvious support for multi-author
11382         changesets. Consensus seems to be forming around the use of extra
11383         Signed-off-by inspired lines in the log message formatted as
11384         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11385         multi-author commits between version control systems.
11386         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11387         log message and output in standard ChangeLog multi-author format.
11388         Reported by Peter Rosin <peda@lysator.liu.se>
11389
11390 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11391             Bruno Haible  <bruno@clisp.org>
11392
11393         Fix some modules' file list.
11394         * modules/fstatat (Files): Add m4/lstat.m4.
11395         * modules/openat (Files): Likewise.
11396         * modules/unlinkat (Files): Likewise.
11397
11398 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11399
11400         maint.mk: fix tight-scope.mk generation in VPATH builds.
11401         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11402         reference with $(srcdir) so that the file is found correctly even
11403         when running `make syntax-check' in a VPATH build.
11404
11405 2011-11-13  Bruno Haible  <bruno@clisp.org>
11406             Jim Meyering  <meyering@redhat.com>
11407
11408         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11409         * tests/init.sh (compare): Remove "No differences encountered" or
11410         synonymous output from the 'diff' program.
11411
11412 2011-11-13  Bruno Haible  <bruno@clisp.org>
11413
11414         Makefile: Tweak indentation.
11415         * Makefile: Use tab as first character in every line that contains rule
11416         commands.
11417
11418 2011-11-13  Bruno Haible  <bruno@clisp.org>
11419
11420         Syntax check for copyright statements.
11421         * check-copyright: New file.
11422         * Makefile (sc_check_copyright): New rule.
11423
11424 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11425
11426         * build-aux/git-version-gen: Add --prefix to configure the tag
11427         match string.
11428
11429 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11430
11431         * build-aux/git-version-gen: Add --help and --version.
11432
11433 2011-11-12  Jim Meyering  <meyering@redhat.com>
11434
11435         revamp the other test-exclude?.sh scripts to use init.sh, too
11436         * tests/test-exclude1.sh: Use init.sh.
11437         * tests/test-exclude2.sh: Likewise.
11438         * tests/test-exclude3.sh: Likewise.
11439         * tests/test-exclude4.sh: Likewise.
11440         * tests/test-exclude5.sh: Likewise.
11441         * tests/test-exclude6.sh: Likewise.
11442         * tests/test-exclude7.sh: Likewise.
11443         * tests/test-exclude8.sh: Likewise.
11444         * modules/exclude-tests (Files): List init.sh.
11445
11446         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11447         These shell scripts ignored failure of the binary test-exclude,
11448         so making the latter return 77 didn't cause them to be skipped.
11449         * tests/test-exclude5.sh: Exit with test-exclude's error status
11450         when that program fails.  Revamp to use init.sh.
11451         * tests/test-exclude2.sh: Likewise.
11452
11453         test-exclude: fix a typo
11454         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11455
11456 2011-11-11  Bruno Haible  <bruno@clisp.org>
11457
11458         obstack: Fix compilation error on MSVC 9.
11459         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11460
11461 2011-11-11  Jim Meyering  <meyering@redhat.com>
11462
11463         test-exclude: skip tests rather than failing on deficient systems
11464         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11465         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11466         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11467         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11468
11469 2011-11-10  Bruno Haible  <bruno@clisp.org>
11470
11471         ptsname_r test: Avoid gcc warning on glibc systems.
11472         * tests/test-ptsname_r.c (null_ptr): New function.
11473         (test_errors): Use it.
11474
11475 2011-11-10  Bruno Haible  <bruno@clisp.org>
11476
11477         ptsname_r: Avoid compilation error on OSF/1 5.1.
11478         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11480         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11481         function is not declared or incompatibly declared.
11482         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11483         * modules/ptsname_r (Depends-on, configure.ac): Update.
11484         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11485
11486 2011-11-10  Bruno Haible  <bruno@clisp.org>
11487
11488         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11489         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11490         When cross-compiling, guess yes on all platforms except AIX.
11491         Reported by Ludovic Courtès <ludo@gnu.org>.
11492
11493 2011-11-09  Bruno Haible  <bruno@clisp.org>
11494
11495         ptsname_r tests: Fix bugs.
11496         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11497         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11498
11499 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11500
11501         fstatat: work with cross-compilation
11502         Problem reported by Ludovic Courtès in
11503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11504         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11505         "cross-compiling" and assume the bug is present.  Replace
11506         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11507         an inverted sense, to be more conservative about our assumptions.
11508         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11509
11510 2011-11-09  Bruno Haible  <bruno@clisp.org>
11511
11512         Improve MODULES.html output.
11513         * modules/mkfifoat (Description): Use the word "function".
11514         * modules/readlinkat (Description): Likewise.
11515         * modules/symlinkat (Description): Likewise.
11516
11517 2011-11-09  Eric Blake  <eblake@redhat.com>
11518
11519         ptsname_r-tests: new test module
11520         * modules/ptsname_r-tests: New module.
11521         * tests/test-ptsname_r.c: New file.
11522
11523         ptsname_r: new module
11524         * modules/ptsname_r: New module.
11525         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11526         * lib/ptsname.c (__ptsname_r): Split...
11527         * lib/ptsname_r.c: ...into new file.
11528         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11529         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11530         * modules/stdlib (Makefile.am): Substitute witnesses.
11531         * lib/stdlib.in.h (ptsname_r): Declare it.
11532         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11533         * MODULES.html.sh (Misc): Likewise.
11534         * modules/ptsname (Depends-on): Alter dependency.
11535         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11536
11537 2011-11-09  Jim Meyering  <meyering@redhat.com>
11538
11539         announce-gen: be more concise when there's only one URL+tarball
11540         * build-aux/announce-gen (get_tool_versions): When you distribute
11541         only one type of tarball, combine the first two "Here are..."
11542         sections and make the key-checking grammar independent of
11543         how many tarballs there are.
11544
11545 2011-11-09  Eric Blake  <eblake@redhat.com>
11546
11547         openpty: provide a stub on mingw
11548         * lib/pty.in.h (includes): Provide forward declarations.
11549         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11550
11551         raise: fix mingw handling of SIGPIPE
11552         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11553
11554 2011-11-08  Bruno Haible  <bruno@clisp.org>
11555
11556         More conditional dependencies.
11557         * modules/faccessat (Depends-on): Add conditions.
11558         * modules/fchmodat (Depends-on): Likewise.
11559         * modules/fchownat (Depends-on): Likewise.
11560         * modules/fstatat (Depends-on): Likewise.
11561         * modules/mkfifoat (Depends-on): Likewise.
11562         * modules/readlinkat (Depends-on): Likewise.
11563         * modules/symlinkat (Depends-on): Likewise.
11564         * modules/unlinkat (Depends-on): Likewise.
11565         * modules/utimensat (Depends-on): Likewise.
11566         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11567         * modules/linkat (Depends-on): Refine the conditions.
11568         * modules/renameat (Depends-on): Likewise.
11569
11570 2011-11-08  Bruno Haible  <bruno@clisp.org>
11571
11572         faccessat: Move AC_LIBOBJ invocation to module description.
11573         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11574         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11575         invocation from here...
11576         * modules/faccessat (configure.ac): ... to here. Invoke
11577         gl_PREREQ_FACCESSAT.
11578
11579 2011-11-08  Bruno Haible  <bruno@clisp.org>
11580
11581         faccessat: Simplify autoconf macro.
11582         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11583         gl_FUNC_EUIDACCESS.
11584
11585 2011-11-08  Bruno Haible  <bruno@clisp.org>
11586
11587         renameat: Fix dependencies.
11588         * modules/renameat (Depends-on): Add stdbool.
11589
11590 2011-11-08  Bruno Haible  <bruno@clisp.org>
11591
11592         mkfifoat: Fix module description.
11593         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11594         not gl_UNISTD_MODULE_INDICATOR.
11595
11596 2011-11-08  Bruno Haible  <bruno@clisp.org>
11597
11598         fstatat: Remove unused dependency.
11599         * modules/fstatat (Depends-on): Remove fstat.
11600
11601 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11602
11603         GNUmakefile: behave when Makefile is missing.
11604         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11605
11606 2011-11-08  Bruno Haible  <bruno@clisp.org>
11607
11608         openat: Conditionalize dependencies.
11609         * lib/openat.c: Reduce the scope of some #includes.
11610         * modules/openat (Depends-on): Add conditions.
11611
11612 2011-11-07  Jim Meyering  <meyering@redhat.com>
11613
11614         maint.mk: extract GPG key ID without using a temporary file
11615         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11616         without using a temporary file.  Based on a suggestion from Werner Koch
11617         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11618
11619 2011-11-07  Eric Blake  <eblake@redhat.com>
11620
11621         grantpt: fix typo
11622         * lib/stdlib.in.h (grantpt): Check correct function.
11623
11624         maint.mk: silence new syntax check
11625         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11626
11627 2011-11-06  Bruno Haible  <bruno@clisp.org>
11628
11629         Doc about floating-point and math API.
11630         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11631         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11632
11633 2011-11-06  Bruno Haible  <bruno@clisp.org>
11634
11635         stdalign tests: Skip the test when compiled by Sun C.
11636         * tests/test-stdalign.c (main): Skip the test on Sun C.
11637
11638 2011-11-06  Bruno Haible  <bruno@clisp.org>
11639
11640         ansi-c++-opt: Complete the 2011-06-05 change.
11641         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11642         does not support namespaces, set the variable to "no", not to ":".
11643
11644 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11645
11646         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11647
11648 2011-11-06  Bruno Haible  <bruno@clisp.org>
11649
11650         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11651         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11652         (minus_zerol) [HP-UX]: New macro.
11653         (unary_minus) [HP-UX]: New function.
11654         (copysignl) [HP-UX]: Use unary_minus function.
11655
11656 2011-11-06  Bruno Haible  <bruno@clisp.org>
11657
11658         ldexp, ldexpf, ldexpl: Enhance tests.
11659         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11660         and tests/test-ldexpl.c.
11661         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11662         LDEXP, MIN_EXP, MAX_EXP): New macros.
11663         Include test-ldexp.h.
11664         (main): Just call test_function.
11665         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11666         infinity.h, nan.h.
11667         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11668         MAX_EXP): New macros.
11669         Include test-ldexp.h.
11670         (x, y): Remove variables.
11671         (main): Just call test_function.
11672         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11673         infinity.h, nan.h.
11674         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11675         MAX_EXP): New macros.
11676         Include test-ldexp.h.
11677         (x, y): Remove variables.
11678         (main): Just call test_function.
11679         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11680         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11681         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11682         (Depends-on): Add isnand-nolibm, signbit, float.
11683         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11684         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11685         (Depends-on): Add isnanf-nolibm, signbit, float.
11686
11687 2011-11-06  Bruno Haible  <bruno@clisp.org>
11688
11689         math tests: Cosmetics.
11690         * tests/test-math-c++.cc: Reorder declarations.
11691
11692 2011-11-05  Bruno Haible  <bruno@clisp.org>
11693
11694         fma*: Simplify test.
11695         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11696         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11697
11698         Tests for module 'fmal'.
11699         * modules/fmal-tests: New file.
11700         * tests/test-fmal1.c: New file.
11701         * tests/test-fmal2.c: New file.
11702
11703         New module 'fmal'.
11704         * lib/math.in.h (fmal): New declaration.
11705         * lib/fmal.c: New file.
11706         * m4/fmal.m4: New file.
11707         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11709         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11710         REPLACE_FMAL.
11711         * modules/fmal: New file.
11712         * doc/posix-functions/fmal.texi: Mention the new module and the various
11713         bugs.
11714
11715         Tests for module 'fmaf'.
11716         * modules/fmaf-tests: New file.
11717         * tests/test-fmaf1.c: New file.
11718         * tests/test-fmaf2.c: New file.
11719
11720         New module 'fmaf'.
11721         * lib/math.in.h (fmaf): New declaration.
11722         * lib/fmaf.c: New file.
11723         * m4/fmaf.m4: New file.
11724         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11726         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11727         REPLACE_FMAF.
11728         * modules/fmaf: New file.
11729         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11730         bugs.
11731
11732         Tests for module 'fma'.
11733         * modules/fma-tests: New file.
11734         * tests/test-fma1.c: New file.
11735         * tests/test-fma1.h: New file.
11736         * tests/test-fma2.c: New file.
11737         * tests/test-fma2.h: New file.
11738
11739         New module 'fma'.
11740         * lib/math.in.h (fma): New declaration.
11741         * lib/fma.c: New file.
11742         * m4/fma.m4: New file.
11743         * m4/fegetround.m4: New file.
11744         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11746         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11747         REPLACE_FMA.
11748         * modules/fma: New file.
11749         * doc/posix-functions/fma.texi: Mention the new module and the various
11750         bugs.
11751
11752         Extend gl_MATHFUNC.
11753         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11754         Support 'void' as argument type.
11755         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11756
11757 2011-11-05  Jim Meyering  <meyering@redhat.com>
11758
11759         maint.mk: also prohibit inclusion of dirent.h without use
11760         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11761
11762 2011-11-05  Bruno Haible  <bruno@clisp.org>
11763
11764         ldexpl tests: Avoid test failure on MSVC 9.
11765         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11766         value. Needed in order to enforce the conversion from a value greater
11767         than LDBL_MAX to Infinity.
11768
11769 2011-11-05  Bruno Haible  <bruno@clisp.org>
11770
11771         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11772         * modules/at-internal: New file, extracted from modules/openat.
11773         * modules/openat-h: New file.
11774         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11775         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11776         * modules/openat (Description): Add reference to POSIX function.
11777         (Files): Remove lib/openat.h, lib/openat-proc.c.
11778         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11779         intprops, unistd.
11780         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11781         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11782         gl_FCNTL_MODULE_INDICATOR.
11783         (Include): Remove unistd.h, openat.h.
11784         * modules/areadlinkat (Files): Add lib/at-func.c.
11785         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11786         openat-die, openat-h, save-cwd.
11787         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11788         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11789         openat-die, openat-h, save-cwd, unistd.
11790         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11791         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11792         openat-h, save-cwd. Remove fcntl-h, openat.
11793         * modules/fchmodat (Files): Remove lib/openat.h.
11794         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11795         openat, stdbool, unistd.
11796         * modules/fchownat (Files): Remove lib/openat.h.
11797         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11798         openat, stdbool, sys_stat.
11799         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11800         lib/openat-proc.c.
11801         (Depends-on): Add at-internal.
11802         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11803         * modules/fstatat (Files): Remove lib/openat.h.
11804         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11805         stdbool, unistd.
11806         * modules/fts (Depends-on): Add openat-h.
11807         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11808         openat.
11809         * modules/mkdirat (Files): Remove lib/openat.h.
11810         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11811         openat, stdbool, sys_stat.
11812         * modules/mkfifoat (Files): Add lib/at-func.c.
11813         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11814         openat-h, save-cwd. Remove fcntl-h, openat.
11815         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11816         * modules/readlinkat (Files): Add lib/at-func.c.
11817         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11818         openat-h, save-cwd. Remove fcntl-h, openat.
11819         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11820         openat.
11821         * modules/selinux-at (Files): Add lib/at-func.c.
11822         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11823         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11824         * modules/symlinkat (Files): Add lib/at-func.c.
11825         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11826         openat-h, save-cwd. Remove fcntl-h, openat.
11827         * modules/unlinkat (Files): Remove lib/openat.h.
11828         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11829         stdbool.
11830         * modules/utimensat (Files): Add lib/at-func.c.
11831         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11832         openat-die, openat-h, save-cwd.
11833         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11834         * modules/fdutimensat-tests (Depends-on): Add openat.
11835         * modules/fstatat-tests (Depends-on): Add openat-h.
11836         * modules/readlinkat-tests (Depends-on): Add openat.
11837         * modules/symlinkat-tests (Depends-on): Add openat.
11838
11839 2011-11-05  Bruno Haible  <bruno@clisp.org>
11840
11841         openat: Include <stdbool.h>.
11842         * lib/openat.c: Include <stdbool.h>.
11843
11844 2011-11-04  Bruno Haible  <bruno@clisp.org>
11845
11846         fchownat, renameat, unlinkat: Fix dependencies.
11847         * modules/fchownat (Depends-on): Add fstatat.
11848         * modules/renameat (Depends-on): Likewise.
11849         * modules/unlinkat (Depends-on): Likewise.
11850
11851 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11852
11853         openat: remove direct dependency on dirent
11854         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11855         and hasn't been needed ever since fdopendir was split into its own
11856         module on 2009-08-31.
11857         * modules/openat (Depends-on): Remove dirent.
11858
11859 2011-11-04  Bruno Haible  <bruno@clisp.org>
11860
11861         renameat: Optimize code size.
11862         * modules/renameat (configure.ac): Don't compile at-func2.c if
11863         REPLACE_RENAMEAT is 1.
11864
11865 2011-11-04  Bruno Haible  <bruno@clisp.org>
11866
11867         openat tests: Fix file list.
11868         * modules/openat-tests (Files): Add tests/test-open.h.
11869
11870 2011-11-04  Bruno Haible  <bruno@clisp.org>
11871
11872         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11873         * modules/fchmodat (Depends-on): Add openat-die.
11874         * modules/fchownat (Depends-on): Likewise.
11875         * modules/linkat (Depends-on): Likewise.
11876         * modules/renameat (Depends-on): Likewise.
11877         * modules/openat (Depends-on): Add dirent.
11878
11879 2011-11-04  Jim Meyering  <meyering@redhat.com>
11880
11881         at-func*.c: fix comments
11882         * lib/at-func2.c: Correct/improve first-line comment.
11883         * lib/at-func.c: Correct grammar in first-line comment.
11884
11885 2011-11-04  Bruno Haible  <bruno@clisp.org>
11886
11887         New module 'mkdirat', split off from module 'openat'.
11888         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11889         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11890         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11891         * modules/mkdirat: New file, extracted from modules/openat.
11892         * modules/openat (Files): Remove lib/mkdirat.c.
11893         (Depends-on): Remove mkdir.
11894         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11895         (Include): Remove <sys/stat.h>.
11896         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11897         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11898         tests/test-mkdir.h.
11899         (Depends-on): Remove ignore-value.
11900         (Makefile.am): Remove rules for test-mkdirat.
11901         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11902         of module 'openat'.
11903         * NEWS: Mention the change.
11904
11905 2011-11-04  Bruno Haible  <bruno@clisp.org>
11906
11907         closedir: Avoid warning on mingw.
11908         * lib/closedir.c: Include <unistd.h>.
11909
11910 2011-11-04  Bruno Haible  <bruno@clisp.org>
11911
11912         New module 'fstatat', split off from module 'openat'.
11913         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11914         defined.
11915         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11916         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11917         gl_FUNC_FSTATAT.
11918         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11919         * modules/fstatat: New file, extracted from modules/openat.
11920         * modules/openat (Files): Remove lib/fstatat.c.
11921         (Depends-on): Remove lstat.
11922         (configure.ac): Remove AC_LIBOBJ of fstatat.
11923         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11924         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11925         tests/test-lstat.h, tests/test-stat.h.
11926         (Depends-on): Remove getcwd-lgpl.
11927         (Makefile.am): Remove rules for test-fstatat.
11928         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11929         of module 'openat'.
11930         * NEWS: Mention the change.
11931         * modules/getcwd (Depends-on): Add fstatat.
11932         * modules/linkat (Depends-on): Likewise.
11933         * modules/mkfifoat-tests (Depends-on): Likewise.
11934         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11935
11936 2011-11-03  Bruno Haible  <bruno@clisp.org>
11937
11938         New module 'unlinkat', split off from module 'openat'.
11939         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11940         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11941         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11942         * modules/unlinkat: New file, extracted from modules/openat. Correct
11943         the dependency conditions.
11944         * modules/openat (Files): Remove lib/unlinkat.c.
11945         (Depends-on): Remove rmdir, unlink.
11946         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11947         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11948         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11949         tests/test-rmdir.h, tests/test-unlink.h.
11950         (Depends-on): Remove unlinkdir.
11951         (Makefile.am): Remove rules for test-unlinkat.
11952         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11953         of module 'openat'.
11954         * NEWS: Mention the change.
11955         * modules/linkat-tests (Depends-on): Add unlinkat.
11956         * modules/mkfifoat-tests (Depends-on): Likewise.
11957         * modules/readlinkat-tests (Depends-on): Likewise.
11958
11959 2011-11-02  Bruno Haible  <bruno@clisp.org>
11960
11961         New module 'fchmodat', split off from module 'openat'.
11962         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11963         defined.
11964         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11965         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11966         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11967         * modules/fchmodat: New file, extracted from modules/openat.
11968         * modules/openat (Files): Remove lib/fchmodat.c.
11969         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11970         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11971         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11972         (Makefile.am): Remove rules for test-fchmodat.
11973         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11974         of module 'openat'.
11975         * NEWS: Mention the change.
11976
11977 2011-11-02  Jim Meyering  <meyering@redhat.com>
11978
11979         putenv: indent #definition of "environ" to placate cppi
11980         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11981
11982         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11983         Git logs are often treated as immutable, because editing them
11984         changes the SHA1 checksums of all descendants.  Thus, errors in
11985         git logs tend to stay there forever.  However, when we generate
11986         a ChangeLog file -- typically for distribution -- from that git log,
11987         we can actually make corrections in the generated file.  The key
11988         lies in recording in machine-readable/applicable form the desired
11989         corrections.  See --help for description and an example.
11990         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11991         (usage): Describe it; alphabetize option descriptions.
11992         (main): Honor the new option, carefully.
11993
11994 2011-11-01  Jim Meyering  <meyering@redhat.com>
11995
11996         gitlog-to-changelog: avoid an infloop
11997         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11998         that ends up being empty.
11999
12000 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12001
12002         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12003         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12004         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12005         contains (possibly-quoted) backslashes.  This should avoid
12006         all-too-common shell bugs if COMPLICATED contains backslashes in
12007         the "wrong" places.  Reported by David Evans in
12008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12009         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12010         because we want ASCII ranges.  Is there some reason we don't use
12011         the C locale everywhere in this script?
12012         (func_module, top level): Avoid unwanted pathname expansion when
12013         $repo_url_prefix or $repo_url_suffix_repl contain shell
12014         metacharacters like '?' and '*'.
12015
12016 2011-11-01  Bruno Haible  <bruno@clisp.org>
12017
12018         fchownat: Improve description.
12019         * modules/fchownat (Description): Add link to function.
12020
12021 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12022
12023         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12024         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12026         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12027
12028 2011-11-01  Bruno Haible  <bruno@clisp.org>
12029
12030         alignof: Avoid collision with stdalign module.
12031         * lib/alignof.h (alignof): Remove macro.
12032         * NEWS: Mention the change.
12033         Reported by Paul Eggert.
12034
12035 2011-11-01  Bruno Haible  <bruno@clisp.org>
12036
12037         New module 'fchownat', split off from module 'openat'.
12038         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12039         defined.
12040         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12041         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12042         invoke gl_FUNC_FCHOWNAT.
12043         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12044         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12045         * modules/fchownat: New file, extracted from modules/openat.
12046         * modules/openat (Files): Remove lib/fchownat.c.
12047         (Depends-on): Remove lchown.
12048         (configure.ac): Remove AC_LIBOBJ of fchownat.
12049         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12050         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12051         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12052         (Depends-on): Remove mgetgroups, usleep, stat-time.
12053         (configure.ac): Remove test for getegid.
12054         (Makefile.am): Remove rules for test-fchownat.
12055         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12056         of module 'openat'.
12057         * NEWS: Mention the change.
12058
12059 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12060
12061         stdalign: port better to MSVC and to Sun C 5.11
12062         This fixes some of the problems reported by Bruno Haible in
12063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12064         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12065         shortcomings of MSVC and of Sun C 5.11.
12066         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12067         around __declspec arg.
12068         * modules/stdalign-tests (Files): Add tests/macros.h.
12069         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12070         Include macros.h, for ASSERT.
12071         (DECLARE_ALIGNED): Remove.
12072         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12073         to catch bug), and to 1 if not (simplifies the rest of the code).
12074         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12075         (CHECK_AUTO): Remove.
12076         (CHECK_ALIGNED): Check only the alignment of the static vars,
12077         since auto var alignment isn't supported by Sun C 5.11.
12078         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12079         ASSERT failures are easier to diagnose.
12080
12081 2011-10-31  Bruno Haible  <bruno@clisp.org>
12082
12083         doc about some IRIX 5.3 problems.
12084         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12085         on IRIX 5.3.
12086         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12087         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12088         5.3.
12089         * doc/posix-functions/grantpt.texi: Likewise.
12090         * doc/posix-functions/unlockpt.texi: Likewise.
12091         * doc/posix-functions/lgamma.texi: Likewise.
12092         * doc/posix-functions/nextafter.texi: Likewise.
12093         * doc/posix-functions/remainder.texi: Likewise.
12094         * doc/posix-functions/select.texi: Mention misplaced declaration on
12095         IRIX 5.3.
12096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12097
12098 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12099
12100         gitlog-to-changelog: fix git-log invocation.
12101         git-log mishandles date strings before 1970-01-01 UTC, and there is
12102         no use to specify --since=1970-01-01 by default anyway.
12103         * build-aux/gitlog-to-changelog: By default, when no --since option
12104         was given, do not specify explicit --since option to git-log.
12105
12106 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12107
12108         gitlog-to-changelog: new option --append-dot.
12109         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12110         first non-blank line of each commit message terminated with a dot.
12111
12112 2011-10-30  Bruno Haible  <bruno@clisp.org>
12113
12114         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12115         * lib/ffsl.h: Include <config.h>.
12116         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12117
12118 2011-10-30  Jim Meyering  <meyering@redhat.com>
12119
12120         GNUmakefile: reenable "make syntax-check" for most projects
12121         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12122         build-aux variable", "syntax-check" would do nothing but succeed with
12123         the "No version control files detected..." diagnostic (unless you
12124         happened to override _build-aux via cfg.mk).
12125         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12126         to precede inclusion of maint.mk.  Otherwise, these variables would
12127         be used undefined in any project that does not override the default.
12128
12129 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12130
12131         gitlog-to-changelog: treat a message with only blank lines as empty.
12132         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12133         trailing blank lines before the code that issues a warning about an
12134         empty commit message.
12135
12136 2011-10-30  Jim Meyering  <meyering@redhat.com>
12137
12138         test-parse-datetime.c: avoid new DST-related false positive test failure
12139         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12140         based on the time/date we'll convert, not the current time.
12141         Otherwise, the moment we cross a DST boundary like today's in
12142         Europe, (CEST to CET), that offset ends up being one hour off.
12143
12144 2011-10-27  Bruno Haible  <bruno@clisp.org>
12145
12146         fstat: Tweak documentation.
12147         * modules/fstat (Description): More precise description.
12148
12149 2011-10-27  Bruno Haible  <bruno@clisp.org>
12150
12151         Update documentation regarding 'largefile' module.
12152         * doc/posix-functions/fstat.texi: Tweak wording.
12153         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12154         problems with huge directories and/or small ino_t types.
12155         * doc/posix-functions/readdir.texi: Likewise.
12156         * doc/posix-functions/rewinddir.texi: Likewise.
12157
12158 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12159
12160         maint.mk: don't maintain a second build-aux variable.
12161         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12162         depends on GNUmakefile, which already maintains a cfg.mk
12163         overridable $(_build-aux) for projects with a non-standard
12164         build-aux directory location, although without the $(srcdir)
12165         prefix.  Use that variable consistently instead of introducing a
12166         second one.  Adjust all call sites.
12167
12168 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12169
12170         Add stdalign module and use it in other modules.
12171         This is based on a previous proposal by Bruno Haible
12172         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12173
12174         stdalign: new module
12175         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12176         * modules/stdalign: New files.
12177         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12178         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12179
12180         stdalign-tests: new module
12181         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12182
12183         argp: use stdalign
12184         * lib/argp-parse.c: Include <stdalign.h>.
12185         (alignof): Remove.
12186         * modules/argp (Depends-on): Add stdalign.
12187
12188         crypto libraries: use stdalign
12189         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12190         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12191         Do not include <stdlib.h> twice, in md4.c.
12192         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12193         because we are accessing a pointer's bit-pattern, not a size.
12194         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12195         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12196         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12197         * modules/crypto/sha512: Likewise.
12198
12199         sys_socket: use stdalign, not alignof
12200         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12201         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12202
12203 2011-10-27  Bruno Haible  <bruno@clisp.org>
12204
12205         raise test: Avoid a test failure on Linux/MIPS.
12206         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12207         because 99 is a valid signal on Linux/MIPS.
12208
12209 2011-10-27  Bruno Haible  <bruno@clisp.org>
12210
12211         nonblocking tests: Fix test failure on Linux/MIPS.
12212         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12213         Set to 270000.
12214
12215 2011-10-27  Bruno Haible  <bruno@clisp.org>
12216
12217         utimensat: Work around problem on Linux/hppa.
12218         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12219         values.
12220         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12221
12222 2011-10-25  Jim Meyering  <meyering@redhat.com>
12223
12224         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12225         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12226         after symbols like NULL, size_t, etc.
12227         Reported by Alfred M. Szmidt.
12228
12229         maint.mk: exempt ENODATA from a syntax-check rule
12230         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12231         from the sc_prohibit_always-defined_macros syntax-check rule.
12232         Add a comment.  See this for more details:
12233         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12234
12235 2011-10-23  Jim Meyering  <meyering@redhat.com>
12236
12237         fts: close parent dir FD before returning from post-traversal fts_read
12238         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12239         unlink A, even though an FD open on A remained.  This is suboptimal
12240         (holding a file descriptor open longer than needed), but otherwise not
12241         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12242         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12243         that represents a real problem: it causes the removal of A to fail
12244         with e.g., "rm: cannot remove `A': Device or resource busy"
12245
12246         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12247         directory file descriptors.  After completing the final, FTS_DP,
12248         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12249         cache, but then proceeded to add a new FD to it via the subsequent
12250         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12251         final file descriptor would be closed only via fts_close's call to
12252         fd_ring_clear.  Now, it is usually closed earlier, via the final
12253         FTS_DP-returning fts_read call.
12254         * lib/fts.c (restore_initial_cwd): New function, converted from
12255         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12256         Update callers.
12257         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12258         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12259
12260 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12261             Bruno Haible  <bruno@clisp.org>
12262             Jim Meyering  <jim@meyering.net>
12263
12264         readme-release: improve safety of release prep instructions.
12265         * README-release: Don't git pull all branches when only master
12266         is needed for the release process.
12267         Run make maintainer-clean before changing trees and merging.
12268         Don't try to run ./configure right after git pull in case files
12269         that influence the bootstrap process have changed, move the
12270         ./configure step to after running ./bootstrap.
12271         Don't bootstrap "one last time"... it's the first time!
12272
12273 2011-10-22  Bruno Haible  <bruno@clisp.org>
12274
12275         errno, strerror-override: Support for MSVC 10.
12276         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12277         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12278         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12279         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12280         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12281         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12282         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12283         Assign values compatible with MSVC 10.
12284         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12285         New macros.
12286         (GNULIB_defined_EWINSOCK): New macro.
12287         * lib/strerror-override.c (strerror_override): Update accordingly.
12288         * lib/strerror-override.h: Likewise.
12289         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12290         longer equal to the corresponding errno value.
12291         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12292
12293 2011-10-22  Bruno Haible  <bruno@clisp.org>
12294
12295         perror: Recognize when test program crashes.
12296         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12297         strerror, set gl_cv_func_perror_works to no.
12298         Reported by Daniel Richard G. <skunk@iskunk.org>.
12299
12300         perror: Fix indentation.
12301         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12302
12303 2011-10-22  Bruno Haible  <bruno@clisp.org>
12304
12305         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12306         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12307         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12308         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12309         functions, not as a macro.
12310         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12311         macros.
12312         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12313         absence of macro.
12314         Suggested by Eric Blake.
12315         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12316
12317 2011-10-21  Bruno Haible  <bruno@clisp.org>
12318
12319         relocatable-prog-wrapper: Don't leave object files behind.
12320         * build-aux/install-reloc: Re-synchronize list of .o files to be
12321         removed with list of compilation units.
12322
12323 2011-10-20  Bruno Haible  <bruno@clisp.org>
12324
12325         openpty, posix_openpt: Remove code duplication.
12326         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12327         * lib/openpty.c: Include <stdlib.h>.
12328         (openpty): Use posix_openpt on all platforms except IRIX.
12329         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12330
12331 2011-10-20  Bruno Haible  <bruno@clisp.org>
12332
12333         unlockpt: Detect invalid argument.
12334         * lib/unlockpt.c: Include <fcntl.h>.
12335         (unlockpt): Check whether fd is valid, using fcntl().
12336         * modules/unlockpt (Depends-on): Add fcntl-h.
12337
12338 2011-10-20  Bruno Haible  <bruno@clisp.org>
12339
12340         openpty: Avoid compilation error on AIX 6.1.
12341         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12342
12343 2011-10-20  Bruno Haible  <bruno@clisp.org>
12344
12345         posix_openpt: Support for OpenBSD.
12346         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12347         (posix_openpt) [OpenBSD]: New code.
12348         * lib/grantpt.c: Include <fcntl.h>.
12349         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12350         * modules/grantpt (Depends-on): Add fcntl-h.
12351
12352 2011-10-20  Bruno Haible  <bruno@clisp.org>
12353
12354         posix_openpt test: Coding style.
12355         * tests/test-posix_openpt.c: Use GNU coding style.
12356
12357 2011-10-20  Bruno Haible  <bruno@clisp.org>
12358
12359         grantpt: Support --avoid=pt_chown.
12360         * modules/grantpt (Files): Add lib/pty-private.h.
12361
12362 2011-10-20  Bruno Haible  <bruno@clisp.org>
12363
12364         posix_openpt: Fix autoconf macro.
12365         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12366         unneeded check for _getpty.
12367
12368 2011-10-20  Bruno Haible  <bruno@clisp.org>
12369
12370         openpty: Update comments.
12371         * lib/openpty.c: Add comments about Minix.
12372
12373 2011-10-19  Eric Blake  <eblake@redhat.com>
12374
12375         openpty: relax license
12376         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12377
12378         pt_chown: use configmake to simplify build
12379         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12380
12381         ptsname and others: relax license
12382         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12383         * modules/unlockpt (License): Likewise.
12384         * modules/pt_chown (License): Likewise.
12385         * modules/ptsname (License): Likewise.
12386         * modules/ttyname_r (License): Likewise.
12387
12388 2011-10-19  Jim Meyering  <meyering@redhat.com>
12389
12390         posix_openpt: remove spurious #endif
12391         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12392
12393 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12394
12395         maint.mk: Respect $(build_aux) in web-manual rule.
12396         * top/maint.mk (web-manual): Find gen-announce script in user's
12397         $(build_aux) directory instead of hard-coding 'build-aux'.
12398
12399 2011-10-19  Bruno Haible  <bruno@clisp.org>
12400
12401         posix_openpt: Fix compilation error.
12402         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12403         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12404         Mention the openpty module as an alternative.
12405
12406 2011-10-19  Bruno Haible  <bruno@clisp.org>
12407
12408         Support for old NeXTstep 3.3 frexp().
12409         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12410         execution time of the test to 5 seconds.
12411         Reported by Daniel Richard G. <skunk@iskunk.org>.
12412
12413 2011-10-19  Bruno Haible  <bruno@clisp.org>
12414
12415         Support for old NeXTstep 3.3 sed.
12416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12417         part, use /.../, not \|...|. Escape periods in the header file name.
12418         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12419         Reported by Daniel Richard G. <skunk@iskunk.org>.
12420
12421 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12422
12423         Support for old NeXTstep 3.3 gcc.
12424         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12425         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12426         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12427         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12428         * lib/regex.h (_Restrict_arr_): Likewise.
12429         * lib/regex_internal.h (re_token_t): Likewise.
12430         * lib/regexec.c (check_node_accept_bytes): Likewise.
12431         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12432
12433 2011-10-18  Eric Blake  <eblake@redhat.com>
12434
12435         posix_openpt: new module
12436         * modules/posix_openpt: New module.
12437         * m4/posix_openpt.m4: New file.
12438         * lib/posix_openpt.c: Likewise.
12439         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12440         (gl_STDLIB_H_DEFAULTS): Set defaults.
12441         * modules/stdlib (Makefile.am): Substitute macros.
12442         * lib/stdlib.in.h (posix_openpt): Declare.
12443         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12444         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12445         * modules/posix_openpt-tests: New test module.
12446         * tests/test-posix_openpt.c: New test.
12447
12448 2011-10-15  Bruno Haible  <bruno@clisp.org>
12449
12450         xstrtoll: Fix compilation failure.
12451         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12452         from lib/strtol.c.
12453         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12454         some platforms.
12455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12456
12457 2011-10-15  Bruno Haible  <bruno@clisp.org>
12458
12459         vasnprintf: Optimize bit search operation.
12460         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12462         gl_DOUBLE_EXPONENT_LOCATION.
12463         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12464         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12465         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12466         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12467         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12468         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12469         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12470         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12471         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12472
12473 2011-10-15  Bruno Haible  <bruno@clisp.org>
12474
12475         vasnprintf: Fix comments.
12476         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12477
12478 2011-10-14  Bruno Haible  <bruno@clisp.org>
12479
12480         Tests for module 'integer_length_ll'.
12481         * modules/integer_length_ll-tests: New file.
12482         * tests/test-integer_length_ll.c: New file.
12483
12484         New module 'integer_length_ll'.
12485         * lib/integer_length_ll.c: New file.
12486         * modules/integer_length_ll: New file.
12487
12488 2011-10-14  Bruno Haible  <bruno@clisp.org>
12489
12490         Tests for module 'integer_length_l'.
12491         * modules/integer_length_l-tests: New file.
12492         * tests/test-integer_length_l.c: New file.
12493
12494         New module 'integer_length_l'.
12495         * lib/integer_length_l.c: New file.
12496         * modules/integer_length_l: New file.
12497
12498 2011-10-14  Bruno Haible  <bruno@clisp.org>
12499
12500         Tests for module 'integer_length'.
12501         * modules/integer_length-tests: New file.
12502         * tests/test-integer_length.c: New file.
12503
12504         New module 'integer_length'.
12505         * lib/integer_length.h: New file.
12506         * lib/integer_length.c: New file.
12507         * modules/integer_length: New file.
12508
12509 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12510
12511         popen: Fix dependency conditions.
12512         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12513
12514 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12515
12516         perror: Fix autoconf test.
12517         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12518         <stdlib.h> and <string.h>.
12519
12520 2011-10-14  Bruno Haible  <bruno@clisp.org>
12521
12522         ffsl: Optimize on 64-bit platforms.
12523         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12524         unrolling.
12525
12526 2011-10-13  Bruno Haible  <bruno@clisp.org>
12527
12528         ffsl: Optimize on 32-bit platforms.
12529         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12530         use ffs() without a loop.
12531
12532         ffsl, ffsll: Optimize for GCC.
12533         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12534         * lib/ffsl.c (GCC_BUILTIN): New macro.
12535         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12536
12537 2011-10-13  Bruno Haible  <bruno@clisp.org>
12538
12539         ffs, bcopy, memset: Support symbol renaming via config.h.
12540         * lib/ffs.c: Include <config.h>.
12541         * lib/bcopy.c: Likewise.
12542         * lib/memset.c: Likewise.
12543
12544 2011-10-10  Bruno Haible  <bruno@clisp.org>
12545
12546         atanl: Simplify for platforms where 'long double' == 'double'.
12547         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12548         alternative implementation.
12549         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12550         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12551         * modules/atanl (Depends-on): Add atan. Update conditions.
12552
12553 2011-10-10  Bruno Haible  <bruno@clisp.org>
12554
12555         acosl: Simplify for platforms where 'long double' == 'double'.
12556         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12557         alternative implementation.
12558         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12559         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12560         * modules/acosl (Depends-on): Add acos. Update conditions.
12561
12562 2011-10-10  Bruno Haible  <bruno@clisp.org>
12563
12564         asinl: Simplify for platforms where 'long double' == 'double'.
12565         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12566         alternative implementation.
12567         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12568         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12569         * modules/asinl (Depends-on): Add asin. Update conditions.
12570
12571 2011-10-10  Bruno Haible  <bruno@clisp.org>
12572
12573         tanl: Simplify for platforms where 'long double' == 'double'.
12574         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12575         implementation.
12576         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12577         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12578         * modules/tanl (Depends-on): Add tan. Update conditions.
12579         (configure.ac): Don't compile trigl.c if
12580         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12581
12582 2011-10-10  Bruno Haible  <bruno@clisp.org>
12583
12584         cosl: Simplify for platforms where 'long double' == 'double'.
12585         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12586         implementation.
12587         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12588         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12589         * modules/cosl (Depends-on): Add cos. Update conditions.
12590         (configure.ac): Don't compile sincosl.c and trigl.c if
12591         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12592
12593 2011-10-10  Bruno Haible  <bruno@clisp.org>
12594
12595         sinl: Simplify for platforms where 'long double' == 'double'.
12596         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12597         implementation.
12598         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12599         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12600         * modules/sinl (Depends-on): Add sin. Update conditions.
12601         (configure.ac): Don't compile sincosl.c and trigl.c if
12602         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12603
12604 2011-10-10  Bruno Haible  <bruno@clisp.org>
12605
12606         logl: Simplify for platforms where 'long double' == 'double'.
12607         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12608         implementation.
12609         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12610         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12611         * modules/logl (Depends-on): Add log. Update conditions.
12612
12613 2011-10-10  Bruno Haible  <bruno@clisp.org>
12614
12615         expl: Simplify for platforms where 'long double' == 'double'.
12616         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12617         implementation.
12618         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12619         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12620         * modules/expl (Depends-on): Add exp. Update conditions.
12621
12622 2011-10-10  Bruno Haible  <bruno@clisp.org>
12623
12624         sqrtl: Simplify for platforms where 'long double' == 'double'.
12625         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12626         alternative implementation.
12627         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12628         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12629         * modules/sqrtl (Depends-on): Update conditions.
12630
12631 2011-10-10  Bruno Haible  <bruno@clisp.org>
12632
12633         ldexpl: Simplify for platforms where 'long double' == 'double'.
12634         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12635         alternative implementation.
12636         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12637         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12638         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12639
12640 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12641
12642         ffsll: set correct witness
12643         * modules/ffsll (configure.ac): Fix typo.
12644
12645 2011-10-10  Bruno Haible  <bruno@clisp.org>
12646
12647         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12648         * lib/printf-frexpl.c: Include <config.h>.
12649         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12650         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12651         second time.
12652         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12653         gl_LONG_DOUBLE_VS_DOUBLE.
12654         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12655         conditions.
12656
12657 2011-10-10  Bruno Haible  <bruno@clisp.org>
12658
12659         frexpl: Simplify for platforms where 'long double' == 'double'.
12660         * lib/frexpl.c: Include <config.h>.
12661         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12662         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12663         time.
12664         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12665         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12666         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12667         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12668         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12669         conditions.
12670
12671 2011-10-10  Jim Meyering  <meyering@redhat.com>
12672
12673         test-renameat: don't leave behind a temporary file
12674         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12675           ERROR: files left in build directory after distclean:
12676           ./gltests/test-renameat.too
12677           make[1]: *** [distcleancheck] Error 1
12678         Reported by Tom G. Christensen.
12679
12680 2011-10-09  Bruno Haible  <bruno@clisp.org>
12681
12682         rint: Determine RINT_LIBM correctly on AIX 7.
12683         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12684         directly, not only through a function pointer. Also accept an optional
12685         4th argument with extra code.
12686         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12687         rintf() call by gcc when optimizing.
12688
12689         mathfunc.m4: Refactor.
12690         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12691         m4 variable.
12692
12693 2011-10-09  Bruno Haible  <bruno@clisp.org>
12694
12695         rintl: Simplify for platforms where 'long double' == 'double'.
12696         * lib/rintl.c: Include <config.h>.
12697         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12698         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12699         time.
12700         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12701         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12702         * modules/rintl (Depends-on): Add rint. Update conditions.
12703
12704 2011-10-09  Bruno Haible  <bruno@clisp.org>
12705
12706         roundl: Simplify for platforms where 'long double' == 'double'.
12707         * lib/roundl.c: Include <config.h>.
12708         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12709         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12710         time.
12711         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12712         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12713         * modules/roundl (Depends-on): Add round. Update conditions.
12714
12715 2011-10-09  Bruno Haible  <bruno@clisp.org>
12716
12717         truncl: Simplify for platforms where 'long double' == 'double'.
12718         * lib/truncl.c: Include <config.h>.
12719         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12720         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12721         time.
12722         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12723         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12724         * modules/truncl (Depends-on): Add trunc. Update conditions.
12725
12726 2011-10-09  Bruno Haible  <bruno@clisp.org>
12727
12728         ceill: Simplify for platforms where 'long double' == 'double'.
12729         * lib/ceill.c: Include <config.h>.
12730         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12731         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12732         time.
12733         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12734         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12735         * modules/ceill (Depends-on): Add ceil. Update conditions.
12736
12737 2011-10-09  Bruno Haible  <bruno@clisp.org>
12738
12739         floorl: Simplify for platforms where 'long double' == 'double'.
12740         * lib/floorl.c: Include <config.h>.
12741         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12742         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12743         time.
12744         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12745         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12746         * modules/floorl (Depends-on): Add floor. Update conditions.
12747
12748 2011-10-09  Bruno Haible  <bruno@clisp.org>
12749
12750         rint: Fix ordering constraints.
12751         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12752         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12753         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12754
12755 2011-10-09  Bruno Haible  <bruno@clisp.org>
12756
12757         copysignl: Simplify for platforms where 'long double' == 'double'.
12758         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12759         alternative.
12760         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12761         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12762         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12763
12764 2011-10-09  Bruno Haible  <bruno@clisp.org>
12765
12766         Tests for module 'rintl'.
12767         * modules/rintl-tests: New file.
12768         * tests/test-rintl.c: New file.
12769
12770         New module 'rintl'.
12771         * lib/math.in.h (rintl): New declaration.
12772         * lib/rintl.c: New file.
12773         * m4/rintl.m4: New file.
12774         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12776         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12777         * modules/rintl: New file.
12778         * tests/test-math-c++.cc: Check the declaration of rintl.
12779         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12780         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12781         * doc/posix-functions/rintl.texi: Mention the new module.
12782
12783 2011-10-09  Bruno Haible  <bruno@clisp.org>
12784
12785         Tests for module 'rintf'.
12786         * modules/rintf-tests: New file.
12787         * tests/test-rintf.c: New file.
12788
12789         New module 'rintf'.
12790         * lib/math.in.h (rintf): New declaration.
12791         * lib/rintf.c: New file.
12792         * m4/rintf.m4: New file.
12793         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12795         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12796         * modules/rintf: New file.
12797         * tests/test-math-c++.cc: Check the declaration of rintf.
12798         * doc/posix-functions/rintf.texi: Mention the new module.
12799
12800 2011-10-09  Bruno Haible  <bruno@clisp.org>
12801
12802         rint: Support for MSVC.
12803         * lib/math.in.h (rint): New declaration.
12804         * lib/rint.c: New file.
12805         * m4/rint.m4: New file.
12806         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12808         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12809         * modules/rint (Description): Fix.
12810         (Files): Add lib/rint.c, m4/rint.m4.
12811         (Depends-on): Add math.
12812         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12813         gl_MATH_MODULE_INDICATOR.
12814         * tests/test-math-c++.cc: Check the declaration of rint.
12815         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12816         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12817         * doc/posix-functions/rint.texi: Mention the replacement provided by
12818         the module.
12819
12820         rint tests: More tests.
12821         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12822         minus-zero.h, infinity.h, nan.h.
12823         (main): Skip the test if the current rounding mode is not standard. Add
12824         tests for negative numbers, minus zero, infinity, NaN.
12825         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12826         tests/nan.h.
12827         (Depends-on): Add isnand-nolibm.
12828
12829 2011-10-09  Bruno Haible  <bruno@clisp.org>
12830
12831         Tests for module 'copysignl'.
12832         * modules/copysignl-tests: New file.
12833         * tests/test-copysignl.c: New file.
12834
12835         New module 'copysignl'.
12836         * lib/math.in.h (copysignl): New declaration.
12837         * lib/copysignl.c: New file.
12838         * m4/copysignl.m4: New file.
12839         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12841         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12842         HAVE_COPYSIGNL.
12843         * modules/copysignl: New file.
12844         * tests/test-math-c++.cc: Check the declaration of copysignl.
12845         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12846         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12847         * doc/posix-functions/copysignl.texi: Mention the new module.
12848
12849 2011-10-09  Bruno Haible  <bruno@clisp.org>
12850
12851         Tests for module 'copysignf'.
12852         * modules/copysignf-tests: New file.
12853         * tests/test-copysignf.c: New file.
12854
12855         New module 'copysignf'.
12856         * lib/math.in.h (copysignf): New declaration.
12857         * lib/copysignf.c: New file.
12858         * m4/copysignf.m4: New file.
12859         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12861         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12862         HAVE_COPYSIGNF.
12863         * modules/copysignf: New file.
12864         * tests/test-math-c++.cc: Check the declaration of copysignf.
12865         * doc/posix-functions/copysignf.texi: Mention the new module.
12866
12867 2011-10-09  Bruno Haible  <bruno@clisp.org>
12868
12869         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12870         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12871         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12872         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12874         gl_SIGNAL_H_DEFAULTS.
12875
12876 2011-10-09  Bruno Haible  <bruno@clisp.org>
12877
12878         poll: Make macro safer.
12879         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12880         ac_cv_header_poll_h is not set.
12881
12882 2011-10-09  Bruno Haible  <bruno@clisp.org>
12883
12884         copysign: Provide replacement.
12885         * lib/math.in.h (copysign): New declaration.
12886         * lib/copysign.c: New file.
12887         * m4/copysign.m4: New file.
12888         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12890         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12891         HAVE_COPYSIGN.
12892         * modules/copysign (Description): Clarify.
12893         (Files): Add lib/copysign.c, m4/copysign.m4.
12894         (Depends-on): Add math, signbit.
12895         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12896         gl_MATH_MODULE_INDICATOR.
12897         * tests/test-math-c++.cc: Check the declaration of copysign.
12898         * doc/posix-functions/copysign.texi: Mention the effects of the module
12899         on Minix and MSVC.
12900
12901 2011-10-09  Bruno Haible  <bruno@clisp.org>
12902
12903         isinf: Ensure macro on AIX 5.1.
12904         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12905         macro.
12906         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12907
12908 2011-10-09  Bruno Haible  <bruno@clisp.org>
12909
12910         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12911         * modules/snprintf-posix-tests (configure.ac): Require
12912         gl_LONG_DOUBLE_VS_DOUBLE.
12913         * modules/sprintf-posix-tests (configure.ac): Likewise.
12914         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12915         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12916         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12917         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12918         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12919         tests on platforms where 'long double' is the same as 'double'.
12920         * tests/test-sprintf-posix.h (test_function): Likewise.
12921         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12922         * tests/test-vasprintf-posix.c (test_function): Likewise.
12923
12924         *printf: Fix for platforms where 'long double' == 'double'.
12925         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12926         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12927         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12928         * modules/fprintf-posix (Files): Likewise.
12929         * modules/obstack-printf-posix (Files): Likewise.
12930         * modules/snprintf-posix (Files): Likewise.
12931         * modules/sprintf-posix (Files): Likewise.
12932         * modules/vasnprintf (Files): Likewise.
12933         * modules/vasnprintf-posix (Files): Likewise.
12934         * modules/vasprintf-posix (Files): Likewise.
12935         * modules/vdprintf-posix (Files): Likewise.
12936         * modules/vfprintf-posix (Files): Likewise.
12937         * modules/vsnprintf-posix (Files): Likewise.
12938         * modules/vsprintf-posix (Files): Likewise.
12939         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12940         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12941         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12942         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12943         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12944         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12945         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12946
12947         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12948         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12949         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12950         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12951         'long double'.
12952         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12953
12954         isinf: Fix for platforms where 'long double' == 'double'.
12955         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12956         Don't blindly assume 80-bit 'long double'.
12957
12958         isfinite: Fix for platforms where 'long double' == 'double'.
12959         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12960         Don't blindly assume 80-bit 'long double'.
12961
12962         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12963         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12964         * modules/isfinite-tests (configure.ac): Require
12965         gl_LONG_DOUBLE_VS_DOUBLE.
12966         * modules/isinf-tests (configure.ac): Likewise.
12967         * modules/isnan-tests (configure.ac): Likewise.
12968         * modules/isnanl-tests (configure.ac): Likewise.
12969         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12970         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12971         tests on platforms where 'long double' is the same as 'double'.
12972         * tests/test-isinf.c (test_isinfl): Likewise.
12973         * tests/test-isnan.c (test_long_double): Likewise.
12974         * tests/test-isnanl.h (main): Likewise.
12975
12976 2011-10-08  Bruno Haible  <bruno@clisp.org>
12977
12978         Tests for module 'tanhf'.
12979         * modules/tanhf-tests: New file.
12980         * tests/test-tanhf.c: New file.
12981
12982         New module 'tanhf'.
12983         * lib/math.in.h (tanhf): New declaration.
12984         * lib/tanhf.c: New file.
12985         * m4/tanhf.m4: New file.
12986         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12988         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12989         * modules/tanhf: New file.
12990         * tests/test-math-c++.cc: Check the declaration of tanhf.
12991         * doc/posix-functions/tanhf.texi: Mention the new module.
12992
12993         tanh: Use a .m4 file.
12994         * m4/tanh.m4: New file.
12995         * modules/tanh (Files): Add it.
12996         (configure.ac): Just invoke gl_FUNC_TANH.
12997
12998 2011-10-08  Bruno Haible  <bruno@clisp.org>
12999
13000         Tests for module 'coshf'.
13001         * modules/coshf-tests: New file.
13002         * tests/test-coshf.c: New file.
13003
13004         New module 'coshf'.
13005         * lib/math.in.h (coshf): New declaration.
13006         * lib/coshf.c: New file.
13007         * m4/coshf.m4: New file.
13008         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13010         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13011         * modules/coshf: New file.
13012         * tests/test-math-c++.cc: Check the declaration of coshf.
13013         * doc/posix-functions/coshf.texi: Mention the new module.
13014
13015         cosh: Use a .m4 file.
13016         * m4/cosh.m4: New file.
13017         * modules/cosh (Files): Add it.
13018         (configure.ac): Just invoke gl_FUNC_COSH.
13019
13020 2011-10-08  Bruno Haible  <bruno@clisp.org>
13021
13022         Tests for module 'sinhf'.
13023         * modules/sinhf-tests: New file.
13024         * tests/test-sinhf.c: New file.
13025
13026         New module 'sinhf'.
13027         * lib/math.in.h (sinhf): New declaration.
13028         * lib/sinhf.c: New file.
13029         * m4/sinhf.m4: New file.
13030         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13032         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13033         * modules/sinhf: New file.
13034         * tests/test-math-c++.cc: Check the declaration of sinhf.
13035         * doc/posix-functions/sinhf.texi: Mention the new module.
13036
13037         sinh: Use a .m4 file.
13038         * m4/sinh.m4: New file.
13039         * modules/sinh (Files): Add it.
13040         (configure.ac): Just invoke gl_FUNC_SINH.
13041
13042 2011-10-08  Bruno Haible  <bruno@clisp.org>
13043
13044         Tests for module 'atan2f'.
13045         * modules/atan2f-tests: New file.
13046         * tests/test-atan2f.c: New file.
13047
13048         New module 'atan2f'.
13049         * lib/math.in.h (atan2f): New declaration.
13050         * lib/atan2f.c: New file.
13051         * m4/atan2f.m4: New file.
13052         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13054         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13055         * modules/atan2f: New file.
13056         * tests/test-math-c++.cc: Check the declaration of atan2f.
13057         * doc/posix-functions/atan2f.texi: Mention the new module.
13058
13059         atan2: Use a .m4 file.
13060         * m4/atan2.m4: New file.
13061         * modules/atan2 (Files): Add it.
13062         (configure.ac): Just invoke gl_FUNC_ATAN2.
13063
13064 2011-10-08  Bruno Haible  <bruno@clisp.org>
13065
13066         Tests for module 'atanf'.
13067         * modules/atanf-tests: New file.
13068         * tests/test-atanf.c: New file.
13069
13070         New module 'atanf'.
13071         * lib/math.in.h (atanf): New declaration.
13072         * lib/atanf.c: New file.
13073         * m4/atanf.m4: New file.
13074         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13076         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13077         * modules/atanf: New file.
13078         * tests/test-math-c++.cc: Check the declaration of atanf.
13079         * doc/posix-functions/atanf.texi: Mention the new module.
13080
13081         atan: Use a .m4 file.
13082         * m4/atan.m4: New file.
13083         * modules/atan (Files): Add it.
13084         (configure.ac): Just invoke gl_FUNC_ATAN.
13085
13086 2011-10-08  Bruno Haible  <bruno@clisp.org>
13087
13088         Tests for module 'acosf'.
13089         * modules/acosf-tests: New file.
13090         * tests/test-acosf.c: New file.
13091
13092         New module 'acosf'.
13093         * lib/math.in.h (acosf): New declaration.
13094         * lib/acosf.c: New file.
13095         * m4/acosf.m4: New file.
13096         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13098         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13099         * modules/acosf: New file.
13100         * tests/test-math-c++.cc: Check the declaration of acosf.
13101         * doc/posix-functions/acosf.texi: Mention the new module.
13102
13103         acos: Use a .m4 file.
13104         * m4/acos.m4: New file.
13105         * modules/acos (Files): Add it.
13106         (configure.ac): Just invoke gl_FUNC_ACOS.
13107
13108 2011-10-08  Bruno Haible  <bruno@clisp.org>
13109
13110         Tests for module 'asinf'.
13111         * modules/asinf-tests: New file.
13112         * tests/test-asinf.c: New file.
13113
13114         New module 'asinf'.
13115         * lib/math.in.h (asinf): New declaration.
13116         * lib/asinf.c: New file.
13117         * m4/asinf.m4: New file.
13118         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13120         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13121         * modules/asinf: New file.
13122         * tests/test-math-c++.cc: Check the declaration of asinf.
13123         * doc/posix-functions/asinf.texi: Mention the new module.
13124
13125         asin: Use a .m4 file.
13126         * m4/asin.m4: New file.
13127         * modules/asin (Files): Add it.
13128         (configure.ac): Just invoke gl_FUNC_ASIN.
13129
13130 2011-10-08  Bruno Haible  <bruno@clisp.org>
13131
13132         Tests for module 'tanf'.
13133         * modules/tanf-tests: New file.
13134         * tests/test-tanf.c: New file.
13135
13136         New module 'tanf'.
13137         * lib/math.in.h (tanf): New declaration.
13138         * lib/tanf.c: New file.
13139         * m4/tanf.m4: New file.
13140         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13142         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13143         * modules/tanf: New file.
13144         * tests/test-math-c++.cc: Check the declaration of tanf.
13145         * doc/posix-functions/tanf.texi: Mention the new module.
13146
13147         tan: Use a .m4 file.
13148         * m4/tan.m4: New file.
13149         * modules/tan (Files): Add it.
13150         (configure.ac): Just invoke gl_FUNC_TAN.
13151
13152 2011-10-08  Bruno Haible  <bruno@clisp.org>
13153
13154         Tests for module 'cosf'.
13155         * modules/cosf-tests: New file.
13156         * tests/test-cosf.c: New file.
13157
13158         New module 'cosf'.
13159         * lib/math.in.h (cosf): New declaration.
13160         * lib/cosf.c: New file.
13161         * m4/cosf.m4: New file.
13162         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13164         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13165         * modules/cosf: New file.
13166         * tests/test-math-c++.cc: Check the declaration of cosf.
13167         * doc/posix-functions/cosf.texi: Mention the new module.
13168
13169         cos: Use a .m4 file.
13170         * m4/cos.m4: New file.
13171         * modules/cos (Files): Add it.
13172         (configure.ac): Just invoke gl_FUNC_COS.
13173
13174 2011-10-08  Bruno Haible  <bruno@clisp.org>
13175
13176         Tests for module 'sinf'.
13177         * modules/sinf-tests: New file.
13178         * tests/test-sinf.c: New file.
13179
13180         New module 'sinf'.
13181         * lib/math.in.h (sinf): New declaration.
13182         * lib/sinf.c: New file.
13183         * m4/sinf.m4: New file.
13184         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13186         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13187         * modules/sinf: New file.
13188         * tests/test-math-c++.cc: Check the declaration of sinf.
13189         * doc/posix-functions/sinf.texi: Mention the new module.
13190
13191         sin: Use a .m4 file.
13192         * m4/sin.m4: New file.
13193         * modules/sin (Files): Add it.
13194         (configure.ac): Just invoke gl_FUNC_SIN.
13195
13196 2011-10-08  Bruno Haible  <bruno@clisp.org>
13197
13198         Tests for module 'powf'.
13199         * modules/powf-tests: New file.
13200         * tests/test-powf.c: New file.
13201
13202         New module 'powf'.
13203         * lib/math.in.h (powf): New declaration.
13204         * lib/powf.c: New file.
13205         * m4/powf.m4: New file.
13206         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13208         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13209         * modules/powf: New file.
13210         * tests/test-math-c++.cc: Check the declaration of powf.
13211         * doc/posix-functions/powf.texi: Mention the new module.
13212
13213         pow: Use a .m4 file.
13214         * m4/pow.m4: New file.
13215         * modules/pow (Files): Add it.
13216         (configure.ac): Just invoke gl_FUNC_POW.
13217
13218 2011-10-08  Bruno Haible  <bruno@clisp.org>
13219
13220         Tests for module 'log10f'.
13221         * modules/log10f-tests: New file.
13222         * tests/test-log10f.c: New file.
13223
13224         New module 'log10f'.
13225         * lib/math.in.h (log10f): New declaration.
13226         * lib/log10f.c: New file.
13227         * m4/log10f.m4: New file.
13228         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13230         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13231         * modules/log10f: New file.
13232         * tests/test-math-c++.cc: Check the declaration of log10f.
13233         * doc/posix-functions/log10f.texi: Mention the new module.
13234
13235         log10: Use a .m4 file.
13236         * m4/log10.m4: New file.
13237         * modules/log10 (Files): Add it.
13238         (configure.ac): Just invoke gl_FUNC_LOG10.
13239
13240 2011-10-08  Bruno Haible  <bruno@clisp.org>
13241
13242         Tests for module 'logf'.
13243         * modules/logf-tests: New file.
13244         * tests/test-logf.c: New file.
13245
13246         New module 'logf'.
13247         * lib/math.in.h (logf): New declaration.
13248         * lib/logf.c: New file.
13249         * m4/logf.m4: New file.
13250         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13252         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13253         * modules/logf: New file.
13254         * tests/test-math-c++.cc: Check the declaration of logf.
13255         * doc/posix-functions/logf.texi: Mention the new module.
13256
13257         log: Use a .m4 file.
13258         * m4/log.m4: New file.
13259         * modules/log (Files): Add it.
13260         (configure.ac): Just invoke gl_FUNC_LOG.
13261
13262 2011-10-08  Bruno Haible  <bruno@clisp.org>
13263
13264         Tests for module 'expf'.
13265         * modules/expf-tests: New file.
13266         * tests/test-expf.c: New file.
13267
13268         New module 'expf'.
13269         * lib/math.in.h (expf): New declaration.
13270         * lib/expf.c: New file.
13271         * m4/expf.m4: New file.
13272         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13274         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13275         * modules/expf: New file.
13276         * tests/test-math-c++.cc: Check the declaration of expf.
13277         * doc/posix-functions/expf.texi: Mention the new module.
13278
13279         exp: Use a .m4 file.
13280         * m4/exp.m4: New file.
13281         * modules/exp (Files): Add it.
13282         (configure.ac): Just invoke gl_FUNC_EXP.
13283
13284 2011-10-08  Bruno Haible  <bruno@clisp.org>
13285
13286         Tests for module 'sqrtf'.
13287         * modules/sqrtf-tests: New file.
13288         * tests/test-sqrtf.c: New file.
13289
13290         New module 'sqrtf'.
13291         * lib/math.in.h (sqrtf): New declaration.
13292         * lib/sqrtf.c: New file.
13293         * m4/sqrtf.m4: New file.
13294         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13296         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13297         * modules/sqrtf: New file.
13298         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13299         * doc/posix-functions/sqrtf.texi: Mention the new module.
13300
13301 2011-10-08  Bruno Haible  <bruno@clisp.org>
13302
13303         Tests: Avoid link failures w.r.t. libintl.
13304         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13305         $(LIBINTL).
13306         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13307         $(LIBINTL).
13308         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13309         against $(LIBINTL).
13310         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13311         $(LIBINTL).
13312         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13313         $(LIBINTL).
13314         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13315
13316 2011-10-08  Bruno Haible  <bruno@clisp.org>
13317
13318         pow tests: Defeat compiler optimizations.
13319         * tests/test-pow.c (main): Assign arguments to x and y before use.
13320
13321 2011-10-08  Bruno Haible  <bruno@clisp.org>
13322
13323         gnulib-tool: Improve last commit.
13324         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13325         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13326         ignore dependencies that are not among the modules list.
13327
13328 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13329
13330         gnulib-tool: don't follow dependencies to avoided modules
13331         This fixes a bug that is related to the previous one.
13332         * gnulib-tool (func_modules_transitive_closure)
13333         (func_emit_autoconf_snippets):
13334         Check whether a dependency is acceptable before using it.
13335         (--extract-dependencies): Report an error if --avoid is also used,
13336         since this combination of options is not yet supported.
13337
13338         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13339         Problem reported by Peter Dyballa in
13340         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13341         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13342         when echoing "$condition".
13343
13344 2011-10-07  Bruno Haible  <bruno@clisp.org>
13345
13346         Fix documentation about math functions on MacOS X.
13347         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13348         MacOS X 10.5.
13349         * doc/posix-functions/fdim.texi: Likewise.
13350         * doc/posix-functions/feclearexcept.texi: Likewise.
13351         * doc/posix-functions/fegetenv.texi: Likewise.
13352         * doc/posix-functions/fegetround.texi: Likewise.
13353         * doc/posix-functions/feholdexcept.texi: Likewise.
13354         * doc/posix-functions/feraiseexcept.texi: Likewise.
13355         * doc/posix-functions/fesetenv.texi: Likewise.
13356         * doc/posix-functions/fesetround.texi: Likewise.
13357         * doc/posix-functions/fetestexcept.texi: Likewise.
13358         * doc/posix-functions/feupdateenv.texi: Likewise.
13359         * doc/posix-functions/fmax.texi: Likewise.
13360         * doc/posix-functions/fmin.texi: Likewise.
13361         * doc/posix-functions/log2.texi: Likewise.
13362         * doc/posix-functions/modff.texi: Likewise.
13363         * doc/posix-functions/nan.texi: Likewise.
13364         * doc/posix-functions/nanf.texi: Likewise.
13365         * doc/posix-functions/nextafterf.texi: Likewise.
13366         * doc/posix-functions/remquo.texi: Likewise.
13367
13368 2011-10-07  Bruno Haible  <bruno@clisp.org>
13369
13370         modff: Drop assumption about library that defines modff.
13371         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13372         AC_CHECK_FUNCS.
13373         * modules/modff (Files): Add m4/mathfunc.m4.
13374
13375 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13376
13377         raise tests: Avoid a GCC warning.
13378         * tests/test-raise.c (handler): Use _Noreturn.
13379
13380 2011-10-07  Bruno Haible  <bruno@clisp.org>
13381
13382         Tests for module 'ldexpf'.
13383         * modules/ldexpf-tests: New file.
13384         * tests/test-ldexpf.c: New file.
13385
13386         New module 'ldexpf'.
13387         * lib/math.in.h (ldexpf): New declaration.
13388         * lib/ldexpf.c: New file.
13389         * m4/ldexpf.m4: New file.
13390         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13392         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13393         * modules/ldexpf: New file.
13394         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13395         * doc/posix-functions/ldexpf.texi: Mention the new module.
13396
13397 2011-10-06  Bruno Haible  <bruno@clisp.org>
13398
13399         frexpf: Work around problems on IRIX and mingw.
13400         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13402         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13403         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13404         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13405         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13406         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13407
13408 2011-10-06  Bruno Haible  <bruno@clisp.org>
13409
13410         fabsf: Drop assumption about library that defines fabsf.
13411         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13412         AC_CHECK_FUNCS.
13413         * modules/fabsf (Files): Add m4/mathfunc.m4.
13414
13415 2011-10-06  Bruno Haible  <bruno@clisp.org>
13416
13417         frexpf: Drop assumption about library that defines frexpf.
13418         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13419         'int *', 'float *', 'long double *', 'float', 'long double'.
13420         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13421         AC_CHECK_FUNCS.
13422         * modules/frexpf (Files): Add m4/mathfunc.m4.
13423
13424         Tests for module 'frexpf'.
13425         * modules/frexpf-tests: New file.
13426         * tests/test-frexpf.c: New file.
13427
13428         New module 'frexpf'.
13429         * lib/math.in.h (frexpf): New declaration.
13430         * lib/frexpf.c: New file.
13431         * m4/frexpf.m4: New file.
13432         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13434         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13435         * modules/frexpf: New file.
13436         * tests/test-math-c++.cc: Check the declaration of frexpf.
13437         * doc/posix-functions/frexpf.texi: Mention the new module.
13438
13439 2011-10-06  Bruno Haible  <bruno@clisp.org>
13440
13441         math: Sort function declarations of math.in.h.
13442         * lib/math.in.h (frexp, logb): Move declarations.
13443
13444 2011-10-05  Bruno Haible  <bruno@clisp.org>
13445
13446         Tests for module 'modff'.
13447         * modules/modff-tests: New file.
13448         * tests/test-modff.c: New file.
13449
13450         New module 'modff'.
13451         * lib/math.in.h (modff): New declaration.
13452         * lib/modff.c: New file.
13453         * m4/modff.m4: New file.
13454         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13456         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13457         * modules/modff: New file.
13458         * tests/test-math-c++.cc: Check the declaration of modff.
13459         * doc/posix-functions/modff.texi: Mention the new module.
13460
13461         modf tests: Make test sharper.
13462         * tests/test-modf.c (main): Strengthen upper bound.
13463
13464         modf: Use a .m4 file.
13465         * m4/modf.m4: New file.
13466         * modules/modf (Files): Add it.
13467         (configure.ac): Just invoke gl_FUNC_MODF.
13468
13469 2011-10-05  Bruno Haible  <bruno@clisp.org>
13470
13471         Tests for module 'fmodf'.
13472         * modules/fmodf-tests: New file.
13473         * tests/test-fmodf.c: New file.
13474
13475         New module 'fmodf'.
13476         * lib/math.in.h (fmodf): New declaration.
13477         * lib/fmodf.c: New file.
13478         * m4/fmodf.m4: New file.
13479         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13481         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13482         * modules/fmodf: New file.
13483         * tests/test-math-c++.cc: Check the declaration of fmodf.
13484         * doc/posix-functions/fmodf.texi: Mention the new module.
13485
13486         fmod: Use a .m4 file.
13487         * m4/fmod.m4: New file.
13488         * modules/fmod (Files): Add it.
13489         (configure.ac): Just invoke gl_FUNC_FMOD.
13490
13491 2011-10-05  Bruno Haible  <bruno@clisp.org>
13492
13493         Tests for module 'fabsf'.
13494         * modules/fabsf-tests: New file.
13495         * tests/test-fabsf.c: New file.
13496
13497         New module 'fabsf'.
13498         * lib/math.in.h (fabsf): New declaration.
13499         * lib/fabsf.c: New file.
13500         * m4/fabsf.m4: New file.
13501         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13503         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13504         * modules/fabsf: New file.
13505         * tests/test-math-c++.cc: Check the declaration of fabsf.
13506         * doc/posix-functions/fabsf.texi: Mention the new module.
13507
13508         fabs: Use a .m4 file.
13509         * m4/fabs.m4: New file.
13510         * modules/fabs (Files): Add it.
13511         (configure.ac): Just invoke gl_FUNC_FABS.
13512
13513 2011-10-05  Jim Meyering  <meyering@redhat.com>
13514
13515         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13516         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13517         ls -lL regression introduced in coreutils-8.12, it does so at the
13518         cost of an additional stat call in the common case.  Besides, now
13519         that the kernel change that prompted commit 95f7c57f has been reverted
13520         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13521         we have no use for commit 95f7c57f, "file-has-acl: use
13522         acl_extended_file_nofollow if available".
13523
13524 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13525
13526         file-has-acl: revert unintended change in behavior of ls -L
13527         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13528         derived from...
13529         (file_has_acl): ...code here.  Call it.
13530         This problem was introduced with 2011-07-22 commit 95f7c57f,
13531         "file-has-acl: use acl_extended_file_nofollow if available".
13532         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13533
13534 2011-10-03  Bruno Haible  <bruno@clisp.org>
13535
13536         poll: Avoid link errors on MSVC.
13537         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13538         * modules/poll (Depends-on): Add sockets.
13539         (Link): New section.
13540         * NEWS: Mention the change.
13541         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13542         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13543         $(LIB_POLL) instead of $(LIBSOCKET).
13544
13545 2011-10-03  Bruno Haible  <bruno@clisp.org>
13546
13547         sys_select tests: Fix link error on MSVC 9.
13548         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13549         with $(LIB_SELECT) instead of $(LIBSOCKET).
13550
13551 2011-10-03  Bruno Haible  <bruno@clisp.org>
13552
13553         sys_select: Fix compilation error on mingw.
13554         * lib/sys_select.in.h: On native Windows, include <io.h>.
13555
13556 2011-10-03  Bruno Haible  <bruno@clisp.org>
13557
13558         wmemset: Support for MSVC.
13559         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13560         whether wmemset() exists.
13561
13562 2011-10-03  Bruno Haible  <bruno@clisp.org>
13563
13564         wmemmove: Support for MSVC.
13565         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13566         whether wmemmove() exists.
13567
13568 2011-10-03  Bruno Haible  <bruno@clisp.org>
13569
13570         wmemcpy: Support for MSVC.
13571         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13572         whether wmemcpy() exists.
13573
13574 2011-10-03  Bruno Haible  <bruno@clisp.org>
13575
13576         wmemcmp: Support for MSVC.
13577         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13578         whether wmemcmp() exists.
13579
13580 2011-10-03  Bruno Haible  <bruno@clisp.org>
13581
13582         wmemchr: Support for MSVC.
13583         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13584         whether wmemchr() exists.
13585
13586 2011-10-03  Bruno Haible  <bruno@clisp.org>
13587
13588         glthread/*, strsignal: Support for MSVC.
13589         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13590         including <winsock.h> on MSVC 9.
13591         * lib/glthread/lock.h: Likewise.
13592         * lib/glthread/thread.h: Likewise.
13593         * lib/glthread/tls.h: Likewise.
13594         * lib/glthread/yield.h: Likewise.
13595         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13596         if HAVE_UNISTD_H is false.
13597         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13598
13599 2011-10-03  Bruno Haible  <bruno@clisp.org>
13600
13601         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13602         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13603         Set to 100000.
13604
13605 2011-10-03  Bruno Haible  <bruno@clisp.org>
13606
13607         acl: Fix specification.
13608         * lib/file-has-acl.c (file_has_acl): Fix specification.
13609
13610 2011-10-03  Bruno Haible  <bruno@clisp.org>
13611
13612         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13613         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13614         (compute_curr_prefix, shared_library_fullname,
13615         find_shared_library_fullname, get_shared_library_fullname, relocate):
13616         Use it together with PIC && INSTALLDIR.
13617         Reported by <jojelino@gmail.com>
13618         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13619
13620 2011-10-01  Jim Meyering  <meyering@redhat.com>
13621
13622         maint.mk: adjust a release-related rule not to require use of gzip
13623         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13624         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13625         projects that build only .tar.xz files.  Also fix an erroneous test.
13626
13627         test-linkat: don't leave behind a temporary file
13628         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13629         Otherwise, coreutils' "make distcheck" would fail with this:
13630           Only in /c/cu/tests/torture/coreutils/test/\
13631             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13632           make[2]: *** [my-distcheck] Error 1
13633
13634         float, math: add omitted file
13635         * lib/itold.c: Add file, required for yesterday's float change.
13636
13637 2011-10-01  Bruno Haible  <bruno@clisp.org>
13638
13639         isinf: Fix for OpenBSD/x86.
13640         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13641         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13642         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13643
13644 2011-10-01  Bruno Haible  <bruno@clisp.org>
13645
13646         isfinite: Fix syntax error in configure test.
13647         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13648
13649         isfinite: Fix typo.
13650         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13651         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13652
13653 2011-10-01  Bruno Haible  <bruno@clisp.org>
13654
13655         nonblocking tests: Fix test failure on Linux/IA-64.
13656         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13657         Set to 270000.
13658
13659 2011-10-01  Bruno Haible  <bruno@clisp.org>
13660
13661         mkfifoat tests: Fix a test failure on mingw.
13662         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13663         with error ENOSYS.
13664
13665 2011-09-30  Bruno Haible  <bruno@clisp.org>
13666
13667         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13668         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13669         'long double'. Set REPLACE_ITOLD.
13670         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13671         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13672         * lib/itold.c: New file.
13673         * modules/float (Files): Add lib/itold.c.
13674         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13675         (Makefile.am): Substitute REPLACE_ITOLD.
13676         * modules/math (Depends-on): Add float.
13677         (Makefile.am): Substitute REPLACE_ITOLD.
13678         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13679         * doc/posix-headers/math.texi: Likewise.
13680         * doc/posix-functions/logl.texi: Likewise.
13681
13682 2011-09-30  Bruno Haible  <bruno@clisp.org>
13683
13684         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13685         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13686         Set to 140000.
13687
13688 2011-09-30  Bruno Haible  <bruno@clisp.org>
13689
13690         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13691         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13692         invocation, say "right after AC_PROG_CC_STDC", not "right after
13693         AC_PROG_CC".
13694         Reported by Gary V. Vaughan <gary@gnu.org>.
13695
13696 2011-09-30  Bruno Haible  <bruno@clisp.org>
13697
13698         Centralize C99 requirement.
13699         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13700         * modules/stdarg (configure.ac-early): Invoke it instead of
13701         AC_PROG_CC_STDC.
13702         Reported by Gary V. Vaughan and Paul Eggert.
13703
13704 2011-09-29  Bruno Haible  <bruno@clisp.org>
13705
13706         float: Fix LDBL_MAX value on Linux/PowerPC.
13707         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13708         on Linux/PowerPC.
13709         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13710         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13711         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13712         platform.
13713         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13714
13715 2011-09-29  Bruno Haible  <bruno@clisp.org>
13716
13717         doc: Improve doc about gl_EARLY.
13718         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13719         AC_PROG_CC_STDC invocation.
13720         Reported by Gary V. Vaughan <gary@gnu.org>.
13721
13722 2011-09-28  Bruno Haible  <bruno@clisp.org>
13723
13724         fgetc, fputc, fread, fwrite tests: Fix link error.
13725         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13726         on non-MSVC platforms.
13727         * tests/test-fputc.c (main): Likewise.
13728         * tests/test-fread.c (main): Likewise.
13729         * tests/test-fwrite.c (main): Likewise.
13730         Reported by Jim Meyering.
13731
13732 2011-09-27  Bruno Haible  <bruno@clisp.org>
13733
13734         fputc, fwrite tests: Avoid test failure on MSVC.
13735         * tests/test-fgetc.c: Include msvc-inval.h.
13736         (main): Invoke gl_msvc_inval_ensure_handler.
13737         * tests/test-fputc.c: Include msvc-inval.h.
13738         (main): Invoke gl_msvc_inval_ensure_handler.
13739         * tests/test-fread.c: Include msvc-inval.h.
13740         (main): Invoke gl_msvc_inval_ensure_handler.
13741         * tests/test-fwrite.c: Include msvc-inval.h.
13742         (main): Invoke gl_msvc_inval_ensure_handler.
13743         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13744         * modules/fputc-tests (Depends-on): Likewise.
13745         * modules/fread-tests (Depends-on): Likewise.
13746         * modules/fwrite-tests (Depends-on): Likewise.
13747
13748 2011-09-27  Bruno Haible  <bruno@clisp.org>
13749
13750         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13751         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13752         (raise): Remove older, duplicated declaration.
13753         (_gl_raise_SIGPIPE): New declaration.
13754         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13755         (rpl_raise): Remove function.
13756         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13757         a gnulib-defined SIGPIPE here.
13758         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13759         'sigprocmask' has detected missing signal-blocking and the module
13760         'sigpipe' is enabled.
13761         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13762
13763 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13764
13765         base64-tests: avoid memory leak
13766         * tests/test-base64.c (main): Plug memory leak.
13767
13768         base32: new module
13769         * modules/base32: New module.
13770         * lib/base32.c: New file.
13771         * lib/base32.h: Likewise.
13772         * m4/base32.m4: Likewise.
13773         * modules/base32-tests: New test.
13774         * tests/test-base32.c: Likewise.
13775         * MODULES.html.sh (Misc): Mention it.
13776
13777 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13778
13779         gnulib: use more-standard license notice wording
13780         * gnulib-tool (func_emit_copyright_notice): When emitting a
13781         license notice into a file, use the standard wording as suggested
13782         by the current information for GNU maintainers, except say "file"
13783         rather than "program".  The new wording gives a license version
13784         number, which addresses an issue raised by Glenn Morris in
13785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13786         * m4/onceonly.m4: Use that same wording here, too.
13787
13788         dup2: minor simplification
13789         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13790         as lib/dup2.c no longer uses 'inline'.
13791
13792 2011-09-25  Bruno Haible  <bruno@clisp.org>
13793
13794         strings: Fix compilation error on MSVC.
13795         * lib/strings.in.h: Include <stddef.h> for size_t.
13796
13797 2011-09-25  Bruno Haible  <bruno@clisp.org>
13798
13799         fflush et al.: Document limitation on MSVC.
13800         * doc/posix-functions/fflush.texi: Document possible crash in handling
13801         mode other than DEFAULT_HANDLING.
13802         * doc/posix-functions/fgetc.texi: Likewise.
13803         * doc/posix-functions/fputc.texi: Likewise.
13804         * doc/posix-functions/fread.texi: Likewise.
13805         * doc/posix-functions/fwrite.texi: Likewise.
13806
13807 2011-09-25  Bruno Haible  <bruno@clisp.org>
13808
13809         msvc-inval: Allow three invalid parameter handling modes.
13810         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13811         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13812         macros.
13813         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13814         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13815         SANE_LIBRARY_HANDLING as a no-op.
13816         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13817         <stdlib.h>.
13818         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13819
13820 2011-09-25  Bruno Haible  <bruno@clisp.org>
13821
13822         msvc-inval: Make handler multithread-safe.
13823         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13824         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13825         declarations.
13826         (gl_msvc_inval_current): New declaration.
13827         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13828         Operate on the structure returned by gl_msvc_inval_current().
13829         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13830         Remove varaiables.
13831         (tls_index, tls_initialized): New variables.
13832         (not_per_thread): New variable.
13833         (gl_msvc_inval_current): New function.
13834         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13835         returned by gl_msvc_inval_current().
13836
13837 2011-09-25  Bruno Haible  <bruno@clisp.org>
13838
13839         msvc-inval: Install handler globally.
13840         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13841         !_MSC_VER.
13842         (gl_msvc_invalid_parameter_handler): Remove declaration.
13843         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13844         declarations.
13845         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13846         Install the handler globally, don't uninstall it.
13847         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13848         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13849         currently valid, call RaiseException instead.
13850         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13851         for !_MSC_VER.
13852
13853 2011-09-25  Bruno Haible  <bruno@clisp.org>
13854
13855         strerror_r-posix: Fix for MSVC 9.
13856         * lib/strerror_r.c (local_snprintf): New function.
13857         (snprintf): Define to local_snprintf, not to _snprintf.
13858
13859 2011-09-25  Bruno Haible  <bruno@clisp.org>
13860
13861         ftruncate: Support for MSVC 9.
13862         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13863         (chsize_nothrow): New function.
13864         (chsize): Redefine as a macro.
13865         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13866         * modules/ftruncate (Depends-on): Add msvc-inval.
13867
13868 2011-09-25  Bruno Haible  <bruno@clisp.org>
13869
13870         New module 'fstat'.
13871         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13872         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13873         * lib/fchdir.c (rpl_fstat): Remove function.
13874         * m4/fstat.m4: New file.
13875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13877         declared.
13878         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13879         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13880         * modules/fstat: New file.
13881         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13882         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13883         is set.
13884         * doc/posix-functions/fstat.texi: Mention the new module and the
13885         problem on MSVC.
13886         * NEWS: Mention the change.
13887         * modules/acl (Depends-on): Add fstat.
13888         * modules/chdir-safer (Depends-on): Likewise.
13889         * modules/chown (Depends-on): Likewise.
13890         * modules/copy-file (Depends-on): Likewise.
13891         * modules/fchdir (Depends-on): Likewise.
13892         * modules/fdopendir (Depends-on): Likewise.
13893         * modules/fopen (Depends-on): Likewise.
13894         * modules/fts (Depends-on): Likewise.
13895         * modules/getcwd (Depends-on): Likewise.
13896         * modules/isapipe (Depends-on): Likewise.
13897         * modules/linkat (Depends-on): Likewise.
13898         * modules/lseek (Depends-on): Likewise.
13899         * modules/mkdir-p (Depends-on): Likewise.
13900         * modules/open (Depends-on): Likewise.
13901         * modules/openat (Depends-on): Likewise.
13902         * modules/read-file (Depends-on): Likewise.
13903         * modules/renameat (Depends-on): Likewise.
13904         * modules/utimens (Depends-on): Likewise.
13905
13906 2011-09-25  Bruno Haible  <bruno@clisp.org>
13907
13908         linkat: Fix compilation on MSVC 9.
13909         * lib/linkat.c: Don't include <stdint.h>.
13910
13911 2011-09-25  Bruno Haible  <bruno@clisp.org>
13912
13913         fclose: Support for MSVC 9.
13914         * lib/fclose.c: Include msvc-inval.h.
13915         (fclose_nothrow): New function.
13916         (rpl_fclose): Use it.
13917         * modules/fclose (Depends-on): Add msvc-inval.
13918         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13919
13920 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13921
13922         dup2: minor simplifications
13923         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13924         that it's a performance win.
13925         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13926         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13927
13928 2011-09-24  Jim Meyering  <meyering@redhat.com>
13929
13930         test-futimens: avoid a warning from gcc -Wshadow
13931         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13932         to avoid a shadowing warning.
13933
13934 2011-09-24  Bruno Haible  <bruno@clisp.org>
13935
13936         fdopen: Support for MSVC 9.
13937         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13938         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13939         * lib/fdopen.c: Include msvc-inval.h.
13940         (fdopen_nothrow): New function.
13941         (rpl_fdopen): Use it.
13942         * modules/fdopen (Depends-on): Add msvc-inval.
13943         * modules/fclose-tests (Depends-on): Add fdopen.
13944         * modules/fflush-tests (Depends-on): Likewise.
13945         * modules/fgetc-tests (Depends-on): Likewise.
13946         * modules/fputc-tests (Depends-on): Likewise.
13947         * modules/fread-tests (Depends-on): Likewise.
13948         * modules/freopen-tests (Depends-on): Likewise.
13949         * modules/fseeko-tests (Depends-on): Likewise.
13950         * modules/ftello-tests (Depends-on): Likewise.
13951         * modules/fwrite-tests  (Depends-on): Likewise.
13952         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13953
13954 2011-09-24  Bruno Haible  <bruno@clisp.org>
13955
13956         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13957         * modules/fgetc-tests (Depends-on): Add unistd.
13958         * modules/fputc-tests (Depends-on): Likewise.
13959         * modules/fread-tests (Depends-on): Likewise.
13960         * modules/fwrite-tests (Depends-on): Likewise.
13961
13962 2011-09-24  Bruno Haible  <bruno@clisp.org>
13963
13964         dup: Simplify autoconf test.
13965         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13966         on gl_MSVC_INVAL's result.
13967
13968 2011-09-24  Bruno Haible  <bruno@clisp.org>
13969
13970         Tests for function fwrite().
13971         * modules/fwrite-tests: New file.
13972         * tests/test-fwrite.c: New file.
13973         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13974
13975         Tests for function fread().
13976         * modules/fread-tests: New file.
13977         * tests/test-fread.c: New file.
13978         * modules/stdio-tests (Depends-on): Add fread-tests.
13979
13980         Activate fputc tests.
13981         * modules/stdio-tests (Depends-on): Add fputc-tests.
13982
13983         Enhance fgetc, fputc tests.
13984         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13985         * tests/test-fputc.c (main): Likewise.
13986
13987 2011-09-24  Bruno Haible  <bruno@clisp.org>
13988
13989         write: Support for MSVC 9.
13990         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13991         is not 1.
13992         * lib/write.c (write_nothrow): New function.
13993         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13994         not 1. Use write_nothrow.
13995         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13996         invalid parameter handler.
13997         (gl_PREREQ_WRITE): New macro.
13998         * modules/write (Depends-on): Add msvc-inval.
13999         (configure.ac): Invoke gl_PREREQ_WRITE.
14000         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14001
14002 2011-09-24  Bruno Haible  <bruno@clisp.org>
14003
14004         read: Fix last commit.
14005         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14006
14007 2011-09-24  Bruno Haible  <bruno@clisp.org>
14008
14009         dup2: Fix last commit.
14010         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14011         (rpl_dup2): Disable fcntl workaround on native Windows.
14012
14013         sigprocmask: Make code safer.
14014         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14015         section that changes macro definitions for this compilation unit.
14016
14017 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14018
14019         dup2: clarify by coalescing Windows-specific material
14020         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14021         "msvc-nothrow.h"' to the Windows-specific section, so that the
14022         Emacs source need not contain these include files.
14023         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14024         Windows-specific fixes into this function rather than just the
14025         nothrow fix, as this shortens and clarifies the code.  Always
14026         define as a function, as that's a bit cleaner than having it be
14027         sometimes a function and sometimes a macro.
14028         (rpl_dup2): Move the Windows-specific stuff out of here and into
14029         ms_windows_dup2.  Don't protect the Haiku-related fix with
14030         "#if !defined __linux__", as the same code also works around
14031         a Linux kernel bug, and it doesn't add any system calls on any
14032         platform.  Add comment about FreeBSD 6.1.
14033
14034         sigprocmask: move #include directive
14035         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14036         Windows-specific section, so that the Emacs source need not
14037         contain msvc-inval.h.
14038
14039 2011-09-23  Bruno Haible  <bruno@clisp.org>
14040
14041         read: Support for MSVC 9.
14042         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14043         is not 1.
14044         * lib/read.c (read_nothrow): New function.
14045         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14046         read_nothrow.
14047         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14048         invalid parameter handler.
14049         (gl_PREREQ_READ): New macro.
14050         * modules/read (Depends-on): Add msvc-inval.
14051         (configure.ac): Invoke gl_PREREQ_READ.
14052         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14053
14054 2011-09-23  Bruno Haible  <bruno@clisp.org>
14055
14056         close: Support for MSVC 9.
14057         * lib/close.c: Include <errno.h>, msvc-inval.h.
14058         (close_nothrow): New function.
14059         (rpl_close): Use it.
14060         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14061         invalid parameter handler.
14062         * modules/close (Depends-on): Add msvc-inval.
14063         * modules/dup2-tests (Depends-on): Add close.
14064         * modules/dup3-tests (Depends-on): Likewise.
14065         * modules/fcntl-tests (Depends-on): Likewise.
14066         * modules/spawn-pipe-tests (Depends-on): Likewise.
14067         * modules/unistd-safer-tests (Depends-on): Likewise.
14068         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14069
14070 2011-09-23  Bruno Haible  <bruno@clisp.org>
14071
14072         New module 'dup'.
14073         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14074         Allow replacement.
14075         * lib/dup.c: New file.
14076         * lib/fchdir.c (rpl_dup): Remove function.
14077         * m4/dup.m4: New file.
14078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14079         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14080         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14081         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14082         * modules/dup: New file.
14083         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14084         'dup' module is in use.
14085         * modules/fdopendir (Depends-on): Add dup.
14086         * modules/fdutimensat-tests (Depends-on): Likewise.
14087         * modules/fts (Depends-on): Likewise.
14088         * modules/futimens-tests (Depends-on): Likewise.
14089         * modules/posix_spawnp-tests (Depends-on): Likewise.
14090         * modules/unistd-safer-tests (Depends-on): Likewise.
14091         * modules/utimens-tests (Depends-on): Likewise.
14092         * doc/posix-functions/dup.texi: Mention the new module and the problem
14093         on MSVC.
14094
14095 2011-09-23  Bruno Haible  <bruno@clisp.org>
14096
14097         getdtablesize: Support for MSVC 9.
14098         * lib/getdtablesize.c: Include msvc-inval.h.
14099         (_setmaxstdio_nothrow): New function.
14100         (_setmaxstdio): Redefine it.
14101         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14102         * modules/getdtablesize (Depends-on): Add msvc-inval.
14103         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14104
14105 2011-09-23  Bruno Haible  <bruno@clisp.org>
14106
14107         signal-h: Rename from signal.
14108         * modules/signal-h: Renamed from modules/signal.
14109         * modules/pthread_sigmask (Depends-on): Update.
14110         * modules/raise (Depends-on): Likewise.
14111         * modules/sigaction (Depends-on): Likewise.
14112         * modules/sigpipe (Depends-on): Likewise.
14113         * modules/sigprocmask (Depends-on): Likewise.
14114         * modules/sys_select (Depends-on): Likewise.
14115         * modules/signal-h-tests: Renamed from modules/signal-tests.
14116         (Files, Depends-on, Makefile.am): Update.
14117         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14118         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14119         (Files, Makefile.am): Update.
14120         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14121         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14122         * modules/signal: New placeholder file.
14123         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14124         * doc/posix-headers/signal.texi: Update.
14125         * NEWS: Mention the change.
14126
14127 2011-09-23  Bruno Haible  <bruno@clisp.org>
14128
14129         sigprocmask: Avoid crashes through signal() on MSVC 9.
14130         * lib/sigprocmask.c: Include msvc-inval.h.
14131         (signal_nothrow): New function.
14132         (signal): Redefine it.
14133         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14134         * modules/sigprocmask (Depends-on): Add msvc-inval.
14135         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14136
14137 2011-09-23  Bruno Haible  <bruno@clisp.org>
14138
14139         Tests for module 'raise'.
14140         * modules/raise-tests: New file.
14141         * tests/test-raise.c: New file.
14142
14143         raise: Support for MSVC.
14144         * lib/signal.in.h (raise): New declaration.
14145         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14146         for native Windows platforms.
14147         * m4/raise.m4: New file.
14148         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14149         HAVE_RAISE, REPLACE_RAISE.
14150         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14151         REPLACE_RAISE.
14152         * modules/raise (Status, Notice): Remove fields.
14153         (Files): Add m4/raise.m4.
14154         (Depends-on): Add signal, msvc-inval.
14155         (configure.ac): Use the common idioms.
14156         (Maintainer): Add me.
14157         * tests/test-signal-c++.cc: Check the signature of raise.
14158         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14159
14160 2011-09-23  Bruno Haible  <bruno@clisp.org>
14161
14162         pipe2: Fix compilation on pre-C99 compilers.
14163         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14164
14165 2011-09-23  Bruno Haible  <bruno@clisp.org>
14166
14167         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14168         * lib/msvc-nothrow.h: New file.
14169         * lib/msvc-nothrow.c: New file.
14170         * m4/msvc-nothrow.m4: New file.
14171         * modules/msvc-nothrow: New file.
14172         * lib/dup2.c: Include msvc-nothrow.h.
14173         (rpl_dup2): No need to protect _get_osfhandle call here.
14174         * lib/accept4.c: Include msvc-nothrow.h.
14175         * lib/error.c: Likewise.
14176         * lib/fcntl.c: Likewise.
14177         * lib/lseek.c: Likewise.
14178         * lib/nonblocking.c: Likewise.
14179         * lib/poll.c: Likewise.
14180         * lib/read.c: Likewise.
14181         * lib/select.c: Likewise.
14182         * lib/sockets.h: Likewise.
14183         * lib/sockets.c: Likewise.
14184         * lib/stdio-read.c: Likewise.
14185         * lib/stdio-write.c: Likewise.
14186         * lib/write.c: Likewise.
14187         * lib/w32sock.h: Likewise.
14188         * lib/w32spawn.h: Likewise.
14189         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14190         * lib/fsync.c: Likewise.
14191         * lib/isapipe.c: Likewise.
14192         * modules/dup2 (Depends-on): Add msvc-nothrow.
14193         * modules/accept4 (Depends-on): Likewise.
14194         * modules/error (Depends-on): Likewise.
14195         * modules/fcntl (Depends-on): Likewise.
14196         * modules/lseek (Depends-on): Likewise.
14197         * modules/nonblocking (Depends-on): Likewise.
14198         * modules/poll (Depends-on): Likewise.
14199         * modules/read (Depends-on): Likewise.
14200         * modules/select (Depends-on): Likewise.
14201         * modules/sockets (Depends-on): Likewise.
14202         * modules/sigpipe (Depends-on): Likewise.
14203         * modules/write (Depends-on): Likewise.
14204         * modules/accept (Depends-on): Likewise.
14205         * modules/bind (Depends-on): Likewise.
14206         * modules/connect (Depends-on): Likewise.
14207         * modules/gethostname (Depends-on): Likewise.
14208         * modules/getpeername (Depends-on): Likewise.
14209         * modules/getsockname (Depends-on): Likewise.
14210         * modules/getsockopt (Depends-on): Likewise.
14211         * modules/ioctl (Depends-on): Likewise.
14212         * modules/listen (Depends-on): Likewise.
14213         * modules/recv (Depends-on): Likewise.
14214         * modules/recvfrom (Depends-on): Likewise.
14215         * modules/send (Depends-on): Likewise.
14216         * modules/sendto (Depends-on): Likewise.
14217         * modules/setsockopt (Depends-on): Likewise.
14218         * modules/shutdown (Depends-on): Likewise.
14219         * modules/socket (Depends-on): Likewise.
14220         * modules/execute (Depends-on): Likewise.
14221         * modules/spawn-pipe (Depends-on): Likewise.
14222         * modules/flock (Depends-on): Likewise.
14223         * modules/fsync (Depends-on): Likewise.
14224         * modules/isapipe (Depends-on): Likewise.
14225         * tests/test-cloexec.c: Include msvc-nothrow.h.
14226         * tests/test-dup-safer.c: Likewise.
14227         * tests/test-dup2.c: Likewise.
14228         * tests/test-dup3.c: Likewise.
14229         * tests/test-fcntl.c: Likewise.
14230         * tests/test-pipe.c: Likewise.
14231         * tests/test-pipe2.c: Likewise.
14232         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14233         * modules/unistd-safer-tests (Depends-on): Likewise.
14234         * modules/dup2-tests (Depends-on): Likewise.
14235         * modules/dup3-tests (Depends-on): Likewise.
14236         * modules/fcntl-tests (Depends-on): Likewise.
14237         * modules/pipe-posix-tests (Depends-on): Likewise.
14238         * modules/pipe2-tests (Depends-on): Likewise.
14239
14240 2011-09-23  Bruno Haible  <bruno@clisp.org>
14241
14242         dup2: Make code more maintainable.
14243         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14244         (rpl_dup2): Use it.
14245         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14246         * modules/dup2 (configure.ac): Invoke it.
14247         Reported by Paul Eggert.
14248
14249 2011-09-23  Bruno Haible  <bruno@clisp.org>
14250
14251         msvc-inval: Fix compilation error.
14252         * lib/msvc-inval.h: Include <excpt.h>.
14253
14254 2011-09-23  Bruno Haible  <bruno@clisp.org>
14255
14256         mkdir: Tweak for MSVC 9.
14257         * lib/sys_stat.in.h: Update comments.
14258         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14259
14260         Tests for module 'chdir'.
14261         * modules/chdir-tests: New file.
14262         * tests/test-chdir.c: New file.
14263
14264         New module 'chdir'.
14265         * modules/chdir: New file.
14266         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14267         (chdir): New declaration.
14268         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14269         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14270         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14271         * tests/test-unistd-c++.cc: Check signature of chdir.
14272         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14273         * modules/chdir-long (Depends-on): Add chdir.
14274         * modules/fchdir (Depends-on): Likewise.
14275         * modules/rename (Depends-on): Likewise.
14276         * modules/savewd (Depends-on): Likewise.
14277
14278         rmdir: Support for mingw, MSVC 9.
14279         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14280         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14281
14282         getcwd: Tweak for MSVC 9.
14283         * lib/unistd.in.h: Update comments.
14284         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14285
14286 2011-09-22  Bruno Haible  <bruno@clisp.org>
14287
14288         strerror_r-posix: Avoid a link error on MSVC.
14289         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14290         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14291
14292 2011-09-22  Bruno Haible  <bruno@clisp.org>
14293
14294         select: Avoid link errors on MSVC.
14295         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14296         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14297         * modules/pselect (Link): Likewise.
14298         * NEWS: Mention the change.
14299         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14300         test-select-stdin against $(LIB_SELECT).
14301         * modules/pselect-tests (Makefile.am): Link test-pselect against
14302         $(LIB_SELECT).
14303
14304 2011-09-22  Bruno Haible  <bruno@clisp.org>
14305
14306         select: Avoid compilation error on MSVC.
14307         * lib/select.c: Don't include <stdbool.h>.
14308
14309 2011-09-21  Bruno Haible  <bruno@clisp.org>
14310
14311         Consolidate all uses of PATH_MAX in *.m4 files.
14312         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14313         macros.
14314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14315         and gl_PATHMAX_SNIPPET.
14316         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14318         * modules/chdir-long (Files): Add m4/pathmax.m4.
14319         * modules/getcwd (Files): Likewise.
14320
14321 2011-09-21  Bruno Haible  <bruno@clisp.org>
14322
14323         ftruncate: Un-deprecate, concentrate on Win32 support.
14324         * modules/ftruncate (Status, Notice): Remove sections.
14325         (Depends-on): Add largefile.
14326         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14327         non-mingw platforms.
14328         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14329         include <io.h>.
14330         * modules/perror-tests (Depends-on): Add ftruncate.
14331         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14332         'ftruncate' module.
14333
14334 2011-09-21  Bruno Haible  <bruno@clisp.org>
14335
14336         Add dependencies to new dirent related modules.
14337         * modules/opendir (Depends-on): Add closedir.
14338         * modules/getcwd (Depends-on): Add opendir, closedir.
14339         * modules/dirent-safer-tests (Depends-on): Likewise.
14340         * modules/fdopendir-tests (Depends-on): Likewise.
14341         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14342         * modules/renameat-tests (Depends-on): Likewise.
14343
14344 2011-09-21  Bruno Haible  <bruno@clisp.org>
14345
14346         opendir: Avoid compilation error on mingw.
14347         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14348         * modules/opendir (Depends-on): Add unistd.
14349
14350 2011-09-21  Bruno Haible  <bruno@clisp.org>
14351
14352         ftruncate tests: Avoid a test failure on mingw.
14353         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14354
14355 2011-09-21  Bruno Haible  <bruno@clisp.org>
14356
14357         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14358         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14359         native Windows.
14360
14361 2011-09-21  Bruno Haible  <bruno@clisp.org>
14362
14363         New module 'fdopen'.
14364         * lib/stdio.in.h (fdopen): New declaration.
14365         * lib/fdopen.c: New file.
14366         * m4/fdopen.m4: New file.
14367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14368         REPLACE_FDOPEN.
14369         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14370         REPLACE_FDOPEN.
14371         * modules/fdopen: New file.
14372         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14373         * tests/test-stdio-c++.cc: Check signature of fdopen.
14374         * doc/posix-functions/fdopen.texi: Mention the new module.
14375
14376 2011-09-21  Bruno Haible  <bruno@clisp.org>
14377
14378         unlockpt tests: Avoid test failure on NetBSD 5.1.
14379         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14380         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14381
14382 2011-09-21  Bruno Haible  <bruno@clisp.org>
14383
14384         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14385         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14386         * tests/test-getlogin_r.c (main): Likewise.
14387
14388 2011-09-20  Bruno Haible  <bruno@clisp.org>
14389
14390         time tests: Don't require pid_t.
14391         * doc/posix-headers/time.texi: Revert last change.
14392         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14393         * tests/test-time.c: Comment out the check for pid_t.
14394
14395 2011-09-20  Bruno Haible  <bruno@clisp.org>
14396
14397         fsync tests: Avoid a test failure on mingw.
14398         * tests/test-fsync.c (main): Allow a failure with EIO.
14399
14400 2011-09-20  Bruno Haible  <bruno@clisp.org>
14401
14402         euidaccess: Update comments.
14403         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14404
14405 2011-09-20  Bruno Haible  <bruno@clisp.org>
14406
14407         Ensure EBADF returns for socket functions on mingw.
14408         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14409         descriptor is invalid.
14410         * lib/bind.c (rpl_bind): Likewise.
14411         * lib/connect.c (rpl_connect): Likewise.
14412         * lib/getpeername.c (rpl_getpeername): Likewise.
14413         * lib/getsockname.c (rpl_getsockname): Likewise.
14414         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14415         * lib/listen.c (rpl_listen): Likewise.
14416         * lib/recv.c (rpl_recv): Likewise.
14417         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14418         * lib/send.c (rpl_send): Likewise.
14419         * lib/sendto.c (rpl_sendto): Likewise.
14420         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14421         * lib/shutdown.c (rpl_shutdown): Likewise.
14422
14423 2011-09-20  Bruno Haible  <bruno@clisp.org>
14424
14425         select tests: EBADF tests.
14426         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14427         test_bad_fd): New functions.
14428         (test_function): Invoke also test_bad_fd.
14429
14430 2011-09-20  Bruno Haible  <bruno@clisp.org>
14431
14432         Tests for module 'posix_spawn_file_actions_addopen.
14433         * modules/posix_spawn_file_actions_addopen-tests: New file.
14434         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14435
14436         Tests for module 'posix_spawn_file_actions_adddup2'.
14437         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14438         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14439
14440         Tests for module 'posix_spawn_file_actions_addclose'.
14441         * modules/posix_spawn_file_actions_addclose-tests: New file.
14442         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14443
14444 2011-09-20  Bruno Haible  <bruno@clisp.org>
14445
14446         Tests for module 'unlockpt'.
14447         * modules/unlockpt-tests: New file.
14448         * tests/test-unlockpt.c: New file.
14449         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14450
14451         Tests for module 'grantpt'.
14452         * modules/grantpt-tests: New file.
14453         * tests/test-grantpt.c: New file.
14454         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14455
14456 2011-09-20  Bruno Haible  <bruno@clisp.org>
14457
14458         freopen tests: EBADF tests.
14459         * tests/test-freopen.c: Include errno.h, unistd.h.
14460         (main): Add tests for EBADF, commented out for the moment.
14461
14462         fclose tests: EBADF tests.
14463         * tests/test-fclose.c (main): Add tests for EBADF.
14464
14465         fflush tests: EBADF tests.
14466         * tests/test-fflush.c: Include errno.h, macros.h.
14467         (main): Add tests for EBADF.
14468
14469         ftello tests: EBADF tests.
14470         * tests/test-ftello4.sh: New file.
14471         * tests/test-ftello4.c: New file.
14472         * modules/ftello-tests (Files): Add them.
14473         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14474
14475         fseeko tests: EBADF tests.
14476         * tests/test-fseeko4.sh: New file.
14477         * tests/test-fseeko4.c: New file.
14478         * modules/fseeko-tests (Files): Add them.
14479         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14480
14481         Tests for function fputc().
14482         * modules/fputc-tests: New file.
14483         * tests/test-fputc.c: New file.
14484         * modules/stdio-tests (Depends-on): Add fputc-tests.
14485
14486         Tests for function fgetc().
14487         * modules/fgetc-tests: New file.
14488         * tests/test-fgetc.c: New file.
14489         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14490
14491         Tests for function fdopen().
14492         * modules/fdopen-tests: New file.
14493         * tests/test-fdopen.c: New file.
14494         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14495
14496         Tests for module 'vdprintf'.
14497         * modules/vdprintf-tests: New file.
14498         * tests/test-vdprintf.c: New file.
14499
14500         Tests for module 'dprintf'.
14501         * modules/dprintf-tests: New file.
14502         * tests/test-dprintf.c: New file.
14503
14504 2011-09-20  Bruno Haible  <bruno@clisp.org>
14505
14506         Tests for module 'ioctl'.
14507         * modules/ioctl-tests: New file.
14508         * tests/test-ioctl.c: New file.
14509
14510 2011-09-20  Bruno Haible  <bruno@clisp.org>
14511
14512         fcntl tests: EBADF tests.
14513         * tests/test-fcntl.c (main): Add more tests for EBADF.
14514
14515 2011-09-20  Bruno Haible  <bruno@clisp.org>
14516
14517         utimensat tests: EBADF tests.
14518         * tests/test-utimensat.c (main): Add tests for EBADF.
14519
14520         renameat tests: EBADF tests.
14521         * tests/test-renameat.c (main): Add tests for EBADF.
14522
14523         mkfifoat tests: EBADF tests.
14524         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14525
14526         readlinkat tests: EBADF tests.
14527         * tests/test-readlinkat.c (main): Add tests for EBADF.
14528
14529         symlinkat tests: EBADF tests.
14530         * tests/test-symlinkat.c (main): Add tests for EBADF.
14531
14532         linkat tests: EBADF tests.
14533         * tests/test-linkat.c (main): Add tests for EBADF.
14534
14535         Tests for module 'faccessat'.
14536         * modules/faccessat-tests: New file.
14537         * tests/test-faccessat.c: New file.
14538
14539         fdopendir tests: EBADF tests.
14540         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14541
14542         openat tests: EBADF tests.
14543         * tests/test-fchownat.c (main): Add tests for EBADF.
14544         * tests/test-fstatat.c (main): Likewise.
14545         * tests/test-mkdirat.c (main): Likewise.
14546         * tests/test-openat.c (main): Likewise.
14547         * tests/test-unlinkat.c (main): Likewise.
14548         * tests/test-fchmodat.c: New file.
14549         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14550         (Makefile.am): Also run 'test-fchmodat'.
14551
14552 2011-09-20  Bruno Haible  <bruno@clisp.org>
14553
14554         utimens, futimens, fdutimensat tests: EBADF tests.
14555         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14556
14557         Tests for function fstat().
14558         * modules/fstat-tests: New file.
14559         * tests/test-fstat.c: New file.
14560         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14561
14562 2011-09-20  Bruno Haible  <bruno@clisp.org>
14563
14564         test-ttyname_r tests: EBADF tests.
14565         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14566
14567         Tests for module 'isatty'.
14568         * modules/isatty-tests: New file.
14569         * tests/test-isatty.c: New file.
14570
14571         Tests for module 'write'.
14572         * modules/write-tests: New file.
14573         * tests/test-write.c: New file.
14574
14575         Tests for module 'read'.
14576         * modules/read-tests: New file.
14577         * tests/test-read.c: New file.
14578
14579         pwrite tests: EBADF tests.
14580         * tests/test-pwrite.c (main): Add tests for EBADF.
14581
14582         pread tests: EBADF tests.
14583         * tests/test-pread.c (main): Add tests for EBADF.
14584
14585         lseek tests: EBADF tests.
14586         * tests/test-lseek.c (main): Add more tests for EBADF.
14587
14588         Tests for module 'ftruncate'.
14589         * modules/ftruncate-tests: New file.
14590         * tests/test-ftruncate.sh: New file.
14591         * tests/test-ftruncate.c: New file.
14592
14593         fsync tests: EBADF tests.
14594         * tests/test-fsync.c (main): Add more tests for EBADF.
14595
14596         fdatasync tests: EBADF tests.
14597         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14598
14599         Tests for module 'fchown'.
14600         * modules/fchown-tests: New file.
14601         * tests/test-fchown.c: New file.
14602
14603         Tests for module 'fchmod'.
14604         * modules/fchmod-tests: New file.
14605         * tests/test-fchmod.c: New file.
14606
14607         fchdir tests: EBADF tests.
14608         * tests/test-fchdir.c (main): Add more tests for EBADF.
14609
14610         dup2 tests: EBADF tests.
14611         * tests/test-dup2.c (main): Add more tests for EBADF.
14612
14613         Tests for module 'dup'.
14614         * modules/dup-tests: New file.
14615         * tests/test-dup.c: New file.
14616
14617         Tests for module 'close'.
14618         * modules/close-tests: New file.
14619         * tests/test-close.c: New file.
14620
14621 2011-09-20  Bruno Haible  <bruno@clisp.org>
14622
14623         Tests for module 'shutdown'.
14624         * modules/shutdown-tests: New file.
14625         * tests/test-shutdown.c: New file.
14626
14627         Tests for module 'setsockopt'.
14628         * modules/setsockopt-tests: New file.
14629         * tests/test-setsockopt.c: New file.
14630
14631         Tests for module 'sendto'.
14632         * modules/sendto-tests: New file.
14633         * tests/test-sendto.c: New file.
14634
14635         Tests for module 'send'.
14636         * modules/send-tests: New file.
14637         * tests/test-send.c: New file.
14638
14639         Tests for module 'recvfrom'.
14640         * modules/recvfrom-tests: New file.
14641         * tests/test-recvfrom.c: New file.
14642
14643         Tests for module 'recv'.
14644         * modules/recv-tests: New file.
14645         * tests/test-recv.c: New file.
14646
14647         Tests for module 'listen'.
14648         * modules/listen-tests: New file.
14649         * tests/test-listen.c: New file.
14650
14651         Tests for module 'getsockopt'.
14652         * modules/getsockopt-tests: New file.
14653         * tests/test-getsockopt.c: New file.
14654
14655         Tests for module 'getsockname'.
14656         * modules/getsockname-tests: New file.
14657         * tests/test-getsockname.c: New file.
14658
14659         Tests for module 'getpeername'.
14660         * modules/getpeername-tests: New file.
14661         * tests/test-getpeername.c: New file.
14662
14663         Tests for module 'connect'.
14664         * modules/connect-tests: New file.
14665         * tests/test-connect.c: New file.
14666
14667         Tests for module 'bind'.
14668         * modules/bind-tests: New file.
14669         * tests/test-bind.c: New file.
14670
14671         accept4 tests: Fix for native Windows.
14672         * tests/test-accept4.c: Include sockets.h.
14673         (main): Invoke gl_sockets_startup.
14674         * modules/accept4-tests (Depends-on): Add sockets.
14675
14676         accept tests: Fix for native Windows.
14677         * tests/test-accept.c: Include sockets.h.
14678         (main): Invoke gl_sockets_startup.
14679         * modules/accept-tests (Depends-on): Add sockets.
14680
14681 2011-09-19  Bruno Haible  <bruno@clisp.org>
14682
14683         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14684         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14685         do...while(0).
14686         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14687         Suggested by Paul Eggert.
14688
14689 2011-09-19  Bruno Haible  <bruno@clisp.org>
14690
14691         sched: Ensure pid_t is defined.
14692         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14693         not define pid_t.
14694         * lib/sched.in.h: Include <sys/types.h>.
14695         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14697
14698 2011-09-19  Bruno Haible  <bruno@clisp.org>
14699
14700         msvc-inval: Ensure the entire expansion is a single statement.
14701         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14702         of braces.
14703
14704 2011-09-19  Jim Meyering  <meyering@redhat.com>
14705
14706         tests: use printf, not echo in init.sh's warn_ function
14707         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14708         misbehave when given strings containing a backslash or starting
14709         with e.g., -n.  James Youngman suggested setting IFS.
14710
14711 2011-09-19  Eric Blake  <eblake@redhat.com>
14712
14713         futimens: enhance test
14714         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14715         closed non-negative fd.
14716
14717         date: accept 'hence' as opposite of 'ago'
14718         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14719         * tests/test-parse-datetime.c (main): Enhance test.
14720         Suggested by Jesse Wilson.
14721
14722 2011-09-19  Jim Meyering  <meyering@redhat.com>
14723
14724         getcwd: don't fail in a deep directory on a system without openat
14725         Before this change, getcwd would fail when called from a directory
14726         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14727         the non-openat implementation used "..", "../..", "../../..", etc.
14728         to access ancestor directories.  With too many, that string would
14729         be longer than PATH_MAX.
14730         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14731         using gnulib's openat replacement.
14732         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14733         we're using the replacement function.
14734
14735 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14736
14737         maint.mk: avoid warnings from perl about missing files
14738         * top/maint.mk (def_sym_regex): Ignore files listed in
14739         $(gl_other_headers_) that do not exist, say because a project
14740         does not use a corresponding module.
14741
14742 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14743
14744         stat: use pathmax.h only if needed
14745         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14746         This is better for Emacs, which does not have a mingw port and
14747         therefore can avoid the pathmax module.
14748
14749         utimens: remove dependency on dup2
14750         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14751         to work around the Linux kernel bug.
14752         * modules/utimens (Depends-on): Remove dup2.
14753
14754 2011-09-18  Bruno Haible  <bruno@clisp.org>
14755
14756         inet_ntop, inet_pton: Look for it also in libresolv.
14757         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14758         libnsl, search for it in libresolv.
14759         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14760         Needed on Solaris 7.
14761
14762 2011-09-18  Bruno Haible  <bruno@clisp.org>
14763
14764         accept, accept4 tests: Avoid link error on Solaris.
14765         * modules/accept-tests (Makefile.am): Link test-accept against
14766         $(LIBSOCKET).
14767         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14768         $(LIBSOCKET).
14769
14770         accept4: Avoid link error on Solaris.
14771         * modules/accept4 (Link): New section.
14772
14773         socket functions: Avoid link errors on Solaris.
14774         * modules/accept (Depends-on): Add socketlib.
14775         (Link): New section.
14776         * modules/bind (Depends-on): Add socketlib.
14777         (Link): New section.
14778         * modules/connect (Depends-on): Add socketlib.
14779         (Link): New section.
14780         * modules/getpeername (Depends-on): Add socketlib.
14781         (Link): New section.
14782         * modules/getsockname (Depends-on): Add socketlib.
14783         (Link): New section.
14784         * modules/getsockopt (Depends-on): Add socketlib.
14785         (Link): New section.
14786         * modules/listen (Depends-on): Add socketlib.
14787         (Link): New section.
14788         * modules/recv (Depends-on): Add socketlib.
14789         (Link): New section.
14790         * modules/recvfrom (Depends-on): Add socketlib.
14791         (Link): New section.
14792         * modules/send (Depends-on): Add socketlib.
14793         (Link): New section.
14794         * modules/sendto (Depends-on): Add socketlib.
14795         (Link): New section.
14796         * modules/setsockopt (Depends-on): Add socketlib.
14797         (Link): New section.
14798         * modules/shutdown (Depends-on): Add socketlib.
14799         (Link): New section.
14800         * modules/socket (Depends-on): Add socketlib.
14801         (Link): New section.
14802
14803 2011-09-18  Bruno Haible  <bruno@clisp.org>
14804
14805         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14806         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14807         than 5 seconds.
14808         * modules/ptsname-tests (configure.ac): Test for alarm.
14809
14810 2011-09-18  Bruno Haible  <bruno@clisp.org>
14811
14812         posix_spawn_file_actions_add*: Fix module dependencies.
14813         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14814         posix_spawn_file_actions_init.
14815         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14816         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14817
14818 2011-09-18  Bruno Haible  <bruno@clisp.org>
14819
14820         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14821         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14822         * tests/test-renameat.c (main): Likewise.
14823
14824 2011-09-18  Bruno Haible  <bruno@clisp.org>
14825
14826         Tests for module 'accept4'.
14827         * modules/accept4-tests: New file.
14828         * tests/test-accept4.c: New file.
14829
14830 2011-09-18  Bruno Haible  <bruno@clisp.org>
14831
14832         Tests for module 'accept'.
14833         * modules/accept-tests: New file.
14834         * tests/test-accept.c: New file.
14835
14836 2011-09-18  Bruno Haible  <bruno@clisp.org>
14837
14838         dup2: Support for MSVC.
14839         * lib/dup2.c: Include msvc-inval.h.
14840         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14841         _get_osfhandle calls.
14842         * modules/dup2 (Depends-on): Add msvc-inval.
14843         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14844
14845         New module 'msvc-inval'.
14846         * lib/msvc-inval.h: New file.
14847         * lib/msvc-inval.c: New file.
14848         * m4/msvc-inval.m4: New file.
14849         * modules/msvc-inval: New file.
14850
14851 2011-09-17  Bruno Haible  <bruno@clisp.org>
14852
14853         Tests for module 'pclose'.
14854         * modules/pclose-tests: New file.
14855
14856         New module 'pclose'.
14857         * lib/stdio.in.h (pclose): New declaration.
14858         * lib/pclose.c: New file.
14859         * m4/pclose.m4: New file.
14860         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14862         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14863         * modules/pclose: New file.
14864         * modules/popen-tests (Depends-on): Add pclose.
14865         * modules/popen-safer-tests (Depends-on): Likewise.
14866         * doc/posix-functions/pclose.texi: Mention the new module.
14867
14868 2011-09-17  Bruno Haible  <bruno@clisp.org>
14869
14870         popen: Support for MSVC.
14871         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14872         * lib/popen.c (popen): Provide alternate definition for native Windows.
14873         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14875         * modules/popen (Depends-on, configure.ac): Update condition.
14876         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14877         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14878         fixed.
14879
14880 2011-09-17  Bruno Haible  <bruno@clisp.org>
14881
14882         isnanl, isnand, isnanf: Work around MSVC bug.
14883         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14884
14885 2011-09-17  Bruno Haible  <bruno@clisp.org>
14886
14887         sys_socket tests: Fix recent mistake.
14888         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14889
14890 2011-09-17  Bruno Haible  <bruno@clisp.org>
14891
14892         putenv: Support for MSVC.
14893         * modules/putenv (Depends-on): Add environ.
14894         * lib/putenv.c (environ): Disable declaration.
14895         * lib/unistd.in.h: Update comment.
14896
14897 2011-09-17  Bruno Haible  <bruno@clisp.org>
14898
14899         math: Avoid macro redefinition warnings on MSVC.
14900         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14901         Undefine before redefining.
14902
14903 2011-09-17  Bruno Haible  <bruno@clisp.org>
14904
14905         doc: Mention functions which are declared as macros.
14906         * doc/posix-functions/*[fl].texi: Mention that some functions are
14907         defined as macros with arguments only.
14908
14909 2011-09-17  Bruno Haible  <bruno@clisp.org>
14910
14911         Add dependencies to new dirent related modules.
14912         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14913         * modules/fts (Depends-on): Likewise.
14914         * modules/glob (Depends-on): Likewise.
14915         * modules/savedir (Depends-on): Likewise.
14916         * modules/scandir (Depends-on): Likewise.
14917         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14918         * modules/fdopendir (Depends-on): Add opendir.
14919
14920 2011-09-17  Bruno Haible  <bruno@clisp.org>
14921
14922         inet_pton: Support for MSVC on Windows Vista or newer.
14923         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14924         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14925         HAVE_DECL_INET_PTON is defined.
14926         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14927         On platforms with <winsock2.h>, test whether inet_pton is declared in
14928         <ws2tcpip.h>. If so, arrange to replace it.
14929         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14930         REPLACE_INET_PTON.
14931         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14932         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14933         (Depends-on, configure.ac): Update condition.
14934         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14935
14936 2011-09-17  Bruno Haible  <bruno@clisp.org>
14937
14938         inet_ntop: Support for MSVC on Windows Vista or newer.
14939         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14940         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14941         HAVE_DECL_INET_NTOP is defined.
14942         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14943         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14944         <ws2tcpip.h>. If so, arrange to replace it.
14945         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14946         REPLACE_INET_NTOP.
14947         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14948         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14949         (Depends-on, configure.ac): Update condition.
14950         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14951
14952 2011-09-16  Eric Blake  <eblake@redhat.com>
14953
14954         test-fsync: yet another enhancement
14955         * tests/test-fsync.c (main): Also test behavior on read-only text
14956         file.
14957
14958 2011-09-16  Bruno Haible  <bruno@clisp.org>
14959
14960         Enhance fsync, fdatasync tests.
14961         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14962         * tests/test-fdatasync.c (main): Likewise.
14963
14964 2011-09-16  Bruno Haible  <bruno@clisp.org>
14965
14966         Support for MSVC compiler: Ensure mode_t gets defined.
14967         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14968         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14969         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14970         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14971         * tests/test-fcntl-h.c: Check that mode_t is defined.
14972         * tests/test-sys_stat.c: Likewise.
14973         * tests/test-sys_types.c: Likewise.
14974         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14975         * doc/posix-headers/sys_stat.texi: Likewise.
14976         * doc/posix-headers/sys_types.texi: Likewise.
14977
14978 2011-09-16  Bruno Haible  <bruno@clisp.org>
14979
14980         sys_stat: Support for MSVC.
14981         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14982         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14983         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14984         MSVC.
14985
14986 2011-09-16  Bruno Haible  <bruno@clisp.org>
14987
14988         Support for MSVC compiler: Ensure off_t gets defined.
14989         * lib/unistd.in.h: Include <sys/types.h>.
14990         * tests/test-fcntl-h.c: Check that off_t is defined.
14991         * tests/test-sys_stat.c: Likewise.
14992         * tests/test-sys_types.c: Likewise.
14993
14994 2011-09-16  Eric Blake  <eblake@redhat.com>
14995
14996         fdatasync: port to Solaris
14997         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14998         * modules/fdatasync (Link): Document it.
14999         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15000
15001         fdatasync: port to MacOS X 10.7
15002         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15003         declared.
15004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15005         * modules/unistd (Makefile.am): Substitute it.
15006         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15007         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15008
15009         fdatasync: minor improvements
15010         * modules/fdatasync (Depends-on): Add condition for fsync.
15011         * lib/fdatasync.c (fdatasync): Add comment.
15012         * tests/test-unistd-c++.cc: Test fdatasync.
15013
15014         unistd: update refs to newer POSIX
15015         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15016         Suggested by Bruno Haible.
15017
15018         fdatasync: new module
15019         * modules/fsync (Description): Document difference to fdatasync.
15020         * modules/fdatasync: New module.
15021         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15022         * lib/fdatasync.c (fdatasync): Likewise.
15023         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15024         defaults.
15025         * modules/unistd (Makefile.am): Set witnesses.
15026         * lib/unistd.in.h (fdatasync): Declare.
15027         * MODULES.html.sh: Document it.
15028         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15029         * modules/fdatasync-tests: New test.
15030         * tests/test-fdatasync.c: Likewise.
15031
15032 2011-09-16  Eric Blake  <eblake@redhat.com>
15033
15034         test-fsync: enhance tests
15035         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15036         * tests/test-fsync.c (main): Enhance test.
15037
15038 2011-09-15  Bruno Haible  <bruno@clisp.org>
15039
15040         Support for MSVC compiler: Ensure ssize_t gets defined.
15041         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15042         * doc/posix-headers/stdio.texi: Likewise.
15043         * modules/stdio (Depends-on): Add ssize_t.
15044         * modules/sys_socket (Depends-on): Likewise.
15045         * modules/sys_types (Depends-on): Likewise.
15046         * modules/sys_uio (Depends-on): Likewise.
15047         * modules/unistd (Depends-on): Likewise.
15048         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15049         * tests/test-sys_types.c: Check that ssize_t is defined.
15050
15051 2011-09-14  Bruno Haible  <bruno@clisp.org>
15052
15053         Avoid using #, the m4 comment starter character, near brackets.
15054         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15055         delimiter character in sed expressions.
15056         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15057         Suggested by Eric Blake.
15058
15059         Properly quote AC_CHECK_DECLS' 4th argument.
15060         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15061         argument.
15062         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15063         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15065         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15066         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15067         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15069         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15070         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15071         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15072         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15073         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15074         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15075         * m4/isinf.m4 (gl_ISINF): Likewise.
15076         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15077         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15078         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15079         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15081         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15082         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15083         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15084         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15085         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15086         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15087         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15089         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15091         Reported by Eric Blake.
15092
15093         Properly quote AC_CHECK_DECL's 4th argument.
15094         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15095         argument.
15096         * m4/argp.m4 (gl_ARGP): Likewise.
15097         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15098         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15099         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15100         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15101         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15102         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15104         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15106         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15107         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15108         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15109         Reported by Eric Blake.
15110
15111 2011-09-14  Eric Blake  <eblake@redhat.com>
15112
15113         opendir: avoid compile warning
15114         * lib/opendir.c (includes): Always include errno.h.
15115         Reported by Tatsuro MATSUOKA.
15116
15117 2011-09-14  Jim Meyering  <meyering@redhat.com>
15118
15119         maint.mk: sc_tight_scope: propagate failure from sub-make
15120         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15121         Reported by Martin von Gagern.
15122
15123 2011-09-13  Bruno Haible  <bruno@clisp.org>
15124
15125         tempname: Support for MSVC.
15126         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15127         MSVC.
15128         * modules/tempname (Depends-on): Add fcntl-h.
15129
15130 2011-09-13  Bruno Haible  <bruno@clisp.org>
15131
15132         sys_time: Support for MSVC.
15133         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15134         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15135         include <winsock2.h>.
15136         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15137         function declarations that collide with POSIX.
15138         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15139         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15140
15141 2011-09-13  Bruno Haible  <bruno@clisp.org>
15142
15143         stat: Support for MSVC.
15144         * lib/stat.c: Include pathmax.h.
15145         * modules/stat (Depends-on): Add pathmax.
15146
15147         pathmax: Support for native Windows.
15148         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15149
15150 2011-09-12  Bruno Haible  <bruno@clisp.org>
15151
15152         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15153         * lib/dirent.in.h (struct dirent): New type.
15154         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15155         DT_WHT): New macros.
15156         (DIR): New type.
15157         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15158         (readdir, rewinddir): New declarations.
15159         * lib/dirent-private.h: New file.
15160         * lib/opendir.c: New file.
15161         * lib/readdir.c: New file.
15162         * lib/rewinddir.c: New file.
15163         * lib/closedir.c: New file.
15164         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15165         * m4/opendir.m4: New file.
15166         * m4/readdir.m4: New file.
15167         * m4/rewinddir.m4: New file.
15168         * m4/closedir.m4: New file.
15169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15170         REPLACE_CLOSEDIR here.
15171         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15172         readdir, rewinddir are declared.
15173         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15174         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15175         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15176         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15177         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15178         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15179         * modules/opendir: New file.
15180         * modules/readdir: New file.
15181         * modules/rewinddir: New file.
15182         * modules/closedir: New file.
15183         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15184         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15185         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15186         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15187         * NEWS: Mention the 'fchdir' change.
15188
15189 2011-09-11  Bruno Haible  <bruno@clisp.org>
15190
15191         asm-underscore.m4: Support for MSVC.
15192         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15193         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15194
15195 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15196
15197         Doc about crypt functions.
15198         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15199         needing for _GNU_SOURCE to get crypt.
15200         * doc/posix-functions/encrypt.texi: Likewise.
15201         * doc/posix-functions/setkey.texi: Likewise.
15202
15203 2011-09-11  Bruno Haible  <bruno@clisp.org>
15204
15205         doc: Update regarding MSVC 9.
15206         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15207         tested".
15208         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15209         * doc/posix-headers/*.texi: Likewise.
15210         * doc/pastposix-functions/*.texi: Likewise.
15211         * doc/glibc-functions/*.texi: Likewise.
15212         * doc/glibc-headers/*.texi: Likewise.
15213
15214 2011-09-11  Bruno Haible  <bruno@clisp.org>
15215
15216         unistd et al.: Don't assume <unistd.h> exists.
15217         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15218         does not exist.
15219         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15220         exist. But include <stdlib.h>.
15221         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15222         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15223         symlink() does not exist.
15224         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15225         include <io.h> instead.
15226         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15228         include <direct.h> instead.
15229         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15230         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15231         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15232         <io.h> instead.
15233         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15234         correctly if the system does not have hard links.
15235         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15236         <direct.h> instead.
15237         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15238         it when looking for function declarations.
15239         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15240         <direct.h> and <io.h> instead.
15241         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15242
15243 2011-09-11  Bruno Haible  <bruno@clisp.org>
15244
15245         strcase: Support for MSVC.
15246         * modules/strcase (Status, Notice): Remove obsoletion mark.
15247         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15248         * doc/posix-functions/strncasecmp.texi: Likewise.
15249
15250         strings: Don't assume <strings.h> exists.
15251         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15252         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15253         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15254         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15255
15256 2011-09-11  Bruno Haible  <bruno@clisp.org>
15257
15258         dirent: Don't assume <dirent.h> exists.
15259         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15260         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15261         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15262         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15263
15264 2011-09-11  Bruno Haible  <bruno@clisp.org>
15265
15266         Fix wint_t on MSVC.
15267         * lib/wchar.in.h (wint_t): On MSVC, override it.
15268         * lib/wctype.in.h (wint_t): Likewise.
15269         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15270         MSVC.
15271         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15272         * doc/posix-headers/wctype.texi: Likewise.
15273
15274 2011-09-11  Bruno Haible  <bruno@clisp.org>
15275
15276         sys_types: Fix typo.
15277         * lib/sys_types.in.h: Fix typo in comment.
15278         Reported by Paul Eggert.
15279
15280         Support for MSVC compiler: Ensure size_t gets defined.
15281         * modules/strings (Depends-on): Add 'sys_types'.
15282         * modules/sys_uio (Depends-on): Likewise.
15283         * lib/sys_uio.in.h: Update comment.
15284
15285         C++ tests for module 'sys_types'.
15286         * modules/sys_types-c++-tests: New file.
15287         * tests/test-sys_types-c++.cc: New file.
15288
15289         Tests for module 'sys_types'.
15290         * modules/sys_types-tests: New file.
15291         * tests/test-sys_types.c: New file.
15292
15293         New module 'sys_types'.
15294         * lib/sys_types.in.h: New file.
15295         * m4/sys_types_h.m4: New file.
15296         * modules/sys_types: New file.
15297         * doc/posix-headers/sys_types.texi: Mention the new module and the
15298         size_t problem on MSVC 9.
15299
15300 2011-09-11  Bruno Haible  <bruno@clisp.org>
15301
15302         Support for MSVC compiler: Avoid division by a literal 0.
15303         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15305         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15306         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15307         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15308         * tests/infinity.h: New file.
15309         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15310         on MSVC.
15311         * tests/test-ceilf1.c: Include infinity.h.
15312         (main): Use Infinityf.
15313         * tests/test-ceil1.c: Include infinity.h.
15314         (main): Use Infinityd.
15315         * tests/test-ceill.c: Include infinity.h.
15316         (main): Use Infinityl.
15317         * tests/test-dprintf-posix.c: Include infinity.h.
15318         (test_function): Use Infinityd.
15319         * tests/test-floorf1.c: Include infinity.h.
15320         (main): Use Infinityf.
15321         * tests/test-floor1.c: Include infinity.h.
15322         (main): Use Infinityd.
15323         * tests/test-floorl.c: Include infinity.h.
15324         (main): Use Infinityl.
15325         * tests/test-fprintf-posix.c: Include infinity.h.
15326         (test_function): Use Infinityd.
15327         * tests/test-frexp.c: Include infinity.h.
15328         (main): Use Infinityd.
15329         * tests/test-frexpl.c: Include infinity.h.
15330         (main): Use Infinityl.
15331         * tests/test-isfinite.c: Include infinity.h.
15332         (test_isfinitef): Use Infinityf.
15333         (test_isfinited): Use Infinityd.
15334         (test_isfinitel): Use Infinityl.
15335         * tests/test-isinf.c: Include infinity.h.
15336         (test_isinff): Use Infinityf.
15337         (test_isinfd): Use Infinityd.
15338         (test_isinfl): Use Infinityl.
15339         * tests/test-isnan.c: Include infinity.h.
15340         (test_float): Use Infinityf.
15341         (test_double): Use Infinityd.
15342         (test_long_double): Use Infinityl.
15343         * tests/test-isnanf.h: Include infinity.h.
15344         (main): Use Infinityf.
15345         * tests/test-isnand.h: Include infinity.h.
15346         (main): Use Infinityd.
15347         * tests/test-isnanl.h: Include infinity.h.
15348         (main): Use Infinityl.
15349         * tests/test-ldexpl.c: Include infinity.h.
15350         (main): Use Infinityl.
15351         * tests/test-printf-posix.h: Include infinity.h.
15352         (test_function): Use Infinityd.
15353         * tests/test-roundf1.c: Include infinity.h.
15354         (main): Use Infinityf.
15355         * tests/test-round1.c: Include infinity.h.
15356         (main): Use Infinityd.
15357         * tests/test-roundl.c: Include infinity.h.
15358         (main): Use Infinityl.
15359         * tests/test-signbit.c: Include infinity.h.
15360         (test_signbitf): Use Infinityf.
15361         (test_signbitd): Use Infinityd.
15362         (test_signbitl): Use Infinityl.
15363         * tests/test-snprintf-posix.h: Include infinity.h.
15364         (test_function): Use Infinityd, Infinityl.
15365         * tests/test-sprintf-posix.h: Include infinity.h.
15366         (test_function): Use Infinityd, Infinityl.
15367         * tests/test-truncf1.c: Include infinity.h.
15368         (main): Use Infinityf.
15369         * tests/test-trunc1.c: Include infinity.h.
15370         (main): Use Infinityd.
15371         * tests/test-truncl.c: Include infinity.h.
15372         (main): Use Infinityl.
15373         * tests/test-vasnprintf-posix.c: Include infinity.h.
15374         (test_function): Use Infinityd, Infinityl.
15375         * tests/test-vasprintf-posix.c: Include infinity.h.
15376         (test_function): Use Infinityd, Infinityl.
15377         * modules/ceilf-tests (Files): Add tests/infinity.h.
15378         * modules/ceil-tests (Files): Likewise.
15379         * modules/ceill-tests (Files): Likewise.
15380         * modules/dprintf-posix-tests (Files): Likewise.
15381         * modules/floorf-tests (Files): Likewise.
15382         * modules/floor-tests (Files): Likewise.
15383         * modules/floorl-tests (Files): Likewise.
15384         * modules/fprintf-posix-tests (Files): Likewise.
15385         * modules/frexp-tests (Files): Likewise.
15386         * modules/frexp-nolibm-tests (Files): Likewise.
15387         * modules/frexpl-tests (Files): Likewise.
15388         * modules/frexpl-nolibm-tests (Files): Likewise.
15389         * modules/isfinite-tests (Files): Likewise.
15390         * modules/isinf-tests (Files): Likewise.
15391         * modules/isnan-tests (Files): Likewise.
15392         * modules/isnanf-tests (Files): Likewise.
15393         * modules/isnanf-nolibm-tests (Files): Likewise.
15394         * modules/isnand-tests (Files): Likewise.
15395         * modules/isnand-nolibm-tests (Files): Likewise.
15396         * modules/isnanl-tests (Files): Likewise.
15397         * modules/isnanl-nolibm-tests (Files): Likewise.
15398         * modules/ldexpl-tests (Files): Likewise.
15399         * modules/printf-posix-tests (Files): Likewise.
15400         * modules/roundf-tests (Files): Likewise.
15401         * modules/round-tests (Files): Likewise.
15402         * modules/roundl-tests (Files): Likewise.
15403         * modules/signbit-tests (Files): Likewise.
15404         * modules/snprintf-posix-tests (Files): Likewise.
15405         * modules/sprintf-posix-tests (Files): Likewise.
15406         * modules/truncf-tests (Files): Likewise.
15407         * modules/trunc-tests (Files): Likewise.
15408         * modules/truncl-tests (Files): Likewise.
15409         * modules/vasnprintf-posix-tests (Files): Likewise.
15410         * modules/vasprintf-posix-tests (Files): Likewise.
15411         * modules/vdprintf-posix-tests (Files): Likewise.
15412         * modules/vfprintf-posix-tests (Files): Likewise.
15413         * modules/vprintf-posix-tests (Files): Likewise.
15414         * modules/vsnprintf-posix-tests (Files): Likewise.
15415         * modules/vsprintf-posix-tests (Files): Likewise.
15416         * modules/xprintf-posix-tests (Files): Likewise.
15417
15418 2011-09-11  Bruno Haible  <bruno@clisp.org>
15419
15420         Ensure pid_t gets defined.
15421         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15422         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15423         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15424         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15425         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15426         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15427         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15428         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15429         * tests/test-fcntl-h.c: Check that pid_t is defined.
15430         * tests/test-sched.c: Likewise.
15431         * tests/test-termios.c: Likewise.
15432         * tests/test-time.c: Likewise.
15433         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15434         * doc/posix-headers/signal.texi: Likewise.
15435         * doc/posix-headers/sys_types.texi: Likewise.
15436         * doc/posix-headers/time.texi: Likewise.
15437
15438 2011-09-11  Bruno Haible  <bruno@clisp.org>
15439
15440         acl: Fix compilation on Solaris 10 (older version).
15441         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15442         of ACE_EVERYONE.
15443         * lib/set-mode-acl.c (qset_acl): Likewise.
15444         Reported by Christian Jullien <eligis@orange.fr>.
15445
15446 2011-09-10  Bruno Haible  <bruno@clisp.org>
15447
15448         iconv, unsetenv: Add support for MSVC compiler.
15449         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15450         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15451
15452 2011-09-10  Bruno Haible  <bruno@clisp.org>
15453
15454         *printf: Add support for MSVC compiler.
15455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15456         handles the exception caused by the %n directive. When cross-compiling,
15457         guess no on native Windows.
15458         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15459         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15460         emulate it through vsnprintf.
15461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15462         * doc/posix-functions/dprintf.texi: Update documentation regarding
15463         MSVC 9.
15464         * doc/posix-functions/fprintf.texi: Likewise.
15465         * doc/posix-functions/printf.texi: Likewise.
15466         * doc/posix-functions/snprintf.texi: Likewise.
15467         * doc/posix-functions/sprintf.texi: Likewise.
15468         * doc/posix-functions/swprintf.texi: Likewise.
15469         * doc/posix-functions/vdprintf.texi: Likewise.
15470         * doc/posix-functions/vfprintf.texi: Likewise.
15471         * doc/posix-functions/vprintf.texi: Likewise.
15472         * doc/posix-functions/vsnprintf.texi: Likewise.
15473         * doc/posix-functions/vsprintf.texi: Likewise.
15474         * doc/glibc-functions/asprintf.texi: Likewise.
15475         * doc/glibc-functions/obstack_printf.texi: Likewise.
15476         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15477         * doc/glibc-functions/vasprintf.texi: Likewise.
15478
15479 2011-09-10  Bruno Haible  <bruno@clisp.org>
15480
15481         nocrash: Add support for native Windows.
15482         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15483
15484 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15485             Bruno Haible  <bruno@clisp.org>
15486
15487         absolute-header, include-next: Add support for MSVC compiler.
15488         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15489         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15490         directory separator in #line directives.
15491         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15492         recognize also backslash as directory separator in #line directives.
15493
15494 2011-09-08  Jim Meyering  <meyering@redhat.com>
15495
15496         maint.mk: mark the post-release commit log with "maint: " prefix
15497         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15498         one-line commit-log summary.
15499
15500 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15501             Bruno Haible  <bruno@clisp.org>
15502
15503         Doc about crypt functions.
15504         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15505         systems.
15506         * doc/posix-functions/encrypt.texi: Likewise.
15507         * doc/posix-functions/setkey.texi: Likewise.
15508
15509 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15510
15511         * lib/gc.h: Fix copyright header.
15512
15513 2011-09-07  Bruno Haible  <bruno@clisp.org>
15514
15515         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15516         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15517         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15518
15519 2011-09-07  Bruno Haible  <bruno@clisp.org>
15520
15521         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15522         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15523         * lib/freopen.c: Likewise.
15524         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15525         * lib/lstat.c: Likewise.
15526         * lib/stat.c: Likewise.
15527         * lib/open.c: Use different syntax for include of <fcntl.h>.
15528         * lib/openat.c: Include fcntl.h again, explicitly.
15529
15530 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15531
15532         parse-datetime: document the newly accepted format
15533         * doc/parse-datetime.texi (Combined date and time of day items):
15534         New section.
15535
15536 2011-09-06  Bruno Haible  <bruno@clisp.org>
15537
15538         acl: Fix a test failure on newer Solaris 10 with ZFS.
15539         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15540         ENOSYS as no ACL.
15541         Reported by Jim Meyering.
15542
15543 2011-09-06  Bruno Haible  <bruno@clisp.org>
15544
15545         acl: Update for AIX >= 5.3 with NFS.
15546         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15547         ENOSYS as no ACL.
15548
15549         acl: Fix a test failure on AIX >= 5.3 with NFS.
15550         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15551         as no ACL.
15552
15553 2011-09-06  Bruno Haible  <bruno@clisp.org>
15554
15555         acl: Fix a test failure on IRIX 6.5 with NFS.
15556         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15557         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15558         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15559         * lib/copy-acl.c (qcopy_acl): Likewise.
15560
15561 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         openat: port to AIX 7.1 with large files
15564         AIX 7.1 does a "#define openat open64at" if large files are in use,
15565         so we can't simply #undef openat.  Use the orig_openat trick (similar
15566         to orig_open in lib/open.c) to work around the problem.  Problem
15567         reported by Kevin Brott for GNU tar, in the thread containing
15568         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15569         * lib/openat.c (__need_system_fcntl_h): Define first.
15570         Include <fcntl.h> and <sys/types.h> before undefining.
15571         (orig_openat) [HAVE_OPENAT]: New inline function.
15572         (openat) [HAVE_OPENAT]: Do not undef.
15573         (rpl_openat): Use orig_openat, not openat.
15574
15575 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15576             Bruno Haible  <bruno@clisp.org>
15577
15578         acl: Avoid errors on NonStop Kernel.
15579         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15580         ENOTSUP errors.
15581
15582 2011-09-05  Bruno Haible  <bruno@clisp.org>
15583
15584         acl: Clean up Solaris code.
15585         * lib/acl-internal.h: Remove no-op #if.
15586         * lib/file-has-acl.c: Likewise.
15587         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15588         * lib/copy-acl.c (qcopy_acl): Likewise.
15589
15590 2011-09-05  Bruno Haible  <bruno@clisp.org>
15591
15592         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15593         binaries built on the original Solaris 10.
15594         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15595         trivial.
15596
15597 2011-09-05  Bruno Haible  <bruno@clisp.org>
15598
15599         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15600         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15601         10.
15602         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15603         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15604         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15605         instead of acl_get, facl_get, acl_set, facl_set.
15606
15607 2011-09-05  Bruno Haible  <bruno@clisp.org>
15608
15609         copy-file: Try unit tests on more file systems.
15610         * tests/test-copy-file-1.sh: New file.
15611         * tests/test-copy-file-2.sh: New file.
15612         * modules/copy-file-tests (Files): Add them.
15613         (Makefile.am): Add them to TESTS.
15614
15615         acl: Try unit tests on more file systems.
15616         * tests/test-file-has-acl-1.sh: New file.
15617         * tests/test-file-has-acl-2.sh: New file.
15618         * tests/test-set-mode-acl-1.sh: New file.
15619         * tests/test-set-mode-acl-2.sh: New file.
15620         * tests/test-copy-acl-1.sh: New file.
15621         * tests/test-copy-acl-2.sh: New file.
15622         * modules/acl-tests (Files): Add them.
15623         (Makefile.am): Add them to TESTS.
15624
15625 2011-09-04  Bruno Haible  <bruno@clisp.org>
15626
15627         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15628         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15629         10.
15630         (OLD_ALLOW, OLD_DENY): New macros.
15631         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15632         ACE_ACCESS_ALLOWED_ACE_TYPE.
15633         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15634         ACE_ACCESS_DENIED_ACE_TYPE.
15635         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15636         (NEW_ACE_EXECUTE): Fix value.
15637         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15638         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15639         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15640         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15641         NEW_ACE_SYNCHRONIZE): New macros.
15642         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15643         instead of acl_fromtext, acl_set, facl_set.
15644         Fixes a coreutils/tests/cp/perm failure.
15645
15646 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15647
15648         openat: test for fstatat (..., 0) bug
15649         Further testing with tar suggests that fstatat (..., 0)
15650         does not work in general, on AIX 7.1; see
15651         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15652         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15653         replacement fstatat (which is what older AIX releases were using
15654         anyway).
15655         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15656         use is now changed to orig_fstatat.  This was probably the right
15657         thing to do anyway.
15658         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15659         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15660         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15661         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15662         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15663         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15664         if the bug is found.
15665
15666         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15667         This tests for another fstatat bug on AIX 7.1:
15668         fstatat (AT_FDCWD, ..., 0) does not work.  See
15669         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15670         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15671         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15672         (rpl_fstatat): Adjust so that it works around either (or both)
15673         bugs if present.
15674         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15675
15676 2011-09-03  Karl Berry  <karl@gnu.org>
15677
15678         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15679         in index entries.
15680
15681 2011-09-02  Bruno Haible  <bruno@clisp.org>
15682
15683         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15684         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15685         values of AR, ARFLAGS, RANLIB.
15686         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15687
15688 2011-09-02  Bruno Haible  <bruno@clisp.org>
15689
15690         Find 'ar' program that fits with --host argument.
15691         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15692
15693 2011-09-02  Bruno Haible  <bruno@clisp.org>
15694
15695         tests: init.sh: Support any non-GNU diff.
15696         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15697         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15698         Solaris 8.
15699
15700 2011-09-02  Bruno Haible  <bruno@clisp.org>
15701
15702         tests: init.sh: work also with any non-GNU diff that supports -u
15703         * tests/init.sh: Relax check for diff -u support.
15704         Rather than checking for GNU diff via --version, simply check
15705         for support for -u itself.  Useful at least on OpenBSD 4.9,
15706         AIX 7.1, IRIX 6.5, and Solaris 10.
15707
15708 2011-09-01  Bruno Haible  <bruno@clisp.org>
15709
15710         strtoimax, strtoumax: Document problem on HP-UX 11.
15711         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15712         * doc/posix-functions/strtoumax.texi: Likewise.
15713
15714 2011-09-01  Bruno Haible  <bruno@clisp.org>
15715
15716         strtoumax: Avoid link error on OSF/1 with DTK cc.
15717         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15718         defined as a function.
15719         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15720         strtoumax is defined, not whether it is declared.
15721
15722 2011-09-01  Bruno Haible  <bruno@clisp.org>
15723
15724         strtoimax: Avoid link error on OSF/1 with DTK cc.
15725         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15726         defined as a function.
15727         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15728         strtoimax is defined, not whether it is declared.
15729
15730 2011-09-01  Bruno Haible  <bruno@clisp.org>
15731
15732         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15733         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15734         as a function.
15735         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15736         whether it is declared.
15737
15738 2011-09-01  Bruno Haible  <bruno@clisp.org>
15739
15740         imaxabs: Avoid link error on OSF/1 with DTK cc.
15741         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15742         as a function.
15743         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15744         whether it is declared.
15745
15746 2011-09-01  Bruno Haible  <bruno@clisp.org>
15747
15748         Tests for module 'strtoumax'.
15749         * modules/strtoumax-tests: New file.
15750         * tests/test-strtoumax.c: New file.
15751
15752         Tests for module 'strtoimax'.
15753         * modules/strtoimax-tests: New file.
15754         * tests/test-strtoimax.c: New file.
15755
15756         Tests for module 'imaxdiv'.
15757         * modules/imaxdiv-tests: New file.
15758         * tests/test-imaxdiv.c: New file.
15759
15760         Tests for module 'imaxabs'.
15761         * modules/imaxabs-tests: New file.
15762         * tests/test-imaxabs.c: New file.
15763
15764 2011-09-01  Bruno Haible  <bruno@clisp.org>
15765
15766         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15767         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15768         pthread_create.
15769
15770 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15771
15772         openat: work around AIX 7.1 fstatat issue
15773         This should fix the problem that was not properly fixed
15774         in the previous change, dated 2011-08-30.
15775         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15776         __need_system_stat_h defined.
15777         (orig_fstatat) [HAVE_FSTATAT]: New function.
15778         (rpl_fstatat): Go back to the old way of doing things,
15779         except call orig_fstatat instead of fstatat.
15780         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15781         Remove unnecessary check whether fstatat fills in st_size etc.
15782
15783 2011-09-01  Bruno Haible  <bruno@clisp.org>
15784
15785         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15786         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15787         just include the system's header.
15788
15789 2011-08-31  Jim Meyering  <meyering@redhat.com>
15790
15791         tests: avoid spurious assertion failure in test-float.c on ppc64
15792         * tests/test-float.c (test_long_double): Comment out an assertion,
15793         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15794         with gcc-4.4.4.
15795
15796         maint: indent with spaces, not TABs
15797         I need to get in the habit of running gnulib's "make check".
15798         Both of these would have been caught.
15799         * m4/largefile.m4: Indent with spaces, not TABs.
15800         * lib/parse-datetime.y (iso_8601_time): Likewise.
15801         Spotted by Pádraig Brady.
15802
15803         test-parse-datetime.c: accommodate a relatively strict gcc warning
15804         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15805         to avoid a warning from gcc's -Werror=missing-declarations.
15806         Insert a few spaces-before-funcall-parenthesis.
15807
15808 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15809
15810         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15811         The parser now accepts ISO 8601 date-time strings with "T" as the
15812         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15813         with a space between the date and time strings.  Now it also parses
15814         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15815         variants like "2004-02-29T16:21:42.333-07:00"
15816         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15817         of day representation using the 'T' separator character.
15818         * doc/parse-datetime.texi (General date syntax): replace use of
15819         deprecated --iso-8601 option with --rfc-3339 in example of date
15820         command output formats that can be parsed.
15821         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15822         lib/parse-datetime.y.
15823         (gmt_offset): New function.
15824         (main): Add additional test cases to validate ISO8601 extended
15825         date and time of day parsing.
15826
15827 2011-08-31  Bruno Haible  <bruno@clisp.org>
15828
15829         freopen: Documentation.
15830         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15831         name.
15832         Reported by Claudio Bley <claudio.bley@gmail.com>.
15833
15834 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15835
15836         freopen: Don't crash if the filename argument is NULL.
15837         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15838         NULL.
15839
15840 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15841
15842         openat: work around AIX 7.1 fstatat bug
15843         Problem reported by Kevin Brott for GNU tar, in the thread containing
15844         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15845         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15846         FSTATAT_ST_SIZE_ETC_BROKEN.
15847         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15848         rpl_fstatat.
15849         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15850         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15851         AC_CHECK_FUNCS_ONCE for fstatat.
15852         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15853         fchmodat, mkdirat, openat and unlinkat.
15854
15855 2011-08-30  Bruno Haible  <bruno@clisp.org>
15856
15857         Avoid endless recursions if config.h includes some header files.
15858         * lib/fopen.c (__need_FILE): Define already before including config.h.
15859         * lib/freopen.c (__need_FILE): Likewise.
15860         * lib/open.c (__need_system_fcntl_h): Likewise.
15861         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15862         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15863         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15864
15865 2011-08-25  Karl Berry  <karl@gnu.org>
15866
15867         * config/srclist.txt (ylwrap): new try.
15868         * build-aux/ylwrap: new file.
15869
15870 2011-08-23  Bruno Haible  <bruno@clisp.org>
15871
15872         tmpdir: Use a good default directory on native Windows.
15873         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15874         (P_tmpdir): Default to _P_tmpdir on native Windows.
15875         (path_search): On native Windows, try the value returned by GetTempPath
15876         before trying P_tmpdir.
15877         * modules/tmpdir (Depends-on): Add pathmax.
15878         Suggested by John Darrington <john@darrington.wattle.id.au>.
15879
15880 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15881
15882         doc: fix typo in README-release
15883         * top/README-release: Capitalize first word of a sentence.
15884
15885 2011-08-19  Jim Meyering  <meyering@redhat.com>
15886
15887         fts: do not exhaust memory when processing million-entry directories
15888         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15889         directory would require about 256*N bytes of memory.  Thus, it was
15890         easy to construct a directory too large to be processed by any of
15891         those tools.  With this change, fts' maximum memory utilization is
15892         now limited to around 30MB.
15893         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15894         (fts_read): When we've processed the final entry (i.e., when
15895         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15896         using the parent entry to read any remaining entries.  Dispatch
15897         depending on what fts_build returns:
15898         - NULL+stop, aka failure: stop
15899         - NULL otherwise: move up in the dir hierarchy
15900         - non-NULL: handle this new entry
15901         (fts_build): Declare and use new local, continue_readdir.
15902         Prepare to be called from fts_read, when the entries
15903         from a partially-read directory have just been exhausted.
15904         In that case, we'll skip the opendir and instead use the parent's
15905         fts_dirp and derive dir_fd from that.
15906         Finally, in the readdir loop, if we read max_entries entries,
15907         exit the loop ensuring *not* to call closedir.  This is required
15908         so that fts_dirp can be reused on a subsequent call.
15909         Prompted by Ben England's report of memory exhaustion in find
15910         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15911
15912         maint: fts: move decl of `dp' down into while loop; split a long line
15913         * lib/fts.c (fts_build): No semantic change.
15914
15915         fts: add/use new struct member, fts_dirp
15916         We are about to use this to manage any directory with
15917         too many entries to read all of them into memory at once.
15918         To do that, we'll need to save the DIR* pointer in each
15919         affected FTSENT struct.
15920         * lib/fts_.h: Include <dirent.h>.
15921         (struct FTSENT) [fts_dirp]: New member.
15922         * lib/fts.c (closedir_and_clear): Define.
15923         Use it in place of closedir so that we are sure to
15924         clear the new fts_dirp member when done with it.
15925         (fts_alloc): Initialize the new member.
15926         (fts_lfree): Free, if needed.
15927
15928         maint: fts: give __opendir2 a new parameter and rename
15929         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15930         than surreptitiously using sole caller's "dir_fd".
15931         (fts_opendir): Rename from __opendir2.
15932
15933         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15934         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15935
15936         maint: fts.c: correct off-by-one indentation
15937         * lib/fts.c (fts_build): Correct indentation, change style
15938         of a couple of block comments, and bracing style.
15939
15940         maint: fts.c: move __opendir2 #define "up" out of function body
15941         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15942
15943         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15944         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15945         out for a long time and besides was useful only on BSD systems.
15946
15947 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15948
15949         regex: port to Stratus OpenVOS
15950         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15951         define to empty, rather than attempting nonportable optimizations.
15952         Problem reported by Paul Green in:
15953         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15954         and fix suggested by Eric Blake in:
15955         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15956
15957 2011-08-17  Eric Blake  <eblake@redhat.com>
15958
15959         getcwd: fix test failures on mingw
15960         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15961         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15962         test if long directory cannot be created, and allow mingw errno.
15963
15964         getcwd-lgpl: fix m4 to match relaxed test for BSD
15965         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15966         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15967         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15968         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15969         signature problem.
15970
15971         getcwd: fix compilation on mingw64
15972         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15973         getcwd.
15974         Reported by Marc-André Lureau.
15975
15976         pipe2: silence compiler warning
15977         * lib/pipe2.c (pipe2): Hide label if it is not used.
15978
15979 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15980
15981         relocatable-prog: fix link error
15982         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15983         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15984         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15985         into modules/relocatable-lib without noticing that
15986         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15987         also needs to build relocatable.c.
15988
15989 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15990
15991         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15993         shell code: it contained a 'break' that was not in a loop.
15994         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15995         via a shell-language loop; this may have been true in old Autoconf
15996         versions, but it's not true in Autoconf 2.68.  I found this bug
15997         when testing coreutils git on Solaris 8, whose shell complains
15998         about the syntax error.
15999
16000 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16001
16002         * lib/base64.c: Fix comment to reference RFC 4648.
16003         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16004         <gvtulder@gmail.com>.
16005
16006 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16007
16008         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16009
16010         po/Makefile.in.in: fix make -q problem
16011         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16012         rule, since there's no file named 'check-macro-version' and its
16013         use as a file breaks make -q.
16014         (all): Don't depend on check-macro-version.
16015         (CHECK_MACRO_VERSION): New macro.
16016         (stamp-po): Use it.
16017
16018         configmake: fix make -q problem
16019         * modules/configmake (configmake.h): Update configmake.h's time stamp
16020         even if the file does not change.  Otherwise, 'make -q' fails.
16021         Problem reported by Simon Josefsson in
16022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16023
16024 2011-08-11  Jim Meyering  <meyering@redhat.com>
16025
16026         git-version-gen: correct the advice in a comment
16027         * build-aux/git-version-gen: Correct comment.
16028         Don't recommend to list .tarball-version in .gitignore.
16029
16030 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16031
16032         base64: fix off-by-one buffer size bug
16033         Problem and (trivial) fix reported by Gijs van Tulder in
16034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16035         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16036         * tests/test-base64.c (main): Catch the bug.
16037
16038 2011-08-10  Eric Blake  <eblake@redhat.com>
16039
16040         closein: correct comments
16041         * lib/closein.c (close_stdin): Improve comments.
16042
16043 2011-08-09  Bruno Haible  <bruno@clisp.org>
16044
16045         More tests for 'fseeko'.
16046         * tests/test-fseeko3.c: New file, from Eric Blake.
16047         * tests/test-fseeko3.sh: New file.
16048         * modules/fseeko-tests (Files): Add them.
16049         (TESTS): Add test-fseeko3.sh.
16050         (check_PROGRAMS): Add test-fseeko3.
16051
16052 2011-08-09  Eric Blake  <eblake@redhat.com>
16053
16054         fseeko: remove unneeded hack
16055         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16056
16057         fseeko: fix bug on glibc
16058         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16059         Reported by John W. Eaton.
16060
16061 2011-08-08  Bruno Haible  <bruno@clisp.org>
16062
16063         unictype/base: Fix interoperability with preinstalled libunistring.
16064         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16065         Reported by Simon Josefsson.
16066
16067 2011-08-08  Bruno Haible  <bruno@clisp.org>
16068
16069         iswblank: Detect declaration correctly.
16070         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16071         AC_CHECK_DECLS invocation.
16072
16073 2011-08-08  Bruno Haible  <bruno@clisp.org>
16074
16075         tcgetsid: Detect declaration correctly.
16076         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16077         AC_CHECK_DECLS invocation.
16078         Reported by Simon Josefsson.
16079
16080 2011-08-08  Eric Blake  <eblake@redhat.com>
16081
16082         largefile: fix typo that regressed large file support
16083         * modules/largefile (configure.ac-early): Fix section name.
16084
16085 2011-08-06  Karl Berry  <karl@gnu.org>
16086
16087         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16088         a separate module.
16089
16090 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16091
16092         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16093         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16094         get prototype for free.
16095
16096 2011-08-04  Bruno Haible  <bruno@clisp.org>
16097
16098         Tests for module 'pathmax'.
16099         * modules/pathmax-tests: New file.
16100         * tests/test-pathmax.c: New file.
16101
16102         canonicalize-lgpl: Support larger filenames on the Hurd.
16103         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16104         Reported by Paul Eggert.
16105
16106         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16107         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16108         * lib/chdir-long.h: Include pathmax.h.
16109         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16110         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16111         (PATH_MAX): Remove code that is done by pathmax.h.
16112         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16113         * lib/tmpfile.c: Add a comment.
16114         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16115         * modules/chdir-long (Depends-on): Add pathmax.
16116         * modules/getcwd (Depends-on): Add pathmax.
16117         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16118         is not defined.
16119         * doc/posix-headers/limits.texi: Mention the pathmax module.
16120         * NEWS: Mention the change.
16121
16122 2011-08-02  Bruno Haible  <bruno@clisp.org>
16123
16124         pthread_sigmask: Actually use results of gl_THREADLIB.
16125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16126         gl_THREADLIB, not gl_[]THREADLIB.
16127         Reported by Eric Blake.
16128
16129 2011-08-02  Jim Meyering  <meyering@redhat.com>
16130
16131         maint.mk: relax the default _gl_TS_function_match regexp
16132         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16133         space between function name and "(" in an "extern" declaration.
16134         That would fail to match a decl with no space there: extern void foo();
16135
16136 2011-07-31  Iain Nicol  <iain@thenicols.net>
16137
16138         git-version-gen: document that EXTRA_DIST must include .version
16139         * build-aux/git-version-gen: In the how-to-use comment, document
16140         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16141         will fail when run from an unpacked distribution tarball.
16142
16143 2011-08-01  Bruno Haible  <bruno@clisp.org>
16144
16145         wctype-h: Fix last change.
16146         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16147         REPLACE_TOWLOWER to 0.
16148         Reported by Sam Steingold <sds@gnu.org>.
16149
16150 2011-07-31  Bruno Haible  <bruno@clisp.org>
16151
16152         frexpl: Update autoconf test.
16153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16154         according to changes of 2011-06-20.
16155
16156 2011-07-31  Bruno Haible  <bruno@clisp.org>
16157
16158         sys_utsname: Add support for Minix.
16159         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16160         <sys/utsname.h>.
16161         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16162         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16163
16164 2011-07-31  Bruno Haible  <bruno@clisp.org>
16165
16166         strings: Add support for Minix.
16167         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16168         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16169         * doc/posix-headers/strings.texi: Document the Minix problem.
16170
16171 2011-07-31  Bruno Haible  <bruno@clisp.org>
16172
16173         wctype-h: Add support for Minix.
16174         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16175         REPLACE_TOWLOWER.
16176         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16177         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16178         REPLACE_ISWCNTRL.
16179
16180 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16181
16182         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16183         This is a performance improvement for 64-bit hosts: it causes the
16184         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16185
16186 2011-07-31  Bruno Haible  <bruno@clisp.org>
16187
16188         stdioext: Add support for Minix.
16189         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16190         * lib/fpurge.c (fpurge): Likewise.
16191         * lib/freadahead.c (freadahead): Likewise.
16192         * lib/freadable.c (freadable): Likewise.
16193         * lib/freading.c (freading): Likewise.
16194         * lib/freadptr.c (freadptr): Likewise.
16195         * lib/freadseek.c (freadptrinc): Likewise.
16196         * lib/fseeko.c (rpl_fseeko): Likewise.
16197         * lib/fseterr.c (fseterr): Likewise.
16198         * lib/fwritable.c (fwritable): Likewise.
16199         * lib/fwriting.c (fwriting): Likewise.
16200         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16201         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16202
16203 2011-07-31  Bruno Haible  <bruno@clisp.org>
16204
16205         errno: Port to Minix.
16206         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16207         ECONNABORTED are defined.
16208         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16209         GNULIB_defined_ECONNABORTED): New macros.
16210         * lib/strerror-override.h (strerror_override): Test also
16211         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16212         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16213         ECONNABORTED.
16214         * doc/posix-headers/errno.texi: Mention the Minix problem.
16215
16216 2011-07-31  Bruno Haible  <bruno@clisp.org>
16217
16218         Work around declaration collisions on Minix.
16219         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16220         defined, set REPLACE_MBSINIT.
16221         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16222         defined, set REPLACE_MBRTOWC.
16223         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16224         set REPLACE_MBRLEN.
16225         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16226         defined, set REPLACE_MBSRTOWCS.
16227         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16228         defined, set REPLACE_WCRTOMB.
16229         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16230         defined, set REPLACE_WCSRTOMBS.
16231
16232 2011-07-31  Bruno Haible  <bruno@clisp.org>
16233
16234         Add support for Minix with ACK compiler.
16235         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16236         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16237         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16238
16239 2011-07-31  Bruno Haible  <bruno@clisp.org>
16240
16241         Documentation about Minix.
16242         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16243         * doc/glibc-headers/*.texi: Likewise.
16244         * doc/posix-functions/*.texi: Likewise.
16245         * doc/glibc-functions/*.texi: Likewise.
16246
16247 2011-07-31  Bruno Haible  <bruno@clisp.org>
16248
16249         snippet/warn-on-use: Fix indentation.
16250         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16251
16252 2011-07-25  Jim Meyering  <meyering@redhat.com>
16253
16254         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16255         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16256         commands.
16257
16258 2011-07-27  Jim Meyering  <meyering@redhat.com>
16259
16260         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16261         * top/maint.mk (gl_extract_significant_defines_): Now that
16262         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16263         gnulib/lib/signal.in.h, and now that we recommend to
16264         define-if-undefined those two symbols in application code,
16265         we must filter them out of the "significant" list.
16266         This avoids a "make syntax-check" failure in coreutils.
16267
16268 2011-07-26  Eric Blake  <eblake@redhat.com>
16269
16270         warnings: add comments about previous patch
16271         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16272         * m4/include_next.m4: Likewise.
16273         * m4/warn-on-use.m4: Likewise.
16274         * m4/warnings.m4: Likewise, and simplify use.
16275         Suggested by Stefano Lattarini.
16276
16277         include-next, warnings: support older autoconf
16278         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16279         AS_VAR_PUSHDEF in a way that works with older autoconf.
16280         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16281         Reported by Daniel P. Berrange.
16282
16283 2011-07-25  Bruno Haible  <bruno@clisp.org>
16284
16285         fseek, ftell: Fix doc.
16286         * doc/posix-functions/fseek.texi: Reword statement about
16287         AC_SYS_LARGEFILE.
16288         * doc/posix-functions/ftell.texi: Likewise.
16289
16290 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16291             Bruno Haible  <bruno@clisp.org>
16292
16293         Add dependencies to the 'largefile' module.
16294         * modules/fopen (Depends-on): Add 'largefile'.
16295         * modules/freopen (Depends-on): Likewise.
16296         * modules/fseeko (Depends-on): Likewise.
16297         * modules/ftello (Depends-on): Likewise.
16298         * modules/glob (Depends-on): Likewise.
16299         * modules/lseek (Depends-on): Likewise.
16300         * modules/lstat (Depends-on): Likewise.
16301         * modules/mkostemp (Depends-on): Likewise.
16302         * modules/mkostemps (Depends-on): Likewise.
16303         * modules/mkstemp (Depends-on): Likewise.
16304         * modules/mkstemps (Depends-on): Likewise.
16305         * modules/open (Depends-on): Likewise.
16306         * modules/openat (Depends-on): Likewise.
16307         * modules/pread (Depends-on): Likewise.
16308         * modules/pwrite (Depends-on): Likewise.
16309         * modules/scandir (Depends-on): Likewise.
16310         * modules/stat (Depends-on): Likewise.
16311         * modules/tmpfile (Depends-on): Likewise.
16312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16313         since the containing module now depends on the largefile module.
16314         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16315         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16316         off_t is fixed by gnulib.
16317         * doc/posix-functions/freopen.texi: Likewise.
16318         * doc/posix-functions/fseeko.texi: Likewise.
16319         * doc/posix-functions/fstatat.texi: Likewise.
16320         * doc/posix-functions/ftello.texi: Likewise.
16321         * doc/posix-functions/glob.texi: Likewise.
16322         * doc/posix-functions/lseek.texi: Likewise.
16323         * doc/posix-functions/lstat.texi: Likewise.
16324         * doc/posix-functions/mkstemp.texi: Likewise.
16325         * doc/posix-functions/open.texi: Likewise.
16326         * doc/posix-functions/openat.texi: Likewise.
16327         * doc/posix-functions/pread.texi: Likewise.
16328         * doc/posix-functions/pwrite.texi: Likewise.
16329         * doc/posix-functions/scandir.texi: Likewise.
16330         * doc/posix-functions/stat.texi: Likewise.
16331         * doc/posix-functions/tmpfile.texi: Likewise.
16332         * doc/glibc-functions/mkostemp.texi: Likewise.
16333         * doc/glibc-functions/mkostemps.texi: Likewise.
16334         * doc/glibc-functions/mkstemps.texi: Likewise.
16335
16336 2011-07-25  Bruno Haible  <bruno@clisp.org>
16337
16338         fcntl: Move AC_LIBOBJ invocation to module description.
16339         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16340         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16341
16342         fcntl: Remove call-in from fchdir.m4.
16343         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16345
16346         dup3: Remove potential call-in from fchdir.m4.
16347         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16349
16350         dup2: Move AC_LIBOBJ invocation to module description.
16351         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16352         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16353         Don't invoke AC_LIBOBJ.
16354         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16355
16356         dup2: Remove call-in from fchdir.m4.
16357         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16359
16360         fclose: Move AC_LIBOBJ invocation to module description.
16361         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16362         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16363         to 1.
16364         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16365
16366         fclose: Remove call-in from close.m4.
16367         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16368         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16369
16370         close: Move AC_LIBOBJ invocation to module description.
16371         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16372         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16373         1.
16374         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16375
16376         close: Remove call-in from fchdir.m4.
16377         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16379
16380         open: Move AC_LIBOBJ invocation to module description.
16381         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16382         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16383         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16384
16385         open: Remove call-in from fchdir.m4.
16386         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16388
16389         fchdir: Start to remove gl_REPLACE_* idiom.
16390         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16391         (gl_FUNC_FCHDIR): Invoke it.
16392
16393 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16394
16395         * lib/ftell.c (ftell): Comment out cast.
16396
16397         close: use gl_REPLACE_FCLOSE only if defined
16398         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16399         is defined.  The close module doesn't depend on the fclose module
16400         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16402         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16403
16404 2011-07-24  Jim Meyering  <meyering@redhat.com>
16405
16406         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16407         * tests/test-select.h (test_function): Declare as "static".
16408
16409 2011-07-24  Bruno Haible  <bruno@clisp.org>
16410
16411         doc: Mention the effects of AC_SYS_LARGEFILE.
16412         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16413         on this function.
16414         * doc/posix-functions/aio_error.texi: Likewise.
16415         * doc/posix-functions/aio_fsync.texi: Likewise.
16416         * doc/posix-functions/aio_read.texi: Likewise.
16417         * doc/posix-functions/aio_return.texi: Likewise.
16418         * doc/posix-functions/aio_suspend.texi: Likewise.
16419         * doc/posix-functions/aio_write.texi: Likewise.
16420         * doc/posix-functions/fgetpos.texi: Likewise.
16421         * doc/posix-functions/fopen.texi: Likewise.
16422         * doc/posix-functions/freopen.texi: Likewise.
16423         * doc/posix-functions/fsetpos.texi: Likewise.
16424         * doc/posix-functions/fstatvfs.texi: Likewise.
16425         * doc/posix-functions/ftruncate.texi: Likewise.
16426         * doc/posix-functions/ftw.texi: Likewise.
16427         * doc/posix-functions/getrlimit.texi: Likewise.
16428         * doc/posix-functions/glob.texi: Likewise.
16429         * doc/posix-functions/lio_listio.texi: Likewise.
16430         * doc/posix-functions/lockf.texi: Likewise.
16431         * doc/posix-functions/mkstemp.texi: Likewise.
16432         * doc/posix-functions/mmap.texi: Likewise.
16433         * doc/posix-functions/nftw.texi: Likewise.
16434         * doc/posix-functions/openat.texi: Likewise.
16435         * doc/posix-functions/opendir.texi: Likewise.
16436         * doc/posix-functions/posix_fadvise.texi: Likewise.
16437         * doc/posix-functions/posix_fallocate.texi: Likewise.
16438         * doc/posix-functions/pread.texi: Likewise.
16439         * doc/posix-functions/pwrite.texi: Likewise.
16440         * doc/posix-functions/readdir.texi: Likewise.
16441         * doc/posix-functions/readdir_r.texi: Likewise.
16442         * doc/posix-functions/rewinddir.texi: Likewise.
16443         * doc/posix-functions/scandir.texi: Likewise.
16444         * doc/posix-functions/seekdir.texi: Likewise.
16445         * doc/posix-functions/setrlimit.texi: Likewise.
16446         * doc/posix-functions/statvfs.texi: Likewise.
16447         * doc/posix-functions/telldir.texi: Likewise.
16448         * doc/posix-functions/tmpfile.texi: Likewise.
16449         * doc/posix-functions/truncate.texi: Likewise.
16450         * doc/glibc-functions/fallocate.texi: Likewise.
16451         * doc/glibc-functions/fstatfs.texi: Likewise.
16452         * doc/glibc-functions/fts_children.texi: Likewise.
16453         * doc/glibc-functions/fts_read.texi: Likewise.
16454         * doc/glibc-functions/getdirentries.texi: Likewise.
16455         * doc/glibc-functions/mkostemp.texi: Likewise.
16456         * doc/glibc-functions/mkostemps.texi: Likewise.
16457         * doc/glibc-functions/mkstemps.texi: Likewise.
16458         * doc/glibc-functions/preadv.texi: Likewise.
16459         * doc/glibc-functions/pwritev.texi: Likewise.
16460         * doc/glibc-functions/sendfile.texi: Likewise.
16461         * doc/glibc-functions/statfs.texi: Likewise.
16462
16463 2011-07-24  Bruno Haible  <bruno@clisp.org>
16464
16465         doc: Fix typo.
16466         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16467
16468 2011-07-24  Bruno Haible  <bruno@clisp.org>
16469
16470         doc: Mention fsusage.
16471         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16472
16473 2011-07-24  Bruno Haible  <bruno@clisp.org>
16474
16475         doc: Mention new glibc headers and functions.
16476         * doc/glibc-headers/gshadow.texi: New file.
16477         * doc/glibc-functions/endsgent.texi: New file.
16478         * doc/glibc-functions/fgetsgent.texi: New file.
16479         * doc/glibc-functions/fgetsgent_r.texi: New file.
16480         * doc/glibc-functions/getsgent.texi: New file.
16481         * doc/glibc-functions/getsgent_r.texi: New file.
16482         * doc/glibc-functions/getsgnam.texi: New file.
16483         * doc/glibc-functions/getsgnam_r.texi: New file.
16484         * doc/glibc-functions/putsgent.texi: New file.
16485         * doc/glibc-functions/setsgent.texi: New file.
16486         * doc/glibc-functions/sgetsgent.texi: New file.
16487         * doc/glibc-functions/sgetsgent_r.texi: New file.
16488         * doc/glibc-functions/malloc_info.texi: New file.
16489         * doc/glibc-functions/preadv.texi: New file.
16490         * doc/glibc-functions/pwritev.texi: New file.
16491         * doc/glibc-functions/register_printf_modifier.texi: New file.
16492         * doc/glibc-functions/register_printf_specifier.texi: New file.
16493         * doc/glibc-functions/register_printf_type.texi: New file.
16494         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16495         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16496         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16497         * doc/glibc-functions/pthread_getname_np.texi: New file.
16498         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16499         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16500         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16501         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16502         * doc/glibc-functions/pthread_setname_np.texi: New file.
16503         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16504         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16505         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16506         * doc/glibc-functions/qsort_r.texi: New file.
16507         * doc/glibc-functions/quick_exit.texi: New file.
16508         * doc/glibc-functions/syncfs.texi: New file.
16509         * doc/gnulib.texi: Include them.
16510         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16511         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16512         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16513         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16514         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16515         * doc/glibc-functions/execvpe.texi: Likewise.
16516
16517 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16518
16519         ftell: don't include <unistd.h>
16520         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16521         guaranteed to define off_t, and the ftell module depends on the
16522         stdio module.
16523
16524         ftell: do not assume wraparound signed arithmetic
16525         * lib/ftell.c: Include <limits.h>.
16526         (ftell): Don't assume wraparound signed arithmetic.
16527
16528 2011-07-24  Bruno Haible  <bruno@clisp.org>
16529
16530         close: No longer depend on module 'fclose'.
16531         * modules/close (Depends-on): Remove fclose.
16532         * NEWS: Mention the change.
16533         Suggested by Sam Steingold <sds@gnu.org>.
16534
16535 2011-07-24  Bruno Haible  <bruno@clisp.org>
16536
16537         fsusage: Enable large volume support on AIX >= 5.2.
16538         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16539         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16540         instead of STAT_STATVFS.
16541         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16542
16543         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16545         f_blocks field only on MacOS X.
16546
16547         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16548         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16549         * modules/fsusage (Depends-on): Add largefile.
16550
16551 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16552
16553         * README: Modernize discussion of signed integers.
16554         Assuming overflow wraparound is no longer safe.
16555         Mention ones' complement and signed magnitude.
16556
16557 2011-07-22  Bruno Haible  <bruno@clisp.org>
16558
16559         select tests, pselect tests: Refactor.
16560         * tests/test-select.h: New file, extracted from tests/test-select.c.
16561         (select_fn): New type.
16562         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16563         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16564         test_pipe): Add my_select argument.
16565         (test_function): Renamed from main. Add my_select argument.
16566         * tests/test-select.c: Move most code to tests/test-select.h. Include
16567         test-select.h.
16568         * modules/select-tests (Files): Add tests/test-select.h.
16569         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16570         (my_select, main): New functions.
16571         * modules/pselect-tests (Files): Add tests/test-select.h,
16572         tests/macros.h, tests/signature.h.
16573         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16574         (configure.ac): Check for <sys/wait.h>.
16575
16576 2011-07-22  Bruno Haible  <bruno@clisp.org>
16577
16578         sys_select tests: Check the signature of FD_*.
16579         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16580         signature tests from here...
16581         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16582         here.
16583         * modules/sys_select-tests (Files): Add tests/signature.h.
16584
16585 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16586
16587         largefile: new module, replacing large-inode
16588         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16589         * MODULES.html.sh: Add largefile, remove large-inode.
16590         * modules/largefile, m4/largefile.m4: New files.
16591         * modules/large-inode, m4/large-inode.m4: Remove.
16592
16593         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16595         implementations that use only 32 bits to count blocks.
16596         On typical hosts with 1024-byte blocks, this fails with file
16597         systems as small as 4 TiB.  Problem reported by Herb Wartens
16598         <http://debbugs.gnu.org/9140> and this should also fix a similar
16599         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16600
16601         large-inode: New module
16602         * MODULES.html.sh: Add it.
16603         * modules/large-inode, m4/large-inode.m4: New files.
16604
16605         extensions: Enable extensions on MacOS X 10.5 and later.
16606         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16607
16608 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16609
16610         file-has-acl: use acl_extended_file_nofollow if available
16611         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16612         (acl_extended_file): New macro.
16613         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16614         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16615
16616 2011-07-21  Bruno Haible  <bruno@clisp.org>
16617
16618         Declare system functions in a way that works with C++.
16619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16620         declare fdopendir as extern "C".
16621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16622         declare frexpl as extern "C".
16623         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16624         declare gai_strerror as extern "C".
16625         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16626         programs, declare gai_strerror as extern "C".
16627         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16628         declare getlogin_r as extern "C".
16629         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16630         as extern "C".
16631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16632         declare ldexpl as extern "C".
16633         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16634         as extern "C".
16635         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16636         program, declare getmntinfo as extern "C".
16637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16638         stpncpy as extern "C".
16639         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16640         program, declare __xpg_strerror_r as extern "C".
16641         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16642         strndup as extern "C".
16643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16644         declare memset and bzero as extern "C".
16645         Reported by Sam Steingold <sds@gnu.org>.
16646
16647 2011-07-12  Jim Meyering  <meyering@redhat.com>
16648
16649         maint.mk: prohibit inclusion of "verify.h" without use
16650         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16651
16652 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16653
16654         timer-time: A new module to check for timer_settime()
16655         * m4/timer_time.m4: Check for the posix function.
16656         * modules/timer-time: Add the new module.
16657         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16658         Mention it.
16659
16660 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16661             Bruno Haible  <bruno@clisp.org>
16662
16663         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16664         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16665         not defined, assume POSIX threads and look for pthread_sigmask in
16666         $LIBS, without changing $CPPFLAGS.
16667
16668 2011-07-19  Bruno Haible  <bruno@clisp.org>
16669
16670         strstr: Update cross-compilation guess.
16671         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16672         CPUs, guess no, in view of glibc
16673         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16674         Suggested by Eric Blake. Reported by Reuben Thomas.
16675
16676 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16677
16678         getopt-gnu: suppress core dumps from detection code
16679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16680         to suppress core dumps that may well occur on glibc systems.
16681         * modules/getopt-gnu: Depend on nocrash.
16682
16683 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16684
16685         pthread_sigmask: ensure usleep is declared
16686         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16687         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16688
16689 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16690
16691         doc: Document NonStop portability issues.
16692         * doc/posix-functions/sigaction.texi (sigaction):
16693         * doc/posix-headers/signal.texi (signal.h):
16694         Document NonStop.  See Joachim Schmitz in
16695         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16696
16697 2011-07-15  Bruno Haible  <bruno@clisp.org>
16698
16699         ffsl, ffsll: Avoid unportable behaviour.
16700         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16701
16702 2011-07-15  Bruno Haible  <bruno@clisp.org>
16703
16704         ffs: More tests.
16705         * tests/test-ffs.c (NBITS): New macro.
16706         (main): Add more tests.
16707         * tests/test-ffsl.c (NBITS): New macro.
16708         (main): Add more tests.
16709         * tests/test-ffsll.c (NBITS): New macro.
16710         (main): Add more tests.
16711
16712 2011-07-15  Eric Blake  <eblake@redhat.com>
16713
16714         ffsl, ffsll: new modules
16715         * modules/ffsl: New file.
16716         * modules/ffsll: Likewise.
16717         * m4/ffsl.m4: Likewise.
16718         * m4/ffsll.m4: Likewise.
16719         * lib/ffsl.c: Likewise.
16720         * lib/ffsl.h: Likewise.
16721         * lib/ffsll.c: Likewise.
16722         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16723         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16724         * modules/string (Makefile.am): Substitute witnesses.
16725         * lib/strings.in.h (ffsl, ffsll): Declare.
16726         * modules/ffsl-tests: New test file.
16727         * modules/ffsll-tests: Likewise.
16728         * tests/test-ffsl.c: Likewise.
16729         * tests/test-ffsll.c: Likewise.
16730         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16731         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16732         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16733
16734         ffs: fix m4 prerequisite
16735         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16736
16737         ffs: avoid undefined behavior
16738         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16739         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16740         Reported by Bruno Haible.
16741
16742 2011-07-12  Bruno Haible  <bruno@clisp.org>
16743
16744         pthread_sigmask: Rely on module 'threadlib'.
16745         * modules/pthread_sigmask (Depends-on): Add threadlib.
16746         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16747         is defined.
16748
16749 2011-07-12  Bruno Haible  <bruno@clisp.org>
16750
16751         regex: Depend on module 'strcase'.
16752         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16753
16754 2011-07-12  Jim Meyering  <meyering@redhat.com>
16755
16756         warn-on-use: fix typo in file name
16757         * modules/snippet/warn-on-use (Files): Correct file name:
16758         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16759
16760 2011-07-12  Bruno Haible  <bruno@clisp.org>
16761
16762         strings: Document module.
16763         * doc/posix-headers/strings.texi: Mention module 'strings'.
16764
16765 2011-07-12  Bruno Haible  <bruno@clisp.org>
16766
16767         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16768         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16769         (Files, Makefile.am): Update.
16770         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16771         * modules/stdlib (Depends-on): Update.
16772
16773 2011-07-12  Bruno Haible  <bruno@clisp.org>
16774
16775         * NEWS: Mention the changes.
16776
16777         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16778         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16779         (Files, Makefile.am): Update.
16780         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16781         * modules/arpa_inet (Depends-on): Update.
16782         * modules/ctype (Depends-on): Update.
16783         * modules/dirent (Depends-on): Update.
16784         * modules/fcntl-h (Depends-on): Update.
16785         * modules/glob (Depends-on): Update.
16786         * modules/iconv-h (Depends-on): Update.
16787         * modules/inttypes-incomplete (Depends-on): Update.
16788         * modules/langinfo (Depends-on): Update.
16789         * modules/locale (Depends-on): Update.
16790         * modules/math (Depends-on): Update.
16791         * modules/netdb (Depends-on): Update.
16792         * modules/poll-h (Depends-on): Update.
16793         * modules/pty (Depends-on): Update.
16794         * modules/search (Depends-on): Update.
16795         * modules/signal (Depends-on): Update.
16796         * modules/spawn (Depends-on): Update.
16797         * modules/stdio (Depends-on): Update.
16798         * modules/stdlib (Depends-on): Update.
16799         * modules/string (Depends-on): Update.
16800         * modules/strings (Depends-on): Update.
16801         * modules/sys_file (Depends-on): Update.
16802         * modules/sys_ioctl (Depends-on): Update.
16803         * modules/sys_select (Depends-on): Update.
16804         * modules/sys_socket (Depends-on): Update.
16805         * modules/sys_stat (Depends-on): Update.
16806         * modules/sys_time (Depends-on): Update.
16807         * modules/sys_times (Depends-on): Update.
16808         * modules/sys_utsname (Depends-on): Update.
16809         * modules/sys_wait (Depends-on): Update.
16810         * modules/termios (Depends-on): Update.
16811         * modules/time (Depends-on): Update.
16812         * modules/unistd (Depends-on): Update.
16813         * modules/wchar (Depends-on): Update.
16814         * modules/wctype-h (Depends-on): Update.
16815         * MODULES.html.sh (Support for building libraries and executables):
16816         Update.
16817
16818         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16819         * modules/snippet/unused-parameter: Renamed from
16820         modules/unused-parameter.
16821         (Files, Makefile.am): Update.
16822         * build-aux/snippet/unused-parameter.h: Renamed from
16823         build-aux/unused-parameter.h.
16824         * modules/selinux-h (Depends-on): Update.
16825         * modules/unistr/base (Depends-on): Update.
16826         * MODULES.html.sh (Core language properties): Update.
16827
16828         Rename module 'link-warning' to 'snippet/link-warning'.
16829         * modules/snippet/link-warning: Renamed from modules/link-warning.
16830         (Files, Makefile.am): Update.
16831         * build-aux/snippet/link-warning.h: Renamed from
16832         build-aux/link-warning.h.
16833         * MODULES.html.sh (Support for building libraries and executables):
16834         Update.
16835
16836         Rename module 'c++defs' to 'snippet/c++defs'.
16837         * modules/snippet/c++defs: Renamed from modules/c++defs.
16838         (Files, Makefile.am): Update.
16839         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16840         * modules/arpa_inet (Depends-on): Update.
16841         * modules/ctype (Depends-on): Update.
16842         * modules/dirent (Depends-on): Update.
16843         * modules/fcntl-h (Depends-on): Update.
16844         * modules/glob (Depends-on): Update.
16845         * modules/iconv-h (Depends-on): Update.
16846         * modules/langinfo (Depends-on): Update.
16847         * modules/locale (Depends-on): Update.
16848         * modules/math (Depends-on): Update.
16849         * modules/netdb (Depends-on): Update.
16850         * modules/poll-h (Depends-on): Update.
16851         * modules/pty (Depends-on): Update.
16852         * modules/search (Depends-on): Update.
16853         * modules/signal (Depends-on): Update.
16854         * modules/spawn (Depends-on): Update.
16855         * modules/stdio (Depends-on): Update.
16856         * modules/stdlib (Depends-on): Update.
16857         * modules/string (Depends-on): Update.
16858         * modules/strings (Depends-on): Update.
16859         * modules/sys_ioctl (Depends-on): Update.
16860         * modules/sys_select (Depends-on): Update.
16861         * modules/sys_socket (Depends-on): Update.
16862         * modules/sys_stat (Depends-on): Update.
16863         * modules/sys_time (Depends-on): Update.
16864         * modules/sys_wait (Depends-on): Update.
16865         * modules/termios (Depends-on): Update.
16866         * modules/time (Depends-on): Update.
16867         * modules/unistd (Depends-on): Update.
16868         * modules/wchar (Depends-on): Update.
16869         * modules/wctype-h (Depends-on): Update.
16870
16871         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16872         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16873         (Files, Makefile.am): Update.
16874         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16875         * modules/argv-iter (Depends-on): Update.
16876         * modules/arpa_inet (Depends-on): Update.
16877         * modules/dirent (Depends-on): Update.
16878         * modules/fcntl-h (Depends-on): Update.
16879         * modules/fnmatch (Depends-on): Update.
16880         * modules/getopt-posix (Depends-on): Update.
16881         * modules/glob (Depends-on): Update.
16882         * modules/iconv-h (Depends-on): Update.
16883         * modules/inttypes-incomplete (Depends-on): Update.
16884         * modules/locale (Depends-on): Update.
16885         * modules/math (Depends-on): Update.
16886         * modules/netdb (Depends-on): Update.
16887         * modules/search (Depends-on): Update.
16888         * modules/signal (Depends-on): Update.
16889         * modules/spawn (Depends-on): Update.
16890         * modules/stdio (Depends-on): Update.
16891         * modules/stdlib (Depends-on): Update.
16892         * modules/string (Depends-on): Update.
16893         * modules/strings (Depends-on): Update.
16894         * modules/sys_socket (Depends-on): Update.
16895         * modules/sys_stat (Depends-on): Update.
16896         * modules/sys_time (Depends-on): Update.
16897         * modules/sys_times (Depends-on): Update.
16898         * modules/sys_utsname (Depends-on): Update.
16899         * modules/time (Depends-on): Update.
16900         * modules/unistd (Depends-on): Update.
16901         * modules/wchar (Depends-on): Update.
16902         * MODULES.html.sh (Support for building libraries and executables):
16903         Update.
16904
16905 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16906
16907         Improvements on _Noreturn and related modules.
16908
16909         modules/_Exit-tests: test _Noreturn too
16910         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16911         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16912         (main): Use them.
16913
16914         stdnoreturn, stdnoreturn-tests: remove modules
16915         They're not needed here and a bit premature for use elsewhere.  See
16916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16917         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16918         * tests/test-stdnoreturn.c: Remove files.
16919         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16920         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16921         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16922         and using noreturn.
16923         * modules/openat, modules/sigpipe-die, modules/xalloc:
16924         * modules/xmemdup0, modules/xstrtol:
16925         Remove dependency on stdnoreturn.
16926
16927         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16928         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16929         Reparenthesize to avoid GCC warning.
16930         Support Microsoft's syntax.
16931         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16932
16933         _Noreturn-tests: remove module
16934         * modules/_Noreturn-tests: Remove.
16935         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16936         * tests/test-_Noreturn.c: Remove.
16937         * tests/test-stdnoreturn.c: Merge from the old
16938         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16939
16940 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16941
16942         _Noreturn, stdnoreturn, and related modules.
16943
16944         * top/maint.mk: Adjust to new noreturn support.
16945         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16946         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16947
16948         xalloc: use stdnoreturn.h
16949         * lib/xalloc.h: Include <stdnoreturn.h>.
16950         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16951         * modules/xalloc (Depends-on): Add stdnoreturn.
16952
16953         xstrtol: use stdnoreturn.h
16954         * lib/xstrtol.h: Include <stdnoreturn.h>.
16955         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16956         * modules/xstrtol (Depends-on): Add stdnoreturn.
16957
16958         xmemdup0: use stdnoreturn.h
16959         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16960         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16961         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16962
16963         sigpipe-die: use stdnoreturn.h
16964         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16965         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16966         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16967
16968         openat: use stdnoreturn.h
16969         * lib/openat.h: Include <stdnoreturn.h>.
16970         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16971         * modules/openat (Depends-on): Add stdnoreturn.
16972
16973         * lib/openat-die.c (openat_save_fail): Modernize comment.
16974
16975         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16976
16977         * lib/glthread/thread.h: Modernize comment.
16978
16979         obstack: use _Noreturn
16980         * lib/obstack.c (__attribute__): Remove macro.
16981         (print_and_abort): Use _Noreturn.
16982
16983         c-stack: use _Noreturn
16984         * lib/c-stack.c (die, overflow_handler, segv_handler):
16985         Use _Noreturn rather than __attribute__((noreturn)).
16986
16987         argmatch-tests, exclude_tests: use _Noreturn
16988         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16989         Remove.
16990         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16991
16992         stdlib: use _Noreturn
16993         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16994         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16995         * modules/stdlib (Depends-on): Add _Noreturn.
16996         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16997
16998         stdnoreturn-tests: new module
16999         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17000
17001         stdnoreturn: new module
17002         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17003         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17004
17005         _Noreturn-tests: new module
17006         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17007
17008         _Noreturn: new module
17009         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17010         New section, mentioning it.
17011         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17012
17013         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17014
17015 2011-07-11  Eric Blake  <eblake@redhat.com>
17016
17017         ffs: new module
17018         * modules/ffs: New file.
17019         * m4/ffs.m4: Likewise.
17020         * lib/ffs.c: Likewise.
17021         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17022         * modules/strings (Makefile.am): Substitute witness.
17023         (Depends-on): Add c++defs.
17024         * lib/strings.in.h (ffs): Declare.
17025         * modules/ffs-tests: New test file.
17026         * tests/test-ffs.c: Test new module.
17027         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17028         * doc/posix-functions/ffs.texi (ffs): Likewise.
17029
17030         regex: avoid compiler warning
17031         * lib/regex.c (includes): Include <strings.h>, for use of
17032         strcasecmp in regcomp.c.
17033         Reported by Joachim Schmitz.
17034
17035 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17036
17037         stdint: respect system's intmax_t if INTMAX_MAX
17038         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17039         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17040         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17041         long but int64_t is long long, and where we will clash with the
17042         system intmax_t if we override it.  See
17043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17044         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17045         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17046         similarly for UINTMAX_C.
17047
17048 2011-07-08  Bruno Haible  <bruno@clisp.org>
17049
17050         pthread_sigmask tests: Avoid a compiler warning.
17051         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17052         non-zero.
17053
17054         sigprocmask tests: A better way to avoid a compiler warning.
17055         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17056         (main): Complain if system() returns non-zero.
17057         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17058
17059 2011-07-08  Bruno Haible  <bruno@clisp.org>
17060
17061         pthread_sigmask: Work around IRIX bug.
17062         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17063         bug.
17064         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17065         there may be unblocked pending signals.
17066         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17067
17068 2011-07-08  Bruno Haible  <bruno@clisp.org>
17069
17070         pthread_sigmask: Work around Cygwin bug.
17071         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17072         bug.
17073         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17074         the system's pthread_sigmask function.
17075         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17076
17077 2011-07-08  Bruno Haible  <bruno@clisp.org>
17078
17079         pthread_sigmask: Work around bug in single-threaded implementation.
17080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17081         FreeBSD, HP-UX, Solaris bug.
17082         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17083         * lib/pthread_sigmask.c: Include <stddef.h>.
17084         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17085         the system's pthread_sigmask function.
17086         * modules/pthread_sigmask (configure.ac): Invoke
17087         gl_PREREQ_PTHREAD_SIGMASK.
17088         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17089         HP-UX, Solaris.
17090
17091 2011-07-08  Eric Blake  <eblake@redhat.com>
17092
17093         test-sigprocmask: avoid compiler warning
17094         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17095         * tests/test-sigprocmask.c (main): Use it to silence warning.
17096         Reported by Jim Meyering.
17097
17098         test-snprintf: avoid compiler warning
17099         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17100         * tests/test-vsnprintf.c (main): Likewise.
17101         Reported by Jim Meyering.
17102
17103 2011-07-08  Bruno Haible  <bruno@clisp.org>
17104
17105         Tests for module 'pthread_sigmask'.
17106         * modules/pthread_sigmask-tests: New file.
17107         * tests/test-pthread_sigmask1.c: New file, based on
17108         tests/test-sigprocmask.c.
17109         * tests/test-pthread_sigmask2.c: New file.
17110
17111 2011-07-08  Jim Meyering  <meyering@redhat.com>
17112
17113         test-getopt.h: avoid warning about an unused variable
17114         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17115
17116 2011-07-07  Jim Meyering  <meyering@redhat.com>
17117
17118         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17119         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17120         now that it no longer contains leading TABs.
17121         Remove unused "url=FIXME" statement.
17122
17123 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17124
17125         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17126         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17127         When gl_THREADLIB is not in use, assume that the POSIX sematics
17128         are desired.  This is better for Emacs, which uses POSIX semantics
17129         on GNUish and/or POSIXish platforms, and does not use threads at
17130         all otherwise.
17131
17132         pthread_sigmask: fix typo when testing for libraries
17133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17134         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17135
17136 2011-07-08  Eric Blake  <eblake@redhat.com>
17137
17138         fts: introduce FTS_NOATIME
17139         * lib/fts_.h (FTS_NOATIME): New bit flag.
17140         (FTS_OPTIONMASK): Adjust.
17141         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17142         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17143
17144 2011-07-08  Bruno Haible  <bruno@clisp.org>
17145
17146         Tests for module 'thread'.
17147         * modules/thread-tests: New file.
17148         * tests/test-thread_self.c: New file.
17149         * tests/test-thread_create.cc: New file.
17150
17151 2011-07-08  Bruno Haible  <bruno@clisp.org>
17152
17153         thread: Avoid gcc warnings when using gl_thread_self().
17154         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17155         'void *'.
17156         (gl_thread_self_pointer): Update.
17157
17158 2011-07-07  Bruno Haible  <bruno@clisp.org>
17159
17160         signal-c++-tests: Check declaration of pthread_sigmask.
17161         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17162         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17163         $(LIB_PTHREAD_SIGMASK).
17164
17165 2011-07-07  Bruno Haible  <bruno@clisp.org>
17166
17167         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17168         * lib/signal.in.h (pthread_sigmask): Override if
17169         REPLACE_PTHREAD_SIGMASK is 1.
17170         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17171         REPLACE_PTHREAD_SIGMASK.
17172         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17173         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17174         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17175         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17176         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17177
17178 2011-07-07  Bruno Haible  <bruno@clisp.org>
17179
17180         pthread_sigmask: Ensure declaration in <signal.h>.
17181         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17182         include <pthread.h>.
17183         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17184         problem.
17185
17186 2011-07-07  Bruno Haible  <bruno@clisp.org>
17187
17188         pthread_sigmask: Document the module.
17189         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17190
17191 2011-07-07  Bruno Haible  <bruno@clisp.org>
17192
17193         pthread_sigmask: Follow gnulib conventions.
17194         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17195         gl_PTHREAD_SIGMASK.
17196         * modules/pthread_sigmask (configure.ac): Update.
17197
17198 2011-07-07  Bruno Haible  <bruno@clisp.org>
17199
17200         pthread_sigmask: Make declaration C++ safe.
17201         * lib/signal.in.h: In two special conditions, just do an #include_next.
17202         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17203         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17204         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17205         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17206         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17207         not REPLACE_PTHREAD_MASK.
17208         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17209         not REPLACE_PTHREAD_MASK.
17210         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17211
17212 2011-07-07  Bruno Haible  <bruno@clisp.org>
17213
17214         pthread_sigmask: Fix return value.
17215         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17216         * lib/pthread_sigmask.c: New file.
17217         * modules/pthread_sigmask (Files): Add it.
17218         (configure.ac): Invoke AC_LIBOBJ.
17219
17220 2011-07-07  Eric Blake  <eblake@redhat.com>
17221
17222         getopt: more portable argv creation
17223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17224         const, use char arrays rather than strings.
17225         Suggested by Paul Eggert.
17226
17227 2011-07-07  Bruno Haible  <bruno@clisp.org>
17228
17229         Tests for module 'sigprocmask'.
17230         * modules/sigprocmask-tests: New file.
17231         * tests/test-sigprocmask.c: New file.
17232
17233 2011-07-07  Bruno Haible  <bruno@clisp.org>
17234
17235         float tests: Tweak.
17236         * tests/test-float.c (main): Tweak skip message.
17237
17238 2011-07-07  Eric Blake  <eblake@redhat.com>
17239
17240         getopt: avoid compiler warning during configure
17241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17242         assigning string literals to non-const pointer.
17243
17244         getopt-gnu: avoid crash in glibc getopt
17245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17246         * tests/test-getopt.h (test_getopt): Enhance test.
17247         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17248         * doc/posix-functions/getopt.texi (getopt): Document it.
17249         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17250         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17251         Likewise.
17252
17253 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17254
17255         getopt: handle W; without long options in getopt [BZ #12922]
17256         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17257         but no long options are defined, just return 'W'.
17258
17259 2011-07-07  Bruno Haible  <bruno@clisp.org>
17260
17261         Avoid literal tabs.
17262         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17263         variable containing a tab instead of a literal tab.
17264         Reported by Jim Meyering.
17265
17266 2011-07-07  Bruno Haible  <bruno@clisp.org>
17267
17268         Comments.
17269         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17270
17271 2011-07-06  Bruno Haible  <bruno@clisp.org>
17272
17273         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17274         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17275         <winsock2.h>.
17276         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17277         lib/sys_socket.in.h.
17278         (close, gethostname): Hide declarations from <winsock2.h>.
17279         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17280         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17281         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17282         (select): Don't override if gnulib's <sys/select.h> was already
17283         included.
17284         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17285         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17286         setsockopt, shutdown, select): Tweak indentation.
17287
17288 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17289
17290         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17291         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17292         in an application that does not use the sys_select module.
17293
17294 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17295
17296         poll: do not return 0 on timeout=-1
17297         * lib/poll.c: Loop with yield if no events occurred.
17298
17299 2011-07-06  Eric Blake  <eblake@redhat.com>
17300
17301         pthread_sigmask: always replace when not using pthread
17302         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17303         replacement when using some threading other than pthread.  Fix
17304         logic bug.
17305
17306 2011-07-06  Bruno Haible  <bruno@clisp.org>
17307
17308         Comments.
17309         * m4/printf.m4: Update comments about mingw.
17310
17311 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17312
17313         sys_select: define sigset_t more portably
17314         * lib/sys_select.in.h: Always include <sys/types.h>, since
17315         we now need sigset_t and mingw defines it there.
17316         Include <signal.h> before split inclusion guard, to avoid
17317         mishaps on Solaris, whose <signal.h> eventually includes us.
17318         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17319         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17320         which come from ...
17321         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17322         gl_CHECK_TYPE_SIGSET_T.
17323         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17324         does the real work.
17325         * modules/sys_select (Depends-on): Add 'signal'.
17326
17327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17328         Suggested by Bruno Haible.
17329
17330         pselect: Use pthread_sigmask, not sigprocmask.
17331         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17332         multithreaded apps better than sigprocmask does.
17333         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17334         sigprocmask directly.
17335
17336 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17337
17338         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17339         Don't #undef,  since we don't need any underlying pselect.
17340         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17341         (Depends-on): Add select.
17342         (Link): Add $(LIBSOCKET).
17343         These changes suggested by Bruno Haible.
17344
17345         pselect: document better
17346         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17347         * doc/posix-functions/pselect.texi (pselect): Document new module.
17348
17349         pthread_sigmask: new module
17350         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17351         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17352         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17353         This is done only as a macro; I don't know how well that'll
17354         work for C++.  Move <sys/types.h> include before the include_next,
17355         to avoid mishap on Solaris.
17356         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17357         * modules/signal (Makefile.am): Substitute the check's results.
17358         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17359
17360         test-pselect: new module
17361         * modules/pselect-tests, tests/test-pselect.c: New files.
17362         * tests/test-select.c, tests/test-sys_select-c++.cc:
17363         If TEST_PSELECT is defined, test pselect instead of testing select.
17364
17365         * tests/test-sys_select.c (sigset_t): Test for it, too.
17366         Suggested by Bruno Haible.
17367
17368 2011-07-05  Eric Blake  <eblake@redhat.com>
17369
17370         snprintf: guarantee %1$d, for libintl
17371         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17372         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17373         * doc/posix-functions/snprintf.texi (snprintf): Update.
17374         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17375         * tests/test-snprintf.c (main): Enhance test.
17376         * tests/test-vsnprintf.c (main): Likewise.
17377
17378 2011-07-05  Jim Meyering  <meyering@redhat.com>
17379
17380         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17381         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17382         per Bruno's request, to accommodate this idiom (no space after "#")
17383         even when the function is inside an #if block:
17384         char *
17385         gets (char *s)
17386         #undef gets
17387         {
17388           ...
17389         }
17390
17391 2011-07-04  Jim Meyering  <meyering@redhat.com>
17392
17393         maint: indent with spaces, not TABs, and add a rule to check this
17394         * tests/test-userspec.c: Indent with spaces, not TABs.
17395         * tests/test-argp.c: Likewise.
17396         * tests/test-c-stack2.sh: Likewise.
17397         * tests/test-parse-duration.sh: Likewise
17398         * m4/strtod.m4: Likewise.
17399         * m4/alloca.m4: Likewise.
17400         * m4/pselect.m4: Likewise.
17401         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17402
17403 2011-07-03  Jim Meyering  <meyering@redhat.com>
17404
17405         maint.mk: correct omissions in prohibit_argmatch_without_use check
17406         This rule would mistakenly report that argmatch.h is included without
17407         use even when both the argmatch and invalid_arg macro were used.
17408         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17409         of argmatch and invalid_arg.
17410
17411 2011-07-03  Bruno Haible  <bruno@clisp.org>
17412
17413         Comments about EINTR.
17414         * lib/safe-read.h: Explain the purpose of this module.
17415         * lib/safe-write.h: Likewise.
17416         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17417         module.
17418         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17419         module.
17420         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17421
17422 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17423
17424         xnanosleep: Rewrite to use new dtotimespec module.
17425         It has the conversion code that used to be in xnanosleep.
17426         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17427         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17428         (TIME_T_MAX): Remove.
17429         (xnanosleep): Rewrite in terms of dtotimespec.
17430         * modules/xnanosleep (Depends-on): Add dtotimespec.
17431         Remove intprops, stdbool.
17432
17433         timespec-add, timespec-sub: new modules
17434         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17435         * lib/timespec-add.c, lib/timespec-sub.c:
17436         * modules/timespec-add, modules/timespec-sub: New files.
17437
17438         dtotimespec: new module
17439         * lib/timespec.h (dtotimespec): New decl.
17440         * lib/dtotimespec.c, modules/dtotimespec: New files.
17441
17442         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17443
17444         pselect: new module
17445         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17446         (pselect): New decls.
17447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17448         since the standard pselect decl uses 'restrict'.
17449         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17450         HAVE_PSELECT, REPLACE_PSELECT.
17451         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17452         HAVE_PSELECT, REPLACE_PSELECT.
17453         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17454
17455         sys_select: don't depend on sys_socket
17456         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17458         This fix works on GNU and GNU-like platforms, but has not been tested
17459         on native Windows.
17460         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17462         gl_HEADER_SYS_SOCKET.
17463         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17464         gl_PREREQ_SYS_H_WINSOCK2.
17465
17466 2011-06-29  Eric Blake  <eblake@redhat.com>
17467
17468         pipe2: fix C89 compile problem
17469         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17470         Reported by Bruno Haible.
17471
17472         pipe, pipe2: don't corrupt fd on error
17473         * lib/pipe.c (pipe): Leave fd unchanged on error.
17474         * lib/pipe2.c (pipe2): Likewise.
17475         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17476         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17477
17478 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17479
17480         mmap-anon: do not use regular expressions inadvertently
17481         * m4/mmap-anon.m4: Remove trailing period from strings sought
17482         in the output.
17483
17484 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17485
17486         nanosleep: fix integer overflow problem
17487         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17488         arithmetic wraps around on overflow.
17489
17490         nanosleep: simplify carrying
17491         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17492         first call to the underyling nanosleep, not for the last one.
17493         This doesn't fix any bugs, but it simplifies the computation of
17494         the remaining delay.  Found while auditing integer overflow issues.
17495
17496         dup2: remove test for existence of fcntl
17497         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17498         "#if HAVE_FCNTL", in the configure-time test program.
17499         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17500         and therefore speeds up "configure" a bit.  Found while
17501         adding the dup2 module to Emacs.
17502
17503 2011-06-24  Eric Blake  <eblake@redhat.com>
17504
17505         maint.mk: enhance useless header checks
17506         * top/maint.mk (_sc_header_without_use): Check both include
17507         styles.
17508         (sc_prohibit_assert_without_use)
17509         (sc_prohibit_close_stream_without_use)
17510         (sc_prohibit_getopt_without_use)
17511         (sc_prohibit_quotearg_without_use)
17512         (sc_prohibit_quote_without_use)
17513         (sc_prohibit_long_options_without_use)
17514         (sc_prohibit_inttostr_without_use)
17515         (sc_prohibit_ignore_value_without_use)
17516         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17517         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17518         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17519         (sc_prohibit_hash_pjw_without_use)
17520         (sc_prohibit_safe_read_without_use)
17521         (sc_prohibit_argmatch_without_use)
17522         (sc_prohibit_canonicalize_without_use)
17523         (sc_prohibit_root_dev_ino_without_use)
17524         (sc_prohibit_openat_without_use)
17525         (sc_prohibit_c_ctype_without_use)
17526         (sc_prohibit_signal_without_use)
17527         (sc_prohibit_stdio--_without_use)
17528         (sc_prohibit_stdio-safer_without_use)
17529         (sc_prohibit_strings_without_use)
17530         (sc_prohibit_intprops_without_use)
17531         (sc_prohibit_stddef_without_use)
17532         (sc_prohibit_xfreopen_without_use): Update clients.
17533
17534 2011-06-24  Jim Meyering  <meyering@redhat.com>
17535
17536         syntax-check: keep one maint.mk rule in sync with its header
17537         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17538         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17539         I prefer to avoid temporary files here, so use <(...), but that
17540         is not supported by /bin/sh, so...
17541         (SHELL): Define to /bin/bash.
17542
17543 2011-06-24  Eric Blake  <eblake@redhat.com>
17544
17545         maint.mk: update sc_prohibit_intprops_without_use
17546         * top/maint.mk (_intprops_names): Match recent changes.
17547
17548 2011-06-24  Bruno Haible  <bruno@clisp.org>
17549
17550         strerror-override: No-op tweak.
17551         * lib/strerror-override.h (strerror_override): Reorder conditions,
17552         for consistency with lib/strerror-override.c.
17553
17554 2011-06-23  Eric Blake  <eblake@redhat.com>
17555
17556         maint.mk: test further PATH_MAX issues
17557         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17558         (sc_prohibit_path_max_allocation): ...and also test alloca.
17559         Suggested by Jim Meyering.
17560
17561 2011-06-22  Eric Blake  <eblake@redhat.com>
17562
17563         maint.mk: add syntax-check to avoid char[PATH_MAX]
17564         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17565
17566         stat: be robust to PATH_MAX definition
17567         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17568         * modules/stat (Depends-on): Add verify.
17569
17570         link: work around IRIX bug
17571         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17572         * lib/link.c (rpl_link): Work around it.
17573         * tests/test-link.h (test_link): Enhance test.
17574         * doc/posix-functions/link.texi (link): Document the bug.
17575
17576         getopt: silence clang warning
17577         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17578         dereference.
17579         Reported by Gustavo Martin Domato.
17580
17581 2011-06-22  Jim Meyering  <meyering@redhat.com>
17582
17583         bootstrap: do not insert a blank line into each .gitignore file
17584         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17585
17586 2011-06-21  Eric Blake  <eblake@redhat.com>
17587
17588         perror: test for output mismatch
17589         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17590         perror on IRIX.
17591
17592         strerror_r: fix OpenBSD behavior on out-of-range
17593         * lib/strerror_r.c (strerror_r): Always use maximal string.
17594         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17595
17596         strerror_r: fix OpenBSD behavior on 0
17597         * lib/strerror-override.c (strerror_override): Also override 0
17598         when needed.
17599         * lib/strerror-override.h (strerror_override): Likewise.
17600         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17601         earlier.
17602         * lib/strerror_r.c (strerror_r): Likewise.
17603         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17604         behavior...
17605         (gl_FUNC_STRERROR_0): ...into new macro.
17606         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17607         is overridden.
17608         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17609         * modules/strerror-override (Files): Add strerror.m4.
17610         (configure.ac): Also provide override for 0 when needed.
17611         * doc/posix-functions/strerror.texi (strerror): Document this.
17612         * doc/posix-functions/perror.texi (perror): Likewise.
17613
17614         perror: adjust array size
17615         * modules/perror (Depends-on): Add strerror-override.
17616         * lib/perror.c (perror): Use it to avoid magic number.
17617
17618         strerror-override: reduce size
17619         * lib/strerror-override.c (strerror_override): Use fewer lines.
17620
17621 2011-06-20  Bruno Haible  <bruno@clisp.org>
17622
17623         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17624         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17625
17626 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17627
17628         alloca: port to compilers that can optimize like GCC 4.6.0
17629         * lib/alloca.c (find_stack_direction): New signature, taken from
17630         Autoconf git.  This works with GCC 4.6.0.  This code should never
17631         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17632         be used with other compilers that optimize as well as GCC 4.6.0 does.
17633         (alloca): Adjust to new signature.
17634         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17635         New macro, which patches Autoconf in a similar way.
17636
17637         c-stack: stop worrying about stack direction
17638         * lib/c-stack.c (find_stack_direction): Remove.
17639         (segv_handler): Don't worry about stack direction growth, as it's
17640         too much of a pain to configure this correctly, given how compilers
17641         are optimizing-away our stack-growth detection code.  Instead, assume
17642         that any access to just before or just after the stack is OK.
17643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17644         Don't require AC_FUNC_ALLOCA; no longer needed.
17645
17646 2011-06-20  Eric Blake  <eblake@redhat.com>
17647
17648         test-stat: don't allocate PATH_MAX bytes
17649         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17650         PATH_MAX-sized buffer.
17651         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17652         * modules/stat-tests (Depends-on): Likewise.
17653         * tests/test-fstatat.c (includes): Drop pathmax.h.
17654         * tests/test-stat.c (includes): Likewise.
17655         Reported by Bruno Haible.
17656
17657 2011-06-20  Bruno Haible  <bruno@clisp.org>
17658
17659         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17660         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17661         * lib/float.c: New file.
17662         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17663         REPLACE_FLOAT_LDBL.
17664         * modules/float (Files): Add lib/float.c.
17665         (configure.ac): Invoke AC_LIBOBJ.
17666         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17667
17668 2011-06-20  Bruno Haible  <bruno@clisp.org>
17669
17670         Tests for module 'float'.
17671         * modules/float-tests: New file.
17672         * tests/test-float.c: New file.
17673
17674 2011-06-19  Bruno Haible  <bruno@clisp.org>
17675
17676         isinf: Coding style.
17677         * lib/isinf.c: Use GNU coding style.
17678
17679 2011-06-19  Bruno Haible  <bruno@clisp.org>
17680
17681         linkat test: Avoid test failure on AIX 7.1.
17682         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17683         * tests/test-link.h (test_link): Likewise.
17684
17685 2011-06-19  Bruno Haible  <bruno@clisp.org>
17686
17687         pread test: Avoid test failure on OpenBSD 4.9.
17688         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17689
17690 2011-06-19  Bruno Haible  <bruno@clisp.org>
17691
17692         sprintf-posix: Fix test failure on AIX 7.1.
17693         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17694         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17695         on AIX.
17696         * doc/posix-functions/fprintf.texi: Likewise.
17697         * doc/posix-functions/printf.texi: Likewise.
17698         * doc/posix-functions/snprintf.texi: Likewise.
17699         * doc/posix-functions/sprintf.texi: Likewise.
17700         * doc/posix-functions/vdprintf.texi: Likewise.
17701         * doc/posix-functions/vfprintf.texi: Likewise.
17702         * doc/posix-functions/vprintf.texi: Likewise.
17703         * doc/posix-functions/vsnprintf.texi: Likewise.
17704         * doc/posix-functions/vsprintf.texi: Likewise.
17705
17706 2011-06-19  Bruno Haible  <bruno@clisp.org>
17707
17708         roundl-ieee: Fix test failure on AIX 7.1.
17709         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17710         * doc/posix-functions/roundl.texi: Mention problem with negative
17711         arguments.
17712
17713 2011-06-19  Bruno Haible  <bruno@clisp.org>
17714
17715         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17716         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17717         * doc/posix-functions/round.texi: Mention problem with negative
17718         arguments.
17719         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17720
17721 2011-06-19  Bruno Haible  <bruno@clisp.org>
17722
17723         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17725         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17726         * doc/posix-functions/roundf.texi: Mention problem with negative
17727         arguments.
17728         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17729
17730 2011-06-19  Bruno Haible  <bruno@clisp.org>
17731
17732         ceilf-ieee: Work around bug on MacOS X 10.5.
17733         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17734
17735         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17736         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17737         IEEE compliant, avoid compiler optimizations.
17738         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17739         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17740         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17741         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17742         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17743         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17746         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17747         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17748
17749 2011-06-19  Bruno Haible  <bruno@clisp.org>
17750
17751         ceilf-ieee: Work around bug on AIX 7.1.
17752         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17753         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17754
17755 2011-06-19  Bruno Haible  <bruno@clisp.org>
17756
17757         ceil-ieee: Work around bug on AIX 7.1.
17758         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17759         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17760
17761 2011-06-18  Bruno Haible  <bruno@clisp.org>
17762
17763         fsync test: Avoid test failure on MacOS X and AIX.
17764         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17765         EINVAL.
17766
17767 2011-06-18  Bruno Haible  <bruno@clisp.org>
17768
17769         openat, fdopendir tests: Fix link errors.
17770         * modules/openat-tests (Depends-on): Add progname.
17771         * modules/fdopendir-tests (Depends-on): Likewise.
17772         * tests/test-fchownat.c: Include progname.h.
17773         (main): Call set_program_name.
17774         * tests/test-fstatat.c: Include progname.h.
17775         (main): Call set_program_name.
17776         * tests/test-mkdirat.c: Include progname.h.
17777         (main): Call set_program_name.
17778         * tests/test-openat.c: Include progname.h.
17779         (main): Call set_program_name.
17780         * tests/test-unlinkat.c: Include progname.h.
17781         (main): Call set_program_name.
17782         * tests/test-fdopendir.c: Include progname.h.
17783         (main): Call set_program_name.
17784
17785 2011-06-18  Bruno Haible  <bruno@clisp.org>
17786
17787         Doc update.
17788         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17789         HP-UX.
17790         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17791
17792 2011-06-18  Bruno Haible  <bruno@clisp.org>
17793
17794         getcwd tests: Avoid compilation error on HP-UX 11.31.
17795         * modules/getcwd-tests (Depends-on): Add pathmax.
17796         * tests/test-getcwd.c: Include pathmax.h.
17797
17798 2011-06-18  Bruno Haible  <bruno@clisp.org>
17799
17800         isfinite, isinf: Fix link error on AIX 6 and 7.
17801         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17802         needed, also test the macro with a 'float' argument.
17803         * m4/isinf.m4 (gl_ISINF): Likewise.
17804
17805 2011-06-18  Bruno Haible  <bruno@clisp.org>
17806
17807         getloadavg: Don't clobber LIBS. Regression from previous commit.
17808         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17809         AC_CHECK_LIB from here...
17810         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17811         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17812         gl_func_getloadavg_done.
17813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17814
17815 2011-06-18  Bruno Haible  <bruno@clisp.org>
17816
17817         clean-temp: Improve documentation.
17818         * lib/clean-temp.h: Explain better how to use this module.
17819         Reported by John Darrington <john@darrington.wattle.id.au>.
17820
17821 2011-06-17  Bruno Haible  <bruno@clisp.org>
17822
17823         pread, pwrite: Avoid cc warning on AIX.
17824         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17825         (pwrite): Likewise.
17826
17827 2011-06-17  Bruno Haible  <bruno@clisp.org>
17828
17829         spawn-pipe tests: Fix link error.
17830         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17832
17833 2011-06-17  Bruno Haible  <bruno@clisp.org>
17834
17835         Tests: Remove unnecessary dependency.
17836         * modules/canonicalize-tests (Depends-on): Remove progname.
17837         * modules/chown-tests (Depends-on): Likewise.
17838         * modules/dirname-tests (Depends-on): Likewise.
17839         * modules/fdopendir-tests (Depends-on): Likewise.
17840         * modules/fdutimensat-tests (Depends-on): Likewise.
17841         * modules/hash-tests (Depends-on): Likewise.
17842         * modules/lchown-tests (Depends-on): Likewise.
17843         * modules/linkat-tests (Depends-on): Likewise.
17844         * modules/renameat-tests (Depends-on): Likewise.
17845         * modules/spawn-pipe-tests (Depends-on): Likewise.
17846         * modules/utimensat-tests (Depends-on): Likewise.
17847
17848 2011-06-17  Bruno Haible  <bruno@clisp.org>
17849
17850         spawn-pipe tests: Fix link error.
17851         * tests/test-spawn-pipe-child.c: Undefine fflush.
17852
17853 2011-06-17  Bruno Haible  <bruno@clisp.org>
17854
17855         Fix tests link errors.
17856         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17857         * modules/chown-tests (Makefile.am): Don't link test-chown with
17858         LIBINTL.
17859         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17860         LIBINTL.
17861         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17862         LIBINTL.
17863         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17864         LIBINTL.
17865
17866 2011-06-16  Bruno Haible  <bruno@clisp.org>
17867
17868         crypto/gc-sha1: Fix recent regression.
17869         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17870         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17871
17872         crypto/gc-md5: Fix recent regression.
17873         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17874
17875         crypto/gc-md4: Fix recent regression.
17876         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17877         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17878
17879         crypto/gc-arctwo: Fix recent regression.
17880         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17881         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17882
17883         crypto/gc-rijndael: Fix recent regression.
17884         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17885         (configure.ac): Invoke AC_LIBOBJ here.
17886         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17888
17889         crypto/gc-hmac-sha1: Fix recent regression.
17890         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17891         (configure.ac): Invoke AC_LIBOBJ here.
17892         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17894
17895         crypto/gc-hmac-md5: Fix recent regression.
17896         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17897         (configure.ac): Invoke AC_LIBOBJ here.
17898         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17900
17901         crypto/gc-des: Fix recent regression.
17902         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17903         (configure.ac): Invoke AC_LIBOBJ here.
17904         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17906
17907         crypto/gc-arcfour: Fix recent regression.
17908         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17909         (configure.ac): Invoke AC_LIBOBJ here.
17910         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17912
17913 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17914
17915         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17916         After the 2011-05-21 change, this macro requires
17917         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17918         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17919
17920 2011-06-16  Bruno Haible  <bruno@clisp.org>
17921
17922         fprintftime: Move AC_LIBOBJ invocations to module description.
17923         * m4/fprintftime.m4: Remove file.
17924         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17925         (configure.ac): Remove gl_FPRINTFTIME call.
17926         (Makefile.am): Augment lib_SOURCES.
17927         Reported by Jim Meyering.
17928
17929 2011-06-16  Bruno Haible  <bruno@clisp.org>
17930
17931         tmpfile-safer: Finish 2011-05-23 commit.
17932         * m4/stdio-safer.m4: Really remove file.
17933         Reported by Jim Meyering.
17934
17935 2011-06-16  Bruno Haible  <bruno@clisp.org>
17936
17937         syntax-check: Fix typo.
17938         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17939         printf-posix.m4.
17940         Reported by Jim Meyering.
17941
17942 2011-06-13  Jim Meyering  <meyering@redhat.com>
17943
17944         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17945         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17946
17947 2011-05-23  Bruno Haible  <bruno@clisp.org>
17948
17949         yesno: Move AC_LIBOBJ invocations to module description.
17950         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17951         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17952
17953 2011-05-23  Bruno Haible  <bruno@clisp.org>
17954
17955         xstrtol: Move AC_LIBOBJ invocations to module description.
17956         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17957         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17958
17959 2011-05-23  Bruno Haible  <bruno@clisp.org>
17960
17961         xstrtold: Move AC_LIBOBJ invocations to module description.
17962         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17963         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17964
17965 2011-05-23  Bruno Haible  <bruno@clisp.org>
17966
17967         xstrtod: Move AC_LIBOBJ invocations to module description.
17968         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17969         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17970
17971 2011-05-23  Bruno Haible  <bruno@clisp.org>
17972
17973         xnanosleep: Move AC_LIBOBJ invocations to module description.
17974         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17975         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17976
17977 2011-05-23  Bruno Haible  <bruno@clisp.org>
17978
17979         xgetcwd: Move AC_LIBOBJ invocations to module description.
17980         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17981         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17982
17983 2011-05-23  Bruno Haible  <bruno@clisp.org>
17984
17985         xalloc: Move AC_LIBOBJ invocations to module description.
17986         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17987         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17988
17989 2011-05-23  Bruno Haible  <bruno@clisp.org>
17990
17991         write-any-file: Move AC_LIBOBJ invocations to module description.
17992         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17993         invocation.
17994         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17995
17996 2011-05-23  Bruno Haible  <bruno@clisp.org>
17997
17998         utimens: Move AC_LIBOBJ invocations to module description.
17999         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18000         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18001
18002 2011-05-23  Bruno Haible  <bruno@clisp.org>
18003
18004         utimecmp: Move AC_LIBOBJ invocations to module description.
18005         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18006         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18007
18008 2011-05-23  Bruno Haible  <bruno@clisp.org>
18009
18010         userspec: Move AC_LIBOBJ invocations to module description.
18011         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18012         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18013
18014 2011-05-23  Bruno Haible  <bruno@clisp.org>
18015
18016         unlinkdir: Move AC_LIBOBJ invocations to module description.
18017         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18018         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18019
18020 2011-05-23  Bruno Haible  <bruno@clisp.org>
18021
18022         unistd-safer: Move AC_LIBOBJ invocations to module description.
18023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18024         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18025
18026 2011-05-23  Bruno Haible  <bruno@clisp.org>
18027
18028         tempname: Move AC_LIBOBJ invocations to module description.
18029         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18030         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18031
18032 2011-05-23  Bruno Haible  <bruno@clisp.org>
18033
18034         strftime: Move AC_LIBOBJ invocations to module description.
18035         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18036         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18037
18038 2011-05-23  Bruno Haible  <bruno@clisp.org>
18039
18040         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18041         * m4/stdlib-safer.m4: Remove file.
18042         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18043         (configure.ac): Remove gl_STDLIB_SAFER call.
18044         (Makefile.am): Augment lib_SOURCES.
18045
18046 2011-05-23  Bruno Haible  <bruno@clisp.org>
18047
18048         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18049         * m4/stdio-safer.m4: Remove file.
18050         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18051         (configure.ac): Remove gl_TMPFILE_SAFER call.
18052         (Makefile.am): Augment lib_SOURCES.
18053
18054 2011-05-23  Bruno Haible  <bruno@clisp.org>
18055
18056         popen-safer: Move AC_LIBOBJ invocations to module description.
18057         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18058         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18059         (configure.ac): Remove gl_POPEN_SAFER call.
18060         (Makefile.am): Augment lib_SOURCES.
18061
18062 2011-05-23  Bruno Haible  <bruno@clisp.org>
18063
18064         freopen-safer: Move AC_LIBOBJ invocations to module description.
18065         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18066         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18067         (configure.ac): Remove gl_FREOPEN_SAFER call.
18068         (Makefile.am): Augment lib_SOURCES.
18069
18070 2011-05-23  Bruno Haible  <bruno@clisp.org>
18071
18072         fopen-safer: Move AC_LIBOBJ invocations to module description.
18073         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18074         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18075         (configure.ac): Remove gl_FOPEN_SAFER call.
18076         (Makefile.am): Augment lib_SOURCES.
18077
18078 2011-05-23  Bruno Haible  <bruno@clisp.org>
18079
18080         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18081         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18082         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18083
18084 2011-05-23  Bruno Haible  <bruno@clisp.org>
18085
18086         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18087         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18088         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18089
18090 2011-05-23  Bruno Haible  <bruno@clisp.org>
18091
18092         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18093         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18094         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18095
18096 2011-05-23  Bruno Haible  <bruno@clisp.org>
18097
18098         settime: Move AC_LIBOBJ invocations to module description.
18099         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18100         * modules/settime (Makefile.am): Augment lib_SOURCES.
18101
18102 2011-05-23  Bruno Haible  <bruno@clisp.org>
18103
18104         savedir: Move AC_LIBOBJ invocations to module description.
18105         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18106         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18107
18108 2011-05-23  Bruno Haible  <bruno@clisp.org>
18109
18110         save-cwd: Move AC_LIBOBJ invocations to module description.
18111         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18112         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18113
18114 2011-05-23  Bruno Haible  <bruno@clisp.org>
18115
18116         same: Move AC_LIBOBJ invocations to module description.
18117         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18118         * modules/same (Makefile.am): Augment lib_SOURCES.
18119
18120 2011-05-23  Bruno Haible  <bruno@clisp.org>
18121
18122         safe-write: Move AC_LIBOBJ invocations to module description.
18123         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18124         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18125         instead of gl_SAFE_WRITE.
18126         (Makefile.am): Augment lib_SOURCES.
18127
18128 2011-05-23  Bruno Haible  <bruno@clisp.org>
18129
18130         safe-read: Move AC_LIBOBJ invocations to module description.
18131         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18132         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18133         of gl_SAFE_READ.
18134         (Makefile.am): Augment lib_SOURCES.
18135
18136 2011-05-23  Bruno Haible  <bruno@clisp.org>
18137
18138         safe-alloc: Move AC_LIBOBJ invocations to module description.
18139         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18140         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18141
18142 2011-05-23  Bruno Haible  <bruno@clisp.org>
18143
18144         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18145         * m4/rijndael.m4: Remove file.
18146         * modules/crypto/rijndael (Files): Remove it.
18147         (configure.ac): Remove gl_RIJNDAEL call.
18148         (Makefile.am): Augment lib_SOURCES.
18149
18150 2011-05-23  Bruno Haible  <bruno@clisp.org>
18151
18152         readtokens: Move AC_LIBOBJ invocations to module description.
18153         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18154         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18155
18156 2011-05-23  Bruno Haible  <bruno@clisp.org>
18157
18158         read-file: Move AC_LIBOBJ invocations to module description.
18159         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18160         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18161         of gl_FUNC_READ_FILE.
18162         (Makefile.am): Augment lib_SOURCES.
18163
18164 2011-05-23  Bruno Haible  <bruno@clisp.org>
18165
18166         quotearg: Move AC_LIBOBJ invocations to module description.
18167         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18168         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18169
18170 2011-05-23  Bruno Haible  <bruno@clisp.org>
18171
18172         quote: Move AC_LIBOBJ invocations to module description.
18173         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18174         * modules/quote (Makefile.am): Augment lib_SOURCES.
18175
18176 2011-05-23  Bruno Haible  <bruno@clisp.org>
18177
18178         posixver: Move AC_LIBOBJ invocations to module description.
18179         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18180         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18181
18182 2011-05-23  Bruno Haible  <bruno@clisp.org>
18183
18184         posixtm: Move AC_LIBOBJ invocations to module description.
18185         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18186         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18187
18188 2011-05-23  Bruno Haible  <bruno@clisp.org>
18189
18190         physmem: Move AC_LIBOBJ invocations to module description.
18191         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18192         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18193
18194 2011-05-23  Bruno Haible  <bruno@clisp.org>
18195
18196         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18197         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18198         invocation.
18199         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18200
18201 2011-05-23  Bruno Haible  <bruno@clisp.org>
18202
18203         mpsort: Move AC_LIBOBJ invocations to module description.
18204         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18205         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18206
18207 2011-05-23  Bruno Haible  <bruno@clisp.org>
18208
18209         modechange: Move AC_LIBOBJ invocations to module description.
18210         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18211         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18212
18213 2011-05-23  Bruno Haible  <bruno@clisp.org>
18214
18215         mkdir-p: Move AC_LIBOBJ invocations to module description.
18216         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18217         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18218
18219 2011-05-23  Bruno Haible  <bruno@clisp.org>
18220
18221         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18222         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18223         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18224
18225 2011-05-23  Bruno Haible  <bruno@clisp.org>
18226
18227         mgetgroups: Move AC_LIBOBJ invocations to module description.
18228         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18229         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18230
18231 2011-05-23  Bruno Haible  <bruno@clisp.org>
18232
18233         memxor: Move AC_LIBOBJ invocations to module description.
18234         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18235         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18236
18237 2011-05-23  Bruno Haible  <bruno@clisp.org>
18238
18239         memcoll: Move AC_LIBOBJ invocations to module description.
18240         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18241         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18242
18243 2011-05-23  Bruno Haible  <bruno@clisp.org>
18244
18245         memcasecmp: Move AC_LIBOBJ invocations to module description.
18246         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18247         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18248
18249 2011-05-23  Bruno Haible  <bruno@clisp.org>
18250
18251         crypto/md5: Move AC_LIBOBJ invocations to module description.
18252         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18253         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18254
18255 2011-05-23  Bruno Haible  <bruno@clisp.org>
18256
18257         crypto/md4: Move AC_LIBOBJ invocations to module description.
18258         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18259         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18260
18261 2011-05-23  Bruno Haible  <bruno@clisp.org>
18262
18263         crypto/md2: Move AC_LIBOBJ invocations to module description.
18264         * m4/md2.m4: Remove file.
18265         * modules/crypto/md2 (Files): Remove it.
18266         (configure.ac): Remove gl_MD2 call.
18267         (Makefile.am): Augment lib_SOURCES.
18268
18269 2011-05-23  Bruno Haible  <bruno@clisp.org>
18270
18271         long-options: Move AC_LIBOBJ invocations to module description.
18272         * m4/long-options.m4: Remove file.
18273         * modules/long-options (Files): Remove it.
18274         (configure.ac): Remove gl_LONG_OPTIONS call.
18275         (Makefile.am): Augment lib_SOURCES.
18276
18277 2011-05-23  Bruno Haible  <bruno@clisp.org>
18278
18279         i-ring: Move AC_LIBOBJ invocations to module description.
18280         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18281         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18282
18283 2011-05-23  Bruno Haible  <bruno@clisp.org>
18284
18285         idcache: Move AC_LIBOBJ invocations to module description.
18286         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18287         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18288
18289 2011-05-23  Bruno Haible  <bruno@clisp.org>
18290
18291         human: Move AC_LIBOBJ invocations to module description.
18292         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18293         * modules/human (Makefile.am): Augment lib_SOURCES.
18294
18295 2011-05-23  Bruno Haible  <bruno@clisp.org>
18296
18297         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18298         * m4/hmac-sha1.m4: Remove file.
18299         * modules/crypto/hmac-sha1 (Files): Remove it.
18300         (configure.ac): Remove gl_HMAC_SHA1 call.
18301         (Makefile.am): Augment lib_SOURCES.
18302
18303 2011-05-23  Bruno Haible  <bruno@clisp.org>
18304
18305         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18306         * m4/hmac-md5.m4: Remove file.
18307         * modules/crypto/hmac-md5 (Files): Remove it.
18308         (configure.ac): Remove gl_HMAC_MD5 call.
18309         (Makefile.am): Augment lib_SOURCES.
18310
18311 2011-05-23  Bruno Haible  <bruno@clisp.org>
18312
18313         hash: Move AC_LIBOBJ invocations to module description.
18314         * m4/hash.m4: Remove file.
18315         * modules/hash (Files): Remove it.
18316         (configure.ac): Remove gl_HASH call.
18317         (Makefile.am): Augment lib_SOURCES.
18318
18319 2011-05-23  Bruno Haible  <bruno@clisp.org>
18320
18321         hard-locale: Move AC_LIBOBJ invocations to module description.
18322         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18323         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18324
18325 2011-05-23  Bruno Haible  <bruno@clisp.org>
18326
18327         getugroups: Move AC_LIBOBJ invocations to module description.
18328         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18329         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18330
18331 2011-05-23  Bruno Haible  <bruno@clisp.org>
18332
18333         gettime: Move AC_LIBOBJ invocations to module description.
18334         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18335         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18336
18337 2011-05-23  Bruno Haible  <bruno@clisp.org>
18338
18339         getndelim2: Move AC_LIBOBJ invocations to module description.
18340         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18341         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18342
18343 2011-05-23  Bruno Haible  <bruno@clisp.org>
18344
18345         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18346         * m4/gc-pbkdf2-sha1.m4: Remove file.
18347         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18348         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18349         (Makefile.am): Augment lib_SOURCES.
18350
18351 2011-05-23  Bruno Haible  <bruno@clisp.org>
18352
18353         fts: Move AC_LIBOBJ invocations to module description.
18354         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18355         * modules/fts (configure.ac): ... to here.
18356
18357 2011-05-23  Bruno Haible  <bruno@clisp.org>
18358
18359         file-type: Move AC_LIBOBJ invocations to module description.
18360         * m4/file-type.m4: Remove file.
18361         * modules/file-type (Files): Remove it.
18362         (configure.ac): Remove gl_FILE_TYPE call.
18363         (Makefile.am): Augment lib_SOURCES.
18364
18365 2011-05-23  Bruno Haible  <bruno@clisp.org>
18366
18367         filenamecat*: Respect rules for use of AC_LIBOBJ.
18368         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18369         Remove AC_LIBOBJ invocation.
18370         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18371         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18372
18373 2011-05-23  Bruno Haible  <bruno@clisp.org>
18374
18375         filemode: Move AC_LIBOBJ invocations to module description.
18376         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18377         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18378
18379 2011-05-23  Bruno Haible  <bruno@clisp.org>
18380
18381         openat-safer: Move AC_LIBOBJ invocations to module description.
18382         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18383         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18384
18385 2011-05-23  Bruno Haible  <bruno@clisp.org>
18386
18387         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18388         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18389         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18390
18391 2011-05-23  Bruno Haible  <bruno@clisp.org>
18392
18393         exclude: Move AC_LIBOBJ invocations to module description.
18394         * m4/exclude.m4: Remove file.
18395         * modules/exclude (Files): Remove it.
18396         (configure.ac): Remove gl_EXCLUDE call.
18397         (Makefile.am): Augment lib_SOURCES.
18398
18399 2011-05-23  Bruno Haible  <bruno@clisp.org>
18400
18401         dirname*: Respect rules for use of AC_LIBOBJ.
18402         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18403         invocations.
18404         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18405         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18406
18407 2011-05-23  Bruno Haible  <bruno@clisp.org>
18408
18409         dirent-safer: Move AC_LIBOBJ invocations to module description.
18410         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18411         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18412
18413 2011-05-23  Bruno Haible  <bruno@clisp.org>
18414
18415         crypto/des: Move AC_LIBOBJ invocations to module description.
18416         * m4/des.m4: Remove file.
18417         * modules/crypto/des (Files): Remove it.
18418         (configure.ac): Remove gl_DES call.
18419         (Makefile.am): Augment lib_SOURCES.
18420
18421 2011-05-23  Bruno Haible  <bruno@clisp.org>
18422
18423         cycle-check: Move AC_LIBOBJ invocations to module description.
18424         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18425         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18426
18427 2011-05-23  Bruno Haible  <bruno@clisp.org>
18428
18429         c-strtold: Move AC_LIBOBJ invocations to module description.
18430         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18431         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18432
18433 2011-05-23  Bruno Haible  <bruno@clisp.org>
18434
18435         c-strtod: Move AC_LIBOBJ invocations to module description.
18436         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18437         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18438
18439 2011-05-23  Bruno Haible  <bruno@clisp.org>
18440
18441         crc: Move AC_LIBOBJ invocations to module description.
18442         * m4/crc.m4: Remove file.
18443         * modules/crc (Files): Remove it.
18444         (configure.ac): Remove gl_CRC call.
18445         (Makefile.am): Augment lib_SOURCES.
18446
18447 2011-05-23  Bruno Haible  <bruno@clisp.org>
18448
18449         close-stream: Move AC_LIBOBJ invocations to module description.
18450         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18451         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18452
18453 2011-05-23  Bruno Haible  <bruno@clisp.org>
18454
18455         closeout: Move AC_LIBOBJ invocations to module description.
18456         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18457         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18458
18459 2011-05-23  Bruno Haible  <bruno@clisp.org>
18460
18461         closein: Move AC_LIBOBJ invocations to module description.
18462         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18463         * modules/closein (Makefile.am): Augment lib_SOURCES.
18464
18465 2011-05-23  Bruno Haible  <bruno@clisp.org>
18466
18467         cloexec: Move AC_LIBOBJ invocations to module description.
18468         * m4/cloexec.m4: Remove file.
18469         * modules/cloexec (Files): Remove it.
18470         (configure.ac): Remove gl_CLOEXEC call.
18471         (Makefile.am): Augment lib_SOURCES.
18472
18473 2011-05-23  Bruno Haible  <bruno@clisp.org>
18474
18475         check-version: Move AC_LIBOBJ invocations to module description.
18476         * m4/check-version.m4: Remove file.
18477         * modules/check-version (Files): Remove it.
18478         (configure.ac): Remove gl_CHECK_VERSION call.
18479         (Makefile.am): Augment lib_SOURCES.
18480
18481 2011-05-23  Bruno Haible  <bruno@clisp.org>
18482
18483         chdir-safer: Move AC_LIBOBJ invocations to module description.
18484         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18485         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18486
18487 2011-05-23  Bruno Haible  <bruno@clisp.org>
18488
18489         canonicalize: Move AC_LIBOBJ invocations to module description.
18490         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18491         AC_LIBOBJ invocation.
18492         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18493
18494 2011-05-23  Bruno Haible  <bruno@clisp.org>
18495
18496         canon-host: Move AC_LIBOBJ invocations to module description.
18497         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18498         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18499         instead of gl_CANON_HOST.
18500         (Makefile.am): Augment lib_SOURCES.
18501
18502 2011-05-23  Bruno Haible  <bruno@clisp.org>
18503
18504         backupfile: Move AC_LIBOBJ invocations to module description.
18505         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18506         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18507
18508 2011-05-23  Bruno Haible  <bruno@clisp.org>
18509
18510         argmatch: Move AC_LIBOBJ invocations to module description.
18511         * m4/argmatch.m4: Remove file.
18512         * modules/argmatch (Files): Remove it.
18513         (configure.ac): Remove gl_ARGMATCH call.
18514         (Makefile.am): Augment lib_SOURCES.
18515
18516 2011-05-23  Bruno Haible  <bruno@clisp.org>
18517
18518         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18519         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18520         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18521
18522 2011-05-23  Bruno Haible  <bruno@clisp.org>
18523
18524         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18525         * m4/arcfour.m4: Remove file.
18526         * modules/crypto/arcfour (Files): Remove it.
18527         (configure.ac): Remove gl_ARCFOUR call.
18528         (Makefile.am): Augment lib_SOURCES.
18529
18530 2011-05-22  Bruno Haible  <bruno@clisp.org>
18531
18532         write: Move AC_LIBOBJ invocations to module description.
18533         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18534         * modules/write (configure.ac): ... to here.
18535
18536 2011-05-22  Bruno Haible  <bruno@clisp.org>
18537
18538         wmemset: Move AC_LIBOBJ invocations to module description.
18539         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18540         here...
18541         * modules/wmemset (configure.ac): ... to here.
18542
18543 2011-05-22  Bruno Haible  <bruno@clisp.org>
18544
18545         wmemmove: Move AC_LIBOBJ invocations to module description.
18546         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18547         here...
18548         * modules/wmemmove (configure.ac): ... to here.
18549
18550 2011-05-22  Bruno Haible  <bruno@clisp.org>
18551
18552         wmemcpy: Move AC_LIBOBJ invocations to module description.
18553         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18554         here...
18555         * modules/wmemcpy (configure.ac): ... to here.
18556
18557 2011-05-22  Bruno Haible  <bruno@clisp.org>
18558
18559         wmemcmp: Move AC_LIBOBJ invocations to module description.
18560         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18561         here...
18562         * modules/wmemcmp (configure.ac): ... to here.
18563
18564 2011-05-22  Bruno Haible  <bruno@clisp.org>
18565
18566         wmemchr: Move AC_LIBOBJ invocations to module description.
18567         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18568         here...
18569         * modules/wmemchr (configure.ac): ... to here.
18570
18571 2011-05-22  Bruno Haible  <bruno@clisp.org>
18572
18573         wcswidth: Move AC_LIBOBJ invocations to module description.
18574         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18575         here...
18576         * modules/wcswidth (configure.ac): ... to here.
18577
18578 2011-05-22  Bruno Haible  <bruno@clisp.org>
18579
18580         wcwidth: Respect rules for use of AC_LIBOBJ.
18581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18582         invocation from here...
18583         * modules/wcwidth (configure.ac): ... to here.
18584         (Depends-on): Update conditions.
18585
18586 2011-05-22  Bruno Haible  <bruno@clisp.org>
18587
18588         wctype: Move AC_LIBOBJ invocations to module description.
18589         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18590         invocation from here...
18591         * modules/wctype (configure.ac): ... to here.
18592         (Depends-on): Update conditions.
18593
18594 2011-05-22  Bruno Haible  <bruno@clisp.org>
18595
18596         wctrans: Move AC_LIBOBJ invocations to module description.
18597         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18598         invocation from here...
18599         * modules/wctrans (configure.ac): ... to here.
18600
18601 2011-05-22  Bruno Haible  <bruno@clisp.org>
18602
18603         wctomb: Move AC_LIBOBJ invocations to module description.
18604         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18605         invocations from here...
18606         * modules/wctomb (configure.ac): ... to here.
18607
18608 2011-05-22  Bruno Haible  <bruno@clisp.org>
18609
18610         wctob: Move AC_LIBOBJ invocations to module description.
18611         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18612         gl_PREREQ_WCTOB invocations from here...
18613         * modules/wctob (configure.ac): ... to here.
18614         (Depends-on): Update conditions.
18615
18616 2011-05-22  Bruno Haible  <bruno@clisp.org>
18617
18618         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18619         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18620         here...
18621         * modules/wcsxfrm (configure.ac): ... to here.
18622
18623 2011-05-22  Bruno Haible  <bruno@clisp.org>
18624
18625         wcstok: Move AC_LIBOBJ invocations to module description.
18626         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18627         * modules/wcstok (configure.ac): ... to here.
18628
18629 2011-05-22  Bruno Haible  <bruno@clisp.org>
18630
18631         wcsstr: Move AC_LIBOBJ invocations to module description.
18632         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18633         * modules/wcsstr (configure.ac): ... to here.
18634
18635 2011-05-22  Bruno Haible  <bruno@clisp.org>
18636
18637         wcsspn: Move AC_LIBOBJ invocations to module description.
18638         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18639         * modules/wcsspn (configure.ac): ... to here.
18640
18641 2011-05-22  Bruno Haible  <bruno@clisp.org>
18642
18643         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18644         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18645         gl_PREREQ_WCSRTOMBS invocations from here...
18646         * modules/wcsrtombs (configure.ac): ... to here.
18647
18648 2011-05-22  Bruno Haible  <bruno@clisp.org>
18649
18650         wcsrchr: Move AC_LIBOBJ invocations to module description.
18651         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18652         here...
18653         * modules/wcsrchr (configure.ac): ... to here.
18654
18655 2011-05-22  Bruno Haible  <bruno@clisp.org>
18656
18657         wcspbrk: Move AC_LIBOBJ invocations to module description.
18658         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18659         here...
18660         * modules/wcspbrk (configure.ac): ... to here.
18661
18662 2011-05-22  Bruno Haible  <bruno@clisp.org>
18663
18664         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18665         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18666         gl_PREREQ_WCSNRTOMBS invocations from here...
18667         * modules/wcsnrtombs (configure.ac): ... to here.
18668
18669 2011-05-22  Bruno Haible  <bruno@clisp.org>
18670
18671         wcsnlen: Move AC_LIBOBJ invocations to module description.
18672         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18673         here...
18674         * modules/wcsnlen (configure.ac): ... to here.
18675
18676 2011-05-22  Bruno Haible  <bruno@clisp.org>
18677
18678         wcsncpy: Move AC_LIBOBJ invocations to module description.
18679         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18680         here...
18681         * modules/wcsncpy (configure.ac): ... to here.
18682
18683 2011-05-22  Bruno Haible  <bruno@clisp.org>
18684
18685         wcsncmp: Move AC_LIBOBJ invocations to module description.
18686         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18687         here...
18688         * modules/wcsncmp (configure.ac): ... to here.
18689
18690 2011-05-22  Bruno Haible  <bruno@clisp.org>
18691
18692         wcsncat: Move AC_LIBOBJ invocations to module description.
18693         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18694         here...
18695         * modules/wcsncat (configure.ac): ... to here.
18696
18697 2011-05-22  Bruno Haible  <bruno@clisp.org>
18698
18699         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18700         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18701         from here...
18702         * modules/wcsncasecmp (configure.ac): ... to here.
18703
18704 2011-05-22  Bruno Haible  <bruno@clisp.org>
18705
18706         wcslen: Move AC_LIBOBJ invocations to module description.
18707         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18708         * modules/wcslen (configure.ac): ... to here.
18709
18710 2011-05-22  Bruno Haible  <bruno@clisp.org>
18711
18712         wcsdup: Move AC_LIBOBJ invocations to module description.
18713         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18714         * modules/wcsdup (configure.ac): ... to here.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         wcscspn: Move AC_LIBOBJ invocations to module description.
18719         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18720         here...
18721         * modules/wcscspn (configure.ac): ... to here.
18722
18723 2011-05-22  Bruno Haible  <bruno@clisp.org>
18724
18725         wcscpy: Move AC_LIBOBJ invocations to module description.
18726         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18727         * modules/wcscpy (configure.ac): ... to here.
18728
18729 2011-05-22  Bruno Haible  <bruno@clisp.org>
18730
18731         wcscoll: Move AC_LIBOBJ invocations to module description.
18732         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18733         here...
18734         * modules/wcscoll (configure.ac): ... to here.
18735
18736 2011-05-22  Bruno Haible  <bruno@clisp.org>
18737
18738         wcscmp: Move AC_LIBOBJ invocations to module description.
18739         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18740         * modules/wcscmp (configure.ac): ... to here.
18741
18742 2011-05-22  Bruno Haible  <bruno@clisp.org>
18743
18744         wcschr: Move AC_LIBOBJ invocations to module description.
18745         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18746         * modules/wcschr (configure.ac): ... to here.
18747
18748 2011-05-22  Bruno Haible  <bruno@clisp.org>
18749
18750         wcscat: Move AC_LIBOBJ invocations to module description.
18751         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18752         * modules/wcscat (configure.ac): ... to here.
18753
18754 2011-05-22  Bruno Haible  <bruno@clisp.org>
18755
18756         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18757         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18758         here...
18759         * modules/wcscasecmp (configure.ac): ... to here.
18760
18761 2011-05-22  Bruno Haible  <bruno@clisp.org>
18762
18763         wcrtomb: Move AC_LIBOBJ invocations to module description.
18764         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18765         invocations from here...
18766         * modules/wcrtomb (configure.ac): ... to here.
18767
18768 2011-05-22  Bruno Haible  <bruno@clisp.org>
18769
18770         wcpncpy: Move AC_LIBOBJ invocations to module description.
18771         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18772         here...
18773         * modules/wcpncpy (configure.ac): ... to here.
18774
18775 2011-05-22  Bruno Haible  <bruno@clisp.org>
18776
18777         wcpcpy: Move AC_LIBOBJ invocations to module description.
18778         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18779         * modules/wcpcpy (configure.ac): ... to here.
18780
18781 2011-05-22  Bruno Haible  <bruno@clisp.org>
18782
18783         waitpid: Move AC_LIBOBJ invocations to module description.
18784         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18785         invocation from here...
18786         * modules/waitpid (configure.ac): ... to here.
18787
18788 2011-05-22  Bruno Haible  <bruno@clisp.org>
18789
18790         utimensat: Move AC_LIBOBJ invocations to module description.
18791         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18792         here...
18793         * modules/utimensat (configure.ac): ... to here.
18794
18795 2011-05-22  Bruno Haible  <bruno@clisp.org>
18796
18797         usleep: Move AC_LIBOBJ invocations to module description.
18798         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18799         here...
18800         * modules/usleep (configure.ac): ... to here.
18801
18802 2011-05-22  Bruno Haible  <bruno@clisp.org>
18803
18804         unlockpt: Move AC_LIBOBJ invocations to module description.
18805         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18806         gl_PREREQ_UNLOCKPT invocations from here...
18807         * modules/unlockpt (configure.ac): ... to here.
18808
18809 2011-05-22  Bruno Haible  <bruno@clisp.org>
18810
18811         unlink: Respect rules for use of AC_LIBOBJ.
18812         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18813         * modules/unlink (configure.ac): ... to here.
18814
18815 2011-05-22  Bruno Haible  <bruno@clisp.org>
18816
18817         uname: Move AC_LIBOBJ invocations to module description.
18818         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18820         here...
18821         * modules/uname (configure.ac): ... to here.
18822
18823 2011-05-22  Bruno Haible  <bruno@clisp.org>
18824
18825         ttyname_r: Move AC_LIBOBJ invocations to module description.
18826         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18827         gl_PREREQ_TTYNAME_R invocations from here...
18828         * modules/ttyname_r (configure.ac): ... to here.
18829
18830 2011-05-22  Bruno Haible  <bruno@clisp.org>
18831
18832         tsearch: Move AC_LIBOBJ invocations to module description.
18833         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18834         invocations from here...
18835         * modules/tsearch (configure.ac): ... to here.
18836
18837 2011-05-22  Bruno Haible  <bruno@clisp.org>
18838
18839         towctrans: Move AC_LIBOBJ invocations to module description.
18840         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18841         AC_LIBOBJ invocation from here...
18842         * modules/towctrans (configure.ac): ... to here.
18843
18844 2011-05-22  Bruno Haible  <bruno@clisp.org>
18845
18846         tmpfile: Move AC_LIBOBJ invocations to module description.
18847         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18848         invocations from here...
18849         * modules/tmpfile (configure.ac): ... to here.
18850
18851 2011-05-22  Bruno Haible  <bruno@clisp.org>
18852
18853         times: Move AC_LIBOBJ invocations to module description.
18854         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18855         * modules/times (configure.ac): ... to here.
18856
18857 2011-05-22  Bruno Haible  <bruno@clisp.org>
18858
18859         time_r: Move AC_LIBOBJ invocations to module description.
18860         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18861         invocations from here...
18862         * modules/time_r (configure.ac): ... to here.
18863
18864 2011-05-22  Bruno Haible  <bruno@clisp.org>
18865
18866         timegm: Move AC_LIBOBJ invocations to module description.
18867         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18868         invocations from here...
18869         * modules/timegm (configure.ac): ... to here.
18870
18871 2011-05-22  Bruno Haible  <bruno@clisp.org>
18872
18873         tcgetsid: Move AC_LIBOBJ invocations to module description.
18874         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18875         and gl_PREREQ_TCGETSID invocations from here...
18876         * modules/tcgetsid (configure.ac): ... to here.
18877         (Depends-on): Update conditions.
18878
18879 2011-05-22  Bruno Haible  <bruno@clisp.org>
18880
18881         symlinkat: Move AC_LIBOBJ invocations to module description.
18882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18883         here...
18884         * modules/symlinkat (configure.ac): ... to here.
18885
18886 2011-05-22  Bruno Haible  <bruno@clisp.org>
18887
18888         symlink: Move AC_LIBOBJ invocations to module description.
18889         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18890         here...
18891         * modules/symlink (configure.ac): ... to here.
18892
18893 2011-05-22  Bruno Haible  <bruno@clisp.org>
18894
18895         strverscmp: Move AC_LIBOBJ invocations to module description.
18896         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18898         from here...
18899         * modules/strverscmp (configure.ac): ... to here.
18900
18901 2011-05-22  Bruno Haible  <bruno@clisp.org>
18902
18903         strtok_r: Move AC_LIBOBJ invocations to module description.
18904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18905         and gl_PREREQ_STRTOK_R invocations from here...
18906         * modules/strtok_r (configure.ac): ... to here.
18907         (Depends-on): Update conditions.
18908
18909 2011-05-22  Bruno Haible  <bruno@clisp.org>
18910
18911         strtoumax: Move AC_LIBOBJ invocations to module description.
18912         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18914         from here...
18915         * modules/strtoumax (configure.ac): ... to here.
18916
18917 2011-05-22  Bruno Haible  <bruno@clisp.org>
18918
18919         strtoimax: Move AC_LIBOBJ invocations to module description.
18920         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18922         from here...
18923         * modules/strtoimax (configure.ac): ... to here.
18924
18925 2011-05-22  Bruno Haible  <bruno@clisp.org>
18926
18927         strtoull: Move AC_LIBOBJ invocations to module description.
18928         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18930         from here...
18931         * modules/strtoull (configure.ac): ... to here.
18932
18933 2011-05-22  Bruno Haible  <bruno@clisp.org>
18934
18935         strtoll: Move AC_LIBOBJ invocations to module description.
18936         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18938         here...
18939         * modules/strtoll (configure.ac): ... to here.
18940
18941 2011-05-22  Bruno Haible  <bruno@clisp.org>
18942
18943         strtoul: Move AC_LIBOBJ invocations to module description.
18944         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18945         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18946         * modules/strtoul (configure.ac): ... to here.
18947
18948 2011-05-22  Bruno Haible  <bruno@clisp.org>
18949
18950         strtol: Move AC_LIBOBJ invocations to module description.
18951         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18952         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18953         * modules/strtol (configure.ac): ... to here.
18954
18955 2011-05-22  Bruno Haible  <bruno@clisp.org>
18956
18957         strtod: Move AC_LIBOBJ invocations to module description.
18958         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18959         invocations from here...
18960         * modules/strtod (configure.ac): ... to here.
18961
18962 2011-05-22  Bruno Haible  <bruno@clisp.org>
18963
18964         strstr*: Move AC_LIBOBJ invocations to module description.
18965         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18966         invocations from here...
18967         * modules/strstr-simple (configure.ac): ... to here.
18968         * modules/strstr (configure.ac): ... and here.
18969
18970 2011-05-22  Bruno Haible  <bruno@clisp.org>
18971
18972         strsignal: Move AC_LIBOBJ invocations to module description.
18973         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18974         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18975         * modules/strsignal (configure.ac): ... to here.
18976         (Depends-on): Update conditions.
18977
18978 2011-05-22  Bruno Haible  <bruno@clisp.org>
18979
18980         strsep: Move AC_LIBOBJ invocations to module description.
18981         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18983         here...
18984         * modules/strsep (configure.ac): ... to here.
18985
18986 2011-05-22  Bruno Haible  <bruno@clisp.org>
18987
18988         strptime: Move AC_LIBOBJ invocations to module description.
18989         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18990         gl_PREREQ_STRPTIME invocations from here...
18991         * modules/strptime (configure.ac): ... to here.
18992
18993 2011-05-22  Bruno Haible  <bruno@clisp.org>
18994
18995         strpbrk: Move AC_LIBOBJ invocations to module description.
18996         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18998         here...
18999         * modules/strpbrk (configure.ac): ... to here.
19000
19001 2011-05-22  Bruno Haible  <bruno@clisp.org>
19002
19003         strnlen: Move AC_LIBOBJ invocations to module description.
19004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19005         invocations from here...
19006         * modules/strnlen (configure.ac): ... to here.
19007
19008 2011-05-22  Bruno Haible  <bruno@clisp.org>
19009
19010         strndup: Move AC_LIBOBJ invocations to module description.
19011         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19012         invocations from here...
19013         * modules/strndup (configure.ac): ... to here.
19014         (Depends-on): Update conditions.
19015
19016 2011-05-22  Bruno Haible  <bruno@clisp.org>
19017
19018         strncat: Move AC_LIBOBJ invocations to module description.
19019         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19020         invocations from here...
19021         * modules/strncat (configure.ac): ... to here.
19022
19023 2011-05-22  Bruno Haible  <bruno@clisp.org>
19024
19025         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19026         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19027         invocations from here...
19028         * modules/strdup (configure.ac): ... to here.
19029         * modules/strdup-posix (configure.ac): ... and here.
19030
19031 2011-05-22  Bruno Haible  <bruno@clisp.org>
19032
19033         strcspn: Move AC_LIBOBJ invocations to module description.
19034         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19036         here...
19037         * modules/strcspn (configure.ac): ... to here.
19038
19039 2011-05-22  Bruno Haible  <bruno@clisp.org>
19040
19041         strchrnul: Move AC_LIBOBJ invocations to module description.
19042         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19043         gl_PREREQ_STRCHRNUL invocations from here...
19044         * modules/strchrnul (configure.ac): ... to here.
19045
19046 2011-05-22  Bruno Haible  <bruno@clisp.org>
19047
19048         strcasestr*: Move AC_LIBOBJ invocations to module description.
19049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19050         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19051         * modules/strcasestr-simple (configure.ac): ... to here.
19052         * modules/strcasestr (configure.ac): ... and here.
19053
19054 2011-05-22  Bruno Haible  <bruno@clisp.org>
19055
19056         strcase: Move AC_LIBOBJ invocations to module description.
19057         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19058         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19059         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19060         gl_PREREQ_STRNCASECMP invocations from here...
19061         * modules/strcase (configure.ac): ... to here.
19062
19063 2011-05-22  Bruno Haible  <bruno@clisp.org>
19064
19065         stpncpy: Move AC_LIBOBJ invocations to module description.
19066         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19067         here...
19068         * modules/stpncpy (configure.ac): ... to here.
19069
19070 2011-05-22  Bruno Haible  <bruno@clisp.org>
19071
19072         stpcpy: Move AC_LIBOBJ invocations to module description.
19073         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19075         here...
19076         * modules/stpcpy (configure.ac): ... to here.
19077
19078 2011-05-21  Bruno Haible  <bruno@clisp.org>
19079
19080         stat: Move AC_LIBOBJ invocations to module description.
19081         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19082         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19083         here...
19084         * modules/stat (configure.ac): ... to here.
19085
19086 2011-05-21  Bruno Haible  <bruno@clisp.org>
19087
19088         sleep: Move AC_LIBOBJ invocations to module description.
19089         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19090         * modules/sleep (configure.ac): ... to here.
19091
19092 2011-05-21  Bruno Haible  <bruno@clisp.org>
19093
19094         signbit: Move AC_LIBOBJ invocations to module description.
19095         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19096         * modules/signbit (configure.ac): ... to here.
19097
19098 2011-05-21  Bruno Haible  <bruno@clisp.org>
19099
19100         sigprocmask: Move AC_LIBOBJ invocations to module description.
19101         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19102         gl_PREREQ_SIGPROMASK invocations from here...
19103         * modules/sigprocmask (configure.ac): ... to here.
19104
19105 2011-05-21  Bruno Haible  <bruno@clisp.org>
19106
19107         sigaction: Move AC_LIBOBJ invocations to module description.
19108         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19109         gl_PREREQ_SIGACTION invocations from here...
19110         * modules/sigaction (configure.ac): ... to here.
19111
19112 2011-05-21  Bruno Haible  <bruno@clisp.org>
19113
19114         sig2str: Move AC_LIBOBJ invocations to module description.
19115         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19117         here...
19118         * modules/sig2str (configure.ac): ... to here.
19119
19120 2011-05-21  Bruno Haible  <bruno@clisp.org>
19121
19122         setlocale: Move AC_LIBOBJ invocations to module description.
19123         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19124         gl_PREREQ_SETLOCALE invocations from here...
19125         * modules/setlocale (configure.ac): ... to here.
19126
19127 2011-05-21  Bruno Haible  <bruno@clisp.org>
19128
19129         unsetenv: Move AC_LIBOBJ invocations to module description.
19130         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19131         and gl_PREREQ_UNSETENV invocations from here...
19132         * modules/unsetenv (configure.ac): ... to here.
19133         (Depends-on): Update.
19134
19135 2011-05-21  Bruno Haible  <bruno@clisp.org>
19136
19137         setenv: Move AC_LIBOBJ invocations to module description.
19138         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19139         here...
19140         * modules/setenv (configure.ac): ... to here.
19141
19142 2011-05-21  Bruno Haible  <bruno@clisp.org>
19143
19144         selinux-h: Move AC_LIBOBJ invocations to module description.
19145         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19146         AC_LIBOBJ invocation from here...
19147         * modules/selinux-h (configure.ac): ... to here.
19148
19149 2011-05-21  Bruno Haible  <bruno@clisp.org>
19150
19151         select: Respect rules for use of AC_LIBOBJ.
19152         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19153         here...
19154         * modules/select (configure.ac): ... to here.
19155
19156 2011-05-21  Bruno Haible  <bruno@clisp.org>
19157
19158         scandir: Move AC_LIBOBJ invocations to module description.
19159         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19160         invocations from here...
19161         * modules/scandir (configure.ac): ... to here.
19162
19163 2011-05-21  Bruno Haible  <bruno@clisp.org>
19164
19165         rpmatch: Move AC_LIBOBJ invocations to module description.
19166         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19168         here...
19169         * modules/rpmatch (configure.ac): ... to here.
19170
19171 2011-05-21  Bruno Haible  <bruno@clisp.org>
19172
19173         rmdir: Respect rules for use of AC_LIBOBJ.
19174         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19175         * modules/rmdir (configure.ac): ... to here.
19176
19177 2011-05-21  Bruno Haible  <bruno@clisp.org>
19178
19179         renameat: Move AC_LIBOBJ invocations to module description.
19180         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19181         here...
19182         * modules/renameat (configure.ac): ... to here.
19183
19184 2011-05-21  Bruno Haible  <bruno@clisp.org>
19185
19186         rename: Respect rules for use of AC_LIBOBJ.
19187         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19188         here...
19189         * modules/rename (configure.ac): ... to here.
19190
19191 2011-05-21  Bruno Haible  <bruno@clisp.org>
19192
19193         remove: Move AC_LIBOBJ invocations to module description.
19194         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19195         here...
19196         * modules/remove (configure.ac): ... to here.
19197
19198 2011-05-21  Bruno Haible  <bruno@clisp.org>
19199
19200         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19201         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19202         macro.
19203         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19204         * modules/relocatable-lib (configure.ac): ... to here.
19205         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19206         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19207
19208 2011-05-21  Bruno Haible  <bruno@clisp.org>
19209
19210         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19211         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19212         here...
19213         * modules/relocatable-prog (configure.ac): ... to here.
19214
19215 2011-05-21  Bruno Haible  <bruno@clisp.org>
19216
19217         regex: Move AC_LIBOBJ invocations to module description.
19218         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19219         invocations from here...
19220         * modules/regex (configure.ac): ... to here.
19221
19222 2011-05-21  Bruno Haible  <bruno@clisp.org>
19223
19224         realloc-*: Move AC_LIBOBJ invocations to module description.
19225         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19226         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19227         AC_LIBOBJ invocations from here...
19228         * modules/realloc-gnu (configure.ac): ... to here.
19229         * modules/realloc-posix (configure.ac): ... and here.
19230
19231 2011-05-21  Bruno Haible  <bruno@clisp.org>
19232
19233         readutmp: Move AC_LIBOBJ invocations to module description.
19234         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19235         * modules/readutmp (configure.ac): ... to here.
19236
19237 2011-05-21  Bruno Haible  <bruno@clisp.org>
19238
19239         readlinkat: Move AC_LIBOBJ invocations to module description.
19240         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19241         here...
19242         * modules/readlinkat (configure.ac): ... to here.
19243
19244 2011-05-21  Bruno Haible  <bruno@clisp.org>
19245
19246         readlink: Move AC_LIBOBJ invocations to module description.
19247         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19248         gl_PREREQ_READLINK invocations from here...
19249         * modules/readlink (configure.ac): ... to here.
19250
19251 2011-05-21  Bruno Haible  <bruno@clisp.org>
19252
19253         readline: Move AC_LIBOBJ invocations to module description.
19254         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19255         gl_PREREQ_READLINE invocations from here...
19256         * modules/readline (configure.ac): ... to here.
19257
19258 2011-05-21  Bruno Haible  <bruno@clisp.org>
19259
19260         read: Move AC_LIBOBJ invocations to module description.
19261         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19262         * modules/read (configure.ac): ... to here.
19263
19264 2011-05-21  Bruno Haible  <bruno@clisp.org>
19265
19266         rawmemchr: Move AC_LIBOBJ invocations to module description.
19267         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19269         from here...
19270         * modules/rawmemchr (configure.ac): ... to here.
19271
19272 2011-05-21  Bruno Haible  <bruno@clisp.org>
19273
19274         random_r: Move AC_LIBOBJ invocations to module description.
19275         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19276         gl_PREREQ_RANDOM_R invocations from here...
19277         * modules/random_r (configure.ac): ... to here.
19278
19279 2011-05-21  Bruno Haible  <bruno@clisp.org>
19280
19281         pwrite: Move AC_LIBOBJ invocations to module description.
19282         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19283         * modules/pwrite (configure.ac): ... to here.
19284
19285 2011-05-21  Bruno Haible  <bruno@clisp.org>
19286
19287         putenv: Move AC_LIBOBJ invocations to module description.
19288         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19289         * modules/putenv (configure.ac): ... to here.
19290
19291 2011-05-21  Bruno Haible  <bruno@clisp.org>
19292
19293         login_tty: Move AC_LIBOBJ invocations to module description.
19294         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19295         * modules/login_tty (configure.ac): ... to here.
19296
19297 2011-05-21  Bruno Haible  <bruno@clisp.org>
19298
19299         openpty: Move AC_LIBOBJ invocations to module description.
19300         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19301         * modules/openpty (configure.ac): ... to here.
19302
19303 2011-05-21  Bruno Haible  <bruno@clisp.org>
19304
19305         forkpty: Move AC_LIBOBJ invocations to module description.
19306         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19307         * modules/forkpty (configure.ac): ... to here.
19308
19309 2011-05-21  Bruno Haible  <bruno@clisp.org>
19310
19311         ptsname: Move AC_LIBOBJ invocations to module description.
19312         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19313         invocations from here...
19314         * modules/ptsname (configure.ac): ... to here.
19315
19316 2011-05-21  Bruno Haible  <bruno@clisp.org>
19317
19318         pread: Move AC_LIBOBJ invocations to module description.
19319         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19320         * modules/pread (configure.ac): ... to here.
19321
19322 2011-05-21  Bruno Haible  <bruno@clisp.org>
19323
19324         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19325         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19326         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19327         * modules/posix_spawn (configure.ac): ... to here.
19328         * modules/posix_spawnp (configure.ac): ... and here.
19329
19330 2011-05-21  Bruno Haible  <bruno@clisp.org>
19331
19332         popen: Move AC_LIBOBJ invocations to module description.
19333         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19334         invocations from here...
19335         * modules/popen (configure.ac): ... to here.
19336
19337 2011-05-21  Bruno Haible  <bruno@clisp.org>
19338
19339         poll: Move AC_LIBOBJ invocations to module description.
19340         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19341         invocations from here...
19342         * modules/poll (configure.ac): ... to here.
19343
19344 2011-05-21  Bruno Haible  <bruno@clisp.org>
19345
19346         pipe-posix: Move AC_LIBOBJ invocations to module description.
19347         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19348         * modules/pipe-posix (configure.ac): ... to here.
19349
19350 2011-05-21  Bruno Haible  <bruno@clisp.org>
19351
19352         openat: Respect rules for use of AC_LIBOBJ.
19353         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19354         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19355         * modules/openat (configure.ac): ... to here.
19356
19357 2011-05-21  Bruno Haible  <bruno@clisp.org>
19358
19359         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19360         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19361         invocation from here...
19362         * modules/obstack-printf (configure.ac): ... to here.
19363         * modules/obstack-printf-posix (configure.ac): ... and here.
19364
19365 2011-05-21  Bruno Haible  <bruno@clisp.org>
19366
19367         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19368         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19369         from here...
19370         * modules/nl_langinfo (configure.ac): ... to here.
19371
19372 2011-05-21  Bruno Haible  <bruno@clisp.org>
19373
19374         nanosleep: Move AC_LIBOBJ invocations to module description.
19375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19376         gl_PREREQ_NANOSLEEP invocations from here...
19377         * modules/nanosleep (configure.ac): ... to here.
19378
19379 2011-05-21  Bruno Haible  <bruno@clisp.org>
19380
19381         mountlist: Move AC_LIBOBJ invocations to module description.
19382         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19383         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19384         * modules/mountlist (configure.ac): ... to here.
19385
19386 2011-05-21  Bruno Haible  <bruno@clisp.org>
19387
19388         mktime: Respect rules for use of AC_LIBOBJ.
19389         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19390         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19391         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19392         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19393         * modules/mktime (configure.ac): ... to here.
19394         * modules/mktime-internal (configure.ac): ... and here.
19395         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19396
19397 2011-05-21  Bruno Haible  <bruno@clisp.org>
19398
19399         mkstemps: Move AC_LIBOBJ invocations to module description.
19400         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19401         here...
19402         * modules/mkstemps (configure.ac): ... to here.
19403
19404 2011-05-21  Bruno Haible  <bruno@clisp.org>
19405
19406         mkstemp: Move AC_LIBOBJ invocations to module description.
19407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19408         gl_PREREQ_MKSTEMP invocations from here...
19409         * modules/mkstemp (configure.ac): ... to here.
19410
19411 2011-05-21  Bruno Haible  <bruno@clisp.org>
19412
19413         mkostemps: Move AC_LIBOBJ invocations to module description.
19414         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19415         here...
19416         * modules/mkostemps (configure.ac): ... to here.
19417
19418 2011-05-21  Bruno Haible  <bruno@clisp.org>
19419
19420         mkostemp: Move AC_LIBOBJ invocations to module description.
19421         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19422         gl_PREREQ_MKOSTEMP invocations from here...
19423         * modules/mkostemp (configure.ac): ... to here.
19424
19425 2011-05-21  Bruno Haible  <bruno@clisp.org>
19426
19427         mknod: Move AC_LIBOBJ invocations to module description.
19428         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19429         * modules/mknod (configure.ac): ... to here.
19430
19431 2011-05-21  Bruno Haible  <bruno@clisp.org>
19432
19433         mkfifoat: Move AC_LIBOBJ invocations to module description.
19434         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19435         here...
19436         * modules/mkfifoat (configure.ac): ... to here.
19437
19438 2011-05-21  Bruno Haible  <bruno@clisp.org>
19439
19440         mkfifo: Respect rules for use of AC_LIBOBJ.
19441         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19442         here...
19443         * modules/mkfifo (configure.ac): ... to here.
19444
19445 2011-05-21  Bruno Haible  <bruno@clisp.org>
19446
19447         mkdtemp: Move AC_LIBOBJ invocations to module description.
19448         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19449         invocations from here...
19450         * modules/mkdtemp (configure.ac): ... to here.
19451
19452 2011-05-21  Bruno Haible  <bruno@clisp.org>
19453
19454         mkdir: Move AC_LIBOBJ invocations to module description.
19455         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19456         * modules/mkdir (configure.ac): ... to here.
19457
19458 2011-05-21  Bruno Haible  <bruno@clisp.org>
19459
19460         memset: Move AC_LIBOBJ invocations to module description.
19461         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19462         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19463         here...
19464         * modules/memset (configure.ac): ... to here.
19465
19466 2011-05-21  Bruno Haible  <bruno@clisp.org>
19467
19468         memrchr: Move AC_LIBOBJ invocations to module description.
19469         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19471         here...
19472         * modules/memrchr (configure.ac): ... to here.
19473
19474 2011-05-21  Bruno Haible  <bruno@clisp.org>
19475
19476         mempcpy: Move AC_LIBOBJ invocations to module description.
19477         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19478         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19479         here...
19480         * modules/mempcpy (configure.ac): ... to here.
19481
19482 2011-05-21  Bruno Haible  <bruno@clisp.org>
19483
19484         memmove: Move AC_LIBOBJ invocations to module description.
19485         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19486         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19487         here...
19488         * modules/memmove (configure.ac): ... to here.
19489
19490 2011-05-21  Bruno Haible  <bruno@clisp.org>
19491
19492         memmem*: Move AC_LIBOBJ invocations to module description.
19493         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19494         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19495         here...
19496         (gl_FUNC_MEMMEM): ... and here...
19497         * modules/memmem-simple (configure.ac): ... to here.
19498         * modules/memmem (configure.ac): ... and here.
19499
19500 2011-05-21  Bruno Haible  <bruno@clisp.org>
19501
19502         memcpy: Move AC_LIBOBJ invocations to module description.
19503         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19505         here...
19506         * modules/memcpy (configure.ac): ... to here.
19507
19508 2011-05-21  Bruno Haible  <bruno@clisp.org>
19509
19510         memcmp: Simplify autoconf macro.
19511         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19512         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19513         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19514
19515 2011-05-21  Bruno Haible  <bruno@clisp.org>
19516
19517         memcmp: Move AC_LIBOBJ invocations to module description.
19518         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19519         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19520         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19521         * modules/memcmp (configure.ac): ... to here.
19522         (Depends-on): Update conditions.
19523
19524 2011-05-21  Bruno Haible  <bruno@clisp.org>
19525
19526         memchr: Respect rules for use of AC_LIBOBJ.
19527         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19528         invocations from here...
19529         * modules/memchr (configure.ac): ... to here.
19530
19531 2011-05-21  Bruno Haible  <bruno@clisp.org>
19532
19533         mbtowc: Move AC_LIBOBJ invocations to module description.
19534         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19535         invocations from here...
19536         * modules/mbtowc (configure.ac): ... to here.
19537
19538 2011-05-21  Bruno Haible  <bruno@clisp.org>
19539
19540         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19541         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19542         gl_PREREQ_MBSRTOWCS invocations from here...
19543         * modules/mbsrtowcs (configure.ac): ... to here.
19544
19545 2011-05-21  Bruno Haible  <bruno@clisp.org>
19546
19547         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19548         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19549         gl_PREREQ_MBSNRTOWCS invocations from here...
19550         * modules/mbsnrtowcs (configure.ac): ... to here.
19551
19552 2011-05-21  Bruno Haible  <bruno@clisp.org>
19553
19554         mbsinit: Move AC_LIBOBJ invocations to module description.
19555         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19556         invocations from here...
19557         * modules/mbsinit (configure.ac): ... to here.
19558
19559 2011-05-21  Bruno Haible  <bruno@clisp.org>
19560
19561         mbrlen: Move AC_LIBOBJ invocations to module description.
19562         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19563         invocations from here...
19564         * modules/mbrlen (configure.ac): ... to here.
19565
19566 2011-05-21  Bruno Haible  <bruno@clisp.org>
19567
19568         mbrtowc: Respect rules for use of AC_LIBOBJ.
19569         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19570         invocations from here...
19571         * modules/mbrtowc (configure.ac): ... to here.
19572
19573 2011-05-21  Bruno Haible  <bruno@clisp.org>
19574
19575         malloc-*: Move AC_LIBOBJ invocations to module description.
19576         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19577         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19578         AC_LIBOBJ invocations from here...
19579         * modules/malloc-gnu (configure.ac): ... to here.
19580         * modules/malloc-posix (configure.ac): ... and here.
19581
19582 2011-05-21  Bruno Haible  <bruno@clisp.org>
19583
19584         lstat, openat: Respect rules for use of AC_LIBOBJ.
19585         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19586         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19587         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19588         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19589         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19590         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19591         here.
19592         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19593
19594 2011-05-21  Bruno Haible  <bruno@clisp.org>
19595
19596         lseek: Move AC_LIBOBJ invocations to module description.
19597         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19598         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19599         * modules/lseek (configure.ac): ... to here.
19600
19601 2011-05-21  Bruno Haible  <bruno@clisp.org>
19602
19603         linkat: Move AC_LIBOBJ invocations to module description.
19604         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19605         here...
19606         * modules/linkat (configure.ac): ... to here.
19607
19608 2011-05-21  Bruno Haible  <bruno@clisp.org>
19609
19610         link: Respect rules for use of AC_LIBOBJ.
19611         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19612         * modules/link (configure.ac): ... to here.
19613
19614 2011-05-21  Bruno Haible  <bruno@clisp.org>
19615
19616         lchown: Move AC_LIBOBJ invocations to module description.
19617         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19618         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19619         * modules/lchown (configure.ac): ... to here.
19620
19621 2011-05-21  Bruno Haible  <bruno@clisp.org>
19622
19623         iswctype: Move AC_LIBOBJ invocations to module description.
19624         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19625         here...
19626         * modules/iswctype (configure.ac): ... to here.
19627
19628 2011-05-21  Bruno Haible  <bruno@clisp.org>
19629
19630         iswblank: Move AC_LIBOBJ invocations to module description.
19631         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19632         here...
19633         * modules/iswblank (configure.ac): ... to here.
19634
19635 2011-05-21  Bruno Haible  <bruno@clisp.org>
19636
19637         atanl: Move AC_LIBOBJ invocations to module description.
19638         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19639         * modules/atanl (configure.ac): ... to here.
19640
19641 2011-05-21  Bruno Haible  <bruno@clisp.org>
19642
19643         acosl: Move AC_LIBOBJ invocations to module description.
19644         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19645         * modules/acosl (configure.ac): ... to here.
19646
19647 2011-05-21  Bruno Haible  <bruno@clisp.org>
19648
19649         asinl: Respect rules for use of AC_LIBOBJ.
19650         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19651         * modules/asinl (configure.ac): ... to here.
19652
19653 2011-05-21  Bruno Haible  <bruno@clisp.org>
19654
19655         tanl: Move AC_LIBOBJ invocations to module description.
19656         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19657         * modules/tanl (configure.ac): ... to here.
19658
19659 2011-05-21  Bruno Haible  <bruno@clisp.org>
19660
19661         cosl: Move AC_LIBOBJ invocations to module description.
19662         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19663         * modules/cosl (configure.ac): ... to here.
19664
19665 2011-05-21  Bruno Haible  <bruno@clisp.org>
19666
19667         sinl: Move AC_LIBOBJ invocations to module description.
19668         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19669         * modules/sinl (configure.ac): ... to here.
19670
19671 2011-05-21  Bruno Haible  <bruno@clisp.org>
19672
19673         logl: Move AC_LIBOBJ invocations to module description.
19674         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19675         * modules/logl (configure.ac): ... to here.
19676
19677 2011-05-21  Bruno Haible  <bruno@clisp.org>
19678
19679         expl: Move AC_LIBOBJ invocations to module description.
19680         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19681         * modules/expl (configure.ac): ... to here.
19682
19683 2011-05-21  Bruno Haible  <bruno@clisp.org>
19684
19685         roundl: Move AC_LIBOBJ invocations to module description.
19686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19687         * modules/roundl (configure.ac): ... to here.
19688
19689 2011-05-21  Bruno Haible  <bruno@clisp.org>
19690
19691         round: Move AC_LIBOBJ invocations to module description.
19692         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19693         * modules/round (configure.ac): ... to here.
19694
19695 2011-05-21  Bruno Haible  <bruno@clisp.org>
19696
19697         roundf: Move AC_LIBOBJ invocations to module description.
19698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19699         * modules/roundf (configure.ac): ... to here.
19700
19701 2011-05-21  Bruno Haible  <bruno@clisp.org>
19702
19703         truncl: Move AC_LIBOBJ invocations to module description.
19704         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19705         * modules/truncl (configure.ac): ... to here.
19706
19707 2011-05-21  Bruno Haible  <bruno@clisp.org>
19708
19709         trunc: Move AC_LIBOBJ invocations to module description.
19710         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19711         * modules/trunc (configure.ac): ... to here.
19712
19713 2011-05-21  Bruno Haible  <bruno@clisp.org>
19714
19715         truncf: Move AC_LIBOBJ invocations to module description.
19716         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19717         * modules/truncf (configure.ac): ... to here.
19718
19719 2011-05-21  Bruno Haible  <bruno@clisp.org>
19720
19721         ceill: Move AC_LIBOBJ invocations to module description.
19722         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19723         * modules/ceill (configure.ac): ... to here.
19724
19725 2011-05-21  Bruno Haible  <bruno@clisp.org>
19726
19727         ceil: Move AC_LIBOBJ invocations to module description.
19728         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19729         * modules/ceil (configure.ac): ... to here.
19730
19731 2011-05-21  Bruno Haible  <bruno@clisp.org>
19732
19733         ceilf: Move AC_LIBOBJ invocations to module description.
19734         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19735         * modules/ceilf (configure.ac): ... to here.
19736
19737 2011-05-21  Bruno Haible  <bruno@clisp.org>
19738
19739         floorl: Respect rules for use of AC_LIBOBJ.
19740         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19741         * modules/floorl (configure.ac): ... to here.
19742
19743 2011-05-21  Bruno Haible  <bruno@clisp.org>
19744
19745         floor: Respect rules for use of AC_LIBOBJ.
19746         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19747         * modules/floor (configure.ac): ... to here.
19748
19749 2011-05-21  Bruno Haible  <bruno@clisp.org>
19750
19751         floorf: Move AC_LIBOBJ invocations to module description.
19752         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19753         * modules/floorf (configure.ac): ... to here.
19754
19755 2011-05-20  Bruno Haible  <bruno@clisp.org>
19756
19757         sqrtl: Respect rules for use of AC_LIBOBJ.
19758         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19759         * modules/sqrtl (configure.ac): ... to here.
19760
19761 2011-05-20  Bruno Haible  <bruno@clisp.org>
19762
19763         ldexpl: Respect rules for use of AC_LIBOBJ.
19764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19765         * modules/ldexpl (configure.ac): ... to here.
19766
19767 2011-05-20  Bruno Haible  <bruno@clisp.org>
19768
19769         frexpl*: Respect rules for use of AC_LIBOBJ.
19770         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19771         invocation from here...
19772         * modules/frexpl (configure.ac): ... to here.
19773         * modules/frexpl-nolibm (configure.ac): ... and here.
19774
19775 2011-05-20  Bruno Haible  <bruno@clisp.org>
19776
19777         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19778         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19779         invocation from here...
19780         * modules/frexp (configure.ac): ... to here.
19781         * modules/frexp-nolibm (configure.ac): ... and here.
19782
19783 2011-05-20  Bruno Haible  <bruno@clisp.org>
19784
19785         isnan: Respect rules for use of AC_LIBOBJ.
19786         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19787         invocations here.
19788         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19789         REPLACE_ISNAN.
19790         * modules/isnand (configure.ac): Likewise.
19791         * modules/isnanl (configure.ac): Likewise.
19792
19793 2011-05-20  Bruno Haible  <bruno@clisp.org>
19794
19795         isnanl*: Respect rules for use of AC_LIBOBJ.
19796         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19797         invocation from here...
19798         * modules/isnanl (configure.ac): ... to here.
19799         * modules/isnanl-nolibm (configure.ac): ... and here.
19800
19801 2011-05-20  Bruno Haible  <bruno@clisp.org>
19802
19803         isnand*: Move AC_LIBOBJ invocations to module description.
19804         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19805         invocation from here...
19806         * modules/isnand (configure.ac): ... to here.
19807         * modules/isnand-nolibm (configure.ac): ... and here.
19808
19809 2011-05-20  Bruno Haible  <bruno@clisp.org>
19810
19811         isnanf*: Move AC_LIBOBJ invocations to module description.
19812         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19813         invocation from here...
19814         * modules/isnanf (configure.ac): ... to here.
19815         * modules/isnanf-nolibm (configure.ac): ... and here.
19816
19817 2011-05-20  Bruno Haible  <bruno@clisp.org>
19818
19819         isnan*: Separate the AC_LIBOBJ invocations.
19820         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19821         AC_LIBOBJ invocation.
19822         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19823         here.
19824         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19825         AC_LIBOBJ invocation.
19826         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19827         here.
19828         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19829         AC_LIBOBJ invocation.
19830         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19831         here.
19832         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19833
19834 2011-05-08  Bruno Haible  <bruno@clisp.org>
19835
19836         isinf: Move AC_LIBOBJ invocations to module description.
19837         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19838         * modules/isinf (configure.ac): ... to here.
19839
19840 2011-05-08  Bruno Haible  <bruno@clisp.org>
19841
19842         isfinite: Move AC_LIBOBJ invocations to module description.
19843         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19844         * modules/isfinite (configure.ac): ... to here.
19845
19846 2011-05-08  Bruno Haible  <bruno@clisp.org>
19847
19848         isblank: Move AC_LIBOBJ invocations to module description.
19849         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19850         here...
19851         * modules/isblank (configure.ac): ... to here.
19852
19853 2011-05-08  Bruno Haible  <bruno@clisp.org>
19854
19855         isapipe: Move AC_LIBOBJ invocations to module description.
19856         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19857         gl_PREREQ_ISAPIPE invocations from here...
19858         * modules/isapipe (configure.ac): ... to here.
19859         (Depends-on): Update condition.
19860
19861 2011-05-08  Bruno Haible  <bruno@clisp.org>
19862
19863         ioctl: Move AC_LIBOBJ invocations to module description.
19864         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19865         invocations from here...
19866         * modules/ioctl (configure.ac): ... to here.
19867         (Depends-on): Update condition.
19868
19869 2011-05-08  Bruno Haible  <bruno@clisp.org>
19870
19871         imaxdiv: Move AC_LIBOBJ invocations to module description.
19872         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19873         invocations from here...
19874         * modules/imaxdiv (configure.ac): ... to here.
19875
19876 2011-05-08  Bruno Haible  <bruno@clisp.org>
19877
19878         imaxabs: Move AC_LIBOBJ invocations to module description.
19879         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19880         invocations from here...
19881         * modules/imaxabs (configure.ac): ... to here.
19882
19883 2011-05-08  Bruno Haible  <bruno@clisp.org>
19884
19885         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19887         AC_LIBOBJ invocations from here...
19888         * modules/getaddrinfo (configure.ac): ... to here.
19889         (Depends-on): Add conditions.
19890
19891 2011-05-08  Bruno Haible  <bruno@clisp.org>
19892
19893         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19894         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19895         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19896         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19897         (gl_PREREQ_INET_PTON): ... from here.
19898         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19899         gl_PREREQ_INET_PTON here.
19900         (Depends-on): Update condition.
19901
19902 2011-05-08  Bruno Haible  <bruno@clisp.org>
19903
19904         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19905         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19906         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19907         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19908         (gl_PREREQ_INET_NTOP): ... from here.
19909         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19910         gl_PREREQ_INET_NTOP here.
19911         (Depends-on): Update condition.
19912
19913 2011-05-08  Bruno Haible  <bruno@clisp.org>
19914
19915         iconv_open: Move AC_LIBOBJ invocations to module description.
19916         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19917         AC_LIBOBJ invocations from here...
19918         * modules/iconv_open (configure.ac): ... to here.
19919
19920 2011-05-08  Bruno Haible  <bruno@clisp.org>
19921
19922         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19923         If module 'iconv_open' is among the main modules and module
19924         'iconv_open-utf' is among the tests dependencies, then
19925         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19926         return the special iconv_t values. Therefore iconv() and iconv_close()
19927         must support these special iconv_t values, already in lib, not only in
19928         tests.
19929         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19931         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19932         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19933         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19934         (Depends-on): Add the dependencies of iconv_open-utf.
19935         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19936         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19937         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19938
19939 2011-05-08  Bruno Haible  <bruno@clisp.org>
19940
19941         group-member: Move AC_LIBOBJ invocations to module description.
19942         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19943         gl_PREREQ_GROUP_MEMBER invocations from here...
19944         * modules/group-member (configure.ac): ... to here.
19945
19946 2011-05-08  Bruno Haible  <bruno@clisp.org>
19947
19948         grantpt: Move AC_LIBOBJ invocations to module description.
19949         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19950         invocations from here...
19951         * modules/grantpt (configure.ac): ... to here.
19952
19953 2011-05-08  Bruno Haible  <bruno@clisp.org>
19954
19955         glob: Move AC_LIBOBJ invocations to module description.
19956         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19957         from here...
19958         * modules/glob (configure.ac): ... to here.
19959
19960 2011-05-08  Bruno Haible  <bruno@clisp.org>
19961
19962         getusershell: Move AC_LIBOBJ invocations to module description.
19963         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19964         Move AC_LIBOBJ invocation from here...
19965         * modules/getusershell (configure.ac): ... to here.
19966         (Depends-on): Update condition.
19967
19968 2011-05-08  Bruno Haible  <bruno@clisp.org>
19969
19970         gettimeofday: Move AC_LIBOBJ invocations to module description.
19971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19972         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19973         gl_PREREQ_GETTIMEOFDAY invocations from here...
19974         * modules/gettimeofday (configure.ac): ... to here.
19975
19976 2011-05-08  Bruno Haible  <bruno@clisp.org>
19977
19978         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19979         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19980         just gl_FUNC_TZSET.
19981         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19982         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19984         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19985
19986 2011-05-08  Bruno Haible  <bruno@clisp.org>
19987
19988         getsubopt: Move AC_LIBOBJ invocations to module description.
19989         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19990         gl_PREREQ_GETSUBOPT invocations from here...
19991         * modules/getsubopt (configure.ac): ... to here.
19992
19993 2011-05-08  Bruno Haible  <bruno@clisp.org>
19994
19995         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19996         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19997         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19998         * modules/getpass-gnu (configure.ac): ... to here.
19999
20000 2011-05-08  Bruno Haible  <bruno@clisp.org>
20001
20002         getpass: Move AC_LIBOBJ invocations to module description.
20003         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20004         gl_PREREQ_GETPASS invocations from here...
20005         * modules/getpass (configure.ac): ... to here.
20006
20007 2011-05-08  Bruno Haible  <bruno@clisp.org>
20008
20009         getpagesize: Move AC_LIBOBJ invocations to module description.
20010         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20011         from here...
20012         * modules/getpagesize (configure.ac): ... to here.
20013
20014 2011-05-08  Bruno Haible  <bruno@clisp.org>
20015
20016         getopt: Move AC_LIBOBJ invocations to module description.
20017         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20018         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20019         invocations from here...
20020         * modules/getopt-gnu (configure.ac): ... to here.
20021         * modules/getopt-posix (configure.ac): ... and here.
20022         (Depends-on): Update condition.
20023
20024 2011-05-08  Bruno Haible  <bruno@clisp.org>
20025
20026         getopt, argp: Respect rules for use of AC_LIBOBJ.
20027         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20028         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20029         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20030         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20031
20032 2011-05-08  Bruno Haible  <bruno@clisp.org>
20033
20034         getlogin_r: Move AC_LIBOBJ invocations to module description.
20035         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20036         gl_PREREQ_GETLOGIN_R invocations from here...
20037         * modules/getlogin_r (configure.ac): ... to here.
20038
20039 2011-05-08  Bruno Haible  <bruno@clisp.org>
20040
20041         getlogin: Move AC_LIBOBJ invocations to module description.
20042         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20043         here...
20044         * modules/getlogin (configure.ac): ... to here.
20045
20046 2011-05-08  Bruno Haible  <bruno@clisp.org>
20047
20048         getloadavg: Move AC_LIBOBJ invocations to module description.
20049         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20050         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20051         * modules/getloadavg (configure.ac): ... to here.
20052
20053 2011-05-08  Bruno Haible  <bruno@clisp.org>
20054
20055         gethrxtime: Move AC_LIBOBJ invocations to module description.
20056         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20057         LIB_GETHRXTIME from here...
20058         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20059         invocations from here...
20060         * modules/gethrxtime (configure.ac): ... to here.
20061
20062 2011-05-08  Bruno Haible  <bruno@clisp.org>
20063
20064         gethostname: Move AC_LIBOBJ invocations to module description.
20065         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20066         gl_PREREQ_GETHOSTNAME invocations from here...
20067         * modules/gethostname (configure.ac): ... to here.
20068
20069 2011-05-08  Bruno Haible  <bruno@clisp.org>
20070
20071         getgroups: Move AC_LIBOBJ invocations to module description.
20072         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20073         here...
20074         * modules/getgroups (configure.ac): ... to here.
20075
20076 2011-05-08  Bruno Haible  <bruno@clisp.org>
20077
20078         getdtablesize: Move AC_LIBOBJ invocations to module description.
20079         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20080         invocation from here...
20081         * modules/getdtablesize (configure.ac): ... to here.
20082
20083 2011-05-08  Bruno Haible  <bruno@clisp.org>
20084
20085         getdomainname: Move AC_LIBOBJ invocations to module description.
20086         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20087         gl_PREREQ_GETDOMAINNAME invocations from here...
20088         * modules/getdomainname (configure.ac): ... to here.
20089
20090 2011-05-08  Bruno Haible  <bruno@clisp.org>
20091
20092         getline: Move AC_LIBOBJ invocations to module description.
20093         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20094         invocations from here...
20095         * modules/getline (configure.ac): ... to here.
20096
20097 2011-05-08  Bruno Haible  <bruno@clisp.org>
20098
20099         getline: Simplify.
20100         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20101         It's already handled through the module dependency.
20102
20103 2011-05-08  Bruno Haible  <bruno@clisp.org>
20104
20105         getdelim: Move AC_LIBOBJ invocations to module description.
20106         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20107         and gl_PREREQ_GETDELIM invocations from here...
20108         * modules/getdelim (configure.ac): ... to here.
20109         (Depends-on): Fix condition.
20110
20111 2011-05-08  Bruno Haible  <bruno@clisp.org>
20112
20113         getcwd: Move AC_LIBOBJ invocations to module description.
20114         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20115         invocations from here...
20116         * modules/getcwd (configure.ac): ... to here.
20117
20118 2011-05-08  Bruno Haible  <bruno@clisp.org>
20119
20120         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20121         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20122         here...
20123         * modules/getcwd-lgpl (configure.ac): ... to here.
20124
20125 2011-05-07  Bruno Haible  <bruno@clisp.org>
20126
20127         crypto/gc: Move AC_LIBOBJ invocations to module description.
20128         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20129         * modules/crypto/gc (configure.ac): ... to here.
20130
20131 2011-05-07  Bruno Haible  <bruno@clisp.org>
20132
20133         fwriting: Move AC_LIBOBJ invocations to module description.
20134         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20135         here...
20136         * modules/fwriting (configure.ac): ... to here.
20137
20138 2011-05-07  Bruno Haible  <bruno@clisp.org>
20139
20140         fwritable: Move AC_LIBOBJ invocations to module description.
20141         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20142         here...
20143         * modules/fwritable (configure.ac): ... to here.
20144
20145 2011-05-07  Bruno Haible  <bruno@clisp.org>
20146
20147         futimens: Move AC_LIBOBJ invocations to module description.
20148         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20149         here...
20150         * modules/futimens (configure.ac): ... to here.
20151
20152 2011-05-07  Bruno Haible  <bruno@clisp.org>
20153
20154         ftruncate: Move AC_LIBOBJ invocations to module description.
20155         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20156         gl_PREREQ_FTRUNCATE invocations from here...
20157         * modules/ftruncate (configure.ac): ... to here.
20158
20159 2011-05-07  Bruno Haible  <bruno@clisp.org>
20160
20161         fsync: Move AC_LIBOBJ invocations to module description.
20162         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20163         invocations from here...
20164         * modules/fsync (configure.ac): ... to here.
20165
20166 2011-05-07  Bruno Haible  <bruno@clisp.org>
20167
20168         fsusage: Move AC_LIBOBJ invocations to module description.
20169         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20170         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20171         * modules/fsusage (configure.ac): ... to here.
20172
20173 2011-05-07  Bruno Haible  <bruno@clisp.org>
20174
20175         freopen: Move AC_LIBOBJ invocations to module description.
20176         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20177         invocations from here...
20178         * modules/freopen (configure.ac): ... to here.
20179
20180 2011-05-07  Bruno Haible  <bruno@clisp.org>
20181
20182         free: Move AC_LIBOBJ invocations to module description.
20183         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20184         invocations from here...
20185         * modules/free (configure.ac): ... to here.
20186
20187 2011-05-07  Bruno Haible  <bruno@clisp.org>
20188
20189         freadable: Move AC_LIBOBJ invocations to module description.
20190         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20191         here...
20192         * modules/freadable (configure.ac): ... to here.
20193
20194 2011-05-07  Bruno Haible  <bruno@clisp.org>
20195
20196         fpurge: Move AC_LIBOBJ invocations to module description.
20197         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20198         invocations from here...
20199         * modules/fpurge (configure.ac): ... to here.
20200
20201 2011-05-07  Bruno Haible  <bruno@clisp.org>
20202
20203         fpending: Move AC_LIBOBJ invocations to module description.
20204         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20205         gl_FUNC_FPENDING.
20206         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20207         invocations from here...
20208         * modules/fpending (configure.ac): ... to here.
20209
20210 2011-05-07  Bruno Haible  <bruno@clisp.org>
20211
20212         fopen: Move AC_LIBOBJ invocations to module description.
20213         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20214         invocations from here...
20215         * modules/fopen (configure.ac): ... to here.
20216
20217 2011-05-07  Bruno Haible  <bruno@clisp.org>
20218
20219         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20220         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20221         gl_FUNC_FNMATCH_POSIX.
20222         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20223         invocations from here...
20224         * modules/fnmatch (configure.ac): ... to here.
20225         * modules/fnmatch-gnu (configure.ac): ... and here.
20226
20227 2011-05-07  Bruno Haible  <bruno@clisp.org>
20228
20229         flock: Move AC_LIBOBJ invocations to module description.
20230         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20231         invocations from here...
20232         * modules/flock (configure.ac): ... to here.
20233
20234 2011-05-07  Bruno Haible  <bruno@clisp.org>
20235
20236         fileblocks: Move AC_LIBOBJ invocations to module description.
20237         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20238         gl_PREREQ_FILEBLOCKS invocations from here...
20239         * modules/fileblocks (configure.ac): ... to here.
20240
20241 2011-05-06  Bruno Haible  <bruno@clisp.org>
20242
20243         fflush: Move AC_LIBOBJ invocations to module description.
20244         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20245         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20246         invocations from here...
20247         * modules/fflush (configure.ac): ... to here.
20248
20249 2011-05-06  Bruno Haible  <bruno@clisp.org>
20250
20251         fdopendir: Move AC_LIBOBJ invocations to module description.
20252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20253         here...
20254         * modules/fdopendir (configure.ac): ... to here.
20255         (Depends-on): Improve conditions.
20256
20257 2011-05-06  Bruno Haible  <bruno@clisp.org>
20258
20259         _Exit: Move AC_LIBOBJ invocations to module description.
20260         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20261         invocations from here...
20262         * modules/_Exit (configure.ac): ... to here.
20263
20264 2011-05-21  Bruno Haible  <bruno@clisp.org>
20265
20266         euidaccess: Respect rules for use of AC_LIBOBJ.
20267         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20269         from here...
20270         * modules/euidaccess (configure.ac): ... to here.
20271
20272 2011-05-06  Bruno Haible  <bruno@clisp.org>
20273
20274         error: Move AC_LIBOBJ invocations to module description.
20275         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20276         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20277         invocations from here...
20278         * modules/error (configure.ac): ... to here.
20279
20280 2011-05-06  Bruno Haible  <bruno@clisp.org>
20281
20282         duplocale: Move AC_LIBOBJ invocations to module description.
20283         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20284         gl_PREREQ_DUPLOCALE invocations from here...
20285         * modules/duplocale (configure.ac): ... to here.
20286
20287 2011-05-05  Bruno Haible  <bruno@clisp.org>
20288
20289         dirfd: Move AC_LIBOBJ invocations to module description.
20290         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20291         gl_FUNC_DIRFD.
20292         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20293         here...
20294         * modules/dirfd (configure.ac): ... to here.
20295         (Depends-on): Fix condition.
20296
20297 2011-05-05  Bruno Haible  <bruno@clisp.org>
20298
20299         chown: Respect rules for use of AC_LIBOBJ.
20300         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20301         * modules/chown (configure.ac): ... to here.
20302
20303 2011-05-05  Bruno Haible  <bruno@clisp.org>
20304
20305         chdir-long: Move AC_LIBOBJ invocations to module description.
20306         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20307         gl_PREREQ_CHDIR_LONG invocations from here...
20308         * modules/chdir-long (configure.ac): ... to here.
20309
20310 2011-05-05  Bruno Haible  <bruno@clisp.org>
20311
20312         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20313         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20314         from here...
20315         * modules/canonicalize-lgpl (configure.ac): ... to here.
20316
20317 2011-05-05  Bruno Haible  <bruno@clisp.org>
20318
20319         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20320         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20321         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20322         REPLACE_CALLOC.
20323         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20324         * modules/calloc-gnu (configure.ac): Likewise.
20325
20326 2011-05-05  Bruno Haible  <bruno@clisp.org>
20327
20328         btowc: Move AC_LIBOBJ invocations to module description.
20329         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20330         invocations from here...
20331         * modules/btowc (configure.ac): ... to here.
20332
20333 2011-05-21  Bruno Haible  <bruno@clisp.org>
20334
20335         atexit: Move AC_LIBOBJ invocations to module description.
20336         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20338         here...
20339         * modules/atexit (configure.ac): ... to here.
20340
20341 2011-05-05  Bruno Haible  <bruno@clisp.org>
20342
20343         atoll: Move AC_LIBOBJ invocations to module description.
20344         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20345         invocations from here...
20346         * modules/atoll (configure.ac): ... to here.
20347
20348 2011-05-05  Bruno Haible  <bruno@clisp.org>
20349
20350         argz: Move AC_LIBOBJ invocations to module description.
20351         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20352         * modules/argz (configure.ac): ... to here.
20353
20354 2011-05-05  Bruno Haible  <bruno@clisp.org>
20355
20356         alphasort: Move AC_LIBOBJ invocations to module description.
20357         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20358         gl_PREREQ_ALPHASORT invocations from here...
20359         * modules/alphasort (configure.ac): ... to here.
20360
20361 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         verify: new macro verify_expr; verify_true deprecated
20364         * NEWS: Mention this.
20365         * doc/verify.texi (Compile-time Assertions): Document this.
20366         * lib/verify.h (verify_true): Deprecate.
20367         (verify_expr): New macro.
20368         * tests/test-verify.c (function): Test verify_expr.
20369
20370 2011-06-14  Jim Meyering  <meyering@redhat.com>
20371
20372         init.sh: give more portable redirection-related advice in a comment
20373         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20374         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20375         for lots of discussion.  Stefano Lattarini suggested the solution
20376         of putting "9>&2" after the command.  Reported by Bruno Haible.
20377
20378 2011-06-13  Bruno Haible  <bruno@clisp.org>
20379
20380         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20381         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20382         'none'.
20383
20384 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20385
20386         ftoastr: use strtof only if HAVE_STRTOF
20387         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20389         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20390         * modules/ftoastr (configure.ac): Check for strtof.
20391
20392 2011-06-13  Bruno Haible  <bruno@clisp.org>
20393
20394         gnulib-tool: Addendum to 2011-06-08 commit.
20395         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20396         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20397
20398 2011-06-13  Bruno Haible  <bruno@clisp.org>
20399
20400         fseeko: Provide a non-inline replacement of fseek().
20401         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20402         * modules/fseeko (Depends-on): Add fseek.
20403         * modules/fseek (License): Change to LGPLv2+.
20404
20405 2011-06-13  Bruno Haible  <bruno@clisp.org>
20406
20407         ftello: Provide a non-inline replacement of ftell().
20408         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20409         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20410         not have ftello() (such as on mingw).
20411         * modules/ftello (Depends-on): Add ftell.
20412         * modules/ftell (License): Change to LGPLv2+.
20413
20414 2011-05-07  Bruno Haible  <bruno@clisp.org>
20415
20416         ftell: Move AC_LIBOBJ invocations to module description.
20417         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20418         * modules/ftell (configure.ac): ... to here.
20419
20420 2011-05-07  Bruno Haible  <bruno@clisp.org>
20421
20422         ftello: Respect rules for use of AC_LIBOBJ.
20423         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20424         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20425         here...
20426         * modules/ftello (configure.ac): ... to here.
20427
20428 2011-05-07  Bruno Haible  <bruno@clisp.org>
20429
20430         fseeko: Simplify.
20431         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20432         (gl_FUNC_FSEEKO): Inline it here.
20433
20434 2011-05-07  Bruno Haible  <bruno@clisp.org>
20435
20436         fseek: Move AC_LIBOBJ invocations to module description.
20437         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20438         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20439         * modules/fseek (configure.ac): ... to here.
20440
20441 2011-05-07  Bruno Haible  <bruno@clisp.org>
20442
20443         fseek: Respect rules for use of AC_LIBOBJ.
20444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20445         here...
20446         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20447
20448 2011-05-07  Bruno Haible  <bruno@clisp.org>
20449
20450         fseeko: Respect rules for use of AC_LIBOBJ.
20451         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20452         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20453         here...
20454         * modules/fseeko (configure.ac): ... to here.
20455
20456 2011-06-13  Bruno Haible  <bruno@clisp.org>
20457
20458         gnulib-tool: Allow comments in the 'Depends-on' section.
20459         * doc/gnulib.texi (Module description): Mention comment syntax in the
20460         Depends-on section.
20461         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20462
20463 2011-06-13  Bruno Haible  <bruno@clisp.org>
20464
20465         file-set.h: guard __attibute__ use, now that it's not always defined
20466         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20467         versions that support it.  This fixes a coreutils build failure with
20468         the vendor cc on HP-UX 11.31.
20469
20470 2011-06-12  Bruno Haible  <bruno@clisp.org>
20471
20472         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20473         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20474         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20475         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20476         (acl, aclsort): New declarations.
20477         (aclv_nontrivial): New declaration.
20478         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20479         (file_has_acl): Read also the second kind of HP-UX ACLs.
20480         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20481         kind of HP-UX ACLs if the first kind fails.
20482         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20483         second kind of HP-UX ACLs.
20484         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20485         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20486         agree.
20487         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20488         hpuxjfs.
20489         Handle hpuxjfs.
20490         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20491         hpuxjfs.
20492         Handle hpuxjfs.
20493         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20494         (func_test_same_acls): Use both lsacl and getacl.
20495         Handle hpuxjfs.
20496         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20497         (func_test_same_acls): Use both lsacl and getacl.
20498         Handle hpuxjfs.
20499
20500 2011-06-12  Bruno Haible  <bruno@clisp.org>
20501
20502         acl: Complete the 2010-08-10 fix.
20503         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20504         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20505         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20506         explicitly.
20507         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20508         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20509
20510 2011-06-12  Bruno Haible  <bruno@clisp.org>
20511
20512         spawn-pipe tests: Comments.
20513         * tests/test-spawn-pipe-child.c (main): Update comment.
20514         Reported by James Youngman <jay@gnu.org>.
20515
20516 2011-06-11  James Youngman  <jay@gnu.org>
20517
20518         New module 'stat-size'.
20519         * modules/stat-size: New module.  Provides macros for accessing
20520         file size information in instances of struct stat.  Depends on the
20521         fileblocks module because it calls st_blocks.
20522         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20523         * doc/gnulib.texi: Include stat-size.texi.
20524         * doc/stat-size.texi: Documentation for this module.
20525         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20526         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20527         AC_STRUCT_ST_BLOCKS.
20528
20529 2011-06-09  Bruno Haible  <bruno@clisp.org>
20530
20531         thread: Support pthreads-win32.
20532         * lib/glthread/thread.h (gl_thread_self): Define differently on
20533         pthreads-win32.
20534         (gl_null_thread): New declaration.
20535         (gl_thread_self_pointer): New macro.
20536         * lib/glthread/thread.c (gl_null_thread): New constant.
20537         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20538         gl_thread_self.
20539         * tests/test-tls.c: Likewise.
20540         Suggested by Paul Eggert. Reported by Eric Blake.
20541
20542 2011-06-09  Bruno Haible  <bruno@clisp.org>
20543
20544         thread: Fix confusion between NULL and 0.
20545         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20546         Reported by Paul Eggert.
20547
20548 2011-06-09  Bruno Haible  <bruno@clisp.org>
20549
20550         spawn-pipe tests: Avoid test failure on HP-UX 11.
20551         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20552         is closed.
20553
20554 2011-06-09  Bruno Haible  <bruno@clisp.org>
20555
20556         acl tests: Fix compilation error on HP-UX 11.
20557         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20558
20559 2011-06-09  Bruno Haible  <bruno@clisp.org>
20560
20561         rmdir: Avoid test failure on HP-UX 10.20.
20562         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20563         EEXIST.
20564
20565 2011-06-08  Eric Blake  <eblake@redhat.com>
20566
20567         perror: fix test on mingw
20568         * modules/perror-tests (Depends-on): Add dup2.
20569
20570         strerror_r-posix: fix on MacOS
20571         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20573         logic bug.
20574         * lib/strerror_r.c (strerror_r): Fix the bug.
20575         * lib/strerror.c (strerror): Likewise.
20576         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20577         problem.
20578         * doc/posix-functions/strerror.texi (strerror): Likewise.
20579         * doc/posix-functions/perror.texi (perror): Likewise.
20580         * tests/test-strerror.c (main): Enhance test.
20581         * tests/test-strerror_r.c (main): Likewise.
20582
20583 2011-06-08  Bruno Haible  <bruno@clisp.org>
20584
20585         gnulib-tool: Better isolation between different gnulib-tool invocations.
20586         * gnulib-tool: New option --witness-c-macro.
20587         (witness_c_macro): New variable.
20588         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20589         AM_CPPFLAGS define it as a C macro.
20590         (func_emit_tests_Makefile_am): Likewise.
20591         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20592         read it from there.
20593         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20594         m4_define, not AC_DEFUN.
20595         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20596         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20597         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20598         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20599         s|...|...|, to substitute the values of the GNULIB_* module indicator
20600         variables.
20601         * modules/dirent (Makefile.am): Likewise.
20602         * modules/fcntl-h (Makefile.am): Likewise.
20603         * modules/iconv-h (Makefile.am): Likewise.
20604         * modules/langinfo (Makefile.am): Likewise.
20605         * modules/locale (Makefile.am): Likewise.
20606         * modules/math (Makefile.am): Likewise.
20607         * modules/netdb (Makefile.am): Likewise.
20608         * modules/poll-h (Makefile.am): Likewise.
20609         * modules/pty (Makefile.am): Likewise.
20610         * modules/search (Makefile.am): Likewise.
20611         * modules/signal (Makefile.am): Likewise.
20612         * modules/spawn (Makefile.am): Likewise.
20613         * modules/stdio (Makefile.am): Likewise.
20614         * modules/stdlib (Makefile.am): Likewise.
20615         * modules/string (Makefile.am): Likewise.
20616         * modules/sys_ioctl (Makefile.am): Likewise.
20617         * modules/sys_select (Makefile.am): Likewise.
20618         * modules/sys_socket (Makefile.am): Likewise.
20619         * modules/sys_stat (Makefile.am): Likewise.
20620         * modules/sys_times (Makefile.am): Likewise.
20621         * modules/sys_utsname (Makefile.am): Likewise.
20622         * modules/sys_wait (Makefile.am): Likewise.
20623         * modules/termios (Makefile.am): Likewise.
20624         * modules/time (Makefile.am): Likewise.
20625         * modules/unistd (Makefile.am): Likewise.
20626         * modules/wchar (Makefile.am): Likewise.
20627
20628 2011-06-08  Eric Blake  <eblake@redhat.com>
20629
20630         strerror: simplify replacement
20631         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20632         * modules/strerror (configure.ac): No prereqs needed here...
20633         * modules/strerror-override (configure.ac): ...but this needs it.
20634         (Files): Add file for needed prereq macro.
20635
20636 2011-06-08  Bruno Haible  <bruno@clisp.org>
20637
20638         strerror_r-posix: Tweaks.
20639         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20640         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20641         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20642         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20643         (gl_FUNC_STRERROR_R): ... to here.
20644         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20645
20646 2011-06-07  Eric Blake  <eblake@redhat.com>
20647
20648         perror: document fixed bugs
20649         * doc/posix-functions/perror.texi (perror): Document recent
20650         patches.
20651
20652 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20653
20654         stat-time: get_stat_birthtime failure is better-defined
20655         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20656         return a timestamp whose tv_sec and tv_nsec values are both -1.
20657         Previously, the spec said only that the tv_nsec value was negative.
20658         This upward-compatible change simplifies GNU tar a bit.
20659
20660 2011-06-07  Eric Blake  <eblake@redhat.com>
20661
20662         strerror_r-posix: work around cygwin 1.7.9
20663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20664         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20665         bug without replacing strerror_r.
20666         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20667         strerror_r is buggy, but without requiring strerror_r compilation.
20668         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20669
20670         test-perror: relax test to ignore cygwin bug
20671         * tests/test-perror2.c (main): Relax test on requiring detection
20672         of stream errors, and use unbuffered stream.
20673         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20674         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20675         * doc/posix-functions/fputc.texi (fputc): Likewise.
20676         * doc/posix-functions/fputs.texi (fputs): Likewise.
20677         * doc/posix-functions/fputws.texi (fputws): Likewise.
20678         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20679         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20680         * doc/posix-functions/getopt.texi (getopt): Likewise.
20681         * doc/posix-functions/perror.texi (perror): Likewise.
20682         * doc/posix-functions/printf.texi (printf): Likewise.
20683         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20684         * doc/posix-functions/psignal.texi (psignal): Likewise.
20685         * doc/posix-functions/putc.texi (putc): Likewise.
20686         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20687         Likewise.
20688         * doc/posix-functions/putchar.texi (putchar): Likewise.
20689         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20690         Likewise.
20691         * doc/posix-functions/puts.texi (puts): Likewise.
20692         * doc/posix-functions/putwc.texi (putwc): Likewise.
20693         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20694         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20695         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20696         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20697         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20698         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20699         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20700         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20701
20702 2011-05-22  Bruno Haible  <bruno@clisp.org>
20703
20704         strerror: Move AC_LIBOBJ invocations to module description.
20705         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20706         gl_PREREQ_STRERROR invocations from here...
20707         * modules/strerror (configure.ac): ... to here.
20708
20709 2011-05-21  Bruno Haible  <bruno@clisp.org>
20710
20711         perror: Use common idiom.
20712         * modules/perror (configure.ac): Reorder statements.
20713
20714 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20715
20716         tests: fix usage message in 'mktempd_'
20717         * tests/init.sh (mktempd_): In the usage message, use literal
20718         'mktempd_', not '$ME' (which is even undefined), as the name of
20719         the subroutine.
20720
20721 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20722
20723         tests init: new function 'fatal_', for hard errors
20724         Before this patch, the only way offered by tests/init.sh to
20725         properly signal a hard error was the `framework_failure_'
20726         function.  But the error message issued by that function,
20727         as its name would suggest, refers to a set-up failure in the
20728         testsuite, while hard errors can obviously also be due to
20729         other reasons.  The best way to fix this inconsistency is to
20730         introduce a new function with a more general error message.
20731         * tests/init.sh (fatal_): New function.
20732
20733 2011-06-06  Eric Blake  <eblake@redhat.com>
20734
20735         canonicalize-lgpl: use common idiom
20736         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20737         over newer POSIX -Rf.
20738         Reported by Bruno Haible.
20739
20740         canonicalize-lgpl: work around AIX realpath bug
20741         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20742         * doc/posix-functions/realpath.texi (realpath): Document it.
20743         Reported by Bruno Haible.
20744
20745         strerror: work around FreeBSD bug
20746         * lib/strerror.c (strerror): Special case 0.
20747         Reported by Bruno Haible.
20748
20749         strerror-override: avoid bloating errno module
20750         * modules/errno (Files, configure.ac): Move replacement strings...
20751         * modules/strerror-override: ...to new module.
20752         * modules/strerror (Depends-on): Add strerror-override.
20753         * modules/strerror_r-posix (Depends-on): Likewise.
20754         * MODULES.html.sh: Document new module.
20755         Reported by Bruno Haible.
20756
20757 2011-06-06  Bruno Haible  <bruno@clisp.org>
20758
20759         spawn-pipe tests: Rename program.
20760         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20761         * tests/test-spawn-pipe-child.c: Update comment.
20762         * tests/test-spawn-pipe.sh: Update.
20763         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20764
20765         spawn-pipe tests: Link the child program only against libc.
20766         * tests/test-spawn-pipe-child.c: New file, extracted from
20767         tests/test-spawn-pipe.c.
20768         (main): Expect only one argument.
20769         (is_open): New function, copied from tests/test-pipe.c.
20770         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20771         (child_main): Remove function.
20772         (test_pipe): Pass only one argument to the child program.
20773         (main): Remove child process code. Expect the child program's name as
20774         first argument.
20775         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20776         argument.
20777         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20778         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20779         test-spawn-pipe-child against no libraries.
20780
20781 2011-06-06  Bruno Haible  <bruno@clisp.org>
20782
20783         careadlinkat: Avoid mismatch between ssize_t and int.
20784         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20785         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20786
20787 2011-06-06  Jim Meyering  <meyering@redhat.com>
20788
20789         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20790         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20791         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20792
20793 2011-06-05  Bruno Haible  <bruno@clisp.org>
20794
20795         ansi-c++-opt: Interoperability with libtool.
20796         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20797         set the variable to "no", not to ":".
20798         * NEWS: Mention the change.
20799
20800 2011-06-05  Bruno Haible  <bruno@clisp.org>
20801
20802         acl: Fix test failure on AIX 7.
20803         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20804         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20805
20806 2011-06-05  Bruno Haible  <bruno@clisp.org>
20807
20808         pipe-filter-ii: Fix test failure on AIX and IRIX.
20809         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20810         with EAGAIN, retry with a smaller buffer size.
20811
20812 2011-06-05  Bruno Haible  <bruno@clisp.org>
20813
20814         localename: Fix link dependencies.
20815         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20816         * modules/localename-tests (Makefile.am): Link test-localename with
20817         $(LIBTHREAD).
20818
20819 2011-06-05  Bruno Haible  <bruno@clisp.org>
20820
20821         error: Avoid gcc warning.
20822         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20823
20824 2011-06-05  Bruno Haible  <bruno@clisp.org>
20825
20826         unsetenv: Avoid gcc warning.
20827         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20828
20829 2011-06-05  Bruno Haible  <bruno@clisp.org>
20830
20831         setenv: Avoid gcc warning.
20832         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20833
20834 2011-06-05  Bruno Haible  <bruno@clisp.org>
20835
20836         sys_select: Ensure memset is declared also on AIX 7.
20837         * lib/sys_select.in.h: Include <string.h> also on AIX.
20838         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20839         self-contained also on AIX 7.1.
20840
20841 2011-06-04  Jim Meyering  <meyering@redhat.com>
20842
20843         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20844         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20845         function name, "error".
20846         (_gl_translatable_diag_func_re): New configurable variable.
20847
20848 2011-06-04  Bruno Haible  <bruno@clisp.org>
20849
20850         getopt: Avoid gcc warning.
20851         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20852
20853 2011-06-04  Bruno Haible  <bruno@clisp.org>
20854
20855         strerror_r: Fix comments.
20856         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20857         commit.
20858
20859 2011-06-04  Bruno Haible  <bruno@clisp.org>
20860
20861         perror: Fix compilation error.
20862         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20863         Undefine fprintf, not sprintf.
20864         * modules/perror (Depends-on): Remove intprops, verify.
20865
20866 2011-06-04  Bruno Haible  <bruno@clisp.org>
20867
20868         setlocale: Enable replacement on Cygwin 1.5.
20869         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20870         Cygwin 1.5.x.
20871         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20872         LC_CTYPE category also exists on Cygwin 1.5.x.
20873
20874 2011-06-04  Bruno Haible  <bruno@clisp.org>
20875
20876         strerror-override: Don't disable symbol renamings.
20877         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20878         * lib/strerror-override.c: Include config.h.
20879         (strerror_override): Don't undefine.
20880
20881 2011-06-03  Bruno Haible  <bruno@clisp.org>
20882
20883         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20884         * lib/localename.h: Update copyright header.
20885         * lib/localename.c: Likewise.
20886         * lib/relocatable.h: Likewise.
20887         * lib/relocatable.c: Likewise.
20888
20889 2011-06-02  Bruno Haible  <bruno@clisp.org>
20890
20891         doc: Fix a module name.
20892         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20893
20894 2011-06-02  Bruno Haible  <bruno@clisp.org>
20895
20896         pipe2: Remove dependency on 'nonblocking' module.
20897         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20898         O_NONBLOCK is defined by gnulib.
20899         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20900         is zero.
20901         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20902         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20903         defined by gnulib.
20904         (get_nonblocking_flag): New function.
20905         (main): Test O_NONBLOCK flag only if it is nonzero.
20906         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20907
20908 2011-06-03  Jim Meyering  <meyering@redhat.com>
20909
20910         maint: three new prohibit-header-without-use rules
20911         Prohibit use of cloexec.h, posixver.h, same.h without use.
20912         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20913         (sc_prohibit_posixver_without_use): Likewise.
20914         (sc_prohibit_same_without_use): Likewise.
20915
20916 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20917
20918         allocator: 'die' routine is now given requested size
20919         * lib/allocator.h (struct allocator.die): New size arg.
20920         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20921         If the actual problem is an ssize_t limitation, not a size_t or
20922         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20923
20924 2011-06-01  Eric Blake  <eblake@redhat.com>
20925
20926         strerror: drop strerror_r dependency
20927         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20928         * lib/strerror-override.c (strerror_override): ...to new file.
20929         * lib/strerror-override.h: Add prototype.
20930         * lib/strerror-impl.h: Delete.
20931         * lib/strerror.c (strerror): New implementation.
20932         * modules/errno (Files): Add new files.
20933         (configure.ac): Compile new file as appropriate.
20934         * modules/strerror (Files): Drop unused file.
20935         (Depends-on): Drop strerror_r-posix.
20936         * MODULES.html.sh: Document strerror_r-posix.
20937         Requested by Sam Steingold.
20938
20939         perror: call strerror_r directly
20940         * modules/perror (Files): Drop strerror-impl.h.
20941         * lib/perror.c (perror): Use our own stack buffer, rather than
20942         calling a wrapper that uses static storage.
20943         * doc/posix-functions/perror.texi (perror): Document a limitation
20944         of our replacement.
20945
20946         strerror_r: fix includes for FreeBSD
20947         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20948         since we use abort on some platforms.
20949         Reported by Matthias Bolte.
20950
20951 2011-05-31  Bruno Haible  <bruno@clisp.org>
20952
20953         Fix link errors in tests: openat-die uses gettext-h.
20954         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20955         against $(LIBINTL).
20956         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20957         against $(LIBINTL).
20958         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20959         $(LIBINTL).
20960         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20961         against $(LIBINTL).
20962         * modules/linkat-tests (Makefile.am): Link test-linkat against
20963         $(LIBINTL).
20964         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20965         $(LIBINTL).
20966         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20967         against $(LIBINTL).
20968         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20969         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20970         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20971         $(LIBINTL).
20972         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20973         $(LIBINTL).
20974         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20975         $(LIBINTL).
20976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20977
20978 2011-05-31  Bruno Haible  <bruno@clisp.org>
20979
20980         Fix link errors in tests: wait-process uses gettext-h.
20981         * modules/nonblocking-pipe-tests (Makefile.am): Set
20982         test_nonblocking_pipe_main_LDADD.
20983         * modules/nonblocking-socket-tests (Makefile.am): Link
20984         test-nonblocking-socket-main against $(LIBINTL).
20985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20986
20987 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20988
20989         assert-h: work around 'verify' incompatibility
20990         * lib/verify.h: Use @...@ directives, not ifdef.
20991         * modules/assert-h (assert.h): Implement the directives.
20992         (assert.h): Substitute the symbol-prefix more consistently.
20993
20994 2011-05-29  Jim Meyering  <meyering@redhat.com>
20995
20996         trim: remove three superfluous assignments
20997         * lib/trim.c (trim2): Remove three superfluous assignments
20998         and correct brace positioning.
20999
21000 2011-05-29  Bruno Haible  <bruno@clisp.org>
21001
21002         wctype-h: Avoid namespace pollution on Solaris 2.6.
21003         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21004         identifiers.
21005         * doc/posix-headers/wctype.texi: Mention the problem.
21006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21007
21008 2011-05-28  Jim Meyering  <meyering@redhat.com>
21009
21010         parse-datetime.y: accommodate -Wstrict-overflow
21011         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21012         placate -Wstrict-overflow.
21013
21014         trim: avoid a warning from -O2 -Wstrict-overflow
21015         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21016
21017 2011-05-29  Bruno Haible  <bruno@clisp.org>
21018
21019         gnulib-tool: Fix bug in yesterday's commit.
21020         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21021         twice.
21022
21023 2011-05-29  Bruno Haible  <bruno@clisp.org>
21024
21025         Allow multiple gnulib generated include files to be combined.
21026         * gnulib-tool (func_compute_include_guard_prefix): New function.
21027         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21028         ${gl_include_guard_prefix} references.
21029         (func_import, func_create_testdir): Invoke
21030         func_compute_include_guard_prefix.
21031         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21032         * lib/ctype.in.h: Likewise.
21033         * lib/dirent.in.h: Likewise.
21034         * lib/errno.in.h: Likewise.
21035         * lib/fcntl.in.h: Likewise.
21036         * lib/float.in.h: Likewise.
21037         * lib/getopt.in.h: Likewise.
21038         * lib/iconv.in.h: Likewise.
21039         * lib/langinfo.in.h: Likewise.
21040         * lib/locale.in.h: Likewise.
21041         * lib/math.in.h: Likewise.
21042         * lib/netdb.in.h: Likewise.
21043         * lib/netinet_in.in.h: Likewise.
21044         * lib/poll.in.h: Likewise.
21045         * lib/pthread.in.h: Likewise.
21046         * lib/pty.in.h: Likewise.
21047         * lib/sched.in.h: Likewise.
21048         * lib/se-selinux.in.h: Likewise.
21049         * lib/search.in.h: Likewise.
21050         * lib/signal.in.h: Likewise.
21051         * lib/spawn.in.h: Likewise.
21052         * lib/stdarg.in.h: Likewise.
21053         * lib/stddef.in.h: Likewise.
21054         * lib/stdint.in.h: Likewise.
21055         * lib/stdio.in.h: Likewise.
21056         * lib/stdlib.in.h: Likewise.
21057         * lib/string.in.h: Likewise.
21058         * lib/strings.in.h: Likewise.
21059         * lib/sys_file.in.h: Likewise.
21060         * lib/sys_ioctl.in.h: Likewise.
21061         * lib/sys_select.in.h: Likewise.
21062         * lib/sys_socket.in.h: Likewise.
21063         * lib/sys_stat.in.h: Likewise.
21064         * lib/sys_time.in.h: Likewise.
21065         * lib/sys_times.in.h: Likewise.
21066         * lib/sys_uio.in.h: Likewise.
21067         * lib/sys_utsname.in.h: Likewise.
21068         * lib/sys_wait.in.h: Likewise.
21069         * lib/sysexits.in.h: Likewise.
21070         * lib/termios.in.h: Likewise.
21071         * lib/time.in.h: Likewise.
21072         * lib/unistd.in.h: Likewise.
21073         * lib/wchar.in.h: Likewise.
21074         * lib/wctype.in.h: Likewise.
21075         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21076         * modules/ctype (Makefile.am): Likewise.
21077         * modules/dirent (Makefile.am): Likewise.
21078         * modules/errno (Makefile.am): Likewise.
21079         * modules/fcntl-h (Makefile.am): Likewise.
21080         * modules/float (Makefile.am): Likewise.
21081         * modules/getopt-posix (Makefile.am): Likewise.
21082         * modules/iconv-h (Makefile.am): Likewise.
21083         * modules/langinfo (Makefile.am): Likewise.
21084         * modules/locale (Makefile.am): Likewise.
21085         * modules/math (Makefile.am): Likewise.
21086         * modules/netdb (Makefile.am): Likewise.
21087         * modules/netinet_in (Makefile.am): Likewise.
21088         * modules/poll-h (Makefile.am): Likewise.
21089         * modules/pthread (Makefile.am): Likewise.
21090         * modules/pty (Makefile.am): Likewise.
21091         * modules/sched (Makefile.am): Likewise.
21092         * modules/search (Makefile.am): Likewise.
21093         * modules/selinux-h (Makefile.am): Likewise.
21094         * modules/signal (Makefile.am): Likewise.
21095         * modules/spawn (Makefile.am): Likewise.
21096         * modules/stdarg (Makefile.am): Likewise.
21097         * modules/stddef (Makefile.am): Likewise.
21098         * modules/stdint (Makefile.am): Likewise.
21099         * modules/stdio (Makefile.am): Likewise.
21100         * modules/stdlib (Makefile.am): Likewise.
21101         * modules/string (Makefile.am): Likewise.
21102         * modules/strings (Makefile.am): Likewise.
21103         * modules/sys_file (Makefile.am): Likewise.
21104         * modules/sys_ioctl (Makefile.am): Likewise.
21105         * modules/sys_select (Makefile.am): Likewise.
21106         * modules/sys_socket (Makefile.am): Likewise.
21107         * modules/sys_stat (Makefile.am): Likewise.
21108         * modules/sys_time (Makefile.am): Likewise.
21109         * modules/sys_times (Makefile.am): Likewise.
21110         * modules/sys_uio (Makefile.am): Likewise.
21111         * modules/sys_utsname (Makefile.am): Likewise.
21112         * modules/sys_wait (Makefile.am): Likewise.
21113         * modules/sysexits (Makefile.am): Likewise.
21114         * modules/termios (Makefile.am): Likewise.
21115         * modules/time (Makefile.am): Likewise.
21116         * modules/unistd (Makefile.am): Likewise.
21117         * modules/wchar (Makefile.am): Likewise.
21118         * modules/wctype-h (Makefile.am): Likewise.
21119         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21120
21121 2011-05-29  Bruno Haible  <bruno@clisp.org>
21122
21123         assert-h: Allow multiple gnulib generated replacements to coexist.
21124         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21125
21126 2011-05-29  Bruno Haible  <bruno@clisp.org>
21127
21128         argp: Allow coexistence with strerror_r-posix module.
21129         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21130         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21131         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21132         not the glibc signature.
21133
21134 2011-05-28  Bruno Haible  <bruno@clisp.org>
21135
21136         gnulib-tool: Alternative structure of testdirs, similar to --import.
21137         * gnulib-tool: New option --single-configure.
21138         (func_usage): Document it.
21139         (single_configure): New variable.
21140         (func_modules_transitive_closure_separately,
21141         func_modules_transitive_closure_separately,
21142         func_determine_use_libtests, func_modules_add_dummy_separately,
21143         func_modules_to_filelist_separately): New functions, extracted from
21144         func_import.
21145         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21146         (func_import): Use the new functions.
21147         (func_create_testdir): Set final_modules. Handle $single_configure =
21148         true case.
21149
21150 2011-05-28  Bruno Haible  <bruno@clisp.org>
21151
21152         getloadavg: Remove an unreliable safety check.
21153         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21154         getloadavg.c is in place.
21155         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21156         Reported by Sam Steingold <sds@gnu.org>.
21157
21158 2011-05-28  Bruno Haible  <bruno@clisp.org>
21159
21160         doc: Cleanup yet another file produced by texinfo.tex.
21161         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21162
21163 2011-05-28  Bruno Haible  <bruno@clisp.org>
21164
21165         Finish the conditional dependencies mechanism.
21166         * gnulib-tool: New option --no-conditional-dependencies.
21167         (func_usage): Document it. Don't mark --conditional-dependencies as
21168         experimental.
21169         (cond_dependencies): The possible values can now be true, false, empty.
21170         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21171         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21172         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21173
21174 2011-05-28  Bruno Haible  <bruno@clisp.org>
21175
21176         doc: Use a recent texinfo.tex.
21177         * doc/Makefile (tex_opts): New variable.
21178         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21179
21180 2011-05-28  Jim Meyering  <meyering@redhat.com>
21181
21182         intprops.h: adjust comment to match code change
21183         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21184         only once, it *may* have side effects.  Also fix an unrelated typo.
21185         (_GL_INT_SIGNED): Likewise.
21186
21187 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21188
21189         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21190
21191 2011-05-26  Bruno Haible  <bruno@clisp.org>
21192
21193         mbsrchr: Avoid collision with system function on Interix.
21194         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21195         Reported by Markus Duft <mduft@gentoo.org>.
21196
21197 2011-05-15  James Youngman  <jay@gnu.org>
21198
21199         getopt: for ambiguous options, enumerate the possibilities.
21200         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21201         the ambiguous options when an ambiguous prefix is given. This was
21202         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21203         glibc change was
21204         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21205
21206 2011-05-25  Eric Blake  <eblake@redhat.com>
21207
21208         getcwd: work around mingw bug
21209         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21210         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21211         Reported by Matthias Bolte.
21212
21213 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21214
21215         test-intprops: disable -Wtype-limits diagnostics
21216         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21217         diagnostics.  Otherwise, the integer overflow macros generate many
21218         diagnostics.  Reported by Jim Meyering in
21219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21220
21221         intprops: shorten, to pacify gcc -Woverlength-strings
21222         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21223         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21224         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21225         likely to run afoul of C compiler limits for string constant lengths.
21226         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21227
21228 2011-05-24  Eric Blake  <eblake@redhat.com>
21229
21230         docs: document recently fixed glibc printf bug
21231         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21232         * doc/posix-functions/printf.texi (printf): Likewise.
21233         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21234         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21235
21236         closein-tests: convert to init.sh
21237         * modules/closein-tests (Files): Add init.sh
21238         * tests/test-closein.sh Use it.
21239
21240         yesno-tests: convert to init.sh
21241         * modules/yesno-tests (Files): Add init.sh.
21242         * tests/test-yesno.sh: Use it.
21243
21244         atexit-tests: ensure reliable exit status
21245         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21246         Reported by Bruno Haible.
21247
21248 2011-05-24  Bruno Haible  <bruno@clisp.org>
21249
21250         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21252         gl_PREREQ_STRERROR_R invocations from here...
21253         * modules/strerror_r-posix (configure.ac): ... to here.
21254
21255 2011-05-24  Eric Blake  <eblake@redhat.com>
21256
21257         strerror_r: fix missing header
21258         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21259
21260         strerror_r: fix AIX test failures
21261         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21262         ERANGE failure.
21263
21264         strerror_r: fix Solaris test failures
21265         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21266         failures.
21267         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21268
21269         strerror_r: enforce POSIX recommendations
21270         * lib/strerror_r.c (safe_copy): New helper method.
21271         (strerror_r): Guarantee a non-empty string.
21272         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21273         recent POSIX rulings and to match our strerror guarantees.
21274         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21275
21276 2011-05-24  Jim Meyering  <meyering@redhat.com>
21277
21278         test-perror2.c: avoid warning about unused variable
21279         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21280
21281 2011-05-24  Eric Blake  <eblake@redhat.com>
21282
21283         perror: avoid spurious test failure on HP-UX
21284         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21285
21286         tests: fix logic bug in init.sh
21287         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21288         shell.
21289
21290 2011-05-24  Jim Meyering  <meyering@redhat.com>
21291
21292         utimensat: do not reference an out-of-scope buffer
21293         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21294         declared in an inner scope, yet "times" would be dereferenced outside
21295         the scope in which "ts" was valid.
21296         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21297         of ts[2] "out/up", so that the use of aliased "times" (via
21298         "times = ts;") does not end up referencing an out-of-scope "ts"
21299
21300         opendir-safer.c: don't clobber errno; don't close negative FD
21301         * lib/opendir-safer.c (opendir_safer):
21302         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21303         file descriptor, and more importantly, don't clobber the
21304         offending errno value with EINVAL.  Before, upon failure
21305         of dup_safer, we would pass the negative file descriptor to
21306         fdopendir, which would clobber errno.
21307
21308 2011-05-23  Bruno Haible  <bruno@clisp.org>
21309
21310         idcache: Fix module description.
21311         * modules/idcache (Include): Set to "idcache.h".
21312
21313 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21314
21315         gnulib-tool: fix portability problem with MacOS sed
21316         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21317         before the "}".  Problem reported by Leo in
21318         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21319         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21320         sed_extract_condition1, sed_extract_condition2.
21321
21322 2011-05-23  Bruno Haible  <bruno@clisp.org>
21323
21324         hash: Simplify autoconf macro.
21325         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21326
21327 2011-05-23  Bruno Haible  <bruno@clisp.org>
21328
21329         getugroups: Fix module description.
21330         * modules/getugroups (Include): Set to "getugroups.h".
21331
21332 2011-05-23  Bruno Haible  <bruno@clisp.org>
21333
21334         linkat: Simplify autoconf macro.
21335         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21336
21337 2011-05-23  Bruno Haible  <bruno@clisp.org>
21338             Eric Blake  <eblake@redhat.com>
21339
21340         linkat, renameat: Update dependencies.
21341         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21342         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21343         symlinkat.
21344
21345 2011-05-23  Jim Meyering  <meyering@redhat.com>
21346
21347         maint.mk: more tight_scope improvements
21348         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21349         (_gl_TS_headers): Define only in if-0'd block.
21350         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21351         sometimes we must *not* use it.  Adjust uses accordingly.
21352         (sc_tight_scope): Use much simpler grep-based test to determine
21353         whether we skip this rule.
21354
21355         maint.mk: generalize/improve the tight-scope rule
21356         * top/maint.mk: Emit a warning when the test is skipped.
21357         (_gl_TS_dir): Add $(srcdir)/ prefix.
21358         (_gl_TS_function_match): Simplify, rather than trying
21359         to enumerate common types.  Otherwise, it would fail to match an
21360         "extern unsigned char const *" declaration in idutils.
21361         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21362         a way to support use of that type of macro.
21363         (_gl_TS_var_match): Simplify regexp.
21364         (_gl_TS_obj_files): New configurable variable.
21365         (_gl_TS_headers): Likewise.
21366
21367 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21368
21369         verify: fix bug when gnulib <assert.h> is also included
21370         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21371         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21372         Perhaps there's a better way, but this fixes the immediate problem.
21373         Problem reported by Bruno Haible in
21374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21375
21376 2011-05-22  Bruno Haible  <bruno@clisp.org>
21377
21378         xgetcwd: Simplify autoconf macro.
21379         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21380
21381 2011-05-22  Bruno Haible  <bruno@clisp.org>
21382
21383         New module 'mktime-internal'.
21384         * modules/mktime-internal: New file.
21385         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21386         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21387         mktime_internal as a C macro if libc has __mktime_internal.
21388         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21389         conditions.
21390         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21391
21392 2011-05-22  Bruno Haible  <bruno@clisp.org>
21393
21394         timegm: Correct mktime replacement statements.
21395         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21396         defining mktime as a C macro. This completes a 2009-07-28 commit.
21397
21398 2011-05-22  Bruno Haible  <bruno@clisp.org>
21399
21400         timegm: Simplify autoconf macro.
21401         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21402
21403 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         clock-time: change to LGPLv2+.
21406         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21407         BSD-like but we have no mark for that; this is good enough for now.
21408
21409 2011-05-21  Bruno Haible  <bruno@clisp.org>
21410
21411         strerror_r: Fix comments.
21412         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21413
21414 2011-05-21  Bruno Haible  <bruno@clisp.org>
21415
21416         relocatable-prog-wrapper: Fix possible link error.
21417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21418         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21419         (gl_FUNC_SETENV): ... to here.
21420         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21421         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21422
21423 2011-05-21  Bruno Haible  <bruno@clisp.org>
21424
21425         relocatable-prog-wrapper: Assume strerror() exists.
21426         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21427         m4/strerror.m4.
21428         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21429         * lib/relocwrapper.c: Remove mention of strerror module.
21430         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21431         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21432         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21433         C macro.
21434
21435 2011-05-21  Bruno Haible  <bruno@clisp.org>
21436
21437         select: Simplify replacement idiom.
21438         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21439         Win32 platforms.
21440         * lib/sys_select.in.h (select): Simplify accordingly.
21441         * modules/select (Depends-on): Likewise.
21442
21443 2011-05-21  Bruno Haible  <bruno@clisp.org>
21444
21445         mkdir-p: Simplify autoconf macro.
21446         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21447         gl_FUNC_LCHOWN.
21448
21449 2011-05-21  Eric Blake  <eblake@redhat.com>
21450
21451         strerror_r: avoid clobbering strerror on cygwin
21452         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21453         fall back instead to sys_errlist.
21454         * modules/strerror (configure.ac): Add witness.
21455         * tests/test-strerror_r.c (main): Enhance test.
21456         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21457         * tests/test-perror2.c (main): Free memory before exit.
21458
21459 2011-05-21  Bruno Haible  <bruno@clisp.org>
21460
21461         mkdtemp: Use gnulib naming conventions.
21462         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21463         * modules/mkdtemp (configure.ac): Update.
21464
21465 2011-05-20  Eric Blake  <eblake@redhat.com>
21466
21467         strerror_r: avoid corrupting errno on Solaris
21468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21469         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21470
21471         strerror_r: avoid compiler warning
21472         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21473
21474         strerror_r: simplify AIX code
21475         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21476
21477         test-perror: avoid spurious failure on FreeBSD
21478         * modules/perror-tests (Depends-on): Add strerror, now that
21479         strerror_r no longer pulls it in.
21480
21481 2011-05-20  Bruno Haible  <bruno@clisp.org>
21482
21483         strerror_r-posix: Remove unused dependencies.
21484         * modules/strerror_r-posix (Depends-on): Remove strerror.
21485         Reported by Eric Blake.
21486
21487 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21488
21489         intprops: remove assumption about A|B representation
21490         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21491         is a valid integer if both A and B are.  Although this is true for
21492         all known practical hosts, the C standard doesn't guarantee it,
21493         and the code need not assume it.  Also, this change may work around
21494         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21496
21497 2011-05-20  Eric Blake  <eblake@redhat.com>
21498
21499         perror: work around FreeBSD bug
21500         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21501         is broken.  Move AC_LIBOBJ...
21502         * modules/perror (configure.ac): Here.
21503         * doc/posix-functions/perror.texi (perror): Document this.
21504         * tests/test-perror2.c (main): Enhance test.
21505
21506         test-perror: check for strerror interactions
21507         * tests/macros.h (STREQ): Add macro.
21508         * modules/perror-tests (Files): Add second test.
21509         * tests/test-perror2.c (main): New file.
21510         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21511
21512         test-perror: rewrite to use init script
21513         * modules/perror-tests (Files): Add init.sh.
21514         * tests/test-perror.sh: Use temporary directory.
21515
21516 2011-05-20  Jim Meyering  <meyering@redhat.com>
21517
21518         maint: replace misused "a" with "an"
21519         * doc/intprops.texi: "a integer"
21520         * doc/regex.texi: "a explanation"
21521         * lib/alignof.h: "a object"
21522         * lib/argmatch.h: "a explanation"
21523         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21524         * lib/stdint.in.h: "a integer"
21525         * lib/userspec.c: "a owner"
21526         * doc/gnulib.texi: Fix "a idea", and reword.
21527
21528 2011-05-19  Jim Meyering  <meyering@redhat.com>
21529
21530         maint: correct misuse of "a" and "an"
21531         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21532         * lib/argp-help.c: "an docum...": s/an/a/
21533         * lib/argp-parse.c: "An vector": s/An/A/
21534         * lib/execute.c: "an native": s/an/a/
21535         * lib/spawn-pipe.c: Likewise.
21536         * lib/gc.h: "an Gc_rc": s/an/a/
21537         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21538         * lib/fts.c: "an stat.st_dev": s/an/a/
21539
21540 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21541
21542         intprops-tests: work around HP-UX 11.23 cc bug with constants
21543         * tests/test-intprops.c (VERIFY): New macro.
21544         (main): Use it, instead of verify, to work around the compiler bug; see
21545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21546
21547         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21548         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21549         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21550         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21551         (_GL_REMAINDER_OVERFLOW): Use it.
21552
21553         intprops-tests: revert unsigned part of previous change
21554         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21555         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21556         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21558
21559 2011-05-19  Bruno Haible  <bruno@clisp.org>
21560
21561         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21562         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21563         strerror_r() returned without filling the buffer.
21564         Reported by Eric Blake.
21565
21566 2011-05-19  Eric Blake  <eblake@redhat.com>
21567
21568         strerror_r: guarantee unchanged errno
21569         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21570         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21571         failure.
21572         * tests/test-strerror_r.c (main): Enhance test.
21573
21574 2011-05-19  Bruno Haible  <bruno@clisp.org>
21575
21576         strerror_r: Reorder #if blocks.
21577         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21578         for consistency with the previous commit.
21579
21580 2011-05-19  Bruno Haible  <bruno@clisp.org>
21581
21582         perror: Avoid clobbering the strerror buffer when possible.
21583         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21584         * lib/strerror.c: Include it.
21585         * modules/strerror (Files): Add lib/strerror-impl.h.
21586         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21587         (my_strerror): New function, defined through lib/strerror-impl.h.
21588         (perror): Use it instead of strerror.
21589         * modules/perror (Files): Add lib/strerror-impl.h.
21590         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21591
21592 2011-05-19  Eric Blake  <eblake@redhat.com>
21593
21594         strerror_r: fix on newer cygwin
21595         * lib/strerror_r.c (strerror_r): Cygwin now has
21596         __xpg_strerror_r, use it.
21597
21598 2011-05-19  Bruno Haible  <bruno@clisp.org>
21599
21600         strerror_r: Avoid clobbering the strerror buffer when possible.
21601         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21602         (sys_nerr, sys_errlist): New declarations.
21603         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21604         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21605         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21606
21607 2011-05-19  Bruno Haible  <bruno@clisp.org>
21608
21609         strerror_r: Fix test failure on mingw.
21610         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21611         EXTEND_STRERROR_R.
21612         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21613         macros from errno.in.h instead.
21614
21615 2011-05-19  Eric Blake  <eblake@redhat.com>
21616
21617         strerror: relax test for Solaris
21618         * tests/test-strerror.c (main): Permit Solaris behavior.
21619         * tests/test-strerror_r.c (main): Likewise.
21620
21621         strerror: enforce POSIX ruling on strerror(0)
21622         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21624         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21625         * doc/posix-functions/strerror.texi (strerror): Document it.
21626         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21627         * tests/test-strerror.c (main): Strengthen test.
21628         * tests/test-strerror_r.c (main): Likewise.
21629
21630 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21631
21632         intprop-tests: port to older and more-pedantic compilers
21633         * modules/intprops-tests (Files): Add tests/macros.h.
21634         * tests/test-intprops.c: Include macros.h.
21635         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21636         it's no longer documented to expand to an integer constant expression.
21637         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21638         argument is floating point, as it's no longer documented to expand
21639         to an integer constant expression in that case.
21640         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21641         compiler bugs reported by Bruno Haible.  See
21642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21643         (U0, U1): New constants, to work around the same bugs.  Also,
21644         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21645
21646         intprops: work around C compiler bugs
21647         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21648         bug in Sun C 5.11 2010/08/13 and other compilers; see
21649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21650
21651         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21652         * doc/intprops.texi (Integer Type Determination): Fix
21653         documentation for TYPE_IS_INTEGER: it returns an constant
21654         expression, not an integer constant expression.  Fix doc for
21655         TYPE_SIGNED: it returns an integer constant expression only if its
21656         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21657         hardly worth documented that way....)
21658
21659 2011-05-18  Bruno Haible  <bruno@clisp.org>
21660
21661         strerror_r: Avoid clobbering the strerror buffer when possible.
21662         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21663         Handle gnulib defined errno values here. When strerror() returns NULL
21664         or an empty string, return EINVAL.
21665         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21666         gnulib defined errno values here.
21667         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21668
21669 2011-05-18  Eric Blake  <eblake@redhat.com>
21670
21671         fnmatch: avoid compiler warning
21672         * lib/fnmatch_loop.c (FCT): Use correct type.
21673         Reported by Matthias Bolte.
21674
21675 2011-05-13  Jim Meyering  <meyering@redhat.com>
21676
21677         maint.mk: three new prohibit_<HDR>_without_use rules
21678         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21679         (sc_prohibit_stdio-safer_without_use): Likewise.
21680         (sc_prohibit_xfreopen_without_use): Likewise.
21681
21682 2011-05-17  Jim Meyering  <meyering@redhat.com>
21683
21684         announce-gen: fail if the NEWS delta is empty
21685         If there's nothing noteworthy in NEWS, then either you forgot
21686         or you shouldn't be releasing.
21687         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21688
21689 2011-05-17  Pádraig Brady <P@draigBrady.com>
21690
21691         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21692         reserved symbols starting with double underscore from the check.
21693
21694 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         intprops: add doc
21697         * doc/intprops.texi: New file, documenting intprops.
21698         * doc/gnulib.texi (Particular Modules): Include it.
21699
21700         verify: add doc to gnulib manual and fix example
21701         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21702         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21703         (Compile-time Assertions): Fix example so it can't overflow.
21704
21705 2011-05-17  Jim Meyering  <meyering@redhat.com>
21706
21707         warnings.m4: don't usurp save_CPPFLAGS variable name
21708         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21709
21710         doc: fix typo
21711         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21712
21713 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21714             Bruno Haible  <bruno@clisp.org>
21715
21716         doc: Tweak recent change.
21717         * README (Portability guidelines): Tweak new text.
21718         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21719         Interix 6.1.
21720
21721 2011-05-16  Eric Blake  <eblake@redhat.com>
21722
21723         inttypes: avoid autoconf warning
21724         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21725         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21726
21727 2011-05-16  Sam Steingold <sds@gnu.org>
21728         and Eric Blake  <eblake@redhat.com>
21729
21730         vc-list-files: accept multiple directory operands
21731         * build-aux/vc-list-files: Iterate over all remaining operands.
21732
21733 2011-05-16  Bruno Haible  <bruno@clisp.org>
21734
21735         Fix confusion regarding deprecated modules.
21736         * modules/calloc (Status, Notice): Mark module as deprecated, not
21737         obsolete.
21738         * modules/fnmatch-posix (Status, Notice): Likewise.
21739         * modules/getdate (Status, Notice): Likewise.
21740         * modules/getopt (Status, Notice): Likewise.
21741         * modules/malloc (Status, Notice): Likewise.
21742         * modules/pipe (Status, Notice): Likewise.
21743         * modules/realloc (Status, Notice): Likewise.
21744         * modules/rename-dest-slash (Status, Notice): Likewise.
21745         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21746         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21747         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21748         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21749         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21750
21751 2011-05-16  Bruno Haible  <bruno@clisp.org>
21752
21753         doc: List the target platforms.
21754         * doc/gnulib-intro.texi (Target Platforms): New section.
21755         * doc/gnulib.texi (Introduction): Update menu.
21756         * README (Portability guidelines): Refer to the new section. Update
21757         statement about oldest supported environment. Remove rationale why
21758         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21759         unportable C89 function.
21760         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21761         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21762
21763 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21764
21765         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21766
21767 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21768
21769         intprops-tests: new module
21770         * modules/intprops-tests, tests/test-intprops.c: New files.
21771
21772         intprops: add safe, portable integer overflow checking
21773         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21774         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21775         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21776         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21777         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21778         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21779         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21780         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21781         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21782         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21783         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21784
21785 2011-05-12  James Youngman  <jay@gnu.org>
21786
21787         Add a test for glibc's Bugzilla bug #12378.
21788         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21789         doesn't allow the literal matching of a lone "[" (which is
21790         required by POSIX).
21791         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21792
21793 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21794
21795         Sync glibc change fixing Bugzilla bug #12378.
21796         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21797         beginning and fall back to matching as normal character if the
21798         string ends before the matching ']' is found.  This is what POSIX
21799         requires.
21800
21801 2011-05-13  Eric Blake  <eblake@redhat.com>
21802
21803         getcwd-lgpl: relax test for FreeBSD
21804         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21805         issue.
21806         * tests/test-getcwd-lgpl.c (main): Relax test.
21807         Reported by Matthias Bolte.
21808
21809 2011-05-11  Eric Blake  <eblake@redhat.com>
21810
21811         test-fflush: silence compiler warning
21812         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21813
21814 2011-05-11  Bruno Haible  <bruno@clisp.org>
21815
21816         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21817         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21818         * modules/canonicalize (Depends-on): Add 'nocrash'.
21819         * modules/canonicalize-lgpl (Depends-on): Likewise.
21820         * doc/posix-functions/realpath.texi: Update platforms list.
21821         Reported by Ryan Schmidt <ryandesign@macports.org>.
21822
21823 2011-05-11  Bruno Haible  <bruno@clisp.org>
21824
21825         group-member: Declare function in <unistd.h>.
21826         * lib/unistd.in.h (group_member): New declaration.
21827         * lib/group-member.h: Remove file.
21828         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21829         * tests/test-unistd-c++.cc: Check signature of group_member.
21830         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21831         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21832         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21833         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21834         HAVE_GROUP_MEMBER.
21835         * modules/group-member (Files): Remove lib/group-member.h.
21836         (Depends-on): Add unistd. Specify conditions.
21837         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21838         (Include): Change to <unistd.h>.
21839         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21840         HAVE_GROUP_MEMBER.
21841         * NEWS: Mention the change.
21842         * lib/euidaccess.c: Don't include group-member.h.
21843
21844 2011-05-11  Bruno Haible  <bruno@clisp.org>
21845
21846         group-member: Document module.
21847         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21848         module.
21849
21850 2011-05-11  Bruno Haible  <bruno@clisp.org>
21851
21852         fclose: Fix mistake earlier today.
21853         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21854
21855 2011-05-11  Eric Blake  <eblake@redhat.com>
21856
21857         fclose: preserve fflush errors
21858         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21859         Reported by Jim Meyering.
21860
21861         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21862         * build-aux/bootstrap (check_versions): When no specific version
21863         is required, merely check that the app produces an exit status
21864         that indicates its existence.
21865
21866         maint.mk: drop redundant check
21867         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21868         the same but better.
21869
21870 2011-05-11  Bruno Haible  <bruno@clisp.org>
21871
21872         fclose: Fix possible link error.
21873         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21874         unregister_shadow_fd. Improve comments.
21875         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21876         Eric Blake.
21877
21878 2011-05-11  Jim Meyering  <meyering@redhat.com>
21879
21880         maint.mk: improve "can not" detection and generalize rule name
21881         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21882         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21883         Use the same technique as in sc_prohibit_doubled_word, so that
21884         we recognize "can not" also when the words are separated by a newline.
21885         Suggested by Eric Blake.
21886         (perl_filename_lineno_text_): Define.  Factored out of...
21887         (prohibit_doubled_word_): ...here.  Use the new definition.
21888         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21889         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21890         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21891
21892 2011-05-10  Eric Blake  <eblake@redhat.com>
21893
21894         fclose: avoid double close race when possible
21895         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21896         all but WINDOWS_SOCKETS.
21897
21898 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21899
21900         openat: correct new comment
21901         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21902
21903 2011-05-10  Jim Meyering  <meyering@redhat.com>
21904
21905         openat: add comments
21906         * lib/openat-proc.c (openat_proc_name): Add comments,
21907         mostly from Eric Blake.
21908
21909 2011-05-09  Eric Blake  <eblake@redhat.com>
21910
21911         openat: reduce syscalls in first probe of /proc
21912         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21913         be a directory.  Simplify the probe for .. bugs.
21914         * modules/openat (Depends-on): Drop same-inode.
21915         Reported by Bastien ROUCARIES.
21916
21917 2011-05-09  Jim Meyering  <meyering@redhat.com>
21918
21919         maint.mk: change semantics/name of tight_scope variables
21920         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21921         Rename variables to align with semantics that make them more useful.
21922
21923         maint.mk: tweak new rule's name not to impinge
21924         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21925         (sc_tight_scope): Use new rule name rather than $@-0.
21926
21927         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21928         * top/maint.mk (sc_tight_scope): New rule.
21929         (sc_tight_scope-0): New rule, ifdef'd out.
21930         (_gl_TS_dir): Default.
21931         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21932         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21933
21934 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21935
21936         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21937         Haible <bruno@clisp.org>.
21938
21939 2011-05-08  Bruno Haible  <bruno@clisp.org>
21940
21941         Comments.
21942         * m4/isnanf.m4: Add comment.
21943         * m4/isnanl.m4: Likewise.
21944
21945 2011-05-08  Bruno Haible  <bruno@clisp.org>
21946
21947         glob: Remove obsolete macro.
21948         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21949
21950 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21951
21952         intprops: Sun C 5.11 supports __typeof__
21953         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21954         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21955         which is new.
21956         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21957
21958         intprops: switch to usual gnulib indenting and naming
21959         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21960         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21961
21962         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21963
21964 2011-05-08  Jim Meyering  <meyering@redhat.com>
21965
21966         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21967         * top/maint.mk (release-prep): Use make's --no-print-directory
21968         option when generating the announcement.  This eliminates the
21969         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21970         generated announcement template.
21971
21972 2011-05-08  Bruno Haible  <bruno@clisp.org>
21973
21974         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21975         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21976         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21977
21978 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21979
21980         ignore-value, verify: Omit include files from lib_SOURCES.
21981         * modules/ignore-value, modules/verify (Makefile.am):
21982         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21983         that leads Automake to duplicate use of am__objects_... variables
21984         in Makefile.in.  See
21985         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21986
21987 2011-05-07  Bruno Haible  <bruno@clisp.org>
21988
21989         fclose: Simplify autoconf macro.
21990         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21991         defined.
21992
21993 2011-05-07  Bruno Haible  <bruno@clisp.org>
21994
21995         canonicalize-lgpl: Fix autoconf macro ordering bug.
21996         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21997         gl_STDLIB_H_DEFAULTS.
21998
21999 2011-05-06  Eric Blake  <eblake@redhat.com>
22000
22001         maintainer-makefile: make sc_po_check easier to tune
22002         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22003         to probe for strings, such as an alternate location for gnulib.
22004
22005         fclose: guarantee behavior on seekable stdin
22006         * modules/fclose (Depends-on): Add fflush.
22007         * doc/posix-functions/fclose.texi (fclose): Document this.
22008         * tests/test-fclose.c (main): Make test for this unconditional.
22009
22010 2011-05-06  Bruno Haible  <bruno@clisp.org>
22011
22012         fflush, fpurge: Relicense under LGPLv2+.
22013         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22014         * modules/fpurge (License): Likewise.
22015         With permission from Eric Blake and Jim Meyering.
22016         Suggested by Eric Blake.
22017
22018 2011-05-06  Karl Berry  <karl@gnu.org>
22019
22020         * MODULES.html.sh (func_all_modules): remove exit.
22021
22022 2011-05-06  Jim Meyering  <meyering@redhat.com>
22023
22024         maint.mk: use info-gnu@ as the default only for a stable release
22025         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22026         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22027         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22028         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22029
22030 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22031
22032         assert-h: new module, which supports C1X-style static_assert
22033         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22034         * lib/verify.h: Revamp so that this can be copied into assert.h,
22035         while retaining the ability to use it standalone as before.
22036         Rename private identifiers so as not to encroach on the
22037         standard C namespace, since this is now used by assert.h.
22038         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22039         the old verify_true.
22040         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22041         the old verify_true.  Use _GL_VERIFY_TYPE.
22042         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22043         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22044         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22045         defined when this file is copied into the replacement assert.h.
22046         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22047         and _Static_assert is not built in.
22048         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22049         defined, and use the new macros mentioned above.
22050         * doc/posix-headers/assert.texi: Document this.
22051
22052 2011-05-05  Bruno Haible  <bruno@clisp.org>
22053
22054         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22055         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22056         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22057         gl_REPLACE_FCLOSE here.
22058         * modules/fflush (Depends-on): Remove fclose.
22059         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22060         combination with module 'fclose'.
22061
22062 2011-05-05  Bruno Haible  <bruno@clisp.org>
22063
22064         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22065         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22066         gl_FUNC_FFLUSH.
22067         (gl_FUNC_FFLUSH): Use it.
22068         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22069         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22070         gl_REPLACE_FSEEKO here.
22071
22072 2011-05-05  Bruno Haible  <bruno@clisp.org>
22073
22074         tzset: Relicense under LGPL.
22075         * modules/tzset (License): Change to LGPL.
22076         No agreement needed; it's a no-op.
22077
22078         strtoimax, strtoumax: Relicense under LGPL.
22079         * modules/strtoimax (License): Change to LGPL.
22080         * modules/strtoumax (License): Likewise.
22081         With permission from Jim Meyering, Paul Eggert:
22082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22084
22085         getgroups: Relicense under LGPL.
22086         * modules/getgroups (License): Change to LGPL.
22087         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22091
22092         nanosleep: Relicense under LGPL.
22093         * modules/nanosleep (License): Change to LGPL.
22094         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22095         Haible:
22096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22100
22101         futimens: Relicense under LGPL.
22102         * modules/futimens (License): Change to LGPL.
22103         With permission from Eric Blake:
22104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22105
22106         fflush: Relicense under LGPL.
22107         * modules/fflush (License): Change to LGPL.
22108         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22112
22113         tmpfile: Relicense under LGPL.
22114         * modules/tmpfile (License): Change to LGPL.
22115         With permission from Ben Pfaff:
22116         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22117
22118         isfinite: Relicense under LGPL.
22119         * modules/isfinite (License): Change to LGPL.
22120         With permission from Ben Pfaff, Bruno Haible:
22121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22123
22124         acosl..tanl: Relicense under LGPL.
22125         * modules/acosl (License): Change to LGPL.
22126         * modules/asinl (License): Likewise.
22127         * modules/atanl (License): Likewise.
22128         * modules/cosl (License): Likewise.
22129         * modules/expl (License): Likewise.
22130         * modules/logl (License): Likewise.
22131         * modules/sinl (License): Likewise.
22132         * modules/sqrtl (License): Likewise.
22133         * modules/tanl (License): Likewise.
22134         Source code originally from glibc and Paolo Bonzini. Agreements:
22135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22137
22138 2011-05-05  Bruno Haible  <bruno@clisp.org>
22139
22140         signal: Define sighandler_t.
22141         * lib/signal.in.h (sighandler_t): New type.
22142         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22143         whether sighandler_t is defined.
22144         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22145         * modules/signal (Depends-on): Add extensions.
22146         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22147         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22148         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22149
22150 2011-05-05  Eric Blake  <eblake@redhat.com>
22151
22152         maint: remove useless REPLACE_*_H macros
22153         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22154         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22155         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22156         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22157         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22158         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22159         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22160         * m4/btowc.m4: Update callers.
22161         * m4/dirfd.m4: Likewise.
22162         * m4/duplocale.m4: Likewise.
22163         * m4/fchdir.m4: Likewise.
22164         * m4/fdopendir.m4: Likewise.
22165         * m4/inet_ntop.m4: Likewise.
22166         * m4/inet_pton.m4: Likewise.
22167         * m4/ioctl.m4: Likewise.
22168         * m4/mbrlen.m4: Likewise.
22169         * m4/mbrtowc.m4: Likewise.
22170         * m4/mbsinit.m4: Likewise.
22171         * m4/mbsnrtowcs.m4: Likewise.
22172         * m4/mbsrtowcs.m4: Likewise.
22173         * m4/poll.m4: Likewise.
22174         * m4/setlocale.m4: Likewise.
22175         * m4/wcrtomb.m4: Likewise.
22176         * m4/wcsnrtombs.m4: Likewise.
22177         * m4/wcsrtombs.m4: Likewise.
22178         * m4/wctob.m4: Likewise.
22179         * m4/wcwidth.m4: Likewise.
22180         * modules/posix_spawn: Likewise.
22181         * modules/posix_spawn_file_actions_addclose: Likewise.
22182         * modules/posix_spawn_file_actions_adddup2: Likewise.
22183         * modules/posix_spawn_file_actions_addopen: Likewise.
22184         * modules/posix_spawn_file_actions_destroy: Likewise.
22185         * modules/posix_spawn_file_actions_init: Likewise.
22186         * modules/posix_spawnattr_destroy: Likewise.
22187         * modules/posix_spawnattr_getflags: Likewise.
22188         * modules/posix_spawnattr_getpgroup: Likewise.
22189         * modules/posix_spawnattr_getschedparam: Likewise.
22190         * modules/posix_spawnattr_getschedpolicy: Likewise.
22191         * modules/posix_spawnattr_getsigdefault: Likewise.
22192         * modules/posix_spawnattr_getsigmask: Likewise.
22193         * modules/posix_spawnattr_init: Likewise.
22194         * modules/posix_spawnattr_setflags: Likewise.
22195         * modules/posix_spawnattr_setpgroup: Likewise.
22196         * modules/posix_spawnattr_setschedparam: Likewise.
22197         * modules/posix_spawnattr_setschedpolicy: Likewise.
22198         * modules/posix_spawnattr_setsigdefault: Likewise.
22199         * modules/posix_spawnattr_setsigmask: Likewise.
22200         * modules/posix_spawnp: Likewise.
22201
22202 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22203
22204         Add option to do-release-commit-and-tag to specify branch.
22205         * build-aux/do-release-commit-and-tag: Add --branch.
22206
22207 2011-05-03  Bruno Haible  <bruno@clisp.org>
22208
22209         Avoid unnecessary compilation units, through conditional dependencies.
22210         * modules/accept (Depends-on): Add conditions to the dependencies.
22211         * modules/acosl (Depends-on): Likewise.
22212         * modules/argz (Depends-on): Likewise.
22213         * modules/asinl (Depends-on): Likewise.
22214         * modules/atanl (Depends-on): Likewise.
22215         * modules/atoll (Depends-on): Likewise.
22216         * modules/bind (Depends-on): Likewise.
22217         * modules/btowc (Depends-on): Likewise.
22218         * modules/canonicalize-lgpl (Depends-on): Likewise.
22219         * modules/ceil (Depends-on): Likewise.
22220         * modules/ceilf (Depends-on): Likewise.
22221         * modules/ceill (Depends-on): Likewise.
22222         * modules/chdir-long (Depends-on): Likewise.
22223         * modules/chown (Depends-on): Likewise.
22224         * modules/close (Depends-on): Likewise.
22225         * modules/connect (Depends-on): Likewise.
22226         * modules/cosl (Depends-on): Likewise.
22227         * modules/dirfd (Depends-on): Likewise.
22228         * modules/dprintf (Depends-on): Likewise.
22229         * modules/dprintf-posix (Depends-on): Likewise.
22230         * modules/error (Depends-on): Likewise.
22231         * modules/euidaccess (Depends-on): Likewise.
22232         * modules/expl (Depends-on): Likewise.
22233         * modules/faccessat (Depends-on): Likewise.
22234         * modules/fchdir (Depends-on): Likewise.
22235         * modules/fclose (Depends-on): Likewise.
22236         * modules/fcntl (Depends-on): Likewise.
22237         * modules/fdopendir (Depends-on): Likewise.
22238         * modules/fflush (Depends-on): Likewise.
22239         * modules/floor (Depends-on): Likewise.
22240         * modules/floorf (Depends-on): Likewise.
22241         * modules/floorl (Depends-on): Likewise.
22242         * modules/fnmatch (Depends-on): Likewise.
22243         * modules/fopen (Depends-on): Likewise.
22244         * modules/fprintf-posix (Depends-on): Likewise.
22245         * modules/frexp (Depends-on): Likewise.
22246         * modules/frexp-nolibm (Depends-on): Likewise.
22247         * modules/frexpl (Depends-on): Likewise.
22248         * modules/frexpl-nolibm (Depends-on): Likewise.
22249         * modules/fseek (Depends-on): Likewise.
22250         * modules/fsusage (Depends-on): Likewise.
22251         * modules/ftell (Depends-on): Likewise.
22252         * modules/ftello (Depends-on): Likewise.
22253         * modules/futimens (Depends-on): Likewise.
22254         * modules/getcwd (Depends-on): Likewise.
22255         * modules/getcwd-lgpl (Depends-on): Likewise.
22256         * modules/getdelim (Depends-on): Likewise.
22257         * modules/getdomainname (Depends-on): Likewise.
22258         * modules/getgroups (Depends-on): Likewise.
22259         * modules/gethostname (Depends-on): Likewise.
22260         * modules/getline (Depends-on): Likewise.
22261         * modules/getlogin_r (Depends-on): Likewise.
22262         * modules/getopt-posix (Depends-on): Likewise.
22263         * modules/getpeername (Depends-on): Likewise.
22264         * modules/getsockname (Depends-on): Likewise.
22265         * modules/getsockopt (Depends-on): Likewise.
22266         * modules/getsubopt (Depends-on): Likewise.
22267         * modules/getusershell (Depends-on): Likewise.
22268         * modules/glob (Depends-on): Likewise.
22269         * modules/grantpt (Depends-on): Likewise.
22270         * modules/iconv_open (Depends-on): Likewise.
22271         * modules/iconv_open-utf (Depends-on): Likewise.
22272         * modules/inet_ntop (Depends-on): Likewise.
22273         * modules/inet_pton (Depends-on): Likewise.
22274         * modules/ioctl (Depends-on): Likewise.
22275         * modules/isapipe (Depends-on): Likewise.
22276         * modules/isfinite (Depends-on): Likewise.
22277         * modules/isinf (Depends-on): Likewise.
22278         * modules/lchown (Depends-on): Likewise.
22279         * modules/ldexpl (Depends-on): Likewise.
22280         * modules/link (Depends-on): Likewise.
22281         * modules/linkat (Depends-on): Likewise.
22282         * modules/listen (Depends-on): Likewise.
22283         * modules/logl (Depends-on): Likewise.
22284         * modules/lstat (Depends-on): Likewise.
22285         * modules/mbrlen (Depends-on): Likewise.
22286         * modules/mbrtowc (Depends-on): Likewise.
22287         * modules/mbsinit (Depends-on): Likewise.
22288         * modules/mbsnrtowcs (Depends-on): Likewise.
22289         * modules/mbsrtowcs (Depends-on): Likewise.
22290         * modules/mbtowc (Depends-on): Likewise.
22291         * modules/memcmp (Depends-on): Likewise.
22292         * modules/mkdir (Depends-on): Likewise.
22293         * modules/mkdtemp (Depends-on): Likewise.
22294         * modules/mkfifo (Depends-on): Likewise.
22295         * modules/mkfifoat (Depends-on): Likewise.
22296         * modules/mknod (Depends-on): Likewise.
22297         * modules/mkostemp (Depends-on): Likewise.
22298         * modules/mkostemps (Depends-on): Likewise.
22299         * modules/mkstemp (Depends-on): Likewise.
22300         * modules/mkstemps (Depends-on): Likewise.
22301         * modules/mktime (Depends-on): Likewise.
22302         * modules/nanosleep (Depends-on): Likewise.
22303         * modules/open (Depends-on): Likewise.
22304         * modules/openat (Depends-on): Likewise.
22305         * modules/perror (Depends-on): Likewise.
22306         * modules/poll (Depends-on): Likewise.
22307         * modules/popen (Depends-on): Likewise.
22308         * modules/posix_spawn (Depends-on): Likewise.
22309         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22310         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22311         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22312         * modules/posix_spawnp (Depends-on): Likewise.
22313         * modules/pread (Depends-on): Likewise.
22314         * modules/printf-posix (Depends-on): Likewise.
22315         * modules/ptsname (Depends-on): Likewise.
22316         * modules/putenv (Depends-on): Likewise.
22317         * modules/pwrite (Depends-on): Likewise.
22318         * modules/readline (Depends-on): Likewise.
22319         * modules/readlink (Depends-on): Likewise.
22320         * modules/readlinkat (Depends-on): Likewise.
22321         * modules/recv (Depends-on): Likewise.
22322         * modules/recvfrom (Depends-on): Likewise.
22323         * modules/regex (Depends-on): Likewise.
22324         * modules/remove (Depends-on): Likewise.
22325         * modules/rename (Depends-on): Likewise.
22326         * modules/renameat (Depends-on): Likewise.
22327         * modules/rmdir (Depends-on): Likewise.
22328         * modules/round (Depends-on): Likewise.
22329         * modules/roundf (Depends-on): Likewise.
22330         * modules/roundl (Depends-on): Likewise.
22331         * modules/rpmatch (Depends-on): Likewise.
22332         * modules/select (Depends-on): Likewise.
22333         * modules/send (Depends-on): Likewise.
22334         * modules/sendto (Depends-on): Likewise.
22335         * modules/setenv (Depends-on): Likewise.
22336         * modules/setlocale (Depends-on): Likewise.
22337         * modules/setsockopt (Depends-on): Likewise.
22338         * modules/shutdown (Depends-on): Likewise.
22339         * modules/sigaction (Depends-on): Likewise.
22340         * modules/signbit (Depends-on): Likewise.
22341         * modules/sigprocmask (Depends-on): Likewise.
22342         * modules/sinl (Depends-on): Likewise.
22343         * modules/sleep (Depends-on): Likewise.
22344         * modules/snprintf (Depends-on): Likewise.
22345         * modules/snprintf-posix (Depends-on): Likewise.
22346         * modules/socket (Depends-on): Likewise.
22347         * modules/sprintf-posix (Depends-on): Likewise.
22348         * modules/sqrtl (Depends-on): Likewise.
22349         * modules/stat (Depends-on): Likewise.
22350         * modules/strchrnul (Depends-on): Likewise.
22351         * modules/strdup-posix (Depends-on): Likewise.
22352         * modules/strerror (Depends-on): Likewise.
22353         * modules/strerror_r-posix (Depends-on): Likewise.
22354         * modules/strndup (Depends-on): Likewise.
22355         * modules/strnlen (Depends-on): Likewise.
22356         * modules/strptime (Depends-on): Likewise.
22357         * modules/strsep (Depends-on): Likewise.
22358         * modules/strsignal (Depends-on): Likewise.
22359         * modules/strstr-simple (Depends-on): Likewise.
22360         * modules/strtod (Depends-on): Likewise.
22361         * modules/strtoimax (Depends-on): Likewise.
22362         * modules/strtok_r (Depends-on): Likewise.
22363         * modules/strtoumax (Depends-on): Likewise.
22364         * modules/symlink (Depends-on): Likewise.
22365         * modules/symlinkat (Depends-on): Likewise.
22366         * modules/tanl (Depends-on): Likewise.
22367         * modules/tcgetsid (Depends-on): Likewise.
22368         * modules/tmpfile (Depends-on): Likewise.
22369         * modules/trunc (Depends-on): Likewise.
22370         * modules/truncf (Depends-on): Likewise.
22371         * modules/truncl (Depends-on): Likewise.
22372         * modules/uname (Depends-on): Likewise.
22373         * modules/unlink (Depends-on): Likewise.
22374         * modules/unlockpt (Depends-on): Likewise.
22375         * modules/unsetenv (Depends-on): Likewise.
22376         * modules/usleep (Depends-on): Likewise.
22377         * modules/utimensat (Depends-on): Likewise.
22378         * modules/vasprintf (Depends-on): Likewise.
22379         * modules/vdprintf (Depends-on): Likewise.
22380         * modules/vdprintf-posix (Depends-on): Likewise.
22381         * modules/vfprintf-posix (Depends-on): Likewise.
22382         * modules/vprintf-posix (Depends-on): Likewise.
22383         * modules/vsnprintf (Depends-on): Likewise.
22384         * modules/vsnprintf-posix (Depends-on): Likewise.
22385         * modules/vsprintf-posix (Depends-on): Likewise.
22386         * modules/wcrtomb (Depends-on): Likewise.
22387         * modules/wcscasecmp (Depends-on): Likewise.
22388         * modules/wcscspn (Depends-on): Likewise.
22389         * modules/wcsdup (Depends-on): Likewise.
22390         * modules/wcsncasecmp (Depends-on): Likewise.
22391         * modules/wcsnrtombs (Depends-on): Likewise.
22392         * modules/wcspbrk (Depends-on): Likewise.
22393         * modules/wcsrtombs (Depends-on): Likewise.
22394         * modules/wcsspn (Depends-on): Likewise.
22395         * modules/wcsstr (Depends-on): Likewise.
22396         * modules/wcstok (Depends-on): Likewise.
22397         * modules/wcswidth (Depends-on): Likewise.
22398         * modules/wctob (Depends-on): Likewise.
22399         * modules/wctomb (Depends-on): Likewise.
22400         * modules/wctype (Depends-on): Likewise.
22401         * modules/wcwidth (Depends-on): Likewise.
22402         * modules/write (Depends-on): Likewise.
22403
22404 2011-05-03  Bruno Haible  <bruno@clisp.org>
22405
22406         Support for conditional dependencies.
22407         * doc/gnulib.texi (Module description): Document the syntax of
22408         conditional dependencies.
22409         * gnulib-tool: New option --conditional-dependencies.
22410         (func_usage): Document it.
22411         (cond_dependencies): New variable.
22412         (func_get_automake_snippet_conditional,
22413         func_get_automake_snippet_unconditional): New functions, extracted from
22414         func_get_automake_snippet.
22415         (func_get_automake_snippet): Use them.
22416         (sed_first_32_chars): New variable.
22417         (func_module_shellfunc_name): New function.
22418         (func_module_shellvar_name): New function.
22419         (func_module_conditional_name): New function.
22420         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22421         func_cond_module_condition): New functions.
22422         (func_modules_transitive_closure): Add support for conditional
22423         dependencies.
22424         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22425         conditional automake snippet in an automake conditional.
22426         (func_emit_autoconf_snippets): Emit shell functions that contain the
22427         code for conditional modules.
22428         (func_import, func_create_testdir): Update specification.
22429
22430 2011-05-03  Eric Blake  <eblake@redhat.com>
22431
22432         test-getaddrinfo: report error information
22433         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22434
22435 2011-05-03  Jim Meyering  <meyering@redhat.com>
22436
22437         bootstrap: avoid build failure when $GZIP is set
22438         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22439         program name.  If defined at all, it is supposed to list gzip options.
22440         Reported by Alan Curry in http://debbugs.gnu.org/8609
22441
22442 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22443
22444         readme-release: new module with release instructions
22445         * modules/readme-release: New module.
22446         * top/README-release: New file, from coreutils, grep, diffutils.
22447         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22448
22449 2011-05-02  Eric Blake  <eblake@redhat.com>
22450
22451         fflush: also replace fclose when fixing fflush
22452         * modules/fflush (Depends-on): Add fclose.
22453         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22454         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22455         memstreams with no backing fd.
22456         * doc/posix-functions/fclose.texi (fclose): Document the use of
22457         fflush module to fix the bug.
22458         * tests/test-fclose.c (main): Relax test when fclose is used in
22459         isolation.
22460
22461         fclose: add some tests
22462         * modules/fclose-tests: New test module.
22463         * tests/test-fclose.c: New file.
22464         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22465
22466         fclose: reduced dependencies
22467         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22468         simpler lseek.
22469         * lib/fclose.c (rpl_fclose): Likewise.
22470         Reported by Simon Josefsson.
22471
22472         exit: drop remaining clients
22473         * modules/argmatch (Depends-on): Replace exit with stdlib.
22474         * modules/copy-file (Depends-on): Likewise.
22475         * modules/execute (Depends-on): Likewise.
22476         * modules/exitfail (Depends-on): Likewise.
22477         * modules/obstack (Depends-on): Likewise.
22478         * modules/pagealign_alloc (Depends-on): Likewise.
22479         * modules/pipe-filter-gi (Depends-on): Likewise.
22480         * modules/pipe-filter-ii (Depends-on): Likewise.
22481         * modules/savewd (Depends-on): Likewise.
22482         * modules/spawn-pipe (Depends-on): Likewise.
22483         * modules/wait-process (Depends-on): Likewise.
22484         * modules/xsetenv (Depends-on): Likewise.
22485         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22486         * modules/git-merge-changelog (Depends-on): Likewise.
22487         * modules/long-options (Depends-on): Likewise.
22488         * modules/pt_chown (Depends-on): Likewise.
22489         * modules/sysexits (Depends-on): Likewise.
22490
22491         freading: relax license from LGPLv3+ to LGPLv2+
22492         * modules/freading (License): Relax LGPL version.
22493
22494 2011-05-02  Bruno Haible  <bruno@clisp.org>
22495
22496         fchdir: Remove unused dependencies.
22497         * modules/fchdir (Depends-on): Remove include_next.
22498
22499 2011-05-02  Bruno Haible  <bruno@clisp.org>
22500
22501         gnulib-tool: Refactor.
22502         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22503         from func_emit_autoconf_snippets.
22504         (func_emit_autoconf_snippets): Use it.
22505
22506 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22507
22508         * NEWS: Document removal of 'exit'.
22509         * modules/exit: Remove file.
22510
22511 2011-05-01  Bruno Haible  <bruno@clisp.org>
22512
22513         Update DEPENDENCIES.
22514         * DEPENDENCIES (gettext): Recommend the newest release.
22515         Reported by Simon Josefsson.
22516
22517 2011-05-01  Bruno Haible  <bruno@clisp.org>
22518
22519         gnulib-tool: Reduce code duplication.
22520         * gnulib-tool (func_emit_autoconf_snippets): New function.
22521         (func_import, func_create_testdir): Use it.
22522
22523 2011-04-30  Eric Blake  <eblake@redhat.com>
22524
22525         fclose: don't fail on non-seekable input stream
22526         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22527         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22528         since fflush is allowed to fail in that case.
22529
22530 2011-04-30  Bruno Haible  <bruno@clisp.org>
22531
22532         dup3: cleanup
22533         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22534
22535 2011-04-30  Bruno Haible  <bruno@clisp.org>
22536
22537         netdb: Make it work in C++ mode.
22538         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22539         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22540         module.
22541         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22542         gl_MODULE_INDICATOR_FOR_TESTS.
22543         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22544         * modules/netdb-c++-tests: New file.
22545         * tests/test-netdb-c++.cc: New file.
22546
22547 2011-04-30  Bruno Haible  <bruno@clisp.org>
22548
22549         New modules 'vfscanf', 'vscanf'.
22550         * modules/vfscanf: New file.
22551         * modules/vscanf: New file.
22552         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22553         here.
22554         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22555         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22556
22557 2011-04-30  Bruno Haible  <bruno@clisp.org>
22558
22559         passfd: Add comments.
22560         * lib/passfd.c: Add comments about platforms.
22561
22562 2011-04-30  Bruno Haible  <bruno@clisp.org>
22563
22564         sys_uio: Make <sys/uio.h> self-contained.
22565         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22566         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22567
22568 2011-04-30  Bruno Haible  <bruno@clisp.org>
22569
22570         sys_socket: Ensure 'struct iovec' definition.
22571         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22572         <sys/socket.h>.
22573         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22574
22575 2011-04-30  Bruno Haible  <bruno@clisp.org>
22576
22577         sys_uio: Protect definition of 'struct iovec'.
22578         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22579         it as a C struct.
22580
22581 2011-04-30  Bruno Haible  <bruno@clisp.org>
22582
22583         manywarnings: fix indentation
22584         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22585
22586 2011-04-30  Pádraig Brady <P@draigBrady.com>
22587
22588         manywarnings: add -Wno-missing-field-initializers if needed.
22589         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22590         option if it's needed to allow initialization with { 0, }
22591
22592 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22593
22594         announce-gen: cosmetic improvement
22595         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22596
22597 2011-04-29  Jim Meyering  <meyering@redhat.com>
22598
22599         vc-list-files: indent with spaces, not TABs
22600         * build-aux/vc-list-files: Convert leading TABs to spaces,
22601         to match the style of most other files in gnulib.
22602
22603         announce-gen: indent with spaces, not TABs
22604         * build-aux/announce-gen: Convert all TABs to spaces, to match
22605         the style of most other files in gnulib.
22606
22607 2011-04-29  Eric Blake  <eblake@redhat.com>
22608
22609         quotearg: avoid uninitialized variable use
22610         * lib/quotearg.c (quoting_options_from_style): Initialize
22611         remaining fields, and ensure that custom styles are only used via
22612         quoting_options rather than quoting_style.
22613
22614 2011-04-29  Jim Meyering  <meyering@redhat.com>
22615
22616         maint.mk: remove unused VC-tag variable
22617         * top/maint.mk (VC-tag): Remove unused variable.
22618
22619 2011-04-29  Bruno Haible  <bruno@clisp.org>
22620
22621         netdb: fix gai_strerror replacements
22622         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22623         * modules/netdb: Substitute it.
22624
22625 2011-04-29  Jim Meyering  <meyering@redhat.com>
22626
22627         test-getcwd.c: avoid new set-but-not-used warning
22628         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22629         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22630         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22631         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22632
22633         test-hash.c: avoid a new shadowing warning
22634         * tests/test-hash.c (main): Don't shadow "dup".
22635
22636 2011-04-28  Eric Blake  <eblake@redhat.com>
22637
22638         getaddrinfo: fix gai_strerror signature
22639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22640         and work around mingw with UNICODE defined.
22641         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22642         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22643         * modules/netdb (Makefile.am): Substitute it.
22644         * lib/netdb.in.h (gai_strerror): Declare replacement.
22645         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22646         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22647         the fix.
22648
22649         getsockopt: avoid compiler warning
22650         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22651         Reported by Matthias Bolte.
22652
22653         tests: drop unused link dependency
22654         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22655         * modules/dirent-safer-tests (Makefile.am): Likewise.
22656         * modules/fdopendir-tests (Makefile.am): Likewise.
22657         * modules/mkfifoat-tests (Makefile.am): Likewise.
22658         * modules/openat-safer-tests (Makefile.am): Likewise.
22659         * modules/openat-tests (Makefile.am): Likewise.
22660         * modules/readlinkat-tests (Makefile.am): Likewise.
22661         * modules/symlinkat-tests (Makefile.am): Likewise.
22662         * modules/linkat-tests (Makefile.am): Likewise.
22663         (Depends-on): Switch to filenamecat-lgpl.
22664         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22665         LIBINTL.
22666         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22667         * tests/test-linkat.c (main): Don't require xalloc.
22668
22669         hash, mgetgroups: drop xalloc dependency
22670         * lib/hash.c (includes): Adjust includes.
22671         * lib/mgetgroups.c (includes): Likewise.
22672         (xgetgroups): Move...
22673         * lib/xgetgroups.c: ...to new file.
22674         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22675         * modules/xgetgroups: New file, split from...
22676         * modules/mgetgroups: ...here.
22677         (Depends-on): Add xalloc-oversized.
22678         * modules/hash (Depends-on): Likewise.
22679         * modules/hash-tests (Depends-on): Drop xalloc.
22680         (test_hash_LDADD): Drop unused library.
22681         * tests/test-hash.c (main): Break xalloc dependency.
22682         (includes): Drop unused include.
22683
22684         xalloc-oversized: new module
22685         * modules/xalloc-oversized: New module.
22686         * modules/xalloc (Depends-on): Add it.
22687         * lib/xalloc.h (xalloc_oversized): Move...
22688         * lib/xalloc-oversized.h: ...into new file.
22689
22690         utimecmp: drop dependency on xmalloc
22691         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22692         due to memory pressure.
22693         * modules/utimecmp (Depends-on): Drop xalloc.
22694
22695 2011-04-27  Eric Blake  <eblake@redhat.com>
22696
22697         getcwd: fix mingw bugs
22698         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22699         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22700         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22701
22702 2011-04-27  Bruno Haible  <bruno@clisp.org>
22703
22704         mkstemps: Ensure declaration on MacOS X 10.5.
22705         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22706         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22707         MacOS X.
22708
22709 2011-04-27  Bruno Haible  <bruno@clisp.org>
22710
22711         mkstemp: More documentation.
22712         * doc/posix-functions/mkstemp.texi: Document header file problem on
22713         MacOS X.
22714
22715 2011-04-27  Bruno Haible  <bruno@clisp.org>
22716
22717         mkstemp: Tweak configure message when cross-compiling.
22718         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22719         result as a guess.
22720
22721 2011-04-27  Bruno Haible  <bruno@clisp.org>
22722
22723         clean-temp: Clarify what it does.
22724         * lib/clean-temp.h: Add more comments.
22725         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22726         module.
22727         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22728         * doc/glibc-functions/mkstemps.texi: Likewise.
22729         * doc/glibc-functions/mkostemps.texi: Likewise.
22730
22731 2011-04-27  Eric Blake  <eblake@redhat.com>
22732
22733         fchdir: avoid extra chdir and fix test
22734         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22735         getcwd-lgpl.
22736         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22737         have to be canonical.
22738         (canonicalize_file_name): Drop unused macro.
22739         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22740
22741         filenamecat-lgpl: fix licence
22742         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22743         when it was first created.
22744
22745         linkat, renameat: add missing dependency
22746         * modules/linkat (Depends-on): Require getcwd-lgpl.
22747         * modules/renameat (Depends-on): Likewise.
22748
22749         tests: reduce dependencies
22750         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22751         * tests/test-renameat.c (main): Likewise.
22752         * modules/linkat-tests (Depends-on): Relax dependency.
22753         * modules/renameat-tests (Depends-on): Likewise.
22754         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22755         dependency explicit.
22756
22757         save-cwd: reduce default dependency
22758         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22759         * lib/save-cwd.c: Update comments.
22760         * NEWS: Document the semantic change.
22761
22762         getcwd: enhance tests
22763         * tests/test-getcwd-lgpl.c: New file, taken from...
22764         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22765         repeat long path stress tests from m4 probe.
22766         * modules/getcwd-lgpl-tests: New module.
22767         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22768         * m4/getcwd-abort-bug.m4: Update comment.
22769         * m4/getcwd-path-max.m4: Likewise.
22770
22771         getcwd-lgpl: new module
22772         * modules/getcwd-lgpl: New module.
22773         * lib/getcwd-lgpl.c: New file.
22774         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22775         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22776         * modules/getcwd (configure.ac): Set C witness.
22777         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22778
22779         getcwd: tweak comments
22780         * m4/getcwd-abort-bug.m4: Fix comments.
22781         * m4/getcwd-path-max.m4: Likewise.
22782         * m4/getcwd.m4: Likewise.
22783
22784 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22785         and Eric Blake  <eblake@redhat.com>
22786
22787         mkstemp: replace if system version uses wrong permissions
22788         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22789         read/write mode bits set in file created by mkstemp.
22790         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22791
22792 2011-04-27  Eric Blake  <eblake@redhat.com>
22793
22794         passfd: avoid compiler warning
22795         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22796         Reported by Laine Stump.
22797
22798 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22799
22800         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22801         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22802
22803 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22804         and Eric Blake  <eblake@redhat.com>
22805
22806         mkstemp: mention clean-temp module
22807         * lib/mkstemp.c: Add comment.
22808         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22809
22810 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22811
22812         inttypes: also provide default values for 32-bit tests
22813         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22814         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22815
22816 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22817
22818         strtoumax: remove dependency on strtoimax
22819         This is like the strtoull change of yesterday.
22820         * modules/strtoumax (Files): Add lib/strtoimax.c.
22821         (Depends-on): Remove strtoimax and add verify.
22822
22823         inttypes-incomplete: new module
22824         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22825         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22826         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22827         of gl_INTTYPES_H.
22828         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22829         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22830         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22831         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22832         * modules/strtoumax, modules/xstrtol (Depends-on):
22833         Depend on inttypes-incomplete, not inttypes.
22834         * modules/inttypes-incomplete: New module, containing the contents
22835         of the old modules/inttypes module, except that the Files: section
22836         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22837         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22838         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22839         (Depends-on): Depend only on inttypes-incomplete.
22840         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22841
22842         inttypes: omit now-redundant strtoimax and strtoumax work
22843         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22844         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22845
22846         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22847         This supports apps that need pointers to strtoimax and strtoumax,
22848         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22849         nonexistent functions.  See
22850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22851         et seq.
22852         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22853         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22854         a macro.
22855         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22856
22857 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22858
22859         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22860
22861 2011-04-25  Bruno Haible  <bruno@clisp.org>
22862
22863         strtol, strtoul: Mark modules as obsolete.
22864         * modules/strtol (Status, Notice): New sections.
22865         * modules/strtoul (Status, Notice): New sections.
22866
22867 2011-04-25  Bruno Haible  <bruno@clisp.org>
22868
22869         strtod: Remove check for strtod, unless supporting old platforms.
22870         * modules/strtod-obsolete: New file.
22871         * m4/strtod-obsolete.m4: New file.
22872         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22873         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22874         * modules/strtod (Depends-on): Add strtod-obsolete.
22875         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22876
22877 2011-04-25  Bruno Haible  <bruno@clisp.org>
22878
22879         strcase: Make module obsolete.
22880         * modules/strcase (Status, Notice): New sections.
22881
22882 2011-04-25  Bruno Haible  <bruno@clisp.org>
22883
22884         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22885         * modules/dup2-obsolete: New file.
22886         * m4/dup2-obsolete.m4: New file.
22887         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22888         gl_FUNC_DUP2_OBSOLETE is not also defined.
22889         * modules/dup2 (Depends-on): Add dup2-obsolete.
22890         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22891
22892 2011-04-25  Bruno Haible  <bruno@clisp.org>
22893
22894         strnlen: Avoid memchr related link error on old obsolete platforms.
22895         * modules/memchr-obsolete: New file.
22896         * m4/memchr-obsolete.m4: New file.
22897         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22898         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22899         * modules/memchr (Depends-on): Add memchr-obsolete.
22900         * modules/strnlen (Depends-on): Likewise.
22901         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22902
22903 2011-04-25  Jim Meyering  <meyering@redhat.com>
22904
22905         maint.mk: makefile_at_at_check extend and clean up
22906         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22907         in addition to */Makefile.am.
22908         Exempt legitimate uses of @VAR@ notation, e.g.,
22909         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22910         Remove obsolete coreutils-specific comment.
22911         Prompted by discussion here:
22912         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22913
22914 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22915
22916         strtoul: remove dependency on strtol
22917         This is so that 'configure' need not check for strtol merely because
22918         the application needs strtoul.
22919         * modules/strtoul (Files): Add lib/strtol.c.
22920         (Depends-on): Remove strtol.
22921
22922         strtoull: remove dependency on strtoul
22923         This is like the strtoll change.
22924         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22925         (Depends-on): Remove strtoul.
22926
22927         strtoll: remove dependency on strtol
22928         This is so that 'configure' need not check for strtol merely because
22929         the application needs strtoll.
22930         * modules/strtoll (Files): Add lib/strtol.c.
22931         (Depends-on): Remove strtol.
22932
22933 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22934
22935         inttypes: Move some configure check to module 'imaxdiv'.
22936         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22937         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22938         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22939
22940 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22941
22942         inttypes: Move some configure check to module 'imaxabs'.
22943         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22944         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22945         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22946
22947 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22948
22949         inttypes: Remove configure tests that are not needed since 2009-12-31.
22950         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22951         gl_cv_header_working_inttypes_h.
22952
22953 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22954
22955         * modules/strnlen (Depends-on): Remove memchr.
22956         The strnlen implementation doesn't need the memchr module's fixes; see
22957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22958
22959         strtol: remove dependency on wchar
22960         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22961         * modules/strtol (Depends-on): Remove wchar.
22962
22963 2011-04-21  Eric Blake  <eblake@redhat.com>
22964
22965         passfd: fix test regression on Linux
22966         * modules/passfd-tests (configure.ac): Correct socketpair check.
22967
22968         passfd: speed up configure and drop unused code
22969         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22970         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22971         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22972         Instead of probing at configure for unix_scm_rights_bsd44_way,
22973         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22974         check to a struct member probe.
22975         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22976         (sendfd, recvfd): Update preprocessor checks.
22977         * modules/passfd (Files): Reflect rename, and drop unused file.
22978         (Depends-on): Drop unused dependency.
22979
22980         passfd: allow compilation on mingw
22981         * modules/sys_socket (Depends-on): Add sys_uio.
22982         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22983         iovec and a minimal struct msghdr.
22984         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22985         * tests/test-sys_socket.c (main): Enhance test.
22986         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22987         guaranteed to provide what we need.
22988         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22989         * modules/passfd-tests (Depends-on): Add sys_wait.
22990         * tests/test-passfd.c (main): Skip test on mingw, for now.
22991         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22992         partial 'struct msghdr' implementation.
22993
22994         sys_uio: new module
22995         * modules/sys_uio: New module.
22996         * modules/sys_uio-tests: Likewise.
22997         * lib/sys_uio.in.h: New file.
22998         * m4/sys_uio_h.m4: Likewise.
22999         * tests/test-sys_uio.c: Likewise.
23000         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23001         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23002
23003 2011-04-20  Jim Meyering  <meyering@redhat.com>
23004
23005         useless-if-before-free: avoid false-positive
23006         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23007         disjunct so that it too requires a terminating ";".  Without that,
23008         this script would identify as useless one statement from gcc that
23009         was not:
23010           if (aligned_ptr)
23011             free (((void **) aligned_ptr) [-1]);
23012
23013 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23014
23015         doc: update users.txt.
23016         * users.txt: Add barcode.
23017
23018 2011-04-19  Bruno Haible  <bruno@clisp.org>
23019
23020         ioctl: Remove link dependency on native Windows.
23021         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23022         (gl_close_fn, gl_ioctl_fn): New types.
23023         (struct fd_hook): Renamed from struct close_hook. Change type of
23024         private_close_fn field. Add private_ioctl_fn field.
23025         (close_hook_fn): Add parameter for primary close method.
23026         (execute_close_hooks, execute_all_close_hooks): Likewise.
23027         (ioctl_hook_fn): New type.
23028         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23029         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23030         argument.
23031         (unregister_fd_hook): Renamed from unregister_close_hook.
23032         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23033         Don't include <unistd.h>.
23034         (close): Remove undef.
23035         (anchor): Update.
23036         (execute_close_hooks): Add argument for primary close method.
23037         (execute_all_close_hooks): Likewise.
23038         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23039         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23040         argument. Allow each argument to be NULL.
23041         (unregister_fd_hook): Renamed from unregister_close_hook.
23042         * lib/close.c (rpl_close): Pass 'close' function pointer to
23043         execute_all_close_hooks.
23044         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23045         (primary_ioctl): New function.
23046         (ioctl): Don't call ioctlsocket here. Instead, call
23047         execute_all_ioctl_hooks.
23048         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23049         close method.
23050         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23051         (fd_sockets_hook): Renamed from close_sockets_hook.
23052         (gl_sockets_startup, gl_sockets_cleanup): Update.
23053         * modules/fd-hook: Renamed from modules/close-hook. Update.
23054         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23055         * modules/sockets (Depends-on): Likewise.
23056         * modules/ioctl (Depends-on): Add fd-hook.
23057         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23058         GNULIB_SOCKET.
23059
23060 2011-04-19  Bruno Haible  <bruno@clisp.org>
23061
23062         Move the support of O_NONBLOCK in open() to the 'open' module.
23063         * modules/nonblocking (Depends-on): Remove 'open'.
23064         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23065         gl_cv_have_open_O_NONBLOCK.
23066         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23067         O_NONBLOCK support.
23068         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23069
23070 2011-04-17  Bruno Haible  <bruno@clisp.org>
23071
23072         pipe2: Simplify code.
23073         * lib/pipe2.c (pipe2): Reduce code duplication.
23074
23075 2011-04-17  Bruno Haible  <bruno@clisp.org>
23076
23077         nonblocking: Add comment.
23078         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23079
23080 2011-04-17  Bruno Haible  <bruno@clisp.org>
23081
23082         nonblocking: Add tests for sockets.
23083         * tests/test-nonblocking-socket.sh: New file.
23084         * tests/test-nonblocking-socket-main.c: New file.
23085         * tests/test-nonblocking-socket-child.c: New file.
23086         * tests/test-nonblocking-socket.h: New file.
23087         * tests/socket-server.h: New file.
23088         * tests/socket-client.h: New file.
23089         * modules/nonblocking-socket-tests: New file.
23090         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23091
23092 2011-04-17  Bruno Haible  <bruno@clisp.org>
23093
23094         nonblocking: Add tests for pipes.
23095         * tests/test-nonblocking-pipe.sh: New file.
23096         * tests/test-nonblocking-pipe-main.c: New file.
23097         * tests/test-nonblocking-pipe-child.c: New file.
23098         * tests/test-nonblocking-pipe.h: New file.
23099         * tests/test-nonblocking-writer.h: New file.
23100         * tests/test-nonblocking-reader.h: New file.
23101         * tests/test-nonblocking-misc.h: New file.
23102         * modules/nonblocking-pipe-tests: New file.
23103         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23104
23105 2011-04-16  Bruno Haible  <bruno@clisp.org>
23106
23107         gettext: Clarify the needed programmer actions.
23108         * modules/gettext (Notice): New field.
23109         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23110
23111 2011-04-16  Bruno Haible  <bruno@clisp.org>
23112
23113         strchrnul: Tweak last commit.
23114         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23115         bug.
23116         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23117         as in _GL_FUNCDECL_SYS.
23118         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23119         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23120
23121 2011-04-15  Eric Blake  <eblake@redhat.com>
23122
23123         strchrnul: work around cygwin bug
23124         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23125         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23127         * modules/string (Makefile.am): Substitute it.
23128         * lib/string.in.h (strchrnul): Use it.
23129
23130 2011-04-15  Bruno Haible  <bruno@clisp.org>
23131
23132         Don't require lib/stdio-write.c when only module 'stdio' is used.
23133         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23134         invocation.
23135         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23136
23137 2011-04-14  Bruno Haible  <bruno@clisp.org>
23138
23139         Support non-blocking pipe I/O in read() on native Windows.
23140         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23141         (read): New declaration.
23142         * lib/read.c: New file.
23143         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23144         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23145         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23146         vscanf): New declarations.
23147         * lib/stdio-read.c: New file.
23148         * m4/read.m4: New file.
23149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23150         REPLACE_READ.
23151         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23152         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23153         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23154         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23155         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23156         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23157         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23158         * modules/read: New file.
23159         * modules/nonblocking (Files): Add lib/stdio-read.c.
23160         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23161         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23162         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23163         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23164         * modules/pread (Depends-on): Add read.
23165         * modules/safe-read (Depends-on): Likewise.
23166         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23167         gets, scanf, vfscanf, vscanf): Verify signatures.
23168         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23169         problem with non-blocking pipes.
23170         * doc/posix-functions/fgetc.texi: Likewise.
23171         * doc/posix-functions/fgets.texi: Likewise.
23172         * doc/posix-functions/fread.texi: Likewise.
23173         * doc/posix-functions/fscanf.texi: Likewise.
23174         * doc/posix-functions/getc.texi: Likewise.
23175         * doc/posix-functions/getchar.texi: Likewise.
23176         * doc/posix-functions/gets.texi: Likewise.
23177         * doc/posix-functions/scanf.texi: Likewise.
23178         * doc/posix-functions/vfscanf.texi: Likewise.
23179         * doc/posix-functions/vscanf.texi: Likewise.
23180
23181 2011-04-14  Bruno Haible  <bruno@clisp.org>
23182
23183         Support non-blocking pipe I/O in write() on native Windows.
23184         * lib/write.c (rpl_write): Split a write request that failed merely
23185         because the byte count was larger than the pipe buffer's size.
23186         * doc/posix-functions/write.texi: Mention the problem with large byte
23187         counts.
23188
23189 2011-04-14  Bruno Haible  <bruno@clisp.org>
23190
23191         wchar: Ensure that wchar_t gets defined on uClibc.
23192         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23193         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23194
23195 2011-04-13  Bruno Haible  <bruno@clisp.org>
23196
23197         safe-write, full-read: Avoid unnecessary compilation units.
23198         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23199         (Depends-on): Remove safe-read. Add ssize_t.
23200         * modules/full-read (Files): Add lib/full-write.c.
23201         (Depends-on): Add full-write.
23202
23203 2011-04-13  Bruno Haible  <bruno@clisp.org>
23204
23205         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23206         * modules/pwrite (Depends-on): Add 'write'.
23207
23208 2011-04-13  Bruno Haible  <bruno@clisp.org>
23209
23210         Support non-blocking pipe I/O in write() on native Windows.
23211         * lib/unistd.in.h (write): Enable replacement also if
23212         GNULIB_UNISTD_H_NONBLOCKING is 1.
23213         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23214         (rpl_write): When failing to write on a non-blocking pipe, change
23215         errno from ENOSPC to EAGAIN.
23216         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23217         putchar, puts, vfprintf, vprintf): Enable replacement also if
23218         GNULIB_STDIO_H_NONBLOCKING is 1.
23219         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23220         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23221         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23222         CALL_WITH_SIGPIPE_EMULATION.
23223         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23224         * m4/nonblocking.m4: New file.
23225         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23226         for non-blocking I/O support.
23227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23228         GNULIB_UNISTD_H_NONBLOCKING.
23229         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23230         required for non-blocking I/O support.
23231         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23232         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23233         lib/stdio-write.c, m4/asm-underscore.m4.
23234         (Depends-on): Add stdio, unistd.
23235         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23236         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23237         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23238         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23239         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23240         problem with non-blocking pipes.
23241         * doc/posix-functions/fputc.texi: Likewise.
23242         * doc/posix-functions/fputs.texi: Likewise.
23243         * doc/posix-functions/fwrite.texi: Likewise.
23244         * doc/posix-functions/printf.texi: Likewise.
23245         * doc/posix-functions/putc.texi: Likewise.
23246         * doc/posix-functions/putchar.texi: Likewise.
23247         * doc/posix-functions/puts.texi: Likewise.
23248         * doc/posix-functions/vfprintf.texi: Likewise.
23249         * doc/posix-functions/vprintf.texi: Likewise.
23250         * doc/posix-functions/write.texi: Likewise.
23251
23252 2011-04-10  Jim Meyering  <meyering@redhat.com>
23253
23254         maint.mk: prohibit doubled words
23255         Detect them also when they're separated by a newline.
23256         There are 3 ways to customize it:
23257           - disable the test on a per file basis, as usual with rules using
23258             $(VC_LIST_EXCEPT)
23259           - replace the default doubled-word-selecting regexp (affects all files)
23260           - ignore a particular file-vs-doubled-word match
23261         I nearly used that last one to ignore the "is is" match in
23262         coreutils' NEWS file, since the text was "ls -is is ..."
23263         To do that, I would have added this line to cfg.mk:
23264           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23265         but it would have ignored any "is is" match in NEWS.
23266         Low probability, but still...
23267         Instead, I changed the text, slightly:
23268           -  ls -is is now consistent with ls -lis in ignoring values returned
23269           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23270         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23271         (prohibit_doubled_word_): Define.
23272         (sc_prohibit_doubled_word): New rule.
23273         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23274
23275 2011-04-10  Jim Meyering  <meyering@redhat.com>
23276
23277         maint: fix doubled-word typo in comment
23278         * m4/gethostname.m4: s/is is/it is/
23279         * m4/getdomainname.m4: Likewise.
23280
23281 2011-04-10  Jim Meyering  <meyering@redhat.com>
23282
23283         maint: remove doubled word: s/it it/it/
23284         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23285
23286 2011-04-10  Jim Meyering  <meyering@redhat.com>
23287
23288         maint.mk: remove useless semicolon and backslash
23289         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23290         semicolon and backslash.
23291
23292 2011-04-10  Bruno Haible  <bruno@clisp.org>
23293
23294         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23295         * modules/stdint-tests (Depends-on): Add wchar.
23296
23297 2011-04-10  Jim Meyering  <meyering@redhat.com>
23298
23299         maint: remove doubled words in comments, e.g., s/a a/a/
23300         * lib/strptime.c (day_of_the_week): s/the the/the/
23301         * tests/test-chown.h (test_chown): s/a a/a/
23302
23303         test-chown.h: correct a cast
23304         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23305         when the destination is a stat.st_gid.
23306
23307 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23308
23309         getaddrinfo: Fix test for sa_len member.
23310         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23311         include <sys/types.h> before <sys/socket.h>.
23312
23313 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23314
23315         maint: change "can not" to "cannot"
23316         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23317         boundaries.
23318
23319 2011-04-09  Jim Meyering  <meyering@redhat.com>
23320
23321         maint: change "a a" to "a"
23322         * tests/test-lchown.h (test_lchown): s/a a/a/
23323
23324         maint.mk: prohibit \<the the\>
23325         * top/maint.mk (sc_prohibit_the_the): New rule.
23326
23327         maint: fix "the the" in comment
23328         * lib/count-one-bits.h: s/the the/the/
23329
23330         maint: change "can not" to "cannot"
23331         But do not change the occurrences in maintain.texi or in
23332         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23333         * doc/gnulib-tool.texi: s/can not/cannot/
23334         * doc/posix-functions/accept.texi (accept): Likewise.
23335         * doc/posix-functions/socket.texi (socket): Likewise.
23336         * lib/mbrtowc.c: Likewise.
23337
23338         maint.mk: prohibit use of "can not"
23339         * top/maint.mk (sc_prohibit_can_not): New rule.
23340         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23341
23342 2011-04-09  Bruno Haible  <bruno@clisp.org>
23343
23344         careadlinkat: Guard against misuse of careadlinkatcwd.
23345         * lib/careadlinkat.c: Include <stdlib.h>.
23346         (careadlinkatcwd): Check that the fd argument is as expected.
23347
23348 2011-04-09  Bruno Haible  <bruno@clisp.org>
23349
23350         careadlinkat: Use common coding style.
23351         * lib/careadlinkat.c: Move gnulib includes after system includes.
23352
23353 2011-04-09  Bruno Haible  <bruno@clisp.org>
23354
23355         careadlinkat: Clarify specification.
23356         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23357         (careadlinkatcwd): Add comment.
23358         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23359
23360 2011-04-09  Bruno Haible  <bruno@clisp.org>
23361
23362         areadlinkat: Avoid link error on many platforms.
23363         * modules/areadlinkat (Depends-on): Add areadlink.
23364
23365 2011-04-09  Bruno Haible  <bruno@clisp.org>
23366
23367         allocator, careadlinkat: Fix double-inclusion guard.
23368         * lib/allocator.h: Fix double-inclusion guard.
23369         * lib/careadlinkat.h: Likewise.
23370
23371 2011-04-09  Bruno Haible  <bruno@clisp.org>
23372
23373         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23374         * lib/relocwrapper.c: Update dependencies hierarchy.
23375         * build-aux/install-reloc: Update list of files to be compiled.
23376         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23377         lib/allocator.[hc].
23378
23379 2011-04-08  Eric Blake  <eblake@redhat.com>
23380
23381         strftime: silence gnulib-tool warning
23382         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23383
23384 2011-04-08  Bruno Haible  <bruno@clisp.org>
23385
23386         verify: Fix syntax error with GCC 4.6 in C++ mode.
23387         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23388         (HAVE_STATIC_ASSERT): New macro.
23389         (verify_true, verify): Use 'static_assert' if it is supported and
23390         '_Static_assert' is not supported.
23391
23392 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23393
23394         allocator: New module.
23395         * modules/allocator, lib/allocator.c: New files.
23396         * lib/allocator.h (stdlib_allocator): New decl.
23397         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23398         Remove.  Do not include <stdlib.h>.
23399         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23400         * modules/careadlinkat (Files): Remove lib/allocator.h.
23401         (Depends-on): Add allocator.
23402
23403         stdlib: let modules use system malloc, realloc
23404         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23405         if !_GL_USE_STDLIB_ALLOC.
23406         (malloc, realloc): Limit this change to a smaller scope.
23407
23408         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23409         (malloc, realloc): Don't #undef; no longer needed.
23410         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23411         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23412         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23413         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23414         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23415         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23416         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23417         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23418
23419         careadlinkat: rename members to avoid problem
23420         * lib/allocator.h (struct allocator): Rename members from
23421         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23422         and realloc are #define'd.  Reported by Eric Blake in
23423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23424         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23425
23426 2011-04-08  Eric Blake  <eblake@redhat.com>
23427
23428         nonblocking: reduce dependency
23429         * tests/test-nonblocking.c: Only test sockets when in use.
23430         * modules/nonblocking-tests (Depends-on): Drop socket.
23431         (Makefile.am): Link even if sockets are not present.
23432         * modules/pipe2-tests (Makefile.am): Likewise.
23433         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23434
23435         pipe2: fix O_NONBLOCK support on mingw
23436         * modules/pipe2 (Depends-on): Add nonblocking.
23437         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23438         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23439         * tests/test-nonblocking.c (main): Likewise.
23440         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23441
23442         fcntl-h: fix O_ACCMODE on cygwin
23443         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23444         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23445
23446         pipe-filter: drop O_NONBLOCK workarounds
23447         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23448         * modules/pipe-filter-ii (Depends-on): Likewise.
23449         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23450
23451         nonblocking: provide O_NONBLOCK for mingw
23452         * modules/nonblocking (Depends-on): Add open.
23453         (configure.ac): Set new witness macro.
23454         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23455         * modules/fcntl-h (Makefile.am): Substitute it.
23456         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23457         nonblocking module is in use.
23458         * lib/nonblocking.c: Adjust portability test.
23459         * lib/open.c (open): Don't let native open see gnulib flag.
23460         * tests/test-fcntl-h.c (main): Enhance test.
23461         * tests/test-open.h (test_open): Likewise.
23462         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23463
23464         careadlinkat: fix compilation error on mingw
23465         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23466         within struct allocator.
23467
23468 2011-04-06  Eric Blake  <eblake@redhat.com>
23469
23470         binary-io: relicense under LGPLv2+
23471         * modules/binary-io (License): Relax to LGPLv2+.
23472         Requested for libvirt, and required by pipe2.
23473
23474 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23475
23476         verify: use _Static_assert if available
23477         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23478         (verify_true, verify): Use it if available.  This generates better
23479         diagnostics with GCC 4.6.0 and later.
23480
23481 2011-04-05  Bruno Haible  <bruno@clisp.org>
23482
23483         Remove leftover generated .h files after config.status changed.
23484
23485         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23486         GL_GENERATE_ALLOCA_H.
23487         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23488         GL_GENERATE_ALLOCA_H evaluates to false.
23489
23490         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23491         GL_GENERATE_ARGZ_H.
23492         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23493         evaluates to false.
23494
23495         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23496         GL_GENERATE_BYTESWAP_H.
23497         * modules/byteswap (Makefile.am): Remove byteswap.h if
23498         GL_GENERATE_BYTESWAP_H evaluates to false.
23499
23500         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23501         GL_GENERATE_ERRNO_H.
23502         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23503         evaluates to false.
23504
23505         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23506         GL_GENERATE_FLOAT_H.
23507         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23508         evaluates to false.
23509
23510         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23511         GL_GENERATE_FNMATCH_H.
23512         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23513         GL_GENERATE_FNMATCH_H evaluates to false.
23514
23515         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23516         GL_GENERATE_GLOB_H.
23517         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23518         evaluates to false.
23519
23520         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23521         automake conditional GL_GENERATE_ICONV_H.
23522         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23523         evaluates to false.
23524
23525         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23526         GL_GENERATE_NETINET_IN_H.
23527         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23528         GL_GENERATE_NETINET_IN_H evaluates to false.
23529
23530         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23531         conditional GL_GENERATE_PTHREAD_H.
23532         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23533         * modules/pthread (Makefile.am): Remove pthread.h if
23534         GL_GENERATE_PTHREAD_H evaluates to false.
23535
23536         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23537         GL_GENERATE_SCHED_H.
23538         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23539         evaluates to false.
23540
23541         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23542         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23543         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23544         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23545
23546         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23547         GL_GENERATE_STDARG_H.
23548         * modules/stdarg (Makefile.am): Remove stdarg.h if
23549         GL_GENERATE_STDARG_H evaluates to false.
23550
23551         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23552         GL_GENERATE_STDBOOL_H.
23553         * modules/stdbool (Makefile.am): Remove stdbool.h if
23554         GL_GENERATE_STDBOOL_H evaluates to false.
23555
23556         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23557         conditional GL_GENERATE_STDDEF_H.
23558         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23559         * modules/stddef (Makefile.am): Remove stddef.h if
23560         GL_GENERATE_STDDEF_H evaluates to false.
23561
23562         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23563         GL_GENERATE_STDINT_H.
23564         * modules/stdint (Makefile.am): Remove stdint.h if
23565         GL_GENERATE_STDINT_H evaluates to false.
23566
23567         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23568         GL_GENERATE_SYSEXITS_H.
23569         * modules/sysexits (Makefile.am): Remove sysexits.h if
23570         GL_GENERATE_SYSEXITS_H evaluates to false.
23571
23572         Reported by Karl Berry and Ralf Wildenhues.
23573
23574 2011-04-05  Bruno Haible  <bruno@clisp.org>
23575
23576         Ensure to rebuild generated .h files when config.status has changed.
23577         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23578         config.status.
23579         * modules/ctype (Makefile.am): Likewise.
23580         * modules/dirent (Makefile.am): Likewise.
23581         * modules/errno (Makefile.am): Likewise.
23582         * modules/fcntl-h (Makefile.am): Likewise.
23583         * modules/float (Makefile.am): Likewise.
23584         * modules/getopt-posix (Makefile.am): Likewise.
23585         * modules/glob (Makefile.am): Likewise.
23586         * modules/iconv-h (Makefile.am): Likewise.
23587         * modules/inttypes (Makefile.am): Likewise.
23588         * modules/langinfo (Makefile.am): Likewise.
23589         * modules/locale (Makefile.am): Likewise.
23590         * modules/math (Makefile.am): Likewise.
23591         * modules/netdb (Makefile.am): Likewise.
23592         * modules/netinet_in (Makefile.am): Likewise.
23593         * modules/poll-h (Makefile.am): Likewise.
23594         * modules/pthread (Makefile.am): Likewise.
23595         * modules/pty (Makefile.am): Likewise.
23596         * modules/sched (Makefile.am): Likewise.
23597         * modules/search (Makefile.am): Likewise.
23598         * modules/selinux-h (Makefile.am): Likewise.
23599         * modules/signal (Makefile.am): Likewise.
23600         * modules/spawn (Makefile.am): Likewise.
23601         * modules/stdarg (Makefile.am): Likewise.
23602         * modules/stdbool (Makefile.am): Likewise.
23603         * modules/stddef (Makefile.am): Likewise.
23604         * modules/stdint (Makefile.am): Likewise.
23605         * modules/stdio (Makefile.am): Likewise.
23606         * modules/stdlib (Makefile.am): Likewise.
23607         * modules/string (Makefile.am): Likewise.
23608         * modules/strings (Makefile.am): Likewise.
23609         * modules/sys_file (Makefile.am): Likewise.
23610         * modules/sys_ioctl (Makefile.am): Likewise.
23611         * modules/sys_select (Makefile.am): Likewise.
23612         * modules/sys_socket (Makefile.am): Likewise.
23613         * modules/sys_stat (Makefile.am): Likewise.
23614         * modules/sys_time (Makefile.am): Likewise.
23615         * modules/sys_times (Makefile.am): Likewise.
23616         * modules/sys_utsname (Makefile.am): Likewise.
23617         * modules/sys_wait (Makefile.am): Likewise.
23618         * modules/sysexits (Makefile.am): Likewise.
23619         * modules/termios (Makefile.am): Likewise.
23620         * modules/time (Makefile.am): Likewise.
23621         * modules/unistd (Makefile.am): Likewise.
23622         * modules/wchar (Makefile.am): Likewise.
23623         * modules/wctype-h (Makefile.am): Likewise.
23624         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23625
23626 2011-04-05  Bruno Haible  <bruno@clisp.org>
23627
23628         pipe2: Relicense under LGPLv2+.
23629         * modules/pipe2 (License): Change to LGPLv2+.
23630         Requested by Eric Blake, for libvirt.
23631
23632 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23633
23634         bootstrap: compute gnulib_extra_files after updating build_aux
23635         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23636         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23637
23638 2011-04-05  Eric Blake  <eblake@redhat.com>
23639
23640         bootstrap: preserve git whitelist item sorting
23641         * build-aux/bootstrap (sort_patterns): New function.
23642         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23643
23644 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23645
23646         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23647         sc_space_tab check.
23648
23649 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23650
23651         areadlink, areadlinkat: rewrite in terms of careadlinkat
23652         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23653         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23654         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23655         (malloc, realloc): Remove #undefs.
23656         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23657         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23658         readlink, ssize_t, stdint, unistd.
23659         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23660         areadlink, stdint.
23661
23662         careadlinkat: new module
23663         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23664         * modules/careadlinkat: New files, written by me with
23665         a review and feedback from Ben Pfaff in
23666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23667
23668 2011-04-01  Bruno Haible  <bruno@clisp.org>
23669
23670         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23671         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23672         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23673         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23674         Reported by Bruce Korb <bruce.korb@gmail.com>.
23675
23676 2011-04-01  Bruno Haible  <bruno@clisp.org>
23677
23678         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23679         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23680         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23681         * modules/wcpcpy (Depends-on): Add extensions.
23682         * modules/wcpncpy (Depends-on): Likewise.
23683         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23684         systems.
23685         * doc/posix-functions/wcpncpy.texi: Likewise.
23686         * doc/posix-functions/wcwidth.texi: Likewise.
23687
23688 2011-03-31  Eric Blake  <eblake@redhat.com>
23689
23690         nonblocking: fix mingw test failures
23691         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23692         non-blocking flag on regular file.
23693         (get_nonblocking_flag): Set errno on invalid fd.
23694         * tests/test-nonblocking.c (main): Avoid test failure on
23695         directories if fchdir is not active.
23696         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23697
23698 2011-03-31  Bruno Haible  <bruno@clisp.org>
23699
23700         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23701         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23702         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23703         Reported by Simon Josefsson <simon@josefsson.org>.
23704
23705 2011-03-31  Bruno Haible  <bruno@clisp.org>
23706         and Eric Blake  <eblake@redhat.com>
23707
23708         nonblocking: new module
23709         * modules/nonblocking: New module.
23710         * modules/nonblocking-tests: Likewise.
23711         * lib/nonblocking.h: New file.
23712         * lib/nonblocking.c: Likewise.
23713         * tests/test-nonblocking.c: New test.
23714         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23715
23716 2011-03-30  Bruno Haible  <bruno@clisp.org>
23717
23718         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23719         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23720         instead of 'printf' format for GCC >= 4.4.
23721         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23722         (fprintf, printf, vfprintf, vprintf): Declare with
23723         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23724         the system's vfprintf() function.
23725         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23726
23727 2011-03-30  Eric Blake  <eblake@redhat.com>
23728
23729         passfd: fix scoping bug
23730         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23731         before sendmsg/recvmsg.
23732
23733         passfd: standardize coding conventions
23734         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23735         can be learned at compile time.
23736         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23737         ifdefs.
23738         (sendfd, recvfd): Follow gnulib code conventions.
23739
23740         passfd: fix incorrect sendmsg arguments
23741         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23742         incorrect msg_controllen value.
23743         * modules/passfd-tests (Depends-on): Check for alarm.
23744         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23745         Reported by Bastien ROUCARIES.
23746
23747 2011-03-30  Bruno Haible  <bruno@clisp.org>
23748
23749         c-strcasestr: Relicense under LGPLv2+.
23750         * modules/c-strcasestr (License): Change to LGPLv2+.
23751         Requested by Eric Blake, for libvirt.
23752
23753 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23754
23755         * users.txt: Add libidn2.  Fix libtasn1 link.
23756
23757 2011-03-30  Jim Meyering  <meyering@redhat.com>
23758
23759         tests: readlink* ("",... fails with EINVAL on newer kernels
23760         readlink and readlinkat have typically failed with ENOENT for
23761         the invalid, empty file name,  "".  However, with the advent
23762         of linux-2.6.39, they fail with EINVAL.
23763         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23764         when operating on the empty file name.
23765         * tests/test-readlink.h (test_readlink): Likewise.
23766
23767 2011-03-29  Bruno Haible  <bruno@clisp.org>
23768
23769         Relicense some modules under LGPLv2+, for libidn2.
23770         * modules/array-mergesort (License): Change to LGPLv2+.
23771         * modules/c-strcaseeq (License): Likewise.
23772         * modules/striconveh (License): Likewise.
23773         * modules/striconveha (License): Likewise.
23774         * modules/uniconv/base (License): Likewise.
23775         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23776         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23777         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23778         * modules/unictype/base (License): Likewise.
23779         * modules/unictype/bidiclass-of (License): Likewise.
23780         * modules/unictype/category-M (License): Likewise.
23781         * modules/unictype/category-none (License): Likewise.
23782         * modules/unictype/category-of (License): Likewise.
23783         * modules/unictype/category-test (License): Likewise.
23784         * modules/unictype/category-test-withtable (License): Likewise.
23785         * modules/unictype/combining-class (License): Likewise.
23786         * modules/unictype/joiningtype-of (License): Likewise.
23787         * modules/unictype/scripts (License): Likewise.
23788         * modules/uninorm/base (License): Likewise.
23789         * modules/uninorm/canonical-decomposition (License): Likewise.
23790         * modules/uninorm/composition (License): Likewise.
23791         * modules/uninorm/decompose-internal (License): Likewise.
23792         * modules/uninorm/decomposition-table (License): Likewise.
23793         * modules/uninorm/nfc (License): Likewise.
23794         * modules/uninorm/nfd (License): Likewise.
23795         * modules/uninorm/u32-normalize (License): Likewise.
23796         * modules/unistr/base (License): Likewise.
23797         * modules/unistr/u32-cpy (License): Likewise.
23798         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23799         * modules/unistr/u32-to-u8 (License): Likewise.
23800         * modules/unistr/u32-uctomb (License): Likewise.
23801         * modules/unistr/u8-check (License): Likewise.
23802         * modules/unistr/u8-mblen (License): Likewise.
23803         * modules/unistr/u8-mbtouc (License): Likewise.
23804         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23805         * modules/unistr/u8-mbtoucr (License): Likewise.
23806         * modules/unistr/u8-prev (License): Likewise.
23807         * modules/unistr/u8-strlen (License): Likewise.
23808         * modules/unistr/u8-to-u32 (License): Likewise.
23809         * modules/unistr/u8-uctomb (License): Likewise.
23810         * modules/unitypes (License): Likewise.
23811         Requested by Simon Josefsson.
23812
23813 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23814
23815         lib-symbol-visibility: Add a notice.
23816         * modules/lib-symbol-visibility (Notice): New field.
23817
23818 2011-03-29  Bruno Haible  <bruno@clisp.org>
23819
23820         getaddrinfo: Doc fix.
23821         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23822         section "fixed in Gnulib".
23823
23824 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23825
23826         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23827         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23828
23829 2011-03-26  Bruno Haible  <bruno@clisp.org>
23830
23831         unictype/property-byname: Reduce the number of load-time relocations.
23832         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23833         (UC_PROPERTY_INDEX_*): New enumeration values.
23834         (uc_property_byname): Convert an index from the lookup table to an
23835         uc_property_t.
23836         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23837         values.
23838
23839 2011-03-26  Bruno Haible  <bruno@clisp.org>
23840
23841         unictype/property-byname: Allow omitted word separators and aliases.
23842         * lib/unictype/pr_byname.gperf: Add property names without word
23843         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23844         for 'space'.
23845
23846 2011-03-26  Bruno Haible  <bruno@clisp.org>
23847
23848         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23849         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23850         also hyphens to space.
23851         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23852         without spaces.
23853         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23854
23855 2011-03-26  Bruno Haible  <bruno@clisp.org>
23856
23857         unictype/joiningtype-byname: Recognize long names as well.
23858         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23859         a long name.
23860         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23861         unictype/joiningtype_byname.h.
23862         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23863         * lib/unictype/joiningtype_byname.gperf: New file.
23864         * modules/unictype/joiningtype-byname (Files): Add
23865         lib/unictype/joiningtype_byname.gperf.
23866         (Depends-on): Add gperf.
23867         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23868         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23869         long names.
23870
23871         Tests for module 'unictype/joiningtype-longname'.
23872         * modules/unictype/joiningtype-longname-tests: New file.
23873         * tests/unictype/test-joiningtype_longname.c: New file.
23874
23875         New module 'unictype/joiningtype-longname'.
23876         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23877         * lib/unictype/joiningtype_longname.c: New file.
23878         * modules/unictype/joiningtype-longname: New file.
23879         * modules/unictype/joiningtype-all (Depends-on): Add
23880         unictype/joiningtype-longname.
23881
23882 2011-03-26  Bruno Haible  <bruno@clisp.org>
23883
23884         unictype/bidiclass-byname: Recognize long names as well.
23885         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23886         name.
23887         * lib/unictype/bidi_byname.c: Include <string.h>,
23888         unictype/bidi_byname.h.
23889         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23890         * lib/unictype/bidi_byname.gperf: New file.
23891         * modules/unictype/bidiclass-byname (Files): Add
23892         lib/unictype/bidi_byname.gperf.
23893         (Depends-on): Add gperf.
23894         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23895         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23896         long names.
23897
23898         Tests for module 'unictype/bidiclass-longname'.
23899         * modules/unictype/bidiclass-longname-tests: New file.
23900         * tests/unictype/test-bidi_longname.c: New file.
23901
23902         New module 'unictype/bidiclass-longname'.
23903         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23904         * lib/unictype/bidi_longname.c: New file.
23905         * modules/unictype/bidiclass-longname: New file.
23906         * modules/unictype/bidiclass-all (Depends-on): Add
23907         unictype/bidiclass-longname.
23908
23909 2011-03-26  Bruno Haible  <bruno@clisp.org>
23910
23911         unictype/bidi*: Rename modules.
23912         * modules/unictype/bidiclass-all: Renamed from
23913         modules/unictype/bidicategory-all.
23914         * modules/unictype/bidiclass-name: Renamed from
23915         modules/unictype/bidiclass-name.
23916         (Description): Update.
23917         * modules/unictype/bidiclass-name-tests: Renamed from
23918         modules/unictype/bidicategory-name-tests.
23919         * modules/unictype/bidiclass-byname: Renamed from
23920         modules/unictype/bidicategory-byname.
23921         (Description): Update.
23922         * modules/unictype/bidiclass-byname-tests: Renamed from
23923         modules/unictype/bidicategory-byname-tests.
23924         * modules/unictype/bidiclass-of: Renamed from
23925         modules/unictype/bidicategory-of.
23926         (Description): Update.
23927         * modules/unictype/bidiclass-of-tests: Renamed from
23928         modules/unictype/bidicategory-of-tests.
23929         * modules/unictype/bidiclass-test: Renamed from
23930         modules/unictype/bidicategory-test.
23931         (Description): Update.
23932         * modules/unictype/bidiclass-test-tests: Renamed from
23933         modules/unictype/bidicategory-test-tests.
23934         * modules/unictype/bidicategory-all: New file, a simple redirection.
23935         * modules/unictype/bidicategory-name: Likewise.
23936         * modules/unictype/bidicategory-byname: Likewise.
23937         * modules/unictype/bidicategory-of: Likewise.
23938         * modules/unictype/bidicategory-test: Likewise.
23939         * modules/unictype/property-bidi-* (Dependencies): Update.
23940         * lib/unictype/bidi_*.c: Update comment.
23941
23942 2011-03-26  Bruno Haible  <bruno@clisp.org>
23943
23944         unictype/bidi*: Rename functions, part 2.
23945         * modules/unictype/bidicategory-name (configure.ac): Update required
23946         libunistring version.
23947         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23948
23949 2011-03-25  Bruno Haible  <bruno@clisp.org>
23950
23951         New module 'unictype/combining-class-all'.
23952         * modules/unictype/combining-class-all: New file.
23953
23954         Tests for module 'unictype/combining-class-byname'.
23955         * modules/unictype/combining-class-byname-tests: New file.
23956         * tests/unictype/test-combiningclass_byname.c: New file.
23957
23958         New module 'unictype/combining-class-byname'.
23959         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23960         * lib/unictype/combiningclass_byname.c: New file.
23961         * lib/unictype/combiningclass_byname.gperf: New file.
23962         * modules/unictype/combining-class-byname: New file.
23963
23964         Tests for module 'unictype/combining-class-longname'.
23965         * modules/unictype/combining-class-longname-tests: New file.
23966         * tests/unictype/test-combiningclass_longname.c: New file.
23967
23968         New module 'unictype/combining-class-longname'.
23969         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23970         * lib/unictype/combiningclass_longname.c: New file.
23971         * modules/unictype/combining-class-longname: New file.
23972
23973         Tests for module 'unictype/combining-class-name'.
23974         * modules/unictype/combining-class-name-tests: New file.
23975         * tests/unictype/test-combiningclass_name.c: New file.
23976
23977         New module 'unictype/combining-class-name'.
23978         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23979         * lib/unictype/combiningclass_name.c: New file.
23980         * modules/unictype/combining-class-name: New file.
23981
23982 2011-03-25  Bruno Haible  <bruno@clisp.org>
23983
23984         unictype/combining-class: Rename source files.
23985         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23986         of unictype/combining.h.
23987         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23988         Update.
23989         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23990         * modules/unictype/combining-class (Description): Fix.
23991         (Files, Makefile.am): Update.
23992         * tests/unictype/test-combiningclass.c: Renamed from
23993         tests/unictype/test-combining.c.
23994         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23995
23996 2011-03-25  Bruno Haible  <bruno@clisp.org>
23997
23998         unictype: Update list of canonical combining classes.
23999         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24000
24001 2011-03-25  Bruno Haible  <bruno@clisp.org>
24002
24003         unictype/category-byname: Recognize long names as well.
24004         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24005         a long name.
24006         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24007         unictype/categ_byname.h.
24008         (UC_CATEGORY_INDEX_*): New enumeration values.
24009         (uc_general_category_byname): Use uc_general_category_lookup and
24010         convert from index to value.
24011         * lib/unictype/categ_byname.gperf: New file.
24012         * modules/unictype/category-byname (Files): Add
24013         lib/unictype/categ_byname.gperf.
24014         (Depends-on): Add gperf.
24015         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24016         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24017         long names.
24018
24019         Tests for module 'unictype/category-longname'.
24020         * modules/unictype/category-longname-tests: New file.
24021         * tests/unictype/test-categ_longname.c: New file.
24022
24023         New module 'unictype/category-longname'.
24024         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24025         * lib/unictype/categ_longname.c: New file.
24026         * modules/unictype/category-longname: New file.
24027         * modules/unictype/category-all (Depends-on): Add it.
24028
24029 2011-03-25  Bruno Haible  <bruno@clisp.org>
24030
24031         Tests for module 'unictype/category-LC'.
24032         * modules/unictype/category-LC-tests: New file.
24033         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24034
24035         New module 'unictype/category-LC'.
24036         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24037         (UC_CATEGORY_LC): New declaration.
24038         (UC_CASED_LETTER): New macro.
24039         * lib/gen-uni-tables.c (is_category_LC): New function.
24040         (output_categories): Also handle category LC.
24041         (UC_CATEGORY_MASK_LC): New enumeration value.
24042         (general_category_byname): Also handle category LC.
24043         * lib/unictype/categ_LC.c: New file.
24044         * lib/unictype/categ_LC.h: New file, automatically generated.
24045         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24046         category LC.
24047         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24048         * modules/unictype/category-LC: New file.
24049         * modules/unictype/category-byname (Depends-on): Add
24050         unictype/category-LC.
24051         * modules/unictype/category-all (Depends-on): Likewise.
24052
24053 2011-03-25  Eric Blake  <eblake@redhat.com>
24054
24055         xmalloc: revert yesterday's regression
24056         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24057         realloc's underlying behavior (allowing allocation of zero-size
24058         objects, especially if malloc-gnu is also in use).
24059
24060 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24061
24062         maint.mk: add missing version to VC-tag
24063         * top/maint.mk: git tag was missing actual tag name; add it.
24064
24065         valgrind: do leak checking, and exit with code 1 on error (not 0)
24066         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24067         to VALGRIND.
24068
24069 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24070
24071         posix-modules: say what it does.
24072         * posix-modules: Add a line to the --help output saying what it does.
24073
24074 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24075
24076         xmalloc: Do not leak if underlying realloc is C99 compatible.
24077         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24078         This avoids a leak on C99-based systems.  See
24079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24080
24081 2011-03-24  Eric Blake  <eblake@redhat.com>
24082
24083         realloc: document portability problem
24084         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24085         passing 0 size to realloc.
24086
24087 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24088
24089         doc: update users.txt
24090         * users.txt: Add cvsps, tmpwatch
24091
24092 2011-03-23  Matt Rice  <ratmice@gmail.com>
24093
24094         doc: update users.txt
24095         * users.txt: Add gdb.
24096
24097 2011-03-23  Jim Meyering  <meyering@redhat.com>
24098
24099         doc: update users.txt
24100         Looking through matches up to the following URL (there are still
24101         several more pages), I found several projects that use gnulib:
24102         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24103         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24104         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24105
24106 2011-03-22  Bruno Haible  <bruno@clisp.org>
24107
24108         unictype/bidi*: Rename functions.
24109         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24110         uc_bidi_class, uc_is_bidi_class): New declarations.
24111         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24112         uc_bidi_category_byname.
24113         (uc_bidi_category_byname): New function.
24114         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24115         u_bidi_category_name.
24116         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24117         (uc_bidi_category_name): New function.
24118         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24119         uc_bidi_category.
24120         (uc_bidi_category): New function.
24121         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24122         uc_is_bidi_category. Invoke uc_bidi_class.
24123         (uc_is_bidi_category): New function.
24124         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24125         instead of uc_bidi_category_byname.
24126         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24127         instead of uc_bidi_category_name.
24128         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24129         uc_bidi_category.
24130         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24131         instead of uc_is_bidi_category.
24132
24133 2011-03-21  Bruno Haible  <bruno@clisp.org>
24134
24135         New module 'unictype/joininggroup-all'.
24136         * modules/unictype/joininggroup-all: New file.
24137
24138         Tests for module 'unictype/joininggroup-of'.
24139         * modules/unictype/joininggroup-of-tests: New file.
24140         * tests/unictype/test-joininggroup_of.c: New file.
24141         * tests/unictype/test-joininggroup_of.h: New file, automatically
24142         generated by gen-uni-tables.
24143
24144         New module 'unictype/joininggroup-of'.
24145         * modules/unictype/joininggroup-of: New file.
24146         * lib/unictype/joininggroup_of.c: New file.
24147         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24148         gen-uni-tables.
24149
24150         Tests for module 'unictype/joininggroup-byname'.
24151         * modules/unictype/joininggroup-byname-tests: New file.
24152         * tests/unictype/test-joininggroup_byname.c: New file.
24153
24154         New module 'unictype/joininggroup-byname'.
24155         * modules/unictype/joininggroup-byname: New file.
24156         * lib/unictype/joininggroup_byname.c: New file.
24157         * lib/unictype/joininggroup_byname.gperf: New file.
24158
24159         Tests for module 'unictype/joininggroup-name'.
24160         * modules/unictype/joininggroup-name-tests: New file.
24161         * tests/unictype/test-joininggroup_name.c: New file.
24162
24163         New module 'unictype/joininggroup-name'.
24164         * modules/unictype/joininggroup-name: New file.
24165         * lib/unictype/joininggroup_name.c: New file.
24166         * lib/unictype/joininggroup_name.h: New file.
24167
24168         New module 'unictype/joiningtype-all'.
24169         * modules/unictype/joiningtype-all: New file.
24170
24171         Tests for module 'unictype/joiningtype-of'.
24172         * modules/unictype/joiningtype-of-tests: New file.
24173         * tests/unictype/test-joiningtype_of.c: New file.
24174         * tests/unictype/test-joiningtype_of.h: New file, automatically
24175         generated by gen-uni-tables.
24176
24177         New module 'unictype/joiningtype-of'.
24178         * modules/unictype/joiningtype-of: New file.
24179         * lib/unictype/joiningtype_of.c: New file.
24180         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24181         gen-uni-tables.
24182
24183         Tests for module 'unictype/joiningtype-byname'.
24184         * modules/unictype/joiningtype-byname-tests: New file.
24185         * tests/unictype/test-joiningtype_byname.c: New file.
24186
24187         New module 'unictype/joiningtype-byname'.
24188         * modules/unictype/joiningtype-byname: New file.
24189         * lib/unictype/joiningtype_byname.c: New file.
24190
24191         Tests for module 'unictype/joiningtype-name'.
24192         * modules/unictype/joiningtype-name-tests: New file.
24193         * tests/unictype/test-joiningtype_name.c: New file.
24194
24195         New module 'unictype/joiningtype-name'.
24196         * modules/unictype/joiningtype-name: New file.
24197         * lib/unictype/joiningtype_name.c: New file.
24198
24199         unictype: Add support for Arabic shaping properties.
24200         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24201         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24202         declarations.
24203         (UC_JOINING_GROUP_*): New enumeration values.
24204         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24205         declarations.
24206         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24207         (unicode_joining_type): New variable.
24208         (UC_JOINING_GROUP_*): New enumeration values.
24209         (unicode_joining_group): New variable.
24210         (fill_arabicshaping, joining_type_as_c_identifier,
24211         output_joining_type_test, output_joining_type,
24212         joining_group_as_c_identifier, output_joining_group_test,
24213         output_joining_group): New functions.
24214         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24215         fill_arabicshaping and output_joining_type_test, output_joining_type,
24216         output_joining_group_test, output_joining_group.
24217         Reported by Simon Josefsson.
24218
24219 2011-03-21  Jim Meyering  <meyering@redhat.com>
24220
24221         strftime: fix a bug in yesterday's change
24222         * lib/strftime.c (add): Accommodate width's initial value of -1.
24223         Otherwise, nstrftime would copy uninitialized data into
24224         the result buffer.
24225
24226 2011-03-21  Jim Meyering  <meyering@redhat.com>
24227
24228         tests: add strftime-tests module
24229         * tests/test-strftime.c: New file.
24230         * modules/strftime-tests: New module.
24231
24232 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         strftime: don't assume a byte count fits in 'int'
24235         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24236         found this problem by static analysis, using gcc -Wstrict-overflow
24237         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24238         on an integer overflow having undefined behavior, but it turns out
24239         that the argument is a size, which might not fit in 'int' anyway,
24240
24241 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24242
24243         stdio: don't require ignore_value around fwrite
24244
24245         This patch works around libc bug 11959
24246         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24247         Without this patch, applications must often write
24248         ignore_value (fwrite (...)) even though the ignore_value is
24249         not helpful here.  It's common to write many objects, using
24250         fwrite/printf/etc., and then use ferror to detect output error.
24251
24252         I considered making this patch optional, but decided against it,
24253         because libc is obviously being inconsistent here: there is no
24254         reason libc should insist that user code must inspect fwrite
24255         return's value without also insisting that it inspect printf's,
24256         putchar's, etc.  If user code wants to have a strict style where
24257         all these functions' values are checked (so that ferror need not
24258         be checked), we could add support for that style in a new gnulib
24259         module, but in the meantime it's better to be consistent and to
24260         support common usage.
24261
24262         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24263         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24264         that we are compiling in checking mode, and if not C++, and
24265         if not already wrapping fwrite for some other reason.
24266         (fwrite): #define to rpl_fwrite if the latter is defined.
24267
24268 2011-03-20  Bruno Haible  <bruno@clisp.org>
24269
24270         verror: Fix compilation error introduced on 2011-02-13.
24271         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24272         instead of __attribute__.
24273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24274
24275 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24276             Bruno Haible  <bruno@clisp.org>
24277
24278         socklen: do not depend on sys_socket
24279         While trying to modify Emacs to use gnulib's socklen module,
24280         I discovered a circular dependency: socklen depends on sys_socket
24281         and vice versa.  Emacs can use socklen, but it does not need
24282         sys_socket because it has its own substitute for sys/socket.h.
24283         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24284         gl_TYPE_SOCKLEN_T.
24285         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24286         gl_PREREQ_SYS_H_SOCKET.
24287         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24288         gl_PREREQ_SYS_H_SOCKET.
24289         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24290         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24291         * modules/socklen (Depends-on): Do not depend on sys_socket.
24292         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24293
24294 2011-03-20  Jim Meyering  <meyering@redhat.com>
24295
24296         maint.mk: sort file names *after* new transformation
24297         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24298         prefix would have led to an unwarranted failure in GNU parted.
24299         Sort after that transformation.
24300
24301 2011-03-19  Jim Meyering  <meyering@redhat.com>
24302
24303         maint.mk: fix po-file syntax-check rule
24304         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24305         Patch by Bruno Haible.
24306
24307 2011-03-19  Bruno Haible  <bruno@clisp.org>
24308
24309         socklen: Update comment.
24310         * m4/socklen.m4: Update comment about platforms.
24311
24312 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24313             Bruno Haible  <bruno@clisp.org>
24314
24315         inet_ntop, inet_pton: Simplify.
24316         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24317         documented to provide socklen_t and we already depend on sys_socket.
24318         * modules/inet_pton (Depends-on): Likewise.
24319         * lib/arpa_inet.in.h: Adjust comment.
24320
24321 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24322             Bruno Haible  <bruno@clisp.org>
24323
24324         netdb: Simplify.
24325         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24326         documented to provide socklen_t and we already depend on sys_socket.
24327         * lib/netdb.in.h: Adjust comment.
24328
24329 2011-03-19  Bruno Haible  <bruno@clisp.org>
24330
24331         sys_socket, netdb: Document problem with socklen_t.
24332         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24333         platforms.
24334         * doc/posix-headers/netdb.texi: Likewise.
24335
24336 2011-03-18  Eric Blake  <eblake@redhat.com>
24337
24338         maint.mk: let po check work in VPATH build
24339         * top/maint.mk (po_file): Allow cfg.mk override.
24340         (sc_po_check): Allow VPATH use.
24341         Reported by Jiri Denemark.
24342
24343 2011-03-16  Jim Meyering  <meyering@redhat.com>
24344
24345         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24346         Before, you would have had to create one .x-sc_ file per rule in order
24347         to exempt offending files.  Now, you may instead use a Make variable --
24348         usually defined in cfg.mk -- whose name identifies the affected rule.
24349         * top/maint.mk (_sc_excl): Define.
24350         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24351         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24352
24353 2011-03-13  Bruno Haible  <bruno@clisp.org>
24354
24355         ignore-value tests: Avoid warnings.
24356         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24357         empty for gcc < 3.4.
24358
24359 2011-03-13  Bruno Haible  <bruno@clisp.org>
24360
24361         passfd: Fix link error on Solaris.
24362         * modules/passfd (Description): Correct.
24363         (Depends-on): Add socketlib.
24364         (Link): New section.
24365         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24366
24367 2011-03-13  Bruno Haible  <bruno@clisp.org>
24368
24369         passfd: Fix link error on AIX 5.2.
24370         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24371
24372 2011-03-13  Bruno Haible  <bruno@clisp.org>
24373
24374         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24375         * lib/sys_socket.in.h: Include <stddef.h>.
24376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24377         CMSG_FIRSTHDR. Remove unused variable.
24378
24379 2011-03-13  Bruno Haible  <bruno@clisp.org>
24380
24381         passfd: Fix compilation error on OpenBSD.
24382         * lib/passfd.c: Include <sys/uio.h>.
24383
24384 2011-03-13  Bruno Haible  <bruno@clisp.org>
24385
24386         passfd test: Fix warnings.
24387         * tests/test-passfd.c: Include <sys/wait.h>.
24388         (main): Fix typo.
24389
24390 2011-03-13  Bruno Haible  <bruno@clisp.org>
24391
24392         passfd module, part 4, tweaks.
24393         * tests/test-passfd.c: Reorder includes.
24394         (main): Fix perror and printf calls.
24395
24396 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24397
24398         passfd module, part 4.
24399         * modules/passfd-tests: New file.
24400         * tests/test-passfd.c: New file.
24401
24402 2011-03-13  Jim Meyering  <meyering@redhat.com>
24403
24404         Makefile: rely on GNU make; derive syntax-check rule names
24405         Rather than requiring that each sc_ rule be listed as a dependent
24406         of "check", use features of GNU make to derive the list.
24407         * Makefile (syntax-check-rules): Define.
24408         (check): Depend on the new variable, not the hard-coded list.
24409
24410 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24411             Bruno Haible  <bruno@clisp.org>
24412
24413         passfd module, part 3.
24414         * lib/passfd.h (recvfd): Add a flags argument.
24415         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24416         (recvfd): Add a flags argument.
24417         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24418         exists.
24419         * modules/passfd (Depends-on): Add cloexec.
24420         Suggested by Eric Blake.
24421
24422 2011-03-13  Bruno Haible  <bruno@clisp.org>
24423
24424         passfd module, part 2, tweaks.
24425         * modules/passfd (Files): Reorder.
24426         (Depends-on): Remove errno.
24427         (Include): Remove <sys/socket.h>, <sys/un.h>.
24428         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24429         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24430         specification header. Include <sys/socket.h> always. Don't include
24431         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24432         (sendfd): Clarify that it sets errno when it fails.
24433         (recvfd): Fix specification.
24434
24435 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24436
24437         passfd module, part 2.
24438         * modules/passfd: New file.
24439         * lib/passfd.h: New file.
24440         * lib/passfd.c: New file.
24441
24442 2011-03-12  Bruno Haible  <bruno@clisp.org>
24443
24444         wcswidth, mbswidth: Avoid integer overflow.
24445         * lib/wcswidth.c: Include <limits.h>.
24446         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24447         * lib/mbswidth.c: Include <limits.h>.
24448         (mbsnwidth): Avoid 'int' overflow.
24449         Reported by Jim Meyering.
24450
24451 2011-03-12  Bruno Haible  <bruno@clisp.org>
24452
24453         futimens, utimensat: Avoid endless recursion on Solaris 10.
24454         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24455         Solaris.
24456         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24457         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24458
24459 2011-03-11  Jim Meyering  <meyering@redhat.com>
24460
24461         maint.mk: relax a regexp to accommodate other formatting styles
24462         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24463         between "ngettext" and the following "(".
24464
24465 2011-03-11  Pádraig Brady <P@draigBrady.com>
24466
24467         maint.mk: suppress a false positive warning
24468         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24469         diagnostics are marked with ngettext.
24470
24471 2011-03-10  Eric Blake  <eblake@redhat.com>
24472
24473         wchar: add explicit dependencies, for Tru64
24474         * modules/mbmemcasecoll (Depends-on): Add wchar.
24475         * modules/mbtowc (Depends-on): Likewise.
24476         * modules/vasnprintf (Depends-on): Likewise.
24477         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24478         * modules/wctomb (Depends-on): Likewise.
24479         Reported by Peter O'Gorman.
24480
24481 2011-03-08  Bruno Haible  <bruno@clisp.org>
24482
24483         passfd module, part 1, tweaks.
24484         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24485         Improve indentation. Improve AC_MSG_CHECKING messages.
24486         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24487         gl_SOCKET_FAMILIES.
24488
24489 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24490
24491         passfd module, part 1.
24492         * m4/afunix.m4: New file.
24493         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24494         sockets.
24495
24496 2011-03-08  Bruno Haible  <bruno@clisp.org>
24497
24498         regex-quote: New API.
24499         * lib/regex-quote.h: Include <stdbool.h>.
24500         (struct regex_quote_spec): New type.
24501         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24502         New declarations.
24503         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24504         'const struct regex_quote_spec *' argument.
24505         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24506         (pcre_special): New constant.
24507         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24508         New functions.
24509         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24510         'const struct regex_quote_spec *' argument.
24511         * modules/regex-quote (Depends-on): Add stdbool.
24512         * tests/test-regex-quote.c (check): Update for new API. Add test for
24513         anchored results.
24514         * NEWS: Mention the API change.
24515         Reported by Reuben Thomas and Eric Blake.
24516
24517 2011-03-06  Bruno Haible  <bruno@clisp.org>
24518
24519         regex-quote: Fix creation of POSIX extended regular expressions.
24520         * lib/regex-quote.c (ere_special): Add grouping and alternation
24521         operators.
24522
24523 2011-03-05  Bruno Haible  <bruno@clisp.org>
24524
24525         doc: Improve doc regarding autopoint vs. gnulib.
24526         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24527         disable autopoint while running autoreconf.
24528         Suggested by Ralf Wildenhues.
24529
24530 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24531
24532         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24533         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24534
24535 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24536
24537         parse-duration: remove xalloc.h dependency
24538         * lib/parse-duration.c (parse_period): handle NULL return from
24539         strdup instead of calling xstrdup().
24540         * modules/parse-duration: remove "xalloc" dependency
24541
24542 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24543
24544         bootstrap: honor m4_base when running aclocal
24545         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24546
24547 2011-03-02  Jim Meyering  <meyering@redhat.com>
24548
24549         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24550         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24551         on request from Matt Booth.
24552
24553 2011-03-01  Eric Blake  <eblake@redhat.com>
24554
24555         test-link: work on Hurd
24556         * tests/test-link.h (test_link): Hurd rejects linking directories
24557         with EISDIR instead of the POSIX-mandated EPERM.
24558
24559 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24560
24561         stdio: simplify by moving files to printf-posix, sigpipe
24562         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24563         since this symbol is needed only if printf is replaced.
24564         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24565         Require gl_ASM_SYMBOL_PREFIX.
24566         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24567         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24568         (Depends-on): Add 'raise'.
24569         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24570         * modules/stdio (Files): Remove lib/stdio-write.c,
24571         m4/asm-underscore.m4.
24572         (Depends-on): Remove 'raise'.
24573
24574         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24575         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24576         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24577         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24578
24579 2011-02-28  Bruno Haible  <bruno@clisp.org>
24580
24581         localcharset: Assume ANSI C behaviour of free().
24582         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24583         calling free().
24584         Suggested by Simon Josefsson <simon@josefsson.org>.
24585
24586 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24587             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24588             Bruno Haible  <bruno@clisp.org>  (tiny change)
24589
24590         On Cygwin, use /proc file system instead of win32 API.
24591         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24592         Win32 file names.
24593         (DllMain): Simplify by removing Cygwin specific code.
24594         (find_shared_library_fullname): Use Linux specific implementation also
24595         for Cygwin.
24596         (get_shared_library_fullname): Update accordingly.
24597         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24598         Win32 file names.
24599         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24600         Cygwin specific code.
24601
24602 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24603             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24604
24605         Fix OpenMP flag detection for various Fortran compilers.
24606         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24607         OpenMP-conditional compilation construct, to force compile
24608         failure with missing OpenMP flag.
24609         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24610
24611 2011-02-25  Eric Blake  <eblake@redhat.com>
24612
24613         strstr: expand test coverage
24614         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24615         compilation.
24616         * tests/test-memmem.c (main): Duplicate tests.
24617         * tests/test-strcasestr.c (main): Likewise.
24618         * tests/test-c-strcasestr.c (main): Likewise.
24619
24620 2011-02-25  Jim Meyering  <meyering@redhat.com>
24621
24622         maint.mk: detect missing-NL-at-EOF, too
24623         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24624         it also detects when a file lacks a newline at EOF.
24625         (require_exactly_one_NL_at_EOF_): Renamed from
24626         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24627         since people may well have .x-sc_... file names tied to the
24628         existing name.  Suggested by Eric Blake.
24629
24630 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24631
24632         dirname: move m4/dos.m4 functionality into lib/dosname.h
24633
24634         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24635         extracts symbols from it, puts them into config.h; but it's much
24636         easier to use the symbols directly.  filename.h already does this,
24637         but it disagrees with dos.m4 in some respects.  This patch
24638         introduces a different include file dosname.h that packages up
24639         dos.m4, and then later we can work on merging filename.h and
24640         dosname.h.  Applications that need only the easy-to-configure
24641         symbols should consider including dosname.h rather than dirname.h.
24642         * NEWS: Mention incompatible changes.
24643         * m4/dos.m4: Remove.
24644         * lib/dosname.h, modules/dosname: New files.
24645         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24646         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24647         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24648         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24649         Include dosname.h, not dirname.h.
24650         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24651         Include dosname.h, for definitions of symbols like ISSLASH
24652         that used to be in config.h.
24653         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24654         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24655         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24656         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24657         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24658         * modules/rmdir (Files): Likewise.
24659         * modules/stat (Files): Likewise.
24660         * modules/unlink (Files): Likewise.
24661         * modules/dirname-lgpl (Depends-on): Add dosname.
24662         * modules/lstat (Depends-on): Likewise.
24663         * modules/openat (Depends-on): Likewise.
24664         * modules/rmdir (Depends-on): Likewise.
24665         * modules/savewd (Depends-on): Likewise.
24666         * modules/stat (Depends-on): Likewise.
24667         * modules/unlink (Depends-on): Likewise.
24668         * modules/openat (Depends-on): Remove dirname-lgpl.
24669         * modules/savewd (Depends-on): Likewise.
24670         * tests/test-dirname.c: Do not use removed symbols like
24671         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24672         the remaining symbols, e.g., ISSLASH ('\\').
24673
24674 2011-02-25  Eric Blake  <eblake@redhat.com>
24675
24676         strstr: revert patches that introduced bug and pessimization
24677         * lib/str-two-way.h: Add another reference.
24678         (two_way_short_needle, two_way_long_needle): Revert changes from
24679         2011-02-24; they pessimize search speed.
24680         (critical_factorization): Partially revert changes from
24681         2010-06-22; they violate the requirement that the left half of the
24682         needle be smaller than the period of the needle.
24683
24684 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24685
24686         filenamecat: remove unnecessary dependency on dirname-lgpl
24687         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24688         is no direct dependency, just an indirect one via filenamecat-lgpl.
24689
24690         remove: remove unnecessary use of m4/dos.m4
24691         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24692         * modules/remove (FILES): Remove m4/dos.m4.
24693
24694         * lib/openat-proc.c: Don't include dirname.h; not needed.
24695
24696         backupfile: remove unnecessary use of m4/dos.m4
24697         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24698         of its symbols are used by the backupfile code.  backupfile.c does
24699         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24700         for the rare case of programs that want all their backup file
24701         names to live within 8+3 limits, and dos.m4 doesn't address that.
24702         * modules/backupfile (Files): Remove m4/dos.m4.
24703
24704 2011-02-24  Jim Meyering  <meyering@redhat.com>
24705
24706         strstr: fix a bug whereby strstr would mistakenly return NULL
24707         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24708         in period calculation.
24709         (two_way_long_needle): Likewise.
24710         The original problem was reported by Mike Stump in
24711         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24712         Ralf Wildenhues provided the short needle and haystack.
24713         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24714         Add a more involved test to trigger the bug in two_way_long_needle.
24715
24716 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24717
24718         gnulib-tool: remove use of bold display in help screen
24719         * gnulib-tool (func_usage): Do not use bold display anymore in the
24720         help screen.  That was just meant to be a temporary emphasis for a
24721         backward-incompatible change.
24722
24723 2011-02-23  Bruno Haible  <bruno@clisp.org>
24724
24725         Fix misindentation of preprocessor directives.
24726         * lib/argp-namefrob.h: Reindent preprocessor directives.
24727         * lib/getopt_int.h (struct _getopt_data): Likewise.
24728         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24729         * lib/vasnprintf.c (decode_long_double): Likewise.
24730         * tests/test-argmatch.c: Insert blank lines, for clarity.
24731         * tests/test-exclude.c: Likewise.
24732
24733 2011-02-22  Bruno Haible  <bruno@clisp.org>
24734
24735         ioctl: Fix for MacOS X in 64-bit mode.
24736         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24737         value.
24738         Suggested by Eric Blake.
24739         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24740
24741 2011-02-22  Jim Meyering  <meyering@redhat.com>
24742
24743         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24744         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24745         in lib/.
24746
24747 2011-02-22  Eric Blake  <eblake@redhat.com>
24748
24749         maint: avoid any CDPATH issue
24750         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24751
24752         maint: adjust cpp indentation for my modules, as well
24753         * Makefile (sc_cpp_indent_check): Add my name.
24754         * lib/fbufmode.c: Filter through cppi.
24755         * lib/fpurge.c: Likewise.
24756         * lib/freadable.c: Likewise.
24757         * lib/freading.c: Likewise.
24758         * lib/fwritable.c: Likewise.
24759         * lib/fwriting.c: Likewise.
24760         * lib/sigaction.c: Likewise.
24761
24762 2011-02-22  Jim Meyering  <meyering@redhat.com>
24763
24764         maint: adjust cpp indentation to reflect nesting depth
24765         I.e., in a block of code that begins with an unnested "#if",
24766         put one space between the "#" in column 1 and following token.
24767         For example,
24768         -#include <sys/vfs.h>
24769         +# include <sys/vfs.h>
24770         Do this only in .c files that are part of a module I maintain.
24771         * lib/linkat.c: Filter through cppi.
24772         * lib/nanosleep.c: Likewise.
24773         * lib/openat.c: Likewise.
24774         * lib/openat-die.c: Likewise.
24775         * lib/dup3.c: Likewise.
24776         * lib/fchownat.c: Likewise.
24777         * lib/flock.c: Likewise.
24778         * lib/fsync.c: Likewise.
24779         * lib/fts.c: Likewise.
24780         * lib/getpass.c: Likewise.
24781         * lib/gettimeofday.c: Likewise.
24782         * lib/userspec.c: Likewise.
24783         * Makefile (sc_cpp_indent_check): New rule, to check this.
24784
24785 2011-02-22  Bruno Haible  <bruno@clisp.org>
24786
24787         New module 'wctomb'.
24788         * lib/stdlib.in.h (wctomb): New declaration.
24789         * lib/wctomb.c: New file.
24790         * lib/wctomb-impl.h: New file.
24791         * m4/wctomb.m4: New file.
24792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24793         REPLACE_WCTOMB.
24794         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24795         REPLACE_WCTOMB.
24796         * modules/wctomb: New file.
24797         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24798         * doc/posix-functions/wctomb.texi: Mention the new module.
24799         * modules/wctob (Depends-on): Add wctomb.
24800
24801 2011-02-22  Bruno Haible  <bruno@clisp.org>
24802
24803         New module 'mbtowc'.
24804         * lib/stdlib.in.h (mbtowc): New declaration.
24805         * lib/mbtowc.c: New file.
24806         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24807         * m4/mbtowc.m4: New file.
24808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24809         REPLACE_MBTOWC.
24810         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24811         REPLACE_MBTOWC.
24812         * modules/mbtowc: New file.
24813         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24814         * doc/posix-functions/mbtowc.texi: Mention the new module.
24815         * modules/btowc (Depends-on): Add mbtowc.
24816
24817 2011-02-22  Bruno Haible  <bruno@clisp.org>
24818
24819         wcrtomb: Add more tests for native Windows platforms.
24820         * tests/test-wcrtomb-w32-1.sh: New file.
24821         * tests/test-wcrtomb-w32-2.sh: New file.
24822         * tests/test-wcrtomb-w32-3.sh: New file.
24823         * tests/test-wcrtomb-w32-4.sh: New file.
24824         * tests/test-wcrtomb-w32-5.sh: New file.
24825         * tests/test-wcrtomb-w32.c: New file.
24826         * modules/wcrtomb-tests (Files): Add them.
24827         (Makefile.am): Arrange to run these tests.
24828         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24829         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24830
24831 2011-02-20  Bruno Haible  <bruno@clisp.org>
24832
24833         wcrtomb: Enhance test.
24834         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24835
24836 2011-02-20  Bruno Haible  <bruno@clisp.org>
24837
24838         mbrtowc: Tiny optimization.
24839         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24840
24841 2011-02-20  Jim Meyering  <meyering@redhat.com>
24842
24843         test-exclude.c: remove unmatched #endif
24844         * tests/test-exclude.c: Remove stray #endif, left over from
24845         the change of a week ago.
24846
24847 2011-02-19  Jim Meyering  <meyering@redhat.com>
24848
24849         git-version-gen: skip "-dirty" check when appropriate
24850         * build-aux/git-version-gen: Don't run any git commands when the
24851         version string comes from .tarball-version.  Prior to this, we
24852         would run git update-index --refresh even from a just-unpacked
24853         tarball directory, and that could affect a .git/ directory in a
24854         parent of the build directory.  Reported by Mike Frysinger.
24855
24856 2011-02-19  Bruno Haible  <bruno@clisp.org>
24857
24858         unictype/property-byname: Reduce the size of the 'data' segment.
24859         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24860
24861 2011-02-19  Bruno Haible  <bruno@clisp.org>
24862
24863         unictype/scripts: Reduce the size of the 'data' segment.
24864         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24865         '%pic'.
24866         * lib/unictype/scripts_byname.gperf: Regenerated.
24867
24868 2011-02-19  Bruno Haible  <bruno@clisp.org>
24869
24870         stdint: Update documentation.
24871         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24872
24873 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24874
24875         stdint: omit redundant check for wchar.h
24876         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24877         always tests whether wchar.h exists, so remove the now-redundant test.
24878
24879 2011-02-18  Bruno Haible  <bruno@clisp.org>
24880
24881         stdint: Cut dependency to module 'wchar'.
24882         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24883         include the necessary prerequisites.
24884         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24885         * modules/stdint (Depends-on): Remove wchar.
24886         (Makefile.am): Substitute HAVE_WCHAR_H.
24887         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24888
24889 2011-02-18  Eric Blake  <eblake@redhat.com>
24890
24891         longlong: skip, rather than fail, on cross-compilation
24892         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24893         when cross-compiling; regression from 2011-02-16.
24894
24895 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24896
24897         * NEWS: Mention 2011-02-08 change to stdlib.
24898
24899 2011-02-17  Bruno Haible  <bruno@clisp.org>
24900
24901         getloadavg: Add comments about platforms.
24902         * m4/getloadavg.m4: Add comment.
24903         * lib/getloadavg.c: Likewise.
24904
24905 2011-02-17  Bruno Haible  <bruno@clisp.org>
24906
24907         getloadavg: Fix link error on Solaris 2.6.
24908         * modules/getloadavg (Link): New section.
24909         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24910         linking test-getloadavg.
24911         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24912         getloadavg.
24913
24914 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24915
24916         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24917         It was 'int', but this doesn't match the IRIX 6.5 manual.
24918         Suggested by Bruno Haible in
24919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24920
24921 2011-02-17  Bruno Haible  <bruno@clisp.org>
24922
24923         havelib: Fix comments.
24924         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24925         change.
24926
24927 2011-02-17  Bruno Haible  <bruno@clisp.org>
24928
24929         havelib: Update config.rpath.
24930         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24931
24932 2011-02-17  Bruno Haible  <bruno@clisp.org>
24933
24934         getloadavg test: Add some plausibility checks.
24935         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24936         is improbable.
24937
24938 2011-02-16  Eric Blake  <eblake@redhat.com>
24939
24940         maintainer-makefile: make syntax-check a no-op from tarballs
24941         * top/maint.mk (no-vc-detected): New rule.
24942         (local-checks-available): Use it to avoid hanging if someone tries
24943         'make syntax-check' from a tarball.  Also append to any non-syntax
24944         checks already defined in cfg.mk.
24945
24946 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24947
24948         longlong: tune, particularly for common case of c99
24949
24950         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24951         or running anything if c99, or if unsigned long long int does not
24952         work.  In either case, we know the answer without further tests.
24953         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24954         it at most once, and use its results for both long long int and
24955         unsigned long long int.  This is more likely to be efficient in
24956         the common case where the program wants to check for both long
24957         long int and unsigned long long int.
24958         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24959         since the answer is already known.
24960
24961 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24962
24963         getloadavg: set errno
24964         * lib/getloadavg.c: Set errno when returning -1.  If no other
24965         error number looks appropriate, set it to ENOSYS if the getloadavg
24966         looks like it can't possibly ever work, ENOTSUP otherwise.
24967         Suggested by Bruno Haible in
24968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24969
24970         getloadavg: trim unused parts and speed up 'configure'
24971         * NEWS: Document this.
24972         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24973         always compiled if getloadavg is absent.
24974         Move test code to ...
24975         * tests/test-getloadavg.c: New file, containing previous
24976         contents of test from lib/getloadavg.c.  It also contains
24977         suggestions by Bruno Haible in
24978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24979         * modules/getloadavg-tests: New file.
24980         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24981         Do tests in the same order as they're needed for getloadavg.c.
24982         Omit setgid-related tests that generate symbols KMEM_GROUP,
24983         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24984         Do only the tests that are needed to see whether the system has
24985         getloadavg, moving the other tests into ...
24986         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24987         NLIST_NAME_UNION; nobody should be using it.  Do not define
24988         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24989         relevant, as the user of this module shouldn't care how getloadavg
24990         is implemented.
24991
24992         getloadavg: omit unused var
24993         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24994
24995 2011-02-15  Jim Meyering  <meyering@redhat.com>
24996
24997         doc: update users.txt
24998         * users.txt: Update iwhd's URL.
24999
25000 2011-02-13  Bruno Haible  <bruno@clisp.org>
25001
25002         Consistent macro naming for macros that use GCC __attribute__.
25003         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25004         _ATTRIBUTE_NONNULL_.
25005         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25006         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25007         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25008         ATTRIBUTE_DEPRECATED.
25009         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25010         ATTRIBUTE_NORETURN.
25011         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25012         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25013         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25014         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25015         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25016         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25017         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25018         ATTRIBUTE_SENTINEL.
25019         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25020         ATTRIBUTE_RETURN_CHECK.
25021         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25022         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25023         ATTRIBUTE_NORETURN.
25024         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25025         Reported by Paul Eggert.
25026
25027 2011-02-13  Bruno Haible  <bruno@clisp.org>
25028
25029         Don't interfere with a program's definition of __attribute__.
25030         * lib/argp.h (__attribute__): Remove definition.
25031         (_GL_ATTRIBUTE_FORMAT): New macro.
25032         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25033         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25034         (_GL_ATTRIBUTE_FORMAT): New macro.
25035         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25036         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25037         GCC 3 or newer.
25038         * lib/error.h (__attribute__): Remove definition.
25039         (_GL_ATTRIBUTE_FORMAT): New macro.
25040         (error, error_at_line): Use it.
25041         * lib/hash.h (__attribute__): Remove definition.
25042         (ATTRIBUTE_WUR): Update definition. Define always.
25043         * lib/openat.h (__attribute__): Remove definition.
25044         (ATTRIBUTE_NORETURN): Update definition. Define always.
25045         * lib/sigpipe-die.h (__attribute__): Remove definition.
25046         (ATTRIBUTE_NORETURN): Update definition. Define always.
25047         * lib/vasnprintf.h (__attribute__): Remove definition.
25048         (_GL_ATTRIBUTE_FORMAT): New macro.
25049         (asnprintf, vasnprintf): Use it.
25050         * lib/xalloc.h (__attribute__): Remove definition.
25051         (ATTRIBUTE_NORETURN): Update definition. Define always.
25052         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25053         * lib/xmemdup0.h (__attribute__): Remove definition.
25054         (ATTRIBUTE_NORETURN): Update definition. Define always.
25055         * lib/xprintf.h (__attribute__): Remove definition.
25056         (_GL_ATTRIBUTE_FORMAT): New macro.
25057         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25058         * lib/xstrtol.h (__attribute__): Remove definition.
25059         (ATTRIBUTE_NORETURN): Update definition. Define always.
25060         * lib/xvasprintf.h (__attribute__): Remove definition.
25061         (_GL_ATTRIBUTE_FORMAT): New macro.
25062         (xasprintf, xvasprintf): Use it.
25063         * tests/test-argmatch.c (__attribute__): Remove definition.
25064         (ATTRIBUTE_NORETURN): Update definition. Define always.
25065         * tests/test-exclude.c (__attribute__): Remove definition.
25066         (ATTRIBUTE_NORETURN): Update definition. Define always.
25067         Reported by Paul Eggert.
25068
25069 2011-02-13  Bruno Haible  <bruno@clisp.org>
25070
25071         mbrtowc: Add more tests for native Windows platforms.
25072         * tests/test-mbrtowc-w32-1.sh: New file.
25073         * tests/test-mbrtowc-w32-2.sh: New file.
25074         * tests/test-mbrtowc-w32-3.sh: New file.
25075         * tests/test-mbrtowc-w32-4.sh: New file.
25076         * tests/test-mbrtowc-w32-5.sh: New file.
25077         * tests/test-mbrtowc-w32.c: New file.
25078         * modules/mbrtowc-tests (Files): Add them.
25079         (Makefile.am): Arrange to run these tests.
25080         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25081         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25082
25083 2011-02-13  Bruno Haible  <bruno@clisp.org>
25084
25085         mbrtowc: Work around native Windows bug.
25086         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25087         guess when no suitable locale for testing was found.
25088         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25089
25090 2011-02-13  Bruno Haible  <bruno@clisp.org>
25091
25092         mbsinit: Work around mingw bug.
25093         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25094         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25095         Windows.
25096         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25097
25098 2011-02-13  Bruno Haible  <bruno@clisp.org>
25099
25100         mbsinit: Don't crash for a NULL argument.
25101         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25102         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25103
25104 2011-02-13  Bruno Haible  <bruno@clisp.org>
25105
25106         Don't interfere with a program's definition of __attribute__.
25107         * lib/stdio.in.h (__attribute__): Remove definition.
25108         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25109         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25110         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25111         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25112         * lib/string.in.h (__attribute__): Remove definition.
25113         Reported by Paul Eggert.
25114
25115 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25116
25117         stdlib: don't get in the way of non-GCC __attribute__
25118         See thread starting at
25119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25120         Revert previous stdlib change, installing the following instead:
25121         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25122         to get in the way of a non-GCC compiler that supports __attribute__.
25123         (_GL_ATTRIBUTE_RETURN): New macro.
25124         (_Exit): Use it instead of __attribute__.
25125
25126 2011-02-12  Bruno Haible  <bruno@clisp.org>
25127
25128         quotearg test: Avoid test failure on mingw.
25129         * tests/test-quotearg.sh: Convert the locale identifier from native
25130         Windows syntax to Unix syntax.
25131
25132 2011-02-12  Bruno Haible  <bruno@clisp.org>
25133
25134         setlocale: Prefer gnulib's override over libintl's override.
25135         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25136         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25137         GNULIB_defined_setlocale is set.
25138
25139 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25140
25141         stdlib: support non-GCC __attribute__
25142
25143         Fix a serious and tricky problem encountered when attempting to
25144         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25145         5.5, but it crashed due to memory corruption on Solaris 10 with
25146         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25147         bits that are otherwise zero.  This tagging is optional inside
25148         Emacs but is preferred and is used when __attribute__ ((__aligned
25149         (8))) works, as it does with both recent-enough GCC and with Sun C
25150         5.11.  However, Sun C 5.11 is not GCC and does not #define
25151         __GNUC__ and __GNUC_MINOR__.
25152
25153         When I added the getloadavg module to Emacs, it brought in
25154         stdlib.in.h, which contained this fragment:
25155
25156            #ifndef __attribute__
25157            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25158            #  define __attribute__(Spec)   /* empty */
25159            # endif
25160            #endif
25161
25162         When files that include <stdlib.h> were compiled with Sun C 5.11,
25163         the above code disabled __attribute__ ((__aligned (8))), which
25164         caused variables to not be properly aligned, which eventually led
25165         to the pointer corruption mentioned above.  (This was a bit hard
25166         to diagnose, unfortunately.)
25167
25168         Several "#define __attribute__(X) /* empty */" code snippets need
25169         to be eradicated from Gnulib to work with non-GCC compilers that
25170         support __attribute__.  The Autoconf way to do this is to test for
25171         each kind of attribute that we want support for, and selectively
25172         enable that in source code.
25173
25174         Fix this problem just for stdlib.h, by adding a test for the
25175         __noreturn__ attribute, and change stdlib.in.h to use that test
25176         when needed.  This technique can be easily generalized to the
25177         other *.in.h files and attributes, and a similar technique can be
25178         used for *.h and *.c files.  This patch is enough to solve the
25179         problem for Emacs + getloadavg, and I thought I'd publish it for
25180         feedback before undertaking further, similar fixes in other
25181         modules.
25182
25183         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25184         because it's not needed for stdlib.h.  It merely substitutes the
25185         value directly into stdlib.h.  We may well need to #define it, or
25186         similar symbols, for other modules, but it's nice to also have an
25187         option to not #define it for applications like Emacs that do not
25188         need it.
25189
25190         * lib/stdlib.in.h (__attribute__): Do not #define.
25191         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25192         be defined only if the _Exit module is also used.
25193         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25195         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25196         platforms.
25197         * modules/_Exit (Files): Add m4/attribute.m4.
25198         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25199         * m4/attribute.m4: New file.
25200
25201 2011-02-12  Bruno Haible  <bruno@clisp.org>
25202
25203         wcsrtombs: Work around bug on native Windows.
25204         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25205         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25206         instead of len.
25207         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25208
25209 2011-02-12  Bruno Haible  <bruno@clisp.org>
25210
25211         mbsrtowcs: Work around bug on native Windows.
25212         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25213         against mingw bug.
25214         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25215
25216 2011-02-12  Bruno Haible  <bruno@clisp.org>
25217
25218         Avoid setlocale bugs in tests.
25219         * modules/btowc (Dependencies): Add setlocale.
25220         * modules/c-strcase (Dependencies): Likewise.
25221         * modules/mbmemcasecmp (Dependencies): Likewise.
25222         * modules/mbmemcasecoll (Dependencies): Likewise.
25223         * modules/mbrtowc (Dependencies): Likewise.
25224         * modules/mbscasecmp (Dependencies): Likewise.
25225         * modules/mbscasestr (Dependencies): Likewise.
25226         * modules/mbschr (Dependencies): Likewise.
25227         * modules/mbscspn (Dependencies): Likewise.
25228         * modules/mbsinit (Dependencies): Likewise.
25229         * modules/mbsncasecmp (Dependencies): Likewise.
25230         * modules/mbsnrtowcs (Dependencies): Likewise.
25231         * modules/mbspbrk (Dependencies): Likewise.
25232         * modules/mbspcasecmp (Dependencies): Likewise.
25233         * modules/mbsrchr (Dependencies): Likewise.
25234         * modules/mbsrtowcs (Dependencies): Likewise.
25235         * modules/mbsspn (Dependencies): Likewise.
25236         * modules/mbsstr (Dependencies): Likewise.
25237         * modules/nl_langinfo (Dependencies): Likewise.
25238         * modules/quotearg (Dependencies): Likewise.
25239         * modules/unicase/locale-language (Dependencies): Likewise.
25240         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25241         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25242         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25243         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25244         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25245         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25246         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25247         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25248         * modules/vasnprintf-posix (Dependencies): Likewise.
25249         * modules/wcrtomb (Dependencies): Likewise.
25250         * modules/wcsnrtombs (Dependencies): Likewise.
25251         * modules/wcsrtombs (Dependencies): Likewise.
25252
25253 2011-02-12  Bruno Haible  <bruno@clisp.org>
25254
25255         setlocale: Workaround native Windows bug.
25256         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25257         succeeds but sets LC_CTYPE to "C", report a failure.
25258         * tests/test-setlocale2.sh: New file.
25259         * tests/test-setlocale2.c: New file.
25260         * modules/setlocale-tests (Files): Add the new files.
25261         (Makefile.am): Enable test-setlocale2.sh test.
25262         * doc/posix-functions/setlocale.texi: Mention workaround.
25263
25264 2011-02-11  Bruno Haible  <bruno@clisp.org>
25265
25266         Tests for module 'setlocale'.
25267         * modules/setlocale-tests: New file.
25268         * tests/test-setlocale1.sh: New file.
25269         * tests/test-setlocale1.c: New file.
25270
25271         New module 'setlocale'.
25272         * lib/locale.in.h (setlocale): New declaration.
25273         * lib/setlocale.c: New file, based on
25274         gettext/gettext-runtime/intl/setlocale.c.
25275         * m4/setlocale.m4: New file.
25276         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25277         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25278         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25279         REPLACE_SETLOCALE.
25280         * modules/setlocale: New file.
25281         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25282         * doc/posix-functions/setlocale.texi: Mention the new module.
25283
25284 2011-02-11  Bruno Haible  <bruno@clisp.org>
25285
25286         Prepare for locale dependent tests on mingw.
25287         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25288         because it has the wrong locale encoding.
25289         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25290         French_France.1252 instead of "fr".
25291         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25292         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25293         because it has the wrong locale encoding.
25294         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25295         native Windows, try Turkish_Turkey.65001.
25296         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25297         Chinese_China.54936.
25298
25299         Prepare for locale dependent tests on mingw.
25300         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25301         differently.
25302         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25303         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25304         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25305         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25306
25307 2011-02-11  Eric Blake  <eblake@redhat.com>
25308
25309         strptime: avoid compiler warnings
25310         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25311         compiler warnings about dead code.
25312         Reported by Daniel P. Berrange.
25313
25314 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25315
25316         doc: update users.txt
25317         * users.txt: Add rcs.
25318
25319 2011-02-10  John W. Eaton  <jwe@gnu.org>
25320
25321         doc: update users.txt
25322         * users.txt: Add octave.
25323
25324 2011-02-10  Jim Meyering  <meyering@redhat.com>
25325
25326         doc: update users.txt
25327         * users.txt: Add iwhd.
25328
25329 2011-02-09  Bruno Haible  <bruno@clisp.org>
25330
25331         gnulib-tool: Make copyright notice adjustment more robust.
25332         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25333         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25334         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25335         License".
25336         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25337
25338 2011-02-06  Bruno Haible  <bruno@clisp.org>
25339
25340         New module 'towctrans'.
25341         * modules/towctrans: New file.
25342         * lib/wctype.in.h (towctrans): New declaration.
25343         * lib/towctrans.c: New file.
25344         * lib/towctrans-impl.h: New file.
25345         * m4/towctrans.m4: New file.
25346         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25347         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25348         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25349         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25350         * doc/posix-functions/towctrans.texi: Mention the new module.
25351
25352 2011-02-06  Bruno Haible  <bruno@clisp.org>
25353
25354         New module 'wctrans'.
25355         * modules/wctrans: New file.
25356         * lib/wctype.in.h (wctrans): New declaration.
25357         * lib/wctrans.c: New file.
25358         * lib/wctrans-impl.h: New file.
25359         * m4/wctrans.m4: New file.
25360         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25361         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25362         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25363         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25364         * doc/posix-functions/wctrans.texi: Mention the new module.
25365
25366 2011-02-06  Bruno Haible  <bruno@clisp.org>
25367
25368         New module 'iswctype'.
25369         * modules/iswctype: New file.
25370         * lib/wctype.in.h (iswctype): New declaration.
25371         * lib/iswctype.c: New file.
25372         * lib/iswctype-impl.h: New file.
25373         * m4/iswctype.m4: New file.
25374         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25375         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25376         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25377         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25378         * doc/posix-functions/iswctype.texi: Mention the new module and the
25379         HP-UX 11.00 problem.
25380
25381 2011-02-06  Bruno Haible  <bruno@clisp.org>
25382
25383         New module 'wctype'.
25384         * modules/wctype: Change to represent the wctype() substitute.
25385         * lib/wctype.in.h (wctype): New declaration.
25386         * lib/wctype.c: New file.
25387         * lib/wctype-impl.h: New file.
25388         * m4/wctype.m4: New file.
25389         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25390         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25391         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25392         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25393         * doc/posix-functions/wctype.texi: Mention the new module and the
25394         HP-UX 11.00 problem.
25395
25396 2011-02-06  Bruno Haible  <bruno@clisp.org>
25397
25398         wctype-h: Ensure wctype_t and wctrans_t are defined.
25399         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25400         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25401         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25402         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25403         HAVE_WCTRANS_T.
25404         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25405
25406 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25407
25408         flock: fix license typo
25409
25410         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25411         omitted.
25412
25413 2011-02-08  Bruno Haible  <bruno@clisp.org>
25414
25415         Split large sed scripts, for HP-UX sed.
25416         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25417         to avoid HP-UX limit of 99 commands, in the near future.
25418         * modules/stdlib (Makefile.am): Likewise.
25419         * modules/unistd (Makefile.am): Likewise.
25420         * modules/wchar (Makefile.am): Likewise.
25421         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25422         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25424
25425 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25426             Bruno Haible  <bruno@clisp.org>
25427
25428         stdlib: improve random_r modularization
25429         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25430         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25431         you also need the random_r module to get this material right.
25432         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25433         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25434         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25435
25436 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25437
25438         stdlib: don't depend on stdint
25439         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25440         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25441         be independent of whether stdint.h is needed.
25442         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25443         here, instead of ...
25444         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25445         struct random_data should be using the random_r module, not just
25446         the stdlib module (which wouldn't make sense: what package needs
25447         just struct random_data without also needing random_r?).
25448         * modules/stdlib (Depends-on): Remove stdint.
25449
25450         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25451         See the thread rooted at
25452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25453         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25454         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25455         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25456         __VMS)); previously it was always included (via fcntl--.h).
25457         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25458         hand; this is good enough for load averages.  Also, do not use
25459         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25460         flags directly if available and don't bother otherwise.  (Packages
25461         that need the extra reliability should use the modules that define
25462         these flags on older platforms that lack them.)
25463         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25464         fcntl-safer.
25465
25466 2011-02-08  Jim Meyering  <meyering@redhat.com>
25467
25468         di-set.h, ino-map.h: add multiple-inclusion guard
25469         Technically, the guard is required only for ino-map.h, due to its
25470         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25471         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25472         * lib/ino-map.h: Likewise.
25473
25474 2011-02-06  Bruno Haible  <bruno@clisp.org>
25475
25476         iswblank: Ensure declaration on glibc systems.
25477         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25478         * modules/iswblank (Dependencies): Add 'extensions'.
25479         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25480
25481 2011-02-06  Bruno Haible  <bruno@clisp.org>
25482
25483         New module 'iswblank'.
25484         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25485         * modules/iswblank: New file.
25486         * modules/wctype-h (Files): Remove lib/iswblank.c.
25487         (Makefile.am): Substitute GNULIB_ISWBLANK.
25488         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25489         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25490         (gl_WCTYPE_H_DEFAULTS): New macro.
25491         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25492         * modules/iswblank-tests: New file.
25493         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25494         * tests/test-wctype-h.c (main): Remove iswblank tests.
25495         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25496         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25497         of 'wctype-h'.
25498         * NEWS: Mention the change.
25499         * modules/mbchar (Depends-on): Add iswblank.
25500
25501 2011-02-08  Bruno Haible  <bruno@clisp.org>
25502
25503         di-set tests: Refactor.
25504         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25505         unnecessary includes.
25506         (ASSERT): Remove macro.
25507         (main): Make C90 compliant by avoiding variable declaration after
25508         statement.
25509         * modules/di-set-tests (Files): Add tests/macros.h.
25510
25511 2011-02-08  Bruno Haible  <bruno@clisp.org>
25512
25513         ino-map tests: Refactor.
25514         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25515         unnecessary includes.
25516         (ASSERT): Remove macro.
25517         (main): Make C90 compliant by avoiding variable declaration after
25518         statement.
25519         * modules/ino-map-tests (Files): Add tests/macros.h.
25520
25521 2011-02-08  Jim Meyering  <meyering@redhat.com>
25522
25523         di-set: add "const" to a cast
25524         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25525         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25526
25527 2011-02-06  Bruno Haible  <bruno@clisp.org>
25528
25529         Rename module 'wctype' to 'wctype-h'.
25530         * modules/wctype-h: Renamed from modules/wctype.
25531         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25532         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25533         (Files, Depends-on, Makefile.am): Update.
25534         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25535         (Files, Makefile.am): Update.
25536         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25537         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25538         * doc/posix-headers/wctype.texi: Update.
25539         * doc/posix-functions/iswalnum.texi: Update.
25540         * doc/posix-functions/iswalpha.texi: Update.
25541         * doc/posix-functions/iswblank.texi: Update.
25542         * doc/posix-functions/iswcntrl.texi: Update.
25543         * doc/posix-functions/iswdigit.texi: Update.
25544         * doc/posix-functions/iswgraph.texi: Update.
25545         * doc/posix-functions/iswlower.texi: Update.
25546         * doc/posix-functions/iswprint.texi: Update.
25547         * doc/posix-functions/iswpunct.texi: Update.
25548         * doc/posix-functions/iswspace.texi: Update.
25549         * doc/posix-functions/iswupper.texi: Update.
25550         * doc/posix-functions/iswxdigit.texi: Update.
25551         * doc/posix-functions/towlower.texi: Update.
25552         * doc/posix-functions/towupper.texi: Update.
25553         * NEWS: Mention the change.
25554         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25555         * modules/mbchar (Dependencies): Likewise.
25556         * modules/mbswidth (Dependencies): Likewise.
25557         * modules/quotearg (Dependencies): Likewise.
25558         * modules/regex (Dependencies): Likewise.
25559         * modules/wcscasecmp (Dependencies): Likewise.
25560         * modules/wcsncasecmp (Dependencies): Likewise.
25561         * modules/wcwidth (Dependencies): Likewise.
25562
25563 2011-02-06  Bruno Haible  <bruno@clisp.org>
25564
25565         New module 'wcswidth'.
25566         * modules/wcswidth: New file.
25567         * lib/wchar.in.h (wcswidth): New declaration.
25568         * lib/wcswidth.c: New file.
25569         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25570         * m4/wcswidth.m4: New file.
25571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25573         REPLACE_WCSWIDTH.
25574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25575         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25576         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25577         * doc/posix-functions/wcswidth.texi: Mention the new module.
25578
25579 2011-02-06  Bruno Haible  <bruno@clisp.org>
25580
25581         New module 'wcstok'.
25582         * modules/wcstok: New file.
25583         * lib/wchar.in.h (wcstok): New declaration.
25584         * lib/wcstok.c: New file.
25585         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25586         * m4/wcstok.m4: New file.
25587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25590         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25591         * doc/posix-functions/wcstok.texi: Mention the new module.
25592
25593 2011-02-06  Bruno Haible  <bruno@clisp.org>
25594
25595         New module 'wcsstr'.
25596         * modules/wcsstr: New file.
25597         * lib/wchar.in.h (wcsstr): New declaration.
25598         * lib/wcsstr.c: New file.
25599         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25600         * m4/wcsstr.m4: New file.
25601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25604         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25605         * doc/posix-functions/wcsstr.texi: Mention the new module.
25606
25607 2011-02-06  Bruno Haible  <bruno@clisp.org>
25608
25609         New module 'wcspbrk'.
25610         * modules/wcspbrk: New file.
25611         * lib/wchar.in.h (wcspbrk): New declaration.
25612         * lib/wcspbrk.c: New file.
25613         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25614         * m4/wcspbrk.m4: New file.
25615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25618         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25619         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25620
25621 2011-02-06  Bruno Haible  <bruno@clisp.org>
25622
25623         New module 'wcsspn'.
25624         * modules/wcsspn: New file.
25625         * lib/wchar.in.h (wcsspn): New declaration.
25626         * lib/wcsspn.c: New file.
25627         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25628         * m4/wcsspn.m4: New file.
25629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25632         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25633         * doc/posix-functions/wcsspn.texi: Mention the new module.
25634
25635 2011-02-06  Bruno Haible  <bruno@clisp.org>
25636
25637         New module 'wcscspn'.
25638         * modules/wcscspn: New file.
25639         * lib/wchar.in.h (wcscspn): New declaration.
25640         * lib/wcscspn.c: New file.
25641         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25642         * m4/wcscspn.m4: New file.
25643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25646         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25647         * doc/posix-functions/wcscspn.texi: Mention the new module.
25648
25649 2011-02-06  Bruno Haible  <bruno@clisp.org>
25650
25651         New module 'wcsrchr'.
25652         * modules/wcsrchr: New file.
25653         * lib/wchar.in.h (wcsrchr): New declaration.
25654         * lib/wcsrchr.c: New file.
25655         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25656         * m4/wcsrchr.m4: New file.
25657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25660         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25661         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25662
25663 2011-02-06  Bruno Haible  <bruno@clisp.org>
25664
25665         New module 'wcschr'.
25666         * modules/wcschr: New file.
25667         * lib/wchar.in.h (wcschr): New declaration.
25668         * lib/wcschr.c: New file.
25669         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25670         * m4/wcschr.m4: New file.
25671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25674         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25675         * doc/posix-functions/wcschr.texi: Mention the new module.
25676
25677 2011-02-06  Bruno Haible  <bruno@clisp.org>
25678
25679         New module 'wcsdup'.
25680         * modules/wcsdup: New file.
25681         * lib/wchar.in.h (wcsdup): New declaration.
25682         * lib/wcsdup.c: New file.
25683         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25684         * m4/wcsdup.m4: New file.
25685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25688         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25689         * doc/posix-functions/wcsdup.texi: Mention the new module.
25690
25691 2011-02-06  Bruno Haible  <bruno@clisp.org>
25692
25693         New module 'wcsxfrm'.
25694         * modules/wcsxfrm: New file.
25695         * lib/wchar.in.h (wcsxfrm): New declaration.
25696         * lib/wcsxfrm.c: New file.
25697         * lib/wcsxfrm-impl.h: New file.
25698         * m4/wcsxfrm.m4: New file.
25699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25702         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25703         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25704
25705 2011-02-06  Bruno Haible  <bruno@clisp.org>
25706
25707         New module 'wcscoll'.
25708         * modules/wcscoll: New file.
25709         * lib/wchar.in.h (wcscoll): New declaration.
25710         * lib/wcscoll.c: New file.
25711         * lib/wcscoll-impl.h: New file.
25712         * m4/wcscoll.m4: New file.
25713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25716         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25717         * doc/posix-functions/wcscoll.texi: Mention the new module.
25718
25719 2011-02-06  Bruno Haible  <bruno@clisp.org>
25720
25721         New module 'wcsncasecmp'.
25722         * modules/wcsncasecmp: New file.
25723         * lib/wchar.in.h (wcsncasecmp): New declaration.
25724         * lib/wcsncasecmp.c: New file.
25725         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25726         * m4/wcsncasecmp.m4: New file.
25727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25730         HAVE_WCSNCASECMP.
25731         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25732         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25733
25734 2011-02-06  Bruno Haible  <bruno@clisp.org>
25735
25736         New module 'wcscasecmp'.
25737         * modules/wcscasecmp: New file.
25738         * lib/wchar.in.h (wcscasecmp): New declaration.
25739         * lib/wcscasecmp.c: New file.
25740         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25741         * m4/wcscasecmp.m4: New file.
25742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25745         HAVE_WCSCASECMP.
25746         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25747         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25748
25749 2011-02-05  Bruno Haible  <bruno@clisp.org>
25750
25751         New module 'wcsncmp'.
25752         * modules/wcsncmp: New file.
25753         * lib/wchar.in.h (wcsncmp): New declaration.
25754         * lib/wcsncmp.c: New file.
25755         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25756         * m4/wcsncmp.m4: New file.
25757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25760         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25761         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25762
25763 2011-02-05  Bruno Haible  <bruno@clisp.org>
25764
25765         New module 'wcscmp'.
25766         * modules/wcscmp: New file.
25767         * lib/wchar.in.h (wcscmp): New declaration.
25768         * lib/wcscmp.c: New file.
25769         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25770         * m4/wcscmp.m4: New file.
25771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25774         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25775         * doc/posix-functions/wcscmp.texi: Mention the new module.
25776
25777 2011-02-05  Bruno Haible  <bruno@clisp.org>
25778
25779         New module 'wcsncat'.
25780         * modules/wcsncat: New file.
25781         * lib/wchar.in.h (wcsncat): New declaration.
25782         * lib/wcsncat.c: New file.
25783         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25784         * m4/wcsncat.m4: New file.
25785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25788         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25789         * doc/posix-functions/wcsncat.texi: Mention the new module.
25790
25791 2011-02-05  Bruno Haible  <bruno@clisp.org>
25792
25793         New module 'wcscat'.
25794         * modules/wcscat: New file.
25795         * lib/wchar.in.h (wcscat): New declaration.
25796         * lib/wcscat.c: New file.
25797         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25798         * m4/wcscat.m4: New file.
25799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25802         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25803         * doc/posix-functions/wcscat.texi: Mention the new module.
25804
25805 2011-02-05  Bruno Haible  <bruno@clisp.org>
25806
25807         New module 'wcpncpy'.
25808         * modules/wcpncpy: New file.
25809         * lib/wchar.in.h (wcpncpy): New declaration.
25810         * lib/wcpncpy.c: New file.
25811         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25812         * m4/wcpncpy.m4: New file.
25813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25815         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25816         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25817         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25818
25819 2011-02-05  Bruno Haible  <bruno@clisp.org>
25820
25821         New module 'wcsncpy'.
25822         * modules/wcsncpy: New file.
25823         * lib/wchar.in.h (wcsncpy): New declaration.
25824         * lib/wcsncpy.c: New file.
25825         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25826         * m4/wcsncpy.m4: New file.
25827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25830         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25831         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25832
25833 2011-02-05  Bruno Haible  <bruno@clisp.org>
25834
25835         New module 'wcpcpy'.
25836         * modules/wcpcpy: New file.
25837         * lib/wchar.in.h (wcpcpy): New declaration.
25838         * lib/wcpcpy.c: New file.
25839         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25840         * m4/wcpcpy.m4: New file.
25841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25843         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25844         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25845         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25846
25847 2011-02-05  Bruno Haible  <bruno@clisp.org>
25848
25849         New module 'wcscpy'.
25850         * modules/wcscpy: New file.
25851         * lib/wchar.in.h (wcscpy): New declaration.
25852         * lib/wcscpy.c: New file.
25853         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25854         * m4/wcscpy.m4: New file.
25855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25858         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25859         * doc/posix-functions/wcscpy.texi: Mention the new module.
25860
25861 2011-02-05  Bruno Haible  <bruno@clisp.org>
25862
25863         New module 'wcsnlen'.
25864         * modules/wcsnlen: New file.
25865         * lib/wchar.in.h (wcsnlen): New declaration.
25866         * lib/wcsnlen.c: New file.
25867         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25868         * m4/wcsnlen.m4: New file.
25869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25872         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25873         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25874
25875 2011-02-05  Bruno Haible  <bruno@clisp.org>
25876
25877         New module 'wcslen'.
25878         * modules/wcslen: New file.
25879         * lib/wchar.in.h (wcslen): New declaration.
25880         * lib/wcslen.c: New file.
25881         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25882         * m4/wcslen.m4: New file.
25883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25886         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25887         * doc/posix-functions/wcslen.texi: Mention the new module.
25888
25889 2011-02-05  Bruno Haible  <bruno@clisp.org>
25890
25891         New module 'wmemset'.
25892         * modules/wmemset: New file.
25893         * lib/wchar.in.h (wmemset): New declaration.
25894         * lib/wmemset.c: New file.
25895         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25896         * m4/wmemset.m4: New file.
25897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25899         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25900         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25901         * doc/posix-functions/wmemset.texi: Mention the new module.
25902
25903 2011-02-05  Bruno Haible  <bruno@clisp.org>
25904
25905         New module 'wmemmove'.
25906         * modules/wmemmove: New file.
25907         * lib/wchar.in.h (wmemmove): New declaration.
25908         * lib/wmemmove.c: New file.
25909         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25910         * m4/wmemmove.m4: New file.
25911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25913         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25914         HAVE_WMEMMOVE.
25915         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25916         * doc/posix-functions/wmemmove.texi: Mention the new module.
25917
25918 2011-02-05  Bruno Haible  <bruno@clisp.org>
25919
25920         New module 'wmemcpy'.
25921         * modules/wmemcpy: New file.
25922         * lib/wchar.in.h (wmemcpy): New declaration.
25923         * lib/wmemcpy.c: New file.
25924         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25925         * m4/wmemcpy.m4: New file.
25926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25928         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25929         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25930         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25931
25932 2011-02-05  Bruno Haible  <bruno@clisp.org>
25933
25934         New module 'wmemcmp'.
25935         * modules/wmemcmp: New file.
25936         * lib/wchar.in.h (wmemcmp): New declaration.
25937         * lib/wmemcmp.c: New file.
25938         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25939         * m4/wmemcmp.m4: New file.
25940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25942         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25943         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25944         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25945
25946 2011-02-07  Jim Meyering  <meyering@redhat.com>
25947
25948         di-set, ino-map: new modules, from coreutils
25949         * lib/di-set.c: New file.
25950         * lib/di-set.h: Likewise.
25951         * lib/ino-map.c: Likewise.
25952         * lib/ino-map.h: Likewise.
25953         * modules/di-set: Likewise.
25954         * modules/di-set-tests: Likewise.
25955         * modules/ino-map: Likewise.
25956         * modules/ino-map-tests: Likewise.
25957         * tests/test-di-set.c: Likewise.
25958         * tests/test-ino-map.c: Likewise.
25959
25960 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25961
25962         getloadavg: merge minor changes from Emacs
25963
25964         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25965         (getloadavg): Use memset, not bzero.
25966
25967         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25968         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25969         clash (bug#86).
25970
25971 2010-11-14  Bruno Haible  <bruno@clisp.org>
25972
25973         Allow multiple gnulib generated replacements to coexist.
25974         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25975         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25976         * lib/langinfo.in.h (nl_item): Likewise.
25977         * lib/math.in.h (_NaN, NAN): Likewise.
25978         * lib/netdb.in.h (struct addrinfo): Likewise.
25979         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25980         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25981         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25982         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25983         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25984         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25985         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25986         pthread_mutexattr_init, pthread_mutexattr_settype,
25987         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25988         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25989         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25990         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25991         * lib/sched.in.h (struct sched_param): Likewise.
25992         * lib/se-selinux.in.h (security_class_t, security_context_t,
25993         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25994         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25995         lsetfilecon, fsetfilecon, security_check_context,
25996         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25997         Likewise.
25998         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25999         Likewise.
26000         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26001         _gl_function_taking_int_returning_void_t, union sigval,
26002         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26003         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26004         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26005         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26006         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26007         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26008         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26009         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26010         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26011         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26012         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26013         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26014         socklen_t, rpl_fd_isset): Likewise.
26015         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26016         * lib/sys_time.in.h (struct timeval): Likewise.
26017         * lib/sys_times.in.h (struct tms): Likewise.
26018         * lib/sys_utsname.in.h (struct utsname):
26019         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26020         * lib/unistd.in.h (getpagesize): Likewise.
26021         * lib/wchar.in.h (mbstate_t): Likewise.
26022         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26023         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26024         towlower, towupper): Likewise.
26025         Reported by Sam Steingold <sds@gnu.org>.
26026
26027 2011-02-05  Eric Blake  <eblake@redhat.com>
26028
26029         unsetenv: work around Haiku issues
26030         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26031         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26032
26033 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26034
26035         libposix: avoid calling error() within libposix
26036         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26037         is defined.
26038
26039 2011-02-05  Eric Blake  <eblake@redhat.com>
26040
26041         strerror_r-posix: port to cygwin
26042         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26043         implementation.
26044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26045         * tests/test-strerror_r.c (main): Fix test.
26046         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26047         issue.
26048
26049 2011-02-05  Bruno Haible  <bruno@clisp.org>
26050
26051         New module 'wmemchr'.
26052         * modules/wmemchr: New file.
26053         * lib/wchar.in.h (wmemchr): New declaration.
26054         * lib/wmemchr.c: New file.
26055         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26056         * m4/wmemchr.m4: New file.
26057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26059         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26060         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26061         * doc/posix-functions/wmemchr.texi: Mention the new module.
26062
26063 2011-02-04  Eric Blake  <eblake@redhat.com>
26064
26065         fdopendir: detect FreeBSD bug
26066         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26067         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26068
26069 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26070
26071         stdbool: do not define HAVE_STDBOOL_H
26072         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26073         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26074         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26075         imported from the latest Autoconf git.  It was motivated by Emacs,
26076         which uses gnulib but does not need HAVE_STDBOOL_H.
26077
26078 2011-02-04  Bruno Haible  <bruno@clisp.org>
26079
26080         wcsnrtombs: Prepare for new module wwcsnrtombs.
26081         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26082         * lib/wcsnrtombs.c: Include it.
26083         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26084
26085         wcsrtombs: Prepare for new module wwcsrtombs.
26086         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26087         * lib/wcsrtombs.c: Include it.
26088         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26089
26090         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26091         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26092         * lib/mbsnrtowcs.c: Include it.
26093         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26094
26095         mbsrtowcs: Prepare for new module mbsrtowwcs.
26096         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26097         * lib/mbsrtowcs.c: Include it.
26098         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26099
26100 2011-02-04  Bruno Haible  <bruno@clisp.org>
26101
26102         vasnprintf: Reduce use of malloc for small format strings.
26103         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26104         (arguments): Add room for the first 7 arguments.
26105         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26106         (char_directives, u8_directives, u16_directives, u32_directives): Add
26107         room for the first 7 directives.
26108         * lib/printf-parse.c: Include <string.h>.
26109         (PRINTF_PARSE): Change memory handling code so that it uses the first
26110         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26111         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26112         Reported by Pádraig Brady <P@draigbrady.com>.
26113
26114 2011-01-31  Eric Blake  <eblake@redhat.com>
26115
26116         dup2: work around Haiku bug
26117         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26118         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26119         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26120         * tests/test-dup2.c (main): Enhance test.
26121
26122 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26123
26124         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26125         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26126         declared by eglibc 2.11.2.
26127         * lib/stdio.in.h: Likewise.
26128
26129 2011-01-31  Eric Blake  <eblake@redhat.com>
26130
26131         ignore-value: add missing test dependency
26132         * tests/test-ignore-value.c: Revert previous change; stdio.h
26133         provides off_t.
26134         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26135
26136 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26137
26138         mktime: clarify long_int width checking
26139         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26140         the top level, to make it clearer that the assumption about
26141         long_int width is being checked.  See
26142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26143
26144 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26145
26146         ignore-value: Fix self-test.
26147         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26148
26149 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26150
26151         TYPE_MAXIMUM: avoid theoretically undefined behavior
26152         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26153         negative number, which the C Standard says has undefined behavior.
26154         In practice this is not a problem, but might as well do it by the book.
26155         Reported by Rich Felker and Eric Blake; see
26156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26157         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26158         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26160         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26161         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26162         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26163
26164         mktime: #undef mktime before #defining it
26165         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26166
26167         mktime: systematically normalize tm_isdst comparisons
26168         * lib/mktime.c (isdst_differ): New function.
26169         (__mktime_internal): Use it systematically for all isdst comparisons.
26170         This completes the fix for libc BZ #6723, and removes the need for
26171         normalizing tm_isdst.  See
26172         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26173         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26174
26175         mktime: fix some integer overflow issues and sidestep the rest
26176
26177         This was prompted by a bug report by Benjamin Lindner for MinGW
26178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26179         His bug is due to signed integer overflow (0 - INT_MIN), and I
26180         I scanned through mktime.c looking for other integer overflow
26181         problems, fixing all the bugs I found.
26182
26183         Although the C Standard says the resulting code is still not safe
26184         in the presence of integer overflow, in practice it should be good
26185         enough for all real-world two's-complement implementations, except
26186         for debugging environments that deliberately trap on integer
26187         overflow (e.g., gcc -ftrapv).
26188
26189         * lib/mktime.c (WRAPV): New macro.
26190         (SHR): Also check that long_int and time_t shift right in the
26191         usual way, before using the fast-but-unportable method.
26192         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26193         used.  The code already assumed two's complement, so there's
26194         no need to test for alternatives.  All uses removed.
26195         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26196         the C standard.  Problem reported by Rich Felker in
26197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26198         (twos_complement_arithmetic): Also check long_int and time_t.
26199         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26200         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26201         (__mktime_internal): Avoid integer overflow with unary subtraction
26202         in two instances where -1 - X is an adequate replacement for -X,
26203         since the calculations are approximate.
26204
26205 2011-01-29  Eric Blake  <eblake@redhat.com>
26206
26207         mktime: avoid infinite loop
26208         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26209         type; behavior is still undefined but portable to all known targets.
26210         Reported by Rich Felker.
26211
26212 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26213
26214         rename, unlink, same-inode: Relicense.
26215         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26216         * modules/unlink (License): Likewise.
26217         * modules/same-inode (License): Likewise.
26218
26219 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26220
26221         mktime: avoid problems on NetBSD 5 / i386
26222         * lib/mktime.c (long_int): New type.  This works around a problem
26223         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26224         but time_t is 64 bits, and where I expect the existing code is
26225         wrong in some cases.
26226         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26227         (ydhms_diff): Bring back the compile-time check for wide-enough
26228         year and yday.
26229
26230         mktime: fix misspelling in comment
26231         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26232         This merges all recent glibc changes of importance.
26233
26234 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26235
26236         move-if-change: cope with concurrent mv of identical file.
26237         * build-aux/move-if-change (CMPPROG): Accept environment
26238         variable as an override for `cmp'.
26239         (usage): Document CMPPROG.
26240         Adjust comparison to drop stdout.  Cope with failure of mv if
26241         the target file exists and is identical to the source, for
26242         parallel builds.
26243         Report from H.J. Lu against binutils in PR binutils/12283.
26244
26245 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26246
26247         * users.txt: Mention sharutils.
26248
26249 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26250
26251         * users.txt: Mention OATH Toolkit.
26252
26253 2011-01-27  Bruno Haible  <bruno@clisp.org>
26254
26255         Prepare for supporting FreeBSD 10.
26256         * build-aux/config.libpath: Remove handling of freebsd1*.
26257
26258 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26259
26260         Prepare for supporting FreeBSD 10.
26261         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26262         match FreeBSD 10.0.
26263
26264 2011-01-27  Bruno Haible  <bruno@clisp.org>
26265
26266         vma-iter, get-rusage-as: Add OpenBSD support.
26267         * modules/vma-iter (configure.ac): Test for mquery.
26268         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26269         * lib/vma-iter.c: Include <sys/mman.h>.
26270         (vma_iterate): Add an implementation based on mquery().
26271         * lib/resource-ext.h (get_rusage_as): Update comments.
26272         * lib/get-rusage-as.c: Likewise.
26273         * lib/get-rusage-data.c: Likewise.
26274
26275 2011-01-26  Karl Berry  <karl@gnu.org>
26276
26277         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26278         variables to make it easier to override the makeinfo program used.
26279
26280 2011-01-26  Eric Blake  <eblake@redhat.com>
26281
26282         fcntl: work around Haiku F_DUPFD bugs
26283         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26284         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26285         cloexec bit on duplication.
26286         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26287
26288 2011-01-26  Bruno Haible  <bruno@clisp.org>
26289
26290         Enable memory leak tests on AIX.
26291         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26292         * tests/test-fprintf-posix3.c (main): Likewise.
26293
26294 2011-01-26  Bruno Haible  <bruno@clisp.org>
26295
26296         Tests for module 'get-rusage-data'.
26297         * modules/get-rusage-data-tests: New file.
26298         * tests/test-get-rusage-data.c: New file.
26299
26300         New module 'get-rusage-data'.
26301         * lib/resource-ext.h (get_rusage_data): New declaration.
26302         * lib/get-rusage-data.c: New file.
26303         * modules/get-rusage-data: New file.
26304
26305 2011-01-25  Bruno Haible  <bruno@clisp.org>
26306
26307         get-rusage-as: Allow for easier testing.
26308         * lib/resource-ext.h (get_rusage_as): Add comment.
26309         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26310         (main): New function for interactive testing.
26311
26312 2011-01-25  Bruno Haible  <bruno@clisp.org>
26313
26314         vma-iter: Treat Haiku like BeOS.
26315         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26316         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26317
26318 2011-01-25  Eric Blake  <eblake@redhat.com>
26319
26320         c-stack: fix regression on cygwin when libsigsegv is present
26321         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26322
26323 2011-01-24  Bruno Haible  <bruno@clisp.org>
26324
26325         vma-iter: Avoid empty intervals.
26326         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26327         on an empty interval.
26328
26329 2011-01-24  Jim Meyering  <meyering@redhat.com>
26330
26331         u64: remove unnecessary #include
26332         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26333
26334 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26335
26336         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26337         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26338
26339 2011-01-23  Bruno Haible  <bruno@clisp.org>
26340
26341         New module 'vma-iter'.
26342         * lib/vma-iter.h: New file.
26343         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26344         * modules/vma-iter: New file.
26345         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26346         for get_rusage_as_via_iterator.
26347         (vma_iterate_callback): New function.
26348         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26349         * modules/get-rusage-as (Depends-on): Add vma-iter.
26350
26351 2011-01-23  Bruno Haible  <bruno@clisp.org>
26352
26353         uninorm: Tweak includes.
26354         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26355         Reported by Jim Meyering.
26356
26357 2011-01-23  Bruno Haible  <bruno@clisp.org>
26358
26359         get-rusage-as: Improve on NetBSD.
26360         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26361         /proc, like on FreeBSD.
26362
26363 2011-01-23  Jim Meyering  <meyering@redhat.com>
26364
26365         xreadlink.h: remove unnecessary #include
26366         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26367
26368         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26369         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26370
26371 2011-01-23  Bruno Haible  <bruno@clisp.org>
26372
26373         get-rusage-as: Fix bug.
26374         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26375         original limit when aborting the first loop.
26376
26377 2011-01-23  Bruno Haible  <bruno@clisp.org>
26378
26379         wctype: Ensure valid C syntax.
26380         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26381         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26382
26383 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26384
26385         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26387         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26388         as they are needed only for configure's test case.
26389         This removes two unnecessary symbols from config.h.
26390
26391         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26392         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26394         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26395         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26396         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26397         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26398         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26399         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26400         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26401         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26403         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26404         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26405         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26406         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26407         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26408         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26409
26410 2011-01-21  Eric Blake  <eblake@redhat.com>
26411
26412         maintainer-makefile: work with older git for submodule check
26413         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26414         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26415         Reported by Matthias Bolte.
26416
26417         bootstrap: minor portability fixes
26418         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26419         (usage): Omit leading capital and trailing . on help phrases, per
26420         GNU Coding Standards.
26421         (check_versions, top level): Prefix messages with script name.
26422
26423 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26424
26425         bootstrap: support --no-git option
26426         * build-aux/bootstrap: Add --no-git option, to be used when
26427         --gnulib-srcdir points to the exact desired checkout.
26428
26429 2011-01-21  Eric Blake  <eblake@redhat.com>
26430
26431         strerror_r-posix: work with glibc 2.13
26432         * lib/strerror_r.c (strerror_r): Fix return type.
26433
26434 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26435             Bruno Haible  <bruno@clisp.org>
26436
26437         uN_strstr: New unit tests.
26438         * modules/unistr/u8-strstr-tests: New file.
26439         * modules/unistr/u16-strstr-tests: New file.
26440         * modules/unistr/u32-strstr-tests: New file.
26441         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26442         * tests/unistr/test-u8-strstr.c: New file.
26443         * tests/unistr/test-u16-strstr.c: New file.
26444         * tests/unistr/test-u32-strstr.c: New file.
26445
26446 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26447             Bruno Haible  <bruno@clisp.org>
26448
26449         Make uN_strstr functions O(n) worst-case.
26450         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26451         16-bit and 32-bit unit cases, use the unibyte algorithm from
26452         lib/mbsstr.c.
26453         * lib/unistr/u8-strstr.c: Include <string.h>.
26454         (UNIT_IS_UINT8_T): New macro.
26455         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26456         (U_STRLEN, U_STRNLEN): New macros.
26457         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26458         (U_STRLEN, U_STRNLEN): New macros.
26459         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26460         (configure.ac): Update required libunistring version.
26461         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26462         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26463         malloca.
26464         (configure.ac): Update required libunistring version.
26465         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26466         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26467         malloca.
26468         (configure.ac): Update required libunistring version.
26469
26470 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26471             Bruno Haible  <bruno@clisp.org>
26472
26473         Prepare for faster uN_strstr functions.
26474         * lib/str-kmp.h: Support definable UNITs.
26475         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26476         needle_len argument.
26477         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26478         * lib/mbscasestr.c (mbscasestr): Likewise.
26479
26480 2011-01-21  Pádraig Brady <P@draigBrady.com>
26481
26482         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26483         * tests/test-malloca.c (main): Unset the environment variable
26484         to greatly speed up the test.
26485         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26486         * modules/malloca-tests: Depend on unsetenv.
26487
26488 2011-01-21  Pádraig Brady <P@draigBrady.com>
26489
26490         ignore-value: remove stdint dependency
26491         * lib/ignore-value.h: Remove <stdint.h>
26492         * modules/ignore-value: Remove stdint dependency.
26493
26494 2011-01-21  Jim Meyering  <meyering@redhat.com>
26495
26496         maint.mk: adjust variable name to be consistent with other gl_ vars
26497         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26498         to be lower case.
26499
26500 2011-01-20  Jim Meyering  <meyering@redhat.com>
26501
26502         maint.mk: make "check" depend on public-submodule-commit by default
26503         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26504
26505 2011-01-20  Bruno Haible  <bruno@clisp.org>
26506
26507         mbfile, mbiter: Complete change from 2008-12-21.
26508         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26509         * m4/mbiter.m4 (gl_MBITER): Likewise.
26510
26511 2011-01-20  Jim Meyering  <meyering@redhat.com>
26512
26513         init.sh: insert space between each function name and "()"
26514         * tests/init.sh: Make it a little easier to see that a function's
26515         name is "warn_", and not "warn" when looking at the first part of
26516         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26517
26518 2011-01-20  Jim Meyering  <meyering@redhat.com>
26519
26520         mountlist: clean up code formatting
26521         * lib/mountlist.c (read_file_system_list): Split a long line,
26522         correct bracing style, use NULL in place of "(struct statfs *)0",
26523         don't parenthesize return value, add spaces around "=" and after
26524         ";-in-for-stmt".
26525
26526 2011-01-14  Markus Duft <mduft@gentoo.org>
26527
26528         mountlist: add support for Interix
26529         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26530         Apply statvfs to all entries of /dev/fs.
26531         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26532         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26533
26534 2011-01-20  Jim Meyering  <meyering@redhat.com>
26535
26536         maint.mk: improve the public-submodule-commit rule
26537         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26538         to suppress printing of its commands... unless V=1.
26539         Add git submodule's --quiet option to suppress printing of e.g.,
26540         "Entering gnulib" output.
26541         "cd" into $(srcdir) before running git submodule.
26542
26543 2011-01-20  Bruno Haible  <bruno@clisp.org>
26544
26545         include_next: Fix bug introduced on 2011-01-18.
26546         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26547         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26548         ac_cv_header_... variable if the second argument is not 'check'.
26549         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26550         gl_NEXT_HEADERS_INTERNAL.
26551
26552 2011-01-20  Bruno Haible  <bruno@clisp.org>
26553
26554         Allow the user to avoid the GNULIB_TEST_* macros.
26555         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26556         Suggested by Paul Eggert.
26557
26558 2011-01-14  Jim Meyering  <meyering@redhat.com>
26559
26560         bootstrap: avoid failure when there is no .gitmodules file
26561         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26562         has been assigned to, even when its value is the empty string.
26563         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26564         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26565         Reported by John W. Eaton <jwe@gnu.org>.
26566
26567 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26568
26569         assume <ctype.h>, ..., <time.h> exist
26570         For years gnulib has been assuming the existence of the headers
26571         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26572         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26573         them, since they don't appear to be needed.
26574         * README (Portability guidelines): Document this.
26575         * lib/flock.c: Assume <fcntl.h> exists.
26576         * lib/regex_internal.h: Assume <locale.h> exists.
26577         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26578         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26579         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26580         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26581         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26582         * m4/regex.m4 (gl_REGEX): Likewise.
26583         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26584         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26585         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26586         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26587         * tests/test-argp.c: Likewise.
26588         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26589
26590         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26591         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26592         AA_APPLE_UNIVERSAL_BUILD.  See
26593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26594         * NEWS: Document this.
26595
26596 2011-01-19  Eric Blake  <eblake@redhat.com>
26597
26598         c-stack: assume stack overflow if SA_SIGINFO unsupported
26599         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26600         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26601         sigaction will work.
26602         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26603         behavior match Linux.
26604         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26605
26606         stdbool-tests: accommodate Haiku
26607         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26608
26609         binary-io: fix O_TEXT on Haiku
26610         * modules/binary-io (Depends-on): Add fcntl-h.
26611         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26612         than blindly undefining O_TEXT.
26613         Reported by Scott McCreary.
26614
26615 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26616
26617         include_next: do not check for standard headers like stddef.h
26618
26619         I found this problem when modifying Emacs to use gnulib.
26620         I noticed that it added HAVE_STDDEF_H to config.h, even though
26621         gnulib always assumes <stddef.h> exists as per README and this
26622         symbol is unnecessary.
26623         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26624         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26625         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26626         faster for headers like stddef.h that are known to exist.
26627         (gl_CHECK_NEXT_HEADERS): Use it.
26628         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26629         rather than gl_CHECK_NEXT_HEADERS.
26630         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26631         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26632
26633 2011-01-18  Eric Blake  <eblake@redhat.com>
26634
26635         ansi-c++-opt: skip C++ dependency style if C++ is unused
26636         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26637         tests when we know C++ compilation is not desired.
26638         Reported by Scott McCreary.
26639
26640 2011-01-18  Bruno Haible  <bruno@clisp.org>
26641
26642         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26643         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26644         (main): Perform test also when getrlimit and setrlimit don't exist or
26645         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26646         limiting the address space size using setrlimit, compare the address
26647         space size before and after the the test.
26648         * tests/test-dprintf-posix2.c: Likewise.
26649         * tests/test-fprintf-posix3.sh: Update skip messages.
26650         * tests/test-dprintf-posix2.sh: Likewise.
26651         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26652         * modules/dprintf-posix-tests (Depends-on): Likewise.
26653         Reported by Bruce Korb <bkorb@gnu.org> and
26654         Gary V. Vaughan <gary@gnu.org>.
26655
26656 2011-01-18  Bruno Haible  <bruno@clisp.org>
26657
26658         get-rusage-as: Improvement for Cygwin.
26659         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26660         areas that are merely reserved.
26661
26662 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26663
26664         strftime: remove dependencies on multibyte modules
26665
26666         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26667         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26668         only if __osf__ is defined, and I suspect OSF doesn't need these
26669         other modules.  If my guess is wrong, we'll need to come up with a
26670         variant of strftime that doesn't need the multibyte modules.
26671
26672         I discovered this problem when attempting modify Emacs to use the
26673         strftime module.  With the previous gnulib, this caused Emacs to
26674         need 31 new files, ranging from lib/config.charset to
26675         m4/wint_t.m4.  This was overkill and I expect would be offputting
26676         to the Emacs maintainers.  After this change, only 6 new files are
26677         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26678         stdbool.m4, and tm_gmtoff.m4.
26679
26680         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26681         Suggested by Bruno Haible in
26682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26683         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26684         and do not check for wchar.h.
26685         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26686         (Depends-on): Remove mbrlen, mbsinit, wchar.
26687
26688 2011-01-18  Bruno Haible  <bruno@clisp.org>
26689
26690         Tests for module 'get-rusage-as'.
26691         * modules/get-rusage-as-tests: New file.
26692         * tests/test-get-rusage-as.c: New file.
26693
26694         New module 'get-rusage-as'.
26695         * modules/get-rusage-as: New file.
26696         * lib/resource-ext.h: New file.
26697         * lib/get-rusage-as.c: New file.
26698
26699 2011-01-17  Eric Blake  <eblake@redhat.com>
26700
26701         sigaction: relax license from LGPLv3+ to LGPLv2+
26702         * modules/sigaction (License): Relax to LGPLv2+.
26703
26704 2011-01-14  Bruno Haible  <bruno@clisp.org>
26705
26706         filemode: Make function declarations usable in C++ mode.
26707         * lib/filemode.h: Enclose function declarations in extern "C" block.
26708         Reported by John W. Eaton <jwe@gnu.org>.
26709
26710 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26711
26712         save-cwd: no longer include "xgetcwd.h"
26713         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26714         This avoids a compilation failure in projects that use save-cwd
26715         without also using the xgetcwd module.
26716
26717 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26718
26719         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26720         This is so that a program like Emacs, which needs only dtoastr,
26721         does not have to bother with distributing and compiling ftoastr
26722         and ldtoastr.
26723         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26724         * modules/dtoastr, modules/ldtoastr: New files.
26725         * modules/ftoastr: Now works just for 'float'.
26726         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26727         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26728         dtoastr.c, ldtoastr.c.
26729
26730 2011-01-11  Jim Meyering  <meyering@redhat.com>
26731
26732         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26733         There is no need to work around the lack of the fchdir function,
26734         since gnulib can now provide a replacement when required.
26735         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26736         * modules/save-cwd (Depends-on): Add fchdir.
26737
26738 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26739
26740         openat, save-cwd: avoid xmalloc
26741
26742         This removes a direct (but undocumented) dependency of openat on
26743         xalloc, along with an indirect dependency via save-cwd.  It also
26744         removes a dependency of save-cwd on xgetcwd, and thereby
26745         indirectly on xalloc.  This change causes the openat substitute
26746         to fall back on save_cwd when memory is tight, and for save_cwd to
26747         fail instead of dying when memory is tight, but that's good enough.
26748         Problem and initial idea for fix reported by Bastien Roucaries in
26749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26750
26751         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26752         xalloc.h (for xmalloc).
26753         (openat_proc_name): Use malloc, not xmalloc.
26754         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26755         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26756
26757         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26758         This avoids heap allocation for file names whose lengths are in
26759         the range 512..1023, with the upper bound increasing to at most
26760         4031 depending on the platform's PATH_MAX.  (We do not want
26761         pathmax.h here as it might supply a non-constant PATH_MAX.)
26762         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26763         Perhaps they should be moved to malloca.h?
26764         (OPENAT_BUFFER_SIZE): Use them.
26765
26766 2011-01-10  Bruno Haible  <bruno@clisp.org>
26767
26768         doc: Update users.txt.
26769         * users.txt: Add recutils.
26770
26771 2011-01-09  Karl Berry  <karl@gnu.org>
26772
26773         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26774
26775         * doc/configmake.texi: New file.
26776         * doc/gnulib.texi: Include it.
26777         * modules/configmake: Move documentation from here.
26778
26779 2011-01-09  Bruno Haible  <bruno@clisp.org>
26780
26781         Update to Unicode 6.0.0.
26782         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26783         (get_lbp): Update for Unicode 6.0.0.
26784         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26785         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26786         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26787         U+11001, U+11038..U+11046. Remove U+06DE.
26788         (uc_width): Fix bounds of planes.
26789         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26790         lib/uniwidth/width.c.
26791         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26792         trailing whitespace removed.
26793         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26794         without comments, but with the original copyright notice.
26795         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26796         * lib/unicase/ignorable.h: Likewise.
26797         * lib/unicase/tocasefold.h: Likewise.
26798         * lib/unicase/tolower.h: Likewise.
26799         * lib/unicase/totitle.h: Likewise.
26800         * lib/unicase/toupper.h: Likewise.
26801         * lib/unictype/bidi_of.h: Likewise.
26802         * lib/unictype/blocks.h: Likewise.
26803         * lib/unictype/categ_C.h: Likewise.
26804         * lib/unictype/categ_Cn.h: Likewise.
26805         * lib/unictype/categ_L.h: Likewise.
26806         * lib/unictype/categ_Ll.h: Likewise.
26807         * lib/unictype/categ_Lm.h: Likewise.
26808         * lib/unictype/categ_Lo.h: Likewise.
26809         * lib/unictype/categ_Lu.h: Likewise.
26810         * lib/unictype/categ_M.h: Likewise.
26811         * lib/unictype/categ_Mc.h: Likewise.
26812         * lib/unictype/categ_Me.h: Likewise.
26813         * lib/unictype/categ_Mn.h: Likewise.
26814         * lib/unictype/categ_N.h: Likewise.
26815         * lib/unictype/categ_Nd.h: Likewise.
26816         * lib/unictype/categ_No.h: Likewise.
26817         * lib/unictype/categ_P.h: Likewise.
26818         * lib/unictype/categ_Po.h: Likewise.
26819         * lib/unictype/categ_S.h: Likewise.
26820         * lib/unictype/categ_Sc.h: Likewise.
26821         * lib/unictype/categ_Sk.h: Likewise.
26822         * lib/unictype/categ_Sm.h: Likewise.
26823         * lib/unictype/categ_So.h: Likewise.
26824         * lib/unictype/categ_of.h: Likewise.
26825         * lib/unictype/combining.h: Likewise.
26826         * lib/unictype/ctype_alnum.h: Likewise.
26827         * lib/unictype/ctype_alpha.h: Likewise.
26828         * lib/unictype/ctype_graph.h: Likewise.
26829         * lib/unictype/ctype_lower.h: Likewise.
26830         * lib/unictype/ctype_print.h: Likewise.
26831         * lib/unictype/ctype_punct.h: Likewise.
26832         * lib/unictype/ctype_upper.h: Likewise.
26833         * lib/unictype/decdigit.h: Likewise.
26834         * lib/unictype/digit.h: Likewise.
26835         * lib/unictype/numeric.h: Likewise.
26836         * lib/unictype/pr_alphabetic.h: Likewise.
26837         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26838         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26839         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26840         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26841         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26842         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26843         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26844         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26845         * lib/unictype/pr_case_ignorable.h: Likewise.
26846         * lib/unictype/pr_cased.h: Likewise.
26847         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26848         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26849         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26850         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26851         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26852         * lib/unictype/pr_combining.h: Likewise.
26853         * lib/unictype/pr_composite.h: Likewise.
26854         * lib/unictype/pr_currency_symbol.h: Likewise.
26855         * lib/unictype/pr_decimal_digit.h: Likewise.
26856         * lib/unictype/pr_deprecated.h: Likewise.
26857         * lib/unictype/pr_format_control.h: Likewise.
26858         * lib/unictype/pr_grapheme_base.h: Likewise.
26859         * lib/unictype/pr_grapheme_extend.h: Likewise.
26860         * lib/unictype/pr_grapheme_link.h: Likewise.
26861         * lib/unictype/pr_id_continue.h: Likewise.
26862         * lib/unictype/pr_id_start.h: Likewise.
26863         * lib/unictype/pr_ideographic.h: Likewise.
26864         * lib/unictype/pr_lowercase.h: Likewise.
26865         * lib/unictype/pr_math.h: Likewise.
26866         * lib/unictype/pr_numeric.h: Likewise.
26867         * lib/unictype/pr_other_alphabetic.h: Likewise.
26868         * lib/unictype/pr_other_id_continue.h: Likewise.
26869         * lib/unictype/pr_other_math.h: Likewise.
26870         * lib/unictype/pr_punctuation.h: Likewise.
26871         * lib/unictype/pr_sentence_terminal.h: Likewise.
26872         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26873         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26874         * lib/unictype/pr_unified_ideograph.h: Likewise.
26875         * lib/unictype/pr_uppercase.h: Likewise.
26876         * lib/unictype/pr_xid_continue.h: Likewise.
26877         * lib/unictype/pr_xid_start.h: Likewise.
26878         * lib/unictype/scripts.h: Likewise.
26879         * lib/unictype/scripts_byname.gperf: Likewise.
26880         * lib/unictype/sy_java_ident.h: Likewise.
26881         * lib/unigbrk/gbrkprop.h: Likewise.
26882         * lib/unilbrk/lbrkprop1.h: Likewise.
26883         * lib/unilbrk/lbrkprop2.h: Likewise.
26884         * lib/uninorm/decomposition-table2.h: Likewise.
26885         * lib/uniwbrk/wbrkprop.h: Likewise.
26886         * tests/unicase/test-cased.c: Likewise.
26887         * tests/unicase/test-ignorable.c: Likewise.
26888         * tests/unicase/test-uc_tolower.c: Likewise.
26889         * tests/unicase/test-uc_totitle.c: Likewise.
26890         * tests/unicase/test-uc_toupper.c: Likewise.
26891         * tests/unictype/test-categ_C.c: Likewise.
26892         * tests/unictype/test-categ_Cn.c: Likewise.
26893         * tests/unictype/test-categ_L.c: Likewise.
26894         * tests/unictype/test-categ_Ll.c: Likewise.
26895         * tests/unictype/test-categ_Lm.c: Likewise.
26896         * tests/unictype/test-categ_Lo.c: Likewise.
26897         * tests/unictype/test-categ_Lu.c: Likewise.
26898         * tests/unictype/test-categ_M.c: Likewise.
26899         * tests/unictype/test-categ_Mc.c: Likewise.
26900         * tests/unictype/test-categ_Me.c: Likewise.
26901         * tests/unictype/test-categ_Mn.c: Likewise.
26902         * tests/unictype/test-categ_N.c: Likewise.
26903         * tests/unictype/test-categ_Nd.c: Likewise.
26904         * tests/unictype/test-categ_No.c: Likewise.
26905         * tests/unictype/test-categ_P.c: Likewise.
26906         * tests/unictype/test-categ_Po.c: Likewise.
26907         * tests/unictype/test-categ_S.c: Likewise.
26908         * tests/unictype/test-categ_Sc.c: Likewise.
26909         * tests/unictype/test-categ_Sk.c: Likewise.
26910         * tests/unictype/test-categ_Sm.c: Likewise.
26911         * tests/unictype/test-categ_So.c: Likewise.
26912         * tests/unictype/test-ctype_alnum.c: Likewise.
26913         * tests/unictype/test-ctype_alpha.c: Likewise.
26914         * tests/unictype/test-ctype_graph.c: Likewise.
26915         * tests/unictype/test-ctype_lower.c: Likewise.
26916         * tests/unictype/test-ctype_print.c: Likewise.
26917         * tests/unictype/test-ctype_punct.c: Likewise.
26918         * tests/unictype/test-ctype_upper.c: Likewise.
26919         * tests/unictype/test-decdigit.h: Likewise.
26920         * tests/unictype/test-digit.h: Likewise.
26921         * tests/unictype/test-numeric.h: Likewise.
26922         * tests/unictype/test-pr_alphabetic.c: Likewise.
26923         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26924         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26925         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26926         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26927         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26928         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26929         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26930         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26931         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26932         * tests/unictype/test-pr_cased.c: Likewise.
26933         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26934         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26935         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26936         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26937         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26938         * tests/unictype/test-pr_combining.c: Likewise.
26939         * tests/unictype/test-pr_composite.c: Likewise.
26940         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26941         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26942         * tests/unictype/test-pr_deprecated.c: Likewise.
26943         * tests/unictype/test-pr_format_control.c: Likewise.
26944         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26945         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26946         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26947         * tests/unictype/test-pr_id_continue.c: Likewise.
26948         * tests/unictype/test-pr_id_start.c: Likewise.
26949         * tests/unictype/test-pr_ideographic.c: Likewise.
26950         * tests/unictype/test-pr_lowercase.c: Likewise.
26951         * tests/unictype/test-pr_math.c: Likewise.
26952         * tests/unictype/test-pr_numeric.c: Likewise.
26953         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26954         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26955         * tests/unictype/test-pr_other_math.c: Likewise.
26956         * tests/unictype/test-pr_punctuation.c: Likewise.
26957         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26958         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26959         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26960         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26961         * tests/unictype/test-pr_uppercase.c: Likewise.
26962         * tests/unictype/test-pr_xid_continue.c: Likewise.
26963         * tests/unictype/test-pr_xid_start.c: Likewise.
26964         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26965         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26966         changes.
26967         * lib/unictype/categ_Cc.h: Likewise.
26968         * lib/unictype/categ_Cf.h: Likewise.
26969         * lib/unictype/categ_Co.h: Likewise.
26970         * lib/unictype/categ_Cs.h: Likewise.
26971         * lib/unictype/categ_Lt.h: Likewise.
26972         * lib/unictype/categ_Nl.h: Likewise.
26973         * lib/unictype/categ_Pc.h: Likewise.
26974         * lib/unictype/categ_Pd.h: Likewise.
26975         * lib/unictype/categ_Pe.h: Likewise.
26976         * lib/unictype/categ_Pf.h: Likewise.
26977         * lib/unictype/categ_Pi.h: Likewise.
26978         * lib/unictype/categ_Ps.h: Likewise.
26979         * lib/unictype/categ_Z.h: Likewise.
26980         * lib/unictype/categ_Zl.h: Likewise.
26981         * lib/unictype/categ_Zp.h: Likewise.
26982         * lib/unictype/categ_Zs.h: Likewise.
26983         * lib/unictype/ctype_blank.h: Likewise.
26984         * lib/unictype/ctype_cntrl.h: Likewise.
26985         * lib/unictype/ctype_digit.h: Likewise.
26986         * lib/unictype/ctype_space.h: Likewise.
26987         * lib/unictype/ctype_xdigit.h: Likewise.
26988         * lib/unictype/mirror.h: Likewise.
26989         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26990         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26991         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26992         * lib/unictype/pr_bidi_control.h: Likewise.
26993         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26994         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26995         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26996         * lib/unictype/pr_bidi_pdf.h: Likewise.
26997         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26998         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26999         * lib/unictype/pr_dash.h: Likewise.
27000         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27001         * lib/unictype/pr_diacritic.h: Likewise.
27002         * lib/unictype/pr_extender.h: Likewise.
27003         * lib/unictype/pr_hex_digit.h: Likewise.
27004         * lib/unictype/pr_hyphen.h: Likewise.
27005         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27006         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27007         * lib/unictype/pr_ignorable_control.h: Likewise.
27008         * lib/unictype/pr_iso_control.h: Likewise.
27009         * lib/unictype/pr_join_control.h: Likewise.
27010         * lib/unictype/pr_left_of_pair.h: Likewise.
27011         * lib/unictype/pr_line_separator.h: Likewise.
27012         * lib/unictype/pr_logical_order_exception.h: Likewise.
27013         * lib/unictype/pr_non_break.h: Likewise.
27014         * lib/unictype/pr_not_a_character.h: Likewise.
27015         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27016         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27017         * lib/unictype/pr_other_id_start.h: Likewise.
27018         * lib/unictype/pr_other_lowercase.h: Likewise.
27019         * lib/unictype/pr_other_uppercase.h: Likewise.
27020         * lib/unictype/pr_paired_punctuation.h: Likewise.
27021         * lib/unictype/pr_paragraph_separator.h: Likewise.
27022         * lib/unictype/pr_pattern_syntax.h: Likewise.
27023         * lib/unictype/pr_pattern_white_space.h: Likewise.
27024         * lib/unictype/pr_private_use.h: Likewise.
27025         * lib/unictype/pr_quotation_mark.h: Likewise.
27026         * lib/unictype/pr_radical.h: Likewise.
27027         * lib/unictype/pr_soft_dotted.h: Likewise.
27028         * lib/unictype/pr_space.h: Likewise.
27029         * lib/unictype/pr_titlecase.h: Likewise.
27030         * lib/unictype/pr_variation_selector.h: Likewise.
27031         * lib/unictype/pr_white_space.h: Likewise.
27032         * lib/unictype/pr_zero_width.h: Likewise.
27033         * lib/unictype/sy_c_ident.h: Likewise.
27034         * lib/unictype/sy_c_whitespace.h: Likewise.
27035         * lib/unictype/sy_java_whitespace.h: Likewise.
27036         * lib/uninorm/composition-table.gperf: Likewise.
27037         * lib/uninorm/decomposition-table1.h: Likewise.
27038         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27039         LB8.
27040         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27041         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27042         * modules/unictype/*: Bump version number of expected libunistring
27043         version.
27044
27045 2011-01-09  Bruno Haible  <bruno@clisp.org>
27046
27047         Update to Unicode 5.2.0.
27048         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27049         trailing whitespace removed.
27050
27051 2011-01-09  Bruno Haible  <bruno@clisp.org>
27052
27053         New Unicode character properties, from Unicode 5.2.0.
27054         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27055         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27056         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27057         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27058         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27059         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27060         uc_is_property_cased, uc_is_property_case_ignorable,
27061         uc_is_property_changes_when_lowercased,
27062         uc_is_property_changes_when_uppercased,
27063         uc_is_property_changes_when_titlecased,
27064         uc_is_property_changes_when_casefolded,
27065         uc_is_property_changes_when_casemapped): New declarations.
27066         * lib/unictype/pr_byname.gperf: Add the new properties.
27067         * modules/unictype/property-byname (Depends-on): Depend on the new
27068         properties modules.
27069         * modules/unictype/property-all (Depends-on): Likewise.
27070         * MODULES.html.sh (Unicode string functions): Add
27071         unictype/property-case-ignorable, unictype/property-cased,
27072         unictype/property-changes-when-casefolded,
27073         unictype/property-changes-when-casemapped,
27074         unictype/property-changes-when-lowercased,
27075         unictype/property-changes-when-titlecased,
27076         unictype/property-changes-when-uppercased.
27077
27078         New module 'unictype/property-changes-when-casemapped'.
27079         * modules/unictype/property-changes-when-casemapped: New file.
27080         * lib/unictype/pr_changes_when_casemapped.c: New file.
27081         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27082         generated by gen-uni-tables.
27083         * modules/unictype/property-changes-when-casemapped-tests: New file.
27084         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27085         automatically generated by gen-uni-tables.
27086
27087         New module 'unictype/property-changes-when-casefolded'.
27088         * modules/unictype/property-changes-when-casefolded: New file.
27089         * lib/unictype/pr_changes_when_casefolded.c: New file.
27090         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27091         generated by gen-uni-tables.
27092         * modules/unictype/property-changes-when-casefolded-tests: New file.
27093         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27094         automatically generated by gen-uni-tables.
27095
27096         New module 'unictype/property-changes-when-titlecased'.
27097         * modules/unictype/property-changes-when-titlecased: New file.
27098         * lib/unictype/pr_changes_when_titlecased.c: New file.
27099         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27100         generated by gen-uni-tables.
27101         * modules/unictype/property-changes-when-titlecased-tests: New file.
27102         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27103         automatically generated by gen-uni-tables.
27104
27105         New module 'unictype/property-changes-when-uppercased'.
27106         * modules/unictype/property-changes-when-uppercased: New file.
27107         * lib/unictype/pr_changes_when_uppercased.c: New file.
27108         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27109         generated by gen-uni-tables.
27110         * modules/unictype/property-changes-when-uppercased-tests: New file.
27111         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27112         automatically generated by gen-uni-tables.
27113
27114         New module 'unictype/property-changes-when-lowercased'.
27115         * modules/unictype/property-changes-when-lowercased: New file.
27116         * lib/unictype/pr_changes_when_lowercased.c: New file.
27117         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27118         generated by gen-uni-tables.
27119         * modules/unictype/property-changes-when-lowercased-tests: New file.
27120         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27121         automatically generated by gen-uni-tables.
27122
27123         New module 'unictype/property-case-ignorable'.
27124         * modules/unictype/property-case-ignorable: New file.
27125         * lib/unictype/pr_case_ignorable.c: New file.
27126         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27127         by gen-uni-tables.
27128         * modules/unictype/property-case-ignorable-tests: New file.
27129         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27130         generated by gen-uni-tables.
27131
27132         New module 'unictype/property-cased'.
27133         * modules/unictype/property-cased: New file.
27134         * lib/unictype/pr_cased.c: New file.
27135         * lib/unictype/pr_cased.h: New file, automatically generated by
27136         gen-uni-tables.
27137         * modules/unictype/property-cased-tests: New file.
27138         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27139         gen-uni-tables.
27140
27141 2011-01-09  Bruno Haible  <bruno@clisp.org>
27142
27143         Update to Unicode 5.2.0.
27144         * lib/gen-uni-tables.c (output_predicate, output_category,
27145         output_combclass, output_bidi_category, output_decimal_digit_test,
27146         output_decimal_digit, output_digit_test, output_digit,
27147         output_numeric_test, output_numeric, output_mirror, output_scripts,
27148         output_scripts_byname, output_blocks, output_ident_category): Fix
27149         comment header.
27150         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27151         get_wbp.
27152         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27153         items.
27154         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27155         Changes_When_Lowercased, Changes_When_Uppercased,
27156         Changes_When_Titlecased, Changes_When_Casefolded,
27157         Changes_When_Casemapped.
27158         (is_property_alphabetic, is_property_default_ignorable_code_point):
27159         Update for Unicode 5.2.0.
27160         (is_property_cased, is_property_case_ignorable,
27161         is_property_changes_when_lowercased,
27162         is_property_changes_when_uppercased,
27163         is_property_changes_when_titlecased,
27164         is_property_changes_when_casefolded,
27165         is_property_changes_when_casemapped): New functions.
27166         (output_properties): Output also the properties cased, case_ignorable,
27167         changes_when_lowercased, changes_when_uppercased,
27168         changes_when_titlecased, changes_when_casefolded,
27169         changes_when_casemapped.
27170         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27171         Unicode TR#11 revision 17 -> 19.
27172         (LBP_CP): New enumeration value.
27173         (LBP_*): Adjust values accordingly.
27174         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27175         TR#14 revision 22 -> 24.
27176         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27177         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27178         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27179         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27180         is_WBP_MIDLETTER.
27181         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27182         the code1 and code2 of each composition rule.
27183         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27184         * lib/unicase/ignorable.h: Likewise.
27185         * lib/unicase/tocasefold.h: Likewise.
27186         * lib/unicase/tolower.h: Likewise.
27187         * lib/unicase/totitle.h: Likewise.
27188         * lib/unicase/toupper.h: Likewise.
27189         * lib/unictype/bidi_of.h: Likewise.
27190         * lib/unictype/blocks.h: Likewise.
27191         * lib/unictype/categ_C.h: Likewise.
27192         * lib/unictype/categ_Cf.h: Likewise.
27193         * lib/unictype/categ_Cn.h: Likewise.
27194         * lib/unictype/categ_L.h: Likewise.
27195         * lib/unictype/categ_Ll.h: Likewise.
27196         * lib/unictype/categ_Lm.h: Likewise.
27197         * lib/unictype/categ_Lo.h: Likewise.
27198         * lib/unictype/categ_Lu.h: Likewise.
27199         * lib/unictype/categ_M.h: Likewise.
27200         * lib/unictype/categ_Mc.h: Likewise.
27201         * lib/unictype/categ_Mn.h: Likewise.
27202         * lib/unictype/categ_N.h: Likewise.
27203         * lib/unictype/categ_Nd.h: Likewise.
27204         * lib/unictype/categ_Nl.h: Likewise.
27205         * lib/unictype/categ_No.h: Likewise.
27206         * lib/unictype/categ_P.h: Likewise.
27207         * lib/unictype/categ_Pd.h: Likewise.
27208         * lib/unictype/categ_Po.h: Likewise.
27209         * lib/unictype/categ_S.h: Likewise.
27210         * lib/unictype/categ_Sc.h: Likewise.
27211         * lib/unictype/categ_So.h: Likewise.
27212         * lib/unictype/categ_of.h: Likewise.
27213         * lib/unictype/combining.h: Likewise.
27214         * lib/unictype/ctype_alnum.h: Likewise.
27215         * lib/unictype/ctype_alpha.h: Likewise.
27216         * lib/unictype/ctype_graph.h: Likewise.
27217         * lib/unictype/ctype_lower.h: Likewise.
27218         * lib/unictype/ctype_print.h: Likewise.
27219         * lib/unictype/ctype_punct.h: Likewise.
27220         * lib/unictype/ctype_upper.h: Likewise.
27221         * lib/unictype/decdigit.h: Likewise.
27222         * lib/unictype/digit.h: Likewise.
27223         * lib/unictype/numeric.h: Likewise.
27224         * lib/unictype/pr_alphabetic.h: Likewise.
27225         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27226         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27227         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27228         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27229         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27230         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27231         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27232         * lib/unictype/pr_combining.h: Likewise.
27233         * lib/unictype/pr_composite.h: Likewise.
27234         * lib/unictype/pr_currency_symbol.h: Likewise.
27235         * lib/unictype/pr_dash.h: Likewise.
27236         * lib/unictype/pr_decimal_digit.h: Likewise.
27237         * lib/unictype/pr_deprecated.h: Likewise.
27238         * lib/unictype/pr_diacritic.h: Likewise.
27239         * lib/unictype/pr_extender.h: Likewise.
27240         * lib/unictype/pr_grapheme_base.h: Likewise.
27241         * lib/unictype/pr_grapheme_extend.h: Likewise.
27242         * lib/unictype/pr_grapheme_link.h: Likewise.
27243         * lib/unictype/pr_id_continue.h: Likewise.
27244         * lib/unictype/pr_id_start.h: Likewise.
27245         * lib/unictype/pr_ideographic.h: Likewise.
27246         * lib/unictype/pr_ignorable_control.h: Likewise.
27247         * lib/unictype/pr_logical_order_exception.h: Likewise.
27248         * lib/unictype/pr_lowercase.h: Likewise.
27249         * lib/unictype/pr_numeric.h: Likewise.
27250         * lib/unictype/pr_other_alphabetic.h: Likewise.
27251         * lib/unictype/pr_punctuation.h: Likewise.
27252         * lib/unictype/pr_sentence_terminal.h: Likewise.
27253         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27254         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27255         * lib/unictype/pr_unified_ideograph.h: Likewise.
27256         * lib/unictype/pr_uppercase.h: Likewise.
27257         * lib/unictype/pr_xid_continue.h: Likewise.
27258         * lib/unictype/pr_xid_start.h: Likewise.
27259         * lib/unictype/pr_zero_width.h: Likewise.
27260         * lib/unictype/scripts.h: Likewise.
27261         * lib/unictype/scripts_byname.gperf: Likewise.
27262         * lib/unictype/sy_java_ident.h: Likewise.
27263         * lib/unigbrk/gbrkprop.h: Likewise.
27264         * lib/unilbrk/lbrkprop1.h: Likewise.
27265         * lib/unilbrk/lbrkprop2.h: Likewise.
27266         * lib/unilbrk/lbrktables.h: Likewise.
27267         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27268         LBP_CP. Implement rule LB30.
27269         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27270         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27271         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27272         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27273         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27274         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27275         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27276         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27277         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27278         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27279         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27280         bits instead of 16 bits in the code1 and code2 of each composition
27281         rule.
27282         (uc_composition): Update for Unicode 5.2.0.
27283         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27284         * lib/uninorm/decomposition-table2.h: Likewise.
27285         * lib/uniwbrk/wbrkprop.h: Likewise.
27286         * tests/unicase/test-cased.c: Likewise.
27287         * tests/unicase/test-ignorable.c: Likewise.
27288         * tests/unicase/test-uc_tolower.c: Likewise.
27289         * tests/unicase/test-uc_totitle.c: Likewise.
27290         * tests/unicase/test-uc_toupper.c: Likewise.
27291         * tests/unictype/test-categ_C.c: Likewise.
27292         * tests/unictype/test-categ_Cf.c: Likewise.
27293         * tests/unictype/test-categ_Cn.c: Likewise.
27294         * tests/unictype/test-categ_L.c: Likewise.
27295         * tests/unictype/test-categ_Ll.c: Likewise.
27296         * tests/unictype/test-categ_Lm.c: Likewise.
27297         * tests/unictype/test-categ_Lo.c: Likewise.
27298         * tests/unictype/test-categ_Lu.c: Likewise.
27299         * tests/unictype/test-categ_M.c: Likewise.
27300         * tests/unictype/test-categ_Mc.c: Likewise.
27301         * tests/unictype/test-categ_Mn.c: Likewise.
27302         * tests/unictype/test-categ_N.c: Likewise.
27303         * tests/unictype/test-categ_Nd.c: Likewise.
27304         * tests/unictype/test-categ_Nl.c: Likewise.
27305         * tests/unictype/test-categ_No.c: Likewise.
27306         * tests/unictype/test-categ_P.c: Likewise.
27307         * tests/unictype/test-categ_Pd.c: Likewise.
27308         * tests/unictype/test-categ_Po.c: Likewise.
27309         * tests/unictype/test-categ_S.c: Likewise.
27310         * tests/unictype/test-categ_Sc.c: Likewise.
27311         * tests/unictype/test-categ_So.c: Likewise.
27312         * tests/unictype/test-ctype_alnum.c: Likewise.
27313         * tests/unictype/test-ctype_alpha.c: Likewise.
27314         * tests/unictype/test-ctype_graph.c: Likewise.
27315         * tests/unictype/test-ctype_lower.c: Likewise.
27316         * tests/unictype/test-ctype_print.c: Likewise.
27317         * tests/unictype/test-ctype_punct.c: Likewise.
27318         * tests/unictype/test-ctype_upper.c: Likewise.
27319         * tests/unictype/test-decdigit.h: Likewise.
27320         * tests/unictype/test-digit.h: Likewise.
27321         * tests/unictype/test-numeric.h: Likewise.
27322         * tests/unictype/test-pr_alphabetic.c: Likewise.
27323         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27324         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27325         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27326         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27327         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27328         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27329         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27330         * tests/unictype/test-pr_combining.c: Likewise.
27331         * tests/unictype/test-pr_composite.c: Likewise.
27332         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27333         * tests/unictype/test-pr_dash.c: Likewise.
27334         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27335         * tests/unictype/test-pr_deprecated.c: Likewise.
27336         * tests/unictype/test-pr_diacritic.c: Likewise.
27337         * tests/unictype/test-pr_extender.c: Likewise.
27338         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27339         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27340         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27341         * tests/unictype/test-pr_id_continue.c: Likewise.
27342         * tests/unictype/test-pr_id_start.c: Likewise.
27343         * tests/unictype/test-pr_ideographic.c: Likewise.
27344         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27345         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27346         * tests/unictype/test-pr_lowercase.c: Likewise.
27347         * tests/unictype/test-pr_numeric.c: Likewise.
27348         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27349         * tests/unictype/test-pr_punctuation.c: Likewise.
27350         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27351         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27352         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27353         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27354         * tests/unictype/test-pr_uppercase.c: Likewise.
27355         * tests/unictype/test-pr_xid_continue.c: Likewise.
27356         * tests/unictype/test-pr_xid_start.c: Likewise.
27357         * tests/unictype/test-pr_zero_width.c: Likewise.
27358         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27359         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27360         changed behaviour: line breaking is now disallowed between a letter
27361         or '=' and '('.
27362         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27363         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27364         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27365         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27366         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27367         lib/uniwidth/width.c.
27368         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27369         without comments, but with the original copyright notice.
27370         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27371         changes.
27372         * lib/unictype/categ_Cc.h: Likewise.
27373         * lib/unictype/categ_Co.h: Likewise.
27374         * lib/unictype/categ_Cs.h: Likewise.
27375         * lib/unictype/categ_Lt.h: Likewise.
27376         * lib/unictype/categ_Me.h: Likewise.
27377         * lib/unictype/categ_Pc.h: Likewise.
27378         * lib/unictype/categ_Pe.h: Likewise.
27379         * lib/unictype/categ_Pf.h: Likewise.
27380         * lib/unictype/categ_Pi.h: Likewise.
27381         * lib/unictype/categ_Ps.h: Likewise.
27382         * lib/unictype/categ_Sk.h: Likewise.
27383         * lib/unictype/categ_Sm.h: Likewise.
27384         * lib/unictype/categ_Z.h: Likewise.
27385         * lib/unictype/categ_Zl.h: Likewise.
27386         * lib/unictype/categ_Zp.h: Likewise.
27387         * lib/unictype/categ_Zs.h: Likewise.
27388         * lib/unictype/ctype_blank.h: Likewise.
27389         * lib/unictype/ctype_cntrl.h: Likewise.
27390         * lib/unictype/ctype_digit.h: Likewise.
27391         * lib/unictype/ctype_space.h: Likewise.
27392         * lib/unictype/ctype_xdigit.h: Likewise.
27393         * lib/unictype/mirror.h: Likewise.
27394         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27395         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27396         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27397         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27398         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27399         * lib/unictype/pr_bidi_control.h: Likewise.
27400         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27401         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27402         * lib/unictype/pr_bidi_pdf.h: Likewise.
27403         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27404         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27405         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27406         * lib/unictype/pr_format_control.h: Likewise.
27407         * lib/unictype/pr_hex_digit.h: Likewise.
27408         * lib/unictype/pr_hyphen.h: Likewise.
27409         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27410         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27411         * lib/unictype/pr_iso_control.h: Likewise.
27412         * lib/unictype/pr_join_control.h: Likewise.
27413         * lib/unictype/pr_left_of_pair.h: Likewise.
27414         * lib/unictype/pr_line_separator.h: Likewise.
27415         * lib/unictype/pr_math.h: Likewise.
27416         * lib/unictype/pr_non_break.h: Likewise.
27417         * lib/unictype/pr_not_a_character.h: Likewise.
27418         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27419         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27420         * lib/unictype/pr_other_id_continue.h: Likewise.
27421         * lib/unictype/pr_other_id_start.h: Likewise.
27422         * lib/unictype/pr_other_lowercase.h: Likewise.
27423         * lib/unictype/pr_other_math.h: Likewise.
27424         * lib/unictype/pr_other_uppercase.h: Likewise.
27425         * lib/unictype/pr_paired_punctuation.h: Likewise.
27426         * lib/unictype/pr_paragraph_separator.h: Likewise.
27427         * lib/unictype/pr_pattern_syntax.h: Likewise.
27428         * lib/unictype/pr_pattern_white_space.h: Likewise.
27429         * lib/unictype/pr_private_use.h: Likewise.
27430         * lib/unictype/pr_quotation_mark.h: Likewise.
27431         * lib/unictype/pr_radical.h: Likewise.
27432         * lib/unictype/pr_soft_dotted.h: Likewise.
27433         * lib/unictype/pr_space.h: Likewise.
27434         * lib/unictype/pr_titlecase.h: Likewise.
27435         * lib/unictype/pr_variation_selector.h: Likewise.
27436         * lib/unictype/pr_white_space.h: Likewise.
27437         * lib/unictype/sy_c_ident.h: Likewise.
27438         * lib/unictype/sy_c_whitespace.h: Likewise.
27439         * lib/unictype/sy_java_whitespace.h: Likewise.
27440         * modules/uni*/*: Bump version number of expected libunistring version.
27441         Reported by Simon Josefsson.
27442
27443 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27444
27445         useless-if-before-free: fix typo in --help and make the internal,
27446         automatic version date update process work once again.
27447         --help output contained a NUL character instead of the
27448         backslash-zero that was intended.  Also, the "must lie within
27449         the first 8 lines" line is on line 9, and hence not getting
27450         automatically updated.
27451         * build-aux/useless-if-before-free: Fix the former by adding a
27452         backslash, and the latter by condensing the three lines of what-it-does
27453         to a single line, leaving one line of slack for the future.
27454
27455 2011-01-09  Bruno Haible  <bruno@clisp.org>
27456
27457         uniwidth/width: Fix width of U+1D173..U+1D17A.
27458         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27459         symbolic_width, output_width_property_test): New functions.
27460         (main): Invoke output_nonspacing_property, output_width_property_test.
27461         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27462         U+1D173..U+1D17A.
27463         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27464         1.
27465         * modules/uniwidth/*: Bump version number of expected libunistring
27466         version.
27467         * modules/unilbrk/*: Likewise.
27468
27469 2011-01-08  Bruno Haible  <bruno@clisp.org>
27470
27471         uninorm tests: Preserve copyright of Unicode data file.
27472         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27473         Mention modifications.
27474
27475 2011-01-08  Bruno Haible  <bruno@clisp.org>
27476
27477         gen-uni-tables: Prepare for Unicode 5.2.0.
27478         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27479         (debug_output_lbp, output_lbp): Update.
27480
27481 2011-01-08  Bruno Haible  <bruno@clisp.org>
27482
27483         unilbrk: Clarify gen-uni-tables.c code.
27484         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27485         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27486         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27487
27488 2011-01-07  Bruno Haible  <bruno@clisp.org>
27489
27490         strtod: Restore errno when successfully parsing Infinity or NaN.
27491         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27492         restore the original errno.
27493
27494 2011-01-07  Bruno Haible  <bruno@clisp.org>
27495
27496         remove test: Avoid failure on HP-UX 11.
27497         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27498
27499 2011-01-07  Bruno Haible  <bruno@clisp.org>
27500
27501         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27502         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27503         error code.
27504
27505 2011-01-07  Pádraig Brady <P@draigBrady.com>
27506
27507         ignore-value: fixup comments, and add Eric Blake
27508         as an author since he rewrote the macros.
27509         * lib/ignore-value.h (ignore_value):  State that
27510         we now support aggregates.  Also specify exactly
27511         when the GCC warn_unused_result feature was added.
27512
27513 2011-01-06  Eric Blake  <eblake@redhat.com>
27514
27515         ignore-value: support aggregate types
27516         * lib/ignore-value.h (ignore_value): Provide separate gcc
27517         definition.
27518         * modules/ignore-value-tests: New test module.
27519         * tests/test-ignore-value.c: New test.
27520
27521         maint.mk: improve sc_prohibit_strcmp regex
27522         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27523         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27524         definition of STRNEQ.
27525
27526         signal: work around Haiku issue with SIGBUS
27527         * lib/siglist.h: Add comment.
27528         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27529         strsignal's favoring of SIGSEGV.
27530         * tests/test-signal.c (main): Avoid test failure.
27531         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27532         Reported by Scott McCreary.
27533
27534         maint.mk: add pre-release check to ensure submodule commits are public
27535         * top/maint.mk (public-submodule-commit): New rule.
27536         (submodule-checks): New variable.
27537         (alpha beta stable): Depend on the variable.
27538
27539 2011-01-05  Pádraig Brady <P@draigBrady.com>
27540         and Jim Meyering  <meyering@redhat.com>
27541
27542         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27543         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27544         (ATTRIBUTE_DEPRECATED): Define.
27545         (_ignore_case): New function.
27546         (ignore_value): New macro, to replace the old function.
27547         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27548         * modules/ignore-value (Depends-on): Add stdint.
27549
27550 2011-01-04  Eric Blake  <eblake@redhat.com>
27551
27552         doc: regenerate INSTALL
27553         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27554         @firstparagraphindent support, now that autoconf dropped it.
27555         (INSTALL_PRELUDE): Reinstate old macro.
27556         * doc/install.texi: Resync from autoconf.
27557         * doc/INSTALL: Reflect recent autoconf update.
27558         * doc/INSTALL.ISO: Likewise.
27559         * doc/INSTALL.UTF-8: Likewise.
27560         Reported by Karl Berry.
27561
27562 2011-01-04  Bruce Korb  <address@hidden>
27563
27564         git-version-gen: avoid a sub-shell
27565         * build-aux/git-version-gen: Redirect stderr in `...` via
27566         "exec 2>...", rather than via an added sub-shell.
27567
27568 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27569
27570         git-version-gen: use (...) rather than sh -c '...'
27571         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27572         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27573
27574 2011-01-03  Jim Meyering  <meyering@redhat.com>
27575
27576         git-version-gen: convert leading TABs to spaces
27577         * build-aux/git-version-gen: Expand leading TABs.
27578
27579         git-version-gen: handle failed "git rev-list"
27580         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27581         from git and proceeding as if it had succeeded but printed no SHA1
27582         checksums, suppress the diagnostic and handle the failure.
27583         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27584
27585         git-version-gen: include command name in one more diagnostic
27586         * build-aux/git-version-gen: When the required .tarball-version file
27587         was missing or unreadable, you might see the diagnostic from "cat",
27588         but no trace of the name of the invoking script.  Now, you still see
27589         the diagnostic from cat, but also get one from "git-version-gen: ".
27590         Inspired by a patch from Bruce Korb.
27591
27592         update-copyright: adjust test to match changed code
27593         * tests/test-update-copyright.sh: Change test's expected output
27594         to match new actual output.
27595
27596 2011-01-02  Bruno Haible  <bruno@clisp.org>
27597
27598         getlogin_r: Avoid test failure on HP-UX 11.
27599         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27600         ERANGE when the second argument is zero.
27601         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27602         portability problem.
27603
27604 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27605
27606         * build-aux/update-copyright: doc Simon's changes
27607
27608 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27609
27610         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27611         environment variable.
27612
27613 2011-01-02  Bruno Haible  <bruno@clisp.org>
27614
27615         unigbrk: Avoid gcc warnings.
27616         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27617         unused variable.
27618         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27619         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27620         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27621         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27622         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27623         Change type of first argument to 'const char *'.
27624         (main): Remove unused variable.
27625         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27626         type of first argument to 'const char *'.
27627         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27628         Likewise.
27629         (main): Change type of variable 's'.
27630         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27631         to 'int'.
27632
27633 2011-01-02  Bruno Haible  <bruno@clisp.org>
27634
27635         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27636         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27637         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27638         bug.
27639         * lib/pwrite.c: Undo 2010-12-31 patch.
27640         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27641
27642 2011-01-02  Bruno Haible  <bruno@clisp.org>
27643
27644         pread: Fix test whether it works.
27645         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27646
27647 2011-01-02  Bruno Haible  <bruno@clisp.org>
27648
27649         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27650         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27651         ends in "6". Don't require a specific month name. Try also the locale
27652         names found on HP-UX 11 and Solaris 7.
27653
27654 2011-01-02  Bruno Haible  <bruno@clisp.org>
27655
27656         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27657         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27658         C linkage.
27659         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27660
27661 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27662
27663         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27664         for consistency, since the "cluster" term is not used elsewhere.
27665         * lib/unigbrk.in.h: Update name.
27666         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27667         * lib/unigbrk/u16-grapheme-next.c: Update name.
27668         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27669         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27670         * lib/unigbrk/u32-grapheme-next.c: Update name.
27671         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27672         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27673         * lib/unigbrk/u8-grapheme-next.c: Update name.
27674         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27675         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27676         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27677         Suggested by Bruno Haible.
27678
27679 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27680
27681         Remove module 'u8-grapheme-len' as too redundant with
27682         'u8-grapheme-next'.
27683         * modules/unigbrk/u8-grapheme-len: Delete file.
27684         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27685         * lib/unigbrk.in.h: Remove prototype for deleted function.
27686         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27687         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27688
27689         Remove module 'u16-grapheme-len' as too redundant with
27690         'u16-grapheme-next'.
27691         * modules/unigbrk/u16-grapheme-len: Delete file.
27692         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27693         * lib/unigbrk.in.h: Remove prototype for deleted function.
27694         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27695         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27696
27697         Remove module 'u32-grapheme-len' as too redundant with
27698         'u32-grapheme-next'.
27699         * modules/unigbrk/u32-grapheme-len: Delete file.
27700         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27701         * lib/unigbrk.in.h: Remove prototype for deleted function.
27702         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27703         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27704
27705         Suggested by Bruno Haible.
27706
27707 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27708
27709         * unigbrk.in.h: Fix typo: "ben" => "been".
27710         Reported by Bruno Haible.
27711
27712 2011-01-01  Jim Meyering  <meyering@redhat.com>
27713
27714         maint: update almost all copyright ranges to include 2011
27715         Run the new "make update-copyright" rule.
27716
27717 2011-01-01  Jim Meyering  <meyering@redhat.com>
27718
27719         maint: update-copyright: exempt doc/INSTALL*
27720         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27721         since they are generated.  Suggested by Bruno Haible.
27722
27723 2011-01-01  Jim Meyering  <meyering@redhat.com>
27724
27725         maint: refine the update-copyright rule
27726         * Makefile (update-copyright): Also exclude any file that includes
27727         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27728         code that merely generates the comment.
27729
27730 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27731
27732         New module 'u8-grapheme-len'.
27733         * modules/unigbrk/u8-grapheme-len: New file.
27734         * modules/unigbrk/u8-grapheme-len-tests: New file.
27735         * lib/unigbrk.in.h: Add prototype for new function.
27736         * lib/unigbrk/u8-grapheme-len.c: New file.
27737         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27738
27739         New module 'u16-grapheme-len'.
27740         * modules/unigbrk/u16-grapheme-len: New file.
27741         * modules/unigbrk/u16-grapheme-len-tests: New file.
27742         * lib/unigbrk.in.h: Add prototype for new function.
27743         * lib/unigbrk/u16-grapheme-len.c: New file.
27744         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27745
27746         New module 'u32-grapheme-len'.
27747         * modules/unigbrk/u32-grapheme-len: New file.
27748         * modules/unigbrk/u32-grapheme-len-tests: New file.
27749         * lib/unigbrk.in.h: Add prototype for new function.
27750         * lib/unigbrk/u32-grapheme-len.c: New file.
27751         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27752
27753         New module 'u8-grapheme-next'.
27754         * modules/unigbrk/u8-grapheme-next: New file.
27755         * modules/unigbrk/u8-grapheme-next-tests: New file.
27756         * lib/unigbrk.in.h: Add prototype for new function.
27757         * lib/unigbrk/u8-grapheme-next.c: New file.
27758         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27759
27760         New module 'u16-grapheme-next'.
27761         * modules/unigbrk/u16-grapheme-next: New file.
27762         * modules/unigbrk/u16-grapheme-next-tests: New file.
27763         * lib/unigbrk.in.h: Add prototype for new function.
27764         * lib/unigbrk/u16-grapheme-next.c: New file.
27765         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27766
27767         New module 'u32-grapheme-next'.
27768         * modules/unigbrk/u32-grapheme-next: New file.
27769         * modules/unigbrk/u32-grapheme-next-tests: New file.
27770         * lib/unigbrk.in.h: Add prototype for new function.
27771         * lib/unigbrk/u32-grapheme-next.c: New file.
27772         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27773
27774         New module 'u8-grapheme-prev'.
27775         * modules/unigbrk/u8-grapheme-prev: New file.
27776         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27777         * lib/unigbrk.in.h: Add prototype for new function.
27778         * lib/unigbrk/u8-grapheme-prev.c: New file.
27779         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27780
27781         New module 'u16-grapheme-prev'.
27782         * modules/unigbrk/u16-grapheme-prev: New file.
27783         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27784         * lib/unigbrk.in.h: Add prototype for new function.
27785         * lib/unigbrk/u16-grapheme-prev.c: New file.
27786         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27787
27788         New module 'u32-grapheme-prev'.
27789         * modules/unigbrk/u32-grapheme-prev: New file.
27790         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27791         * lib/unigbrk.in.h: Add prototype for new function.
27792         * lib/unigbrk/u32-grapheme-prev.c: New file.
27793         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27794
27795         New module 'u8-grapheme-breaks'.
27796         * modules/unigbrk/u8-grapheme-breaks: New file.
27797         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27798         * lib/unigbrk.in.h: Add prototype for new function.
27799         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27800         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27801
27802         New module 'u16-grapheme-breaks'.
27803         * modules/unigbrk/u16-grapheme-breaks: New file.
27804         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27805         * lib/unigbrk.in.h: Add prototype for new function.
27806         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27807         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27808
27809         New module 'u32-grapheme-breaks'.
27810         * modules/unigbrk/u32-grapheme-breaks: New file.
27811         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27812         * lib/unigbrk.in.h: Add prototype for new function.
27813         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27814         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27815
27816         New module 'ulc-grapheme-breaks'.
27817         * modules/unigbrk/ulc-grapheme-breaks: New file.
27818         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27819         * m4/locale-ar.m4: New file.
27820         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27821         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27822         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27823
27824 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27825
27826         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27827         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27828         modified how this file was generated before I initially submitted
27829         the module, but failed to regenerate it.  This meant that several
27830         of the level2 entries were wrong.
27831         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27832         Remove the division-by-2 that is folded into the table now that
27833         gbrkprop.h has been regenerated properly.  Now -1 entries are
27834         handled correctly.
27835
27836         New module 'unigbrk/uc-gbrk-prop-tests'.
27837         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27838         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27839         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27840         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27841
27842 2011-01-01  Bruno Haible  <bruno@clisp.org>
27843
27844         Avoid use of hexadecimal escapes.
27845         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27846         instead of hexadecimal escapes.
27847
27848 2011-01-01  Jim Meyering  <meyering@redhat.com>
27849
27850         maint: new rule to update copyright year ranges
27851         * Makefile (update-copyright): New rule.
27852
27853         maint: indent with TABs in Makefile
27854         * Makefile: Expand leading sequences of spaces to TABs
27855
27856         version-etc: update the copyright year it reports
27857         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27858
27859 2010-12-31  Bruno Haible  <bruno@clisp.org>
27860
27861         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27862         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27863         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27864         zero.
27865
27866 2010-12-31  Bruno Haible  <bruno@clisp.org>
27867
27868         pwrite: Work around HP-UX 11.11 bug.
27869         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27870         works and set REPLACE_PWRITE if not.
27871         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27872         function.
27873         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27874
27875 2010-12-31  Bruno Haible  <bruno@clisp.org>
27876
27877         pread: Work around HP-UX 11 bugs.
27878         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27879         and set REPLACE_PREAD if not.
27880         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27881
27882 2010-12-31  Eric Blake  <eblake@redhat.com>
27883
27884         nl_langinfo: fix YESEXPR on Irix 6.5
27885         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27886         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27887         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27888         it.
27889
27890 2010-12-31  Bruno Haible  <bruno@clisp.org>
27891
27892         iconv: Document HP-UX 11 bug.
27893         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27894
27895 2010-12-31  Bruno Haible  <bruno@clisp.org>
27896
27897         ldexpl: Fix link error on HP-UX 11.
27898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27899         LDEXPL_LIBM, using $ISNANL_LIBM.
27900
27901 2010-12-31  Eric Blake  <eblake@redhat.com>
27902
27903         ftello: avoid compilation failure with SunStudio c89
27904         * lib/ftello.c (ftello): Use lseek, not llseek.
27905
27906         tests: avoid failing coreutils tests on cygwin
27907         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27908         (create_exe_shims_): Return 0 when skipping.
27909
27910 2010-12-31  Bruno Haible  <bruno@clisp.org>
27911
27912         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27913         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27914
27915 2010-12-31  Bruno Haible  <bruno@clisp.org>
27916
27917         waitpid: Fix link error in C++ mode.
27918         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27919
27920 2010-12-31  Bruno Haible  <bruno@clisp.org>
27921
27922         isnan: Use GCC built-ins when possible.
27923         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27924         __builtin_isnan.
27925         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27926         (isnan): Define using GCC built-ins for GCC >= 4.0.
27927
27928 2010-12-31  Bruno Haible  <bruno@clisp.org>
27929
27930         isnand: Fix mistake.
27931         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27932         __builtin_isnand.
27933
27934 2010-12-31  Bruno Haible  <bruno@clisp.org>
27935
27936         open: Avoid C++ error on HP-UX 11.
27937         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27938
27939 2010-12-31  Bruno Haible  <bruno@clisp.org>
27940
27941         time_r: Add missing declarations on HP-UX 11.
27942         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27943         instead of HAVE_LOCALTIME_R.
27944         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27945         HAVE_LOCALTIME_R always.
27946         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27947         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27948         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27949         HAVE_LOCALTIME_R.
27950         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27951         * doc/posix-functions/localtime_r.texi: Likewise.
27952
27953 2010-12-29  Eric Blake  <eblake@redhat.com>
27954
27955         mountlist: tweak previous commit
27956         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27957         Reported by Paul Eggert.
27958
27959         mountlist: fix local drive detection on cygwin
27960         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27961         that works for cygwin.
27962
27963 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27964
27965         ftoastr, snprintf: ftoastr + snprintf module
27966         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27967         since the snprintf module now should be good enough here.
27968         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27969         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27970         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27971         GNULIB_SNPRINTF only for the test directory, and the latter
27972         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27973         seems to suffice by itself.
27974
27975 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27976
27977         alloca: one step towards thread-safety
27978         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27979         need for a static variable.  All callers changed.  This does not
27980         make the alloca replacement thread-safe, but it's one step.
27981
27982         tests: minor indenting change
27983         * tests/init.sh: Sync from coreutils housekeeping patch
27984         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27985         to keep lines within 80 columns.
27986
27987 2010-12-28  Jim Meyering  <meyering@redhat.com>
27988
27989         regex: don't infloop on persistent failing calloc
27990         * lib/regexec.c (build_trtable): Return failure indication upon
27991         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27992         In glibc, this was fixed for version 2.13:
27993         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27994
27995 2010-12-28  Bruno Haible  <bruno@clisp.org>
27996             Paul Eggert <eggert@cs.ucla.edu>
27997
27998         linkat: Make implementation robust against system behaviour variations.
27999         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28000         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28001         way, and to -2 if it needs a generic runtime test.
28002         * lib/linkat.c (solaris_optimized_link_immediate,
28003         solaris_optimized_link_follow): New functions.
28004         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28005         (check_same_link): Use it.
28006
28007 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28008
28009         New module 'unigbrk/base'.
28010         * modules/unigbrk/base: New file.
28011         * lib/unigbrk.in.h: New file.
28012
28013         New module 'unigbrk/uc-gbrk-prop'.
28014         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28015         * modules/unigbrk/uc-gbrk-prop: New file.
28016         * lib/unigbrk/gbrkprop.h: New file.
28017         * lib/unigbrk/uc-gbrk-prop.c: New file.
28018
28019         New module 'unigbrk/uc-is-grapheme-break'.
28020         * modules/unigbrk/uc-is-grapheme-break: New file.
28021         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28022         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28023         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28024         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28025         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28026
28027         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28028
28029 2010-12-27  Bruno Haible  <bruno@clisp.org>
28030
28031         linkat test: Avoid failure on Solaris 11 2010-11.
28032         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28033
28034 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28035
28036         utimens: work around glibc rounding bug on more platforms
28037         * lib/utimens.c (fdutimens): Work around rounding bug even if
28038         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28040
28041 2010-12-27  Bruno Haible  <bruno@clisp.org>
28042
28043         select tests: Improve comments.
28044         * tests/test-select.c (do_select): Add comments.
28045
28046 2010-12-27  Bruno Haible  <bruno@clisp.org>
28047
28048         select tests: Safer way of handling timeout.
28049         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28050         at every invocation.
28051
28052 2010-12-27  Bruno Haible  <bruno@clisp.org>
28053
28054         select tests: Use 'bool' where appropriate.
28055         * tests/test-select.c (connect_to_socket): Change argument type to
28056         'bool'.
28057
28058 2010-12-27  Bruno Haible  <bruno@clisp.org>
28059
28060         select tests: Use existing modules.
28061         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28062         (configure.ac): Don't test for unistd.h.
28063         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28064         declared in <unistd.h>.
28065
28066 2010-12-27  Bruno Haible  <bruno@clisp.org>
28067
28068         mbrtowc: Work around a Solaris 7 bug.
28069         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28070         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28071         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28072         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28073         MBRTOWC_NULL_ARG1_BUG.
28074         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28075         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28076         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28077         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28078
28079 2010-12-27  Jim Meyering  <meyering@redhat.com>
28080
28081         read-file.c: tweak syntax
28082         * lib/read-file.c (fread_file): Remove space after "*" in function
28083         definitions.
28084
28085 2010-12-27  Bruno Haible  <bruno@clisp.org>
28086
28087         times test: Avoid gcc warnings on OSF/1.
28088         * tests/test-times.c (main): Cast printf arguments from clock_t to
28089         'long int'.
28090
28091 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28092
28093         utimens: work around glibc rounding bug on older Linux kernels
28094         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28095         on Linux with a glibc whose utimes might not work, then work
28096         around a longstanding glibc bug involving rounding rather than
28097         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28099
28100 2010-12-26  Bruno Haible  <bruno@clisp.org>
28101
28102         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28103         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28104         _GL_CXXALIAS_SYS.
28105         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28106
28107 2010-12-26  Bruno Haible  <bruno@clisp.org>
28108
28109         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28110         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28111         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28112         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28113         looking for the declaration.
28114         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28115         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28116         problem.
28117         * doc/posix-functions/inet_pton.texi: Likewise.
28118
28119 2010-12-26  Bruno Haible  <bruno@clisp.org>
28120
28121         arpa_inet: Use the common idioms with C++ support.
28122         * lib/arpa_inet.in.h: Include c++defs.h.
28123         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28124         support.
28125         * modules/arpa_inet (Depends-on): Add c++defs.
28126         (Makefile.am): Substitute the contents of c++defs.h.
28127         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28128         * modules/arpa_inet-c++-tests: New file.
28129         * tests/test-arpa_inet-c++.cc: New file.
28130
28131 2010-12-25  Bruno Haible  <bruno@clisp.org>
28132
28133         Fix more C++ link errors on Solaris 8.
28134         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28135         $(LIB_EACCESS).
28136         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28137         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28138         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28139         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28140         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28141
28142 2010-12-25  Bruno Haible  <bruno@clisp.org>
28143
28144         printf-posix: Fix link error when a non-GCC compiler is used.
28145         * lib/stdio.in.h (printf): When not using GCC, override printf
28146         correctly.
28147         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28148
28149 2010-12-25  Bruno Haible  <bruno@clisp.org>
28150
28151         strerror_r-posix: Update doc.
28152         * doc/posix-functions/strerror_r.texi: Update doc about the return
28153         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28154
28155 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28156
28157         utimens: simplify the logic of the previous change
28158         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28159         This should not affect whether the test succeeds or fails.
28160
28161         utimens: configure better on hosts with NFS clock skew
28162         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28163         uses the clock of the local host.  It might use the clock of the
28164         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28166
28167 2010-12-25  Bruno Haible  <bruno@clisp.org>
28168
28169         ptsname test: Avoid failure on Solaris.
28170         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28171         open a pseudo-terminal; don't use BSD-style ptys.
28172         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28173
28174 2010-12-25  Bruno Haible  <bruno@clisp.org>
28175
28176         ptsname: Avoid ERANGE failure on some systems.
28177         * lib/ptsname.c (buffer): Increase size.
28178
28179 2010-12-25  Bruno Haible  <bruno@clisp.org>
28180
28181         rename, renameat: Avoid test failures at NFS mounted locations.
28182         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28183         so that subsequent mkdir calls succeed.
28184
28185 2010-12-25  Bruno Haible  <bruno@clisp.org>
28186
28187         iswblank: Fix C++ link error on Solaris 8.
28188         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28189         _GL_FUNCDECL_SYS.
28190
28191 2010-12-25  Bruno Haible  <bruno@clisp.org>
28192
28193         unistd: Fix C++ link error on Solaris 8.
28194         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28195
28196 2010-12-25  Bruno Haible  <bruno@clisp.org>
28197
28198         readlink doc: Mention an old glibc bug.
28199         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28200
28201 2010-12-25  Bruno Haible  <bruno@clisp.org>
28202
28203         fcntl-h: Fix for use of C++ on glibc systems.
28204         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28205         also on glibc systems in C++ mode.
28206         Reported by Gary V. Vaughan <gary@gnu.org>.
28207
28208 2010-12-25  Bruno Haible  <bruno@clisp.org>
28209
28210         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28211         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28212
28213 2010-12-25  Bruno Haible  <bruno@clisp.org>
28214
28215         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28216         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28217         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28218         test whether truncl works according to ISO C 99 with IEC 60559.
28219         * m4/truncl-ieee.m4: New file.
28220         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28221         m4/signbit.m4.
28222         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28223
28224 2010-12-25  Bruno Haible  <bruno@clisp.org>
28225
28226         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28227         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28228         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28229         test whether ceill works according to ISO C 99 with IEC 60559.
28230         * m4/ceill-ieee.m4: New file.
28231         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28232         m4/signbit.m4.
28233         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28234
28235 2010-12-25  Bruno Haible  <bruno@clisp.org>
28236
28237         Ensure all prerequisites of <wchar.h> are included.
28238         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28239         before <wchar.h>.
28240         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28241         gl_MBRLEN_NUL_RETVAL): Likewise.
28242         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28243         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28244         AC_FUNC_MBRTOWC): Likewise.
28245         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28246         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28247         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28248         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28249         Likewise.
28250         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28251         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28252         (gl_WCHAR_H): Improve comments.
28253         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28254
28255 2010-12-25  Bruno Haible  <bruno@clisp.org>
28256
28257         strtok_r: Fix C syntax error in autoconf macro.
28258         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28259         characters in test program.
28260
28261 2010-12-24  Bruno Haible  <bruno@clisp.org>
28262
28263         ceil, trunc, round: Fix gcc warnings.
28264         * lib/ceil.c (MIN): Undefine before redefining.
28265         * lib/trunc.c (MIN): Likewise.
28266         * lib/round.c (MIN): Likewise.
28267         Include <math.h> first.
28268
28269 2010-12-24  Bruno Haible  <bruno@clisp.org>
28270
28271         select tests: Avoid failures on OSF/1 5.1.
28272         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28273         failure of closing the last socket; it may fail with ECONNRESET.
28274
28275 2010-12-24  Eric Blake  <eblake@redhat.com>
28276
28277         stdint: avoid HP-UX 10.20 preprocessor bug
28278         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28279         than #if.
28280         * tests/test-floor2.c (main): Likewise.
28281         Reported by Peter O'Gorman.
28282
28283         pipe: make obsoletion transition easier
28284         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28285         * modules/pipe (Files): Include revived file.
28286         (Include): Drop reference, to mirror getdate's behavior.
28287
28288 2010-12-24  Bruno Haible  <bruno@clisp.org>
28289
28290         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28291         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28292         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28293         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28294
28295 2010-12-24  Bruno Haible  <bruno@clisp.org>
28296
28297         gethostname: Ensure declaration on NonStop Kernel.
28298         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28300
28301 2010-12-24  Bruno Haible  <bruno@clisp.org>
28302
28303         sys_select: Ensure all necessary types on NonStop Kernel.
28304         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28305         include <sys/time.h>.
28306         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28307         NonStop Kernel.
28308         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28309
28310 2010-12-24  Bruno Haible  <bruno@clisp.org>
28311
28312         sys_select: Remove unneeded include.
28313         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28314         have <sys/select.h>.
28315
28316 2010-12-24  Bruno Haible  <bruno@clisp.org>
28317
28318         gethostname: Provide a fallback for HOST_NAME_MAX.
28319         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28320         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28321         instead.
28322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28323
28324 2010-12-24  Bruno Haible  <bruno@clisp.org>
28325
28326         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28327         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28328         (SA_RESTART): Likewise.
28329         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28330
28331 2010-12-24  Bruno Haible  <bruno@clisp.org>
28332
28333         signal: Define NSIG.
28334         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28335         * tests/test-signal.c (nsig): New variable.
28336         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28337
28338 2010-12-24  Bruno Haible  <bruno@clisp.org>
28339
28340         rename, renameat: Avoid test failures on OSF/1 5.1.
28341         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28342         alternative error codes.
28343         * tests/test-renameat.c (main): Likewise.
28344
28345 2010-12-24  Bruno Haible  <bruno@clisp.org>
28346
28347         *printf: Detect large precisions bug on Solaris 10/SPARC.
28348         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28349         by Paul Eggert.
28350         * tests/test-snprintf-posix.h (test_function): Add this test code here
28351         too.
28352         * tests/test-sprintf-posix.h (test_function): Likewise.
28353         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28354         * tests/test-vasprintf-posix.c (test_function): Likewise.
28355         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28356         around by gnulib.
28357         * doc/posix-functions/printf.texi: Likewise.
28358         * doc/posix-functions/snprintf.texi: Likewise.
28359         * doc/posix-functions/sprintf.texi: Likewise.
28360         * doc/posix-functions/vfprintf.texi: Likewise.
28361         * doc/posix-functions/vprintf.texi: Likewise.
28362         * doc/posix-functions/vsnprintf.texi: Likewise.
28363         * doc/posix-functions/vsprintf.texi: Likewise.
28364         * doc/posix-functions/dprintf.texi: Undo last commit.
28365         * doc/posix-functions/vdprintf.texi: Likewise.
28366
28367 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28368
28369         tests: port test-fdutimensat.c to Solaris 8
28370         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28371         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28372         On Solaris 8, it fails with errno == ENOSYS, because there is no
28373         futimens (so it can't use the fd), and there is no lutimens (so it
28374         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28375
28376         vsnprintf: make more consistent with snprintf; doc fixes
28377
28378         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28379         the byte count return problem was promoted from the snprintf-posix
28380         to the snprintf module.
28381         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28382         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28383         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28384         * tests/test-snprintf.c (main): Check the byte count returned.
28385         * tests/test-vsnprintf.c (main): Likewise.
28386
28387 2010-12-23  Eric Blake  <eblake@redhat.com>
28388
28389         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28390         * modules/sigpipe (License): Relax license.
28391
28392 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28393
28394         doc: document Solaris printf bug with large float precisions
28395         * doc/posix-functions/dprintf.texi (dprintf):
28396         * doc/posix-functions/fprintf.texi (fprintf):
28397         * doc/posix-functions/printf.texi (printf):
28398         * doc/posix-functions/snprintf.texi (snprintf):
28399         * doc/posix-functions/sprintf.texi (sprintf):
28400         * doc/posix-functions/vdprintf.texi (vdprintf):
28401         * doc/posix-functions/vfprintf.texi (vfprintf):
28402         * doc/posix-functions/vprintf.texi (vprintf):
28403         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28404         * doc/posix-functions/vsprintf.texi (vsprintf):
28405         Mention that these functions mishandle large floating point
28406         precisions on Solaris 10.  The same bug is also present in Solaris
28407         8, and I assume earlier.  This causes "cd gnulib-tests; make
28408         check" to fail on Solaris 8 (and I assume, later) when building
28409         the latest coreutils, in test-vasprintf-posix's call to
28410         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28411         the wide flavors (e.g., wprintf) so this patch just updates the
28412         documentation for the narrow ones.
28413
28414         test-posixtm.c: add two tests
28415         * tests/test-posixtm.c: Add two tests, to highlight the
28416         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28417         around this bug; this is merely to document it.
28418
28419 2010-12-22  Bruno Haible  <bruno@clisp.org>
28420
28421         getlogin_r: Work around portability problem on OSF/1.
28422         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28423         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28424         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28425         test for a truncated result.
28426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28427         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28428         * modules/getlogin_r (Depends-on): Add memchr.
28429         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28430
28431 2010-12-22  Bruno Haible  <bruno@clisp.org>
28432
28433         ptsname: Avoid test failure on OSF/1 5.1.
28434         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28435         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28436         (same_slave): New function.
28437         (main): Use it to compare ptsname's result with the expected file name.
28438
28439 2010-12-22  Bruno Haible  <bruno@clisp.org>
28440
28441         Port extended stdio modules to HP NonStop Kernel.
28442         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28443         macros.
28444         * lib/fbufmode.c: Update comments.
28445         * lib/fflush.c: Likewise.
28446         * lib/fpurge.c: Likewise.
28447         * lib/freadable.c: Likewise.
28448         * lib/freadahead.c: Likewise.
28449         * lib/freading.c: Likewise.
28450         * lib/freadptr.c: Likewise.
28451         * lib/freadseek.c: Likewise.
28452         * lib/fseeko.c: Likewise.
28453         * lib/fseterr.c: Likewise.
28454         * lib/fwritable.c: Likewise.
28455         * lib/fwriting.c: Likewise.
28456         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28457
28458 2010-12-22  Bruno Haible  <bruno@clisp.org>
28459
28460         ttyname_r: Work around bug on OSF/1 5.1.
28461         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28463         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28464         present.
28465         * lib/ttyname_r.c (ttyname_r): Update comments.
28466
28467 2010-12-22  Bruno Haible  <bruno@clisp.org>
28468
28469         round: Implement result sign according to IEEE 754.
28470         * lib/round.c (MIN, MINUS_ZERO): New macros.
28471         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28472         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28473         * tests/test-round-ieee.c (main): Likewise.
28474         * tests/test-roundl-ieee.c (main): Likewise.
28475
28476         trunc: Implement result sign according to IEEE 754.
28477         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28478         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28479         * tests/test-trunc2.c: Include minus-zero.h.
28480         (MINUS_ZERO): New macro.
28481         (trunc_reference): Keep in sync with lib/trunc.c.
28482         * tests/test-truncf2.c: Include minus-zero.h.
28483         (MINUS_ZERO): New macro.
28484         (truncf_reference): Keep in sync with lib/trunc.c.
28485         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28486         * tests/test-trunc-ieee.c (main): Likewise.
28487         * tests/test-truncl-ieee.c (main): Likewise.
28488
28489         ceil: Implement result sign according to IEEE 754.
28490         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28491         (FUNC): Return -0.0 for -1 < x < 0.
28492         * tests/test-ceil2.c: Include minus-zero.h.
28493         (MINUS_ZERO): New macro.
28494         (ceil_reference): Keep in sync with lib/ceil.c.
28495         * tests/test-ceilf2.c: Include minus-zero.h.
28496         (MINUS_ZERO): New macro.
28497         (ceilf_reference): Keep in sync with lib/ceil.c.
28498         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28499         * tests/test-ceil-ieee.c (main): Likewise.
28500         * tests/test-ceill-ieee.c (main): Likewise.
28501
28502         floor: Implement result sign according to IEEE 754.
28503         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28504         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28505         * tests/test-floorf2.c (floorf_reference): Likewise.
28506         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28507         * tests/test-floor-ieee.c (main): Likewise.
28508         * tests/test-floorl-ieee.c (main): Likewise.
28509
28510 2010-12-22  Bruno Haible  <bruno@clisp.org>
28511
28512         getaddrinfo: Update doc.
28513         * doc/posix-functions/gai_strerror.texi: Return type is also different
28514         on AIX and HP-UX.
28515
28516 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28517
28518         getaddrinfo, inet_ntop: Update doc for Solaris.
28519         * doc/posix-functions/gai_strerror.texi: Return type is also an
28520         issue on Solaris 9 and earlier.
28521         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28522         on Solaris 10 and earlier.
28523
28524 2010-12-21  Bruno Haible  <bruno@clisp.org>
28525
28526         New module 'roundl-ieee'.
28527         * modules/roundl-ieee: New file.
28528         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28529         test whether roundl works according to ISO C 99 with IEC 60559.
28530         * m4/roundl-ieee.m4: New file.
28531         * modules/roundl-ieee-tests: New file.
28532         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28533         * tests/test-roundl.c (main): Remove signbit tests.
28534         * modules/roundl-tests (Depends-on): Remove signbit.
28535         * doc/posix-functions/roundl.texi: Mention the new module.
28536
28537 2010-12-21  Bruno Haible  <bruno@clisp.org>
28538
28539         New module 'truncl-ieee'.
28540         * modules/truncl-ieee: New file.
28541         * modules/truncl-ieee-tests: New file.
28542         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28543         * tests/test-truncl.c (main): Remove signbit tests.
28544         * modules/truncl-tests (Depends-on): Remove signbit.
28545         * doc/posix-functions/truncl.texi: Mention the new module.
28546
28547 2010-12-21  Bruno Haible  <bruno@clisp.org>
28548
28549         New module 'ceill-ieee'.
28550         * modules/ceill-ieee: New file.
28551         * modules/ceill-ieee-tests: New file.
28552         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28553         * tests/test-ceill.c (main): Remove signbit tests.
28554         * modules/ceill-tests (Depends-on): Remove signbit.
28555         * doc/posix-functions/ceill.texi: Mention the new module.
28556
28557 2010-12-21  Bruno Haible  <bruno@clisp.org>
28558
28559         New module 'floorl-ieee'.
28560         * modules/floorl-ieee: New file.
28561         * modules/floorl-ieee-tests: New file.
28562         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28563         * tests/test-floorl.c (main): Remove signbit tests.
28564         * modules/floorl-tests (Depends-on): Remove signbit.
28565         * doc/posix-functions/floorl.texi: Mention the new module.
28566
28567 2010-12-21  Bruno Haible  <bruno@clisp.org>
28568
28569         New module 'round-ieee'.
28570         * modules/round-ieee: New file.
28571         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28572         whether round works according to ISO C 99 with IEC 60559.
28573         * m4/round-ieee.m4: New file.
28574         * modules/round-ieee-tests: New file.
28575         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28576         * tests/test-round1.c (main): Remove signbit tests.
28577         * modules/round-tests (Depends-on): Remove 'signbit'.
28578         * doc/posix-functions/round.texi: Mention the new module.
28579
28580 2010-12-21  Bruno Haible  <bruno@clisp.org>
28581
28582         New module 'trunc-ieee'.
28583         * modules/trunc-ieee: New file.
28584         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28585         whether trunc works according to ISO C 99 with IEC 60559.
28586         * m4/trunc-ieee.m4: New file.
28587         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28589         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28590         * modules/trunc-ieee-tests: New file.
28591         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28592         * tests/test-trunc1.c (main): Remove signbit tests.
28593         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28594         * doc/posix-functions/trunc.texi: Mention the new module.
28595
28596 2010-12-21  Bruno Haible  <bruno@clisp.org>
28597
28598         New module 'ceil-ieee'.
28599         * modules/ceil-ieee: New file.
28600         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28601         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28602         ISO C 99 with IEC 60559.
28603         * m4/ceil-ieee.m4: New file.
28604         * modules/ceil (Files): Add lib/ceil.c.
28605         (Depends-on): Add 'float'.
28606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28607         * lib/math.in.h (ceil): New declaration.
28608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28609         REPLACE_CEIL.
28610         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28611         * modules/ceil-ieee-tests: New file.
28612         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28613         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28614         * doc/posix-functions/ceil.texi: Mention the new module.
28615
28616 2010-12-21  Bruno Haible  <bruno@clisp.org>
28617
28618         New module 'floor-ieee'.
28619         * modules/floor-ieee: New file.
28620         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28621         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28622         ISO C 99 with IEC 60559.
28623         * m4/floor-ieee.m4: New file.
28624         * modules/floor (Files): Add lib/floor.c.
28625         (Depends-on): Add 'float'.
28626         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28627         * lib/math.in.h (floor): New declaration.
28628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28629         REPLACE_FLOOR.
28630         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28631         * modules/floor-ieee-tests: New file.
28632         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28633         * tests/test-math-c++.cc: Check the signature of 'floor'.
28634         * doc/posix-functions/floor.texi: Mention the new module.
28635
28636 2010-12-21  Bruno Haible  <bruno@clisp.org>
28637
28638         New module 'roundf-ieee'.
28639         * modules/roundf-ieee: New file.
28640         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28641         test whether roundf works according to ISO C 99 with IEC 60559.
28642         * m4/roundf-ieee.m4: New file.
28643         * modules/roundf-ieee-tests: New file.
28644         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28645         * tests/test-roundf1.c (main): Remove signbit tests.
28646         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28647         * doc/posix-functions/roundf.texi: Mention the new module.
28648
28649 2010-12-21  Bruno Haible  <bruno@clisp.org>
28650
28651         New module 'truncf-ieee'.
28652         * modules/truncf-ieee: New file.
28653         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28654         test whether truncf works according to ISO C 99 with IEC 60559.
28655         * m4/truncf-ieee.m4: New file.
28656         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28658         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28659         * modules/truncf-ieee-tests: New file.
28660         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28661         * tests/test-truncf1.c (main): Remove signbit tests.
28662         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28663         * doc/posix-functions/truncf.texi: Mention the new module.
28664
28665 2010-12-21  Bruno Haible  <bruno@clisp.org>
28666
28667         New module 'ceilf-ieee'.
28668         * modules/ceilf-ieee: New file.
28669         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28670         test whether ceilf works according to ISO C 99 with IEC 60559.
28671         * m4/ceilf-ieee.m4: New file.
28672         * modules/ceilf-ieee-tests: New file.
28673         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28674         * tests/test-ceilf1.c (main): Remove signbit tests.
28675         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28676         * doc/posix-functions/ceilf.texi: Mention the new module.
28677
28678 2010-12-21  Bruno Haible  <bruno@clisp.org>
28679
28680         New module 'floorf-ieee'.
28681         * modules/floorf-ieee: New file.
28682         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28683         test whether floorf works according to ISO C 99 with IEC 60559.
28684         * m4/floorf-ieee.m4: New file.
28685         * modules/floorf-ieee-tests: New file.
28686         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28687         * tests/test-floorf1.c (main): Remove signbit tests.
28688         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28689         * doc/posix-functions/floorf.texi: Mention the new module.
28690
28691 2010-12-21  Bruno Haible  <bruno@clisp.org>
28692
28693         Support for minus zero in autoconf macros.
28694         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28695         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28696         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28697         * tests/minus-zero.h: Update comments.
28698
28699 2010-12-21  Bruno Haible  <bruno@clisp.org>
28700
28701         Tests for module 'ceil'.
28702         * modules/ceil-tests: New file.
28703         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28704         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28705
28706 2010-12-21  Bruno Haible  <bruno@clisp.org>
28707
28708         Tests for module 'floor'.
28709         * modules/floor-tests: New file.
28710         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28711         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28712
28713 2010-12-21  Bruno Haible  <bruno@clisp.org>
28714
28715         math: Fix indentation.
28716         * lib/math.in.h (floorf): Fix indentation.
28717
28718 2010-12-21  Bruno Haible  <bruno@clisp.org>
28719
28720         Fix cross-compilation guesses on Solaris.
28721         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28722         not match "solaris2.10".
28723         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28724         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28725         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28726
28727 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28728
28729         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28730         This fixes a problem observed with the latest coreutils snapshot
28731         that caused a test to fail on Solaris 8.  src/csplit.c's call
28732         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28733         earlier, instead of returning the number of bytes that would have
28734         been generated; this causes csplit to incorrectly report memory
28735         exhaustion.
28736         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28737         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28738         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28739         comments to match.
28740         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28741         Fix typo in matching older versions of Solaris: "solaris2.10"
28742         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28743         only for guessing while cross-compiling.
28744         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28745
28746 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28747
28748         ftoastr: fix comment again
28749         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28751         Also, simplify example a bit by using flags = 0.
28752
28753 2010-12-20  Bruno Haible  <bruno@clisp.org>
28754
28755         round*, trunc*: Update documentation regarding glibc.
28756         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28757         * doc/posix-functions/round.texi: Likewise.
28758         * doc/posix-functions/roundl.texi: Likewise.
28759         * doc/posix-functions/truncf.texi: Likewise.
28760         * doc/posix-functions/trunc.texi: Likewise.
28761         * doc/posix-functions/truncl.texi: Likewise.
28762
28763 2010-12-20  Bruno Haible  <bruno@clisp.org>
28764
28765         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28766         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28767         * doc/posix-functions/round.texi: Likewise.
28768         * doc/posix-functions/roundl.texi: Likewise.
28769
28770 2010-12-20  Bruno Haible  <bruno@clisp.org>
28771
28772         ttyname_r: Add missing declaration on HP-UX 11.
28773         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28774         HAVE_TTYNAME_R.
28775         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28776         declared. Set HAVE_TTYNAME_R always.
28777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28778         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28779         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28780         HAVE_TTYNAME_R.
28781         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28782
28783 2010-12-20  Bruno Haible  <bruno@clisp.org>
28784
28785         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28786         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28787         * doc/posix-functions/getlogin_r.texi: Likewise.
28788         * tests/test-getlogin.c: Include <errno.h>.
28789         (main): Avoid test failure on HP-UX 11.11.
28790         * tests/test-getlogin_r.c (main): Likewise.
28791
28792 2010-12-20  Bruno Haible  <bruno@clisp.org>
28793
28794         getlogin_r: Add missing declaration on HP-UX 11.
28795         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28796         declared also when it exists as a function.
28797         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28798
28799 2010-12-20  Bruno Haible  <bruno@clisp.org>
28800
28801         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28802         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28803         through wcrtomb.
28804
28805 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28806
28807         ftoastr: fix comment
28808         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28810
28811 2010-12-19  Bruno Haible  <bruno@clisp.org>
28812
28813         isnan: Ensure it is a macro.
28814         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28815         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28816         Solaris.
28817
28818 2010-12-19  Bruno Haible  <bruno@clisp.org>
28819
28820         ldexpl test: Fix link error on OSF/1 5.1.
28821         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28822
28823 2010-12-19  Bruno Haible  <bruno@clisp.org>
28824
28825         wctype: Make it work in C++ mode on OSF/1 5.1.
28826         * lib/wctype.in.h (iswblank): Declare but not define here.
28827         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28828         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28829         * modules/wctype (Files): Add lib/iswblank.c.
28830
28831 2010-12-19  Bruno Haible  <bruno@clisp.org>
28832
28833         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28834         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28835         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28836
28837 2010-12-19  Bruno Haible  <bruno@clisp.org>
28838
28839         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28841         _POSIX_PII_SOCKET.
28842         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28843         * doc/posix-functions/recvfrom.texi: Likewise.
28844         * doc/posix-functions/send.texi: Likewise.
28845         * doc/posix-functions/sendto.texi: Likewise.
28846
28847 2010-12-19  Bruno Haible  <bruno@clisp.org>
28848
28849         tcgetsid: Add missing declaration on OSF/1 5.1.
28850         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28851         HAVE_TCGETSID.
28852         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28853         Don't set HAVE_TCGETSID.
28854         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28855         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28856         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28857         HAVE_TCGETSID.
28858         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28859
28860 2010-12-19  Bruno Haible  <bruno@clisp.org>
28861
28862         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28863         * lib/stdio.in.h: During the include_next statement, let recursive
28864         includes of this file include only the system header file.
28865
28866 2010-12-19  Bruno Haible  <bruno@clisp.org>
28867
28868         iconv_open: Fix regression from 2010-12-04.
28869         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28870         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28871
28872 2010-12-19  Bruno Haible  <bruno@clisp.org>
28873
28874         stdbool test: Avoid a gcc warning.
28875         * tests/test-stdbool.c (main): Fail if e1 is false.
28876         Reported by Jim Meyering.
28877
28878 2010-12-19  Jim Meyering  <meyering@redhat.com>
28879
28880         setenv: restore to working order
28881         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28882         mistakenly removed.
28883         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28884         HAVE_SETENV.
28885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28886         HAVE_SETENV.
28887
28888 2010-12-19  Bruno Haible  <bruno@clisp.org>
28889
28890         Document some different function declarations on OSF/1 5.1.
28891         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28892         * doc/posix-functions/inet_ntop.texi: Likewise.
28893         * doc/posix-functions/gethostname.texi: Likewise.
28894         * lib/unistd.in.h (gethostname): Update comment.
28895
28896 2010-12-19  Bruno Haible  <bruno@clisp.org>
28897
28898         doc: Mention vasprintf-posix module.
28899         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28900         the 'vasprintf-posix' module.
28901         * doc/glibc-functions/vasprintf.texi: Likewise.
28902
28903 2010-12-19  Bruno Haible  <bruno@clisp.org>
28904
28905         unsetenv: Add missing declaration on OSF/1 5.1.
28906         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28907         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28908         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28910         not HAVE_UNSETENV.
28911         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28912         HAVE_UNSETENV.
28913         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28914
28915 2010-12-19  Bruno Haible  <bruno@clisp.org>
28916
28917         setenv: Add missing declaration on OSF/1 5.1.
28918         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28919         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28920         declared. Don't set HAVE_SETENV.
28921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28922         not HAVE_SETENV.
28923         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28924         HAVE_SETENV.
28925         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28926
28927 2010-12-19  Bruno Haible  <bruno@clisp.org>
28928
28929         nl_langinfo tests: Avoid gcc warning.
28930         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28931
28932 2010-12-19  Bruno Haible  <bruno@clisp.org>
28933
28934         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28935         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28936         _GL_CXXALIAS_SYS.
28937
28938 2010-12-19  Bruno Haible  <bruno@clisp.org>
28939
28940         stdbool: Relax test.
28941         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28942         address to 'bool' work in static initializer, for compilers other than
28943         GCC.
28944
28945 2010-12-19  Bruno Haible  <bruno@clisp.org>
28946
28947         ftello: Add missing declaration on OSF/1 5.1.
28948         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28949         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28951         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28952         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28953
28954 2010-12-19  Bruno Haible  <bruno@clisp.org>
28955
28956         fseeko: Add missing declaration on OSF/1 5.1.
28957         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28960         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28961         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28962
28963 2010-12-19  Bruno Haible  <bruno@clisp.org>
28964
28965         fchdir: Add missing declaration on OSF/1 5.1.
28966         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28969         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28970         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28971
28972 2010-12-19  Bruno Haible  <bruno@clisp.org>
28973
28974         relocatable-prog-wrapper: Separate from relocatable-prog.
28975         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28976         uninstall-relocwrapper rule here.
28977         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28978         Reported by Ian Beckwith <ianb@erislabs.net>.
28979
28980 2010-12-19  Bruno Haible  <bruno@clisp.org>
28981
28982         unistr/u8-mbsnlen: Add missing dependency.
28983         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28984         Reported by Ian Beckwith <ianb@erislabs.net>.
28985
28986 2010-12-19  Bruno Haible  <bruno@clisp.org>
28987
28988         iconv: Make it possible again to use this module without 'iconv-h'.
28989         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28990         if it is not defined.
28991         Reported by Ian Beckwith <ianb@erislabs.net>.
28992
28993 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28994
28995         acl: port to Solaris 8 when copying from tmpfs to ufs
28996         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28997         error number.  Problem observed on Solaris 8 with latest
28998         coreutils, with "mv A B", where A is on a tmpfs file system and B
28999         is on a ufs file system.  This caused coreutils' mv/part-symlink
29000         test to fail.
29001
29002         tests: set fail=0 at start
29003         * tests/init.sh (setup_): Move fail=0 initialization here ...
29004         (mktempd_): ... from here, so that tests can rely on fail being
29005         set to 0 initially.  This fixes a problem in coreutils; see:
29006         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29007
29008 2010-12-18  Bruno Haible  <bruno@clisp.org>
29009
29010         memmem-simple: Stylistic changes.
29011         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29012         Fix preprocessor directive indentation.
29013
29014 2010-12-15  Pádraig Brady <P@draigBrady.com>
29015
29016         memmem, memmem-simple: reorganize and expand empty needle check
29017         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29018         functional checks to memmem-simple so that one has a fully functional
29019         memmem by using just this module.
29020         Restrict the performance only check to the memmem module.
29021         Also expand the empty needle check to ensure the correct
29022         pointer is returned, not just a non NULL pointer.
29023         * doc/glibc-functions/memmem.texi: Rearrange the portability
29024         documentation to correlate with the rearranged checks.
29025         Clarify exactly how the memmem and memmem-simple modules
29026         relate to each other.
29027
29028 2010-12-15  Pádraig Brady <P@draigBrady.com>
29029             Bruno Haible  <bruno@clisp.org>
29030
29031         Improve cross-compilation guesses for uClibc.
29032         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29033         that uClibc does not have the glibc bug.
29034         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29035         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29036
29037 2010-12-14  Eric Blake  <eblake@redhat.com>
29038
29039         configmake: provide fallbacks for oldest supported autotools
29040         * m4/configmake.m4: New file.
29041         * modules/configmake (Files): Ship it.
29042         (configure.ac): Use it to guarantee fallbacks.
29043
29044 2010-12-13  Pádraig Brady <P@draigBrady.com>
29045
29046         read-file: Improve handling of large files
29047         * lib/read-file.c (fread_file): Minimize realloc()s
29048         for regular files, and better manage sizes around SIZE_MAX.
29049
29050 2010-12-13  Eric Blake  <eblake@redhat.com>
29051
29052         cloexec, fcntl: relax license
29053         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29054         consent from all contributors.
29055         * modules/fcntl (License): Likewise.
29056
29057 2010-12-10  Bruno Haible  <bruno@clisp.org>
29058
29059         Tests for module 'pipe-posix'.
29060         * modules/pipe-posix-tests: New file.
29061         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29062
29063 2010-12-10  Bruno Haible  <bruno@clisp.org>
29064
29065         pipe-posix: Make it work in C++ mode.
29066         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29067         (pipe): Use common idiom, not a macro definition.
29068         * lib/pipe.c: New file.
29069         * m4/pipe.m4: New file.
29070         * modules/pipe-posix (Description): Enhance.
29071         (Files): Add lib/pipe.c, m4/pipe.m4.
29072         (configure.ac): Invoke gl_FUNC_PIPE.
29073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29074         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29075         * tests/test-unistd-c++.cc: Check the signature of pipe.
29076
29077 2010-12-10  Bruno Haible  <bruno@clisp.org>
29078
29079         Rename module 'pipe' to 'spawn-pipe'.
29080         * modules/spawn-pipe: New file, renamed from modules/pipe.
29081         (Files, configure.ac, Makefile.am): Update.
29082         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29083         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29084         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29085         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29086         "spawn-pipe.h" instead of "pipe.h".
29087         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29088         to gl_SPAWN_PIPE.
29089         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29090         (Files, Makefile.am): Update.
29091         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29092         Update.
29093         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29094         Include "spawn-pipe.h" instead of "pipe.h".
29095         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29096         * lib/javacomp.c: Likewise.
29097         * lib/javaversion.c: Likewise.
29098         * lib/pipe-filter-gi.c: Likewise.
29099         * lib/pipe-filter-ii.c: Likewise.
29100         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29101         * modules/javacomp (Depends-on): Likewise.
29102         * modules/javaversion (Depends-on): Likewise.
29103         * modules/pipe-filter-gi (Depends-on): Likewise.
29104         * modules/pipe-filter-ii (Depends-on): Likewise.
29105         * MODULES.html.sh (Executing programs): Update.
29106         * NEWS: Mention the change.
29107
29108 2010-12-10  Eric Blake  <eblake@redhat.com>
29109
29110         pipe-posix: new module
29111         * modules/pipe-posix: New file.
29112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29113         (gl_UNISTD_H): Check for declaration.
29114         * modules/unistd (Makefile.am): Substitute it.
29115         * lib/unistd.in.h (pipe): Provide it for mingw.
29116         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29117         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29118
29119 2010-12-07  Bruno Haible  <bruno@clisp.org>
29120
29121         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29122         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29123         u8_strcmp_gnu.
29124         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29125
29126 2010-12-06  Bruno Haible  <bruno@clisp.org>
29127
29128         Update internal documentation.
29129         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29130
29131 2010-12-04  Bruno Haible  <bruno@clisp.org>
29132
29133         Put more information about failed tests into the test return codes.
29134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29135         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29136         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29137         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29138         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29140         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29141         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29142         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29144         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29145         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29146         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29147         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29148         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29149         returns a bit mask.
29150         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29151         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29152         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29153         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29154         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29155         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29158         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29159         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29160         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29161         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29162         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29163         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29164         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29165         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29166         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29167         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29168         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29169         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29170         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29171         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29172         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29173         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29174         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29175         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29176         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29177         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29178         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29179         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29180         gl_PRINTF_PRECISION): Likewise.
29181         * m4/regex.m4 (gl_REGEX): Likewise.
29182         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29183         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29184         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29185         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29186         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29188         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29189         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29190         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29191         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29192         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29193         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29194         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29195         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29196         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29197         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29198         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29201         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29202         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29203         enumerated value.
29204         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29205
29206 2010-12-04  Bruno Haible  <bruno@clisp.org>
29207
29208         Update for Solaris 11 2010-11.
29209         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29210         Express, released in November 2010.
29211
29212 2010-12-04  Bruno Haible  <bruno@clisp.org>
29213
29214         nproc: Relax license.
29215         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29216         and Paul Eggert.
29217         Requested by Ludovic Courtès <ludo@gnu.org>.
29218
29219 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29220
29221         utimecmp: fine-grained src to nearby coarse-grained dest
29222
29223         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29224         and the source is on a file system with higher-resolution time
29225         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29226         not work, and the time stamps are close together, the algorithm to
29227         determine the exact resolution from the read-back mtime was buggy:
29228         it had a "!=" where it should have had an "==".  This bug has been
29229         in the code ever since it was introduced to gnulib.
29230         Problem reported by Dan Jacobson in
29231         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29232
29233 2010-11-30  Bruno Haible  <bruno@clisp.org>
29234
29235         strerror_r-posix: Fix autoconf test.
29236         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29237
29238 2010-11-28  Bruno Haible  <bruno@clisp.org>
29239             Paul Eggert  <eggert@cs.ucla.edu>
29240
29241         Tests for module 'getdomainname'.
29242         * modules/getdomainname-tests: New file.
29243         * tests/test-getdomainname.c: New file, based on
29244         tests/test-gethostname.c.
29245
29246 2010-11-28  Bruno Haible  <bruno@clisp.org>
29247             Paul Eggert  <eggert@cs.ucla.edu>
29248
29249         getdomainname: Use the system function when possible.
29250         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29251         (getdomainname): Replace if needed. Provide the declaration if it is
29252         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29253         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29254         (getdomainname): When the system has getdomainname, call the system
29255         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29256         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29257         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29258         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29259         the function if its second argument is of type 'int' or if it is found
29260         in libnsl.
29261         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29262         <sys/systeminfo.h> and sysinfo().
29263         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29265         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29266         HAVE_GETDOMAINNAME.
29267         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29268         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29269         * doc/glibc-functions/getdomainname.texi: Document the problems with
29270         the getdomainname declaration.
29271
29272 2010-11-28  Bruno Haible  <bruno@clisp.org>
29273
29274         sys_socket: Ensure ss_family field on AIX.
29275         * lib/sys_socket.in.h (ss_family): New macro definition.
29276         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29277         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29278         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29279         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29280         * modules/sys_socket (Makefile.am): Substitute
29281         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29282         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29283
29284 2010-11-27  Bruno Haible  <bruno@clisp.org>
29285
29286         readline: Improve configure output.
29287         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29288         "checking for readline..." result understandable.
29289
29290 2010-11-27  Bruno Haible  <bruno@clisp.org>
29291
29292         *printf-posix: Detect a bug on Solaris 10/x86.
29293         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29294         for floating-point output.
29295         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29296         directive.
29297         * tests/test-snprintf-posix.h (test_function): Likewise.
29298         * tests/test-sprintf-posix.h (test_function): Likewise.
29299         * tests/test-vasprintf-posix.c (test_function): Likewise.
29300         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29301         * doc/posix-functions/printf.texi: Likewise.
29302         * doc/posix-functions/snprintf.texi: Likewise.
29303         * doc/posix-functions/sprintf.texi: Likewise.
29304         * doc/posix-functions/vfprintf.texi: Likewise.
29305         * doc/posix-functions/vprintf.texi: Likewise.
29306         * doc/posix-functions/vsnprintf.texi: Likewise.
29307         * doc/posix-functions/vsprintf.texi: Likewise.
29308         * doc/glibc-functions/obstack_printf.texi: Likewise.
29309         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29310
29311 2010-11-27  Bruno Haible  <bruno@clisp.org>
29312
29313         Fix link error when module libunistring-optional is in use.
29314         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29315         * modules/striconveha-tests (Makefile.am): Likewise.
29316
29317 2010-11-27  Bruno Haible  <bruno@clisp.org>
29318
29319         regex: Mention link dependencies.
29320         * modules/regex (Link): New section.
29321         * modules/rpmatch (Link): Likewise.
29322         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29323
29324 2010-11-27  Bruno Haible  <bruno@clisp.org>
29325
29326         ftoastr: Fix compilation error on Solaris.
29327         * lib/ftoastr.c: Include <config.h>.
29328
29329 2010-11-27  Bruno Haible  <bruno@clisp.org>
29330
29331         getloadavg: Update documentation.
29332         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29333
29334 2010-11-27  Bruno Haible  <bruno@clisp.org>
29335
29336         sys_socket: Fix test whether the functions are declared.
29337         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29338         not <sys/select.h>.
29339
29340 2010-11-27  Bruno Haible  <bruno@clisp.org>
29341
29342         getpass: Make sure to get system declaration on some platforms.
29343         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29344         gl_USE_SYSTEM_EXTENSIONS.
29345         * modules/getpass (Depends-on): Add extensions.
29346
29347 2010-11-26  Bruno Haible  <bruno@clisp.org>
29348
29349         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29350         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29351         'iconv' module is present.
29352         (ICONV_CONST): New macro.
29353         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29354         ICONV_CONST.
29355         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29356         set ICONV_CONST.
29357         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29358         here.
29359         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29360         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29361         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29362         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29363         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29364         present.
29365
29366 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29367
29368         ftoastr: comment fix
29369         * lib/ftoastr.c: "little" -> "little or no" in comment
29370
29371 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29372
29373         stdint: port to GCC 4.3 + OSX + Octave
29374         On this platform, stdint.h is buggy and defines int64_t to long
29375         long int.  The replacement defined it to long int, causing
29376         problems with C++ style name mangling.  Instead, trust the system
29377         definition if INT64_MAX is defined, and likewise for the unsigned
29378         variant.   Problem reported by Jarno Rajahalme in
29379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29380         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29381         and don't mess with int64_t and INT64_MAX in this case.
29382         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29383
29384 2010-11-24  Bruno Haible  <bruno@clisp.org>
29385
29386         doc: Corrections regarding MacOS X 10.4 and 10.5.
29387         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29388         MacOS X.
29389         Reported by Simon Josefsson.
29390
29391 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29392
29393         Uninstall ".bin" files installed by relocwrapper.
29394         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29395         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29396         unless it is already there.
29397
29398 2010-11-21  Bruno Haible  <bruno@clisp.org>
29399
29400         Update for NetBSD 5.0.
29401         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29402         NetBSD; the test fails on NetBSD 5.0.
29403         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29404         about NetBSD.
29405
29406 2010-11-21  Bruno Haible  <bruno@clisp.org>
29407
29408         Update for HP-UX 11.23 and HP-UX 11.31.
29409         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29410         HP-UX.
29411
29412 2010-11-21  Bruno Haible  <bruno@clisp.org>
29413
29414         Update for MacOS X 10.5.
29415         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29416         MacOS X; the test fails on MacOS X 10.5.8.
29417         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29418         about MacOS X.
29419
29420 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29421
29422         bootstrap: add bootstrap_sync option.
29423         See discussion at
29424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29425         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29426         * build-aux/bootstrap: Accept --bootstrap-sync to update
29427         bootstrap if it is not identical to the local gnulib's
29428         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29429         enable this by default.  Accept --no-bootstrap-sync to disable
29430         it.
29431
29432 2010-11-20  Bruno Haible  <bruno@clisp.org>
29433
29434         Ensure that <features.h> is included before __GLIBC__ is tested.
29435         * lib/printf-parse.h: Include <features.h>.
29436         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29437         Reported by Mike Frysinger <vapier@gentoo.org>.
29438
29439         Ensure that <features.h> is included before __GLIBC__ is tested.
29440         * lib/wchar.in.h: Include <features.h>.
29441         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29442         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29443         Reported by Mike Frysinger <vapier@gentoo.org>.
29444
29445         Ensure that <features.h> is included before __GLIBC__ is tested.
29446         * lib/arpa_inet.in.h: Include <features.h>.
29447         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29448         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29449         Reported by Mike Frysinger <vapier@gentoo.org>.
29450
29451         Ensure that <features.h> is included before __GLIBC__ is tested.
29452         * build-aux/link-warning.h: Include <features.h>.
29453         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29454         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29455         Reported by Mike Frysinger <vapier@gentoo.org>.
29456
29457         Ensure that <features.h> is included before __GLIBC__ is tested.
29458         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29459         Reported by Mike Frysinger <vapier@gentoo.org>.
29460
29461 2010-11-20  Bruno Haible  <bruno@clisp.org>
29462
29463         memmem: Fix autoconf test.
29464         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29465
29466 2010-11-20  Bruno Haible  <bruno@clisp.org>
29467
29468         Port to uClibc.
29469         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29470         * lib/fcntl.in.h: Likewise.
29471         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29472         * lib/mbrtowc.c (mbrtowc): Likewise.
29473         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29474         * lib/strerror_r.c: Likewise.
29475         * lib/unistr/u8-strnlen.c: Likewise.
29476         * lib/vasnprintf.c (decimal_point_char): Likewise.
29477         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29478         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29480         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29481         * tests/test-sigaction.c (handler, main): Likewise.
29482         * lib/freading.h: Treat uClibc like a non-glibc platform.
29483         * lib/freading.c: Likewise.
29484         * lib/gettext.h: Likewise.
29485         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29486         Likewise.
29487         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29488         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29489         * lib/propername.c (proper_name_utf8): Likewise.
29490         * lib/spawn.in.h: Likewise.
29491         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29492         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29493         mem_cd_iconveh_internal): Likewise.
29494         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29495         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29496         strstr, strcasestr): Likewise.
29497         * lib/unicodeio.c (unicode_to_mb): Likewise.
29498         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29499         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29500         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29501         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29502         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29503         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29504         * lib/unistr/u8-stpncpy.c: Likewise.
29505         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29506         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29508         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29509         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29510         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29511         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29514         Likewise.
29515         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29516         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29519         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29520         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29521         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29522         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29523         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29524         * tests/test-striconveha.c (main): Likewise.
29525         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29526         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29527         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29528         * doc/posix-functions/getline.texi: Likewise.
29529         Reported by Mike Frysinger <vapier@gentoo.org>.
29530
29531 2010-11-20  Bruno Haible  <bruno@clisp.org>
29532
29533         nproc: Fix condition.
29534         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29535         HAVE_PTHREAD_AFFINITY_NP.
29536
29537 2010-11-20  Bruno Haible  <bruno@clisp.org>
29538
29539         Fix a comment.
29540         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29541
29542 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29543
29544         ftoastr: don't assume snprintf
29545         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29546         Implement a subset of snprintf here, by using sprintf safely.
29547         * modules/ftoastr (Depends-on): Remove snprintf.
29548
29549 2010-11-19  Jim Meyering  <meyering@redhat.com>
29550
29551         test-rename.h: fix compilation failure
29552         * tests/test-rename.h (test_rename): Add omitted "}".
29553
29554 2010-11-17  Jim Meyering  <meyering@redhat.com>
29555
29556         maint.mk: add a URL discussing the no-@acronym policy
29557         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29558
29559 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29560
29561         ftoastr: depend on snprintf, improve comments
29562         * lib/ftoastr.c: Also mention Loitsch's draft.
29563         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29564         needed in the current implementation, but it might simplify
29565         speeding up the code later.
29566         * modules/ftoastr: Depend on snprintf; this improves portability.
29567         Suggested by Bruno Haible in the same email.
29568
29569         ftoastr: port to hosts lacking strtof and strtold
29570         Problem reported by Bruno Haible in
29571         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29572         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29573         environment and strtold (and presumably strtof) are not available.
29574         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29575         (configure.ac): Require gl_C99_STRTOLD.
29576
29577 2010-11-18  Bruno Haible  <bruno@clisp.org>
29578
29579         c-strtold: Avoid link error on AIX 7.
29580         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29581         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29582         (gl_C_STRTOLD): Test whether strtold_l exists.
29583         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29584
29585 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29586
29587         intprops: new macro INT_BITS_STRLEN_BOUND
29588         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29589         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29590         not exposed.  Also, it uses a slightly tighter bound than before;
29591         though this makes no practical difference, we might as well be as
29592         tight as we easily can.
29593
29594         ftoastr: new module, for lossless conversion of floats to short strings
29595         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29596         * modules/ftoastr: New files.
29597
29598 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29599
29600         bootstrap: port to Solaris sed
29601         * build-aux/bootstrap (get_version): Port to Solaris sed.
29602         See Ralf Wildenhues's note in
29603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29604
29605 2010-11-14  Jim Meyering  <meyering@redhat.com>
29606
29607         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29608         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29609         and move definition closer to sole use.
29610
29611 2010-11-13  Jim Meyering  <meyering@redhat.com>
29612
29613         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29614         Now we require at least autoconf-2.59, which means the work-around
29615         is no longer needed.
29616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29617         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29618         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29619         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29620         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29621
29622 2010-11-13  Bruno Haible  <bruno@clisp.org>
29623
29624         rename, renameat: Avoid test failures at NFS mounted locations.
29625         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29626         functions.
29627         (test_rename): Use assert_nonexistent.
29628         * tests/test-rename.c: Include <dirent.h>.
29629         * tests/test-renameat.c: Likewise.
29630         Reported by Gary V. Vaughan <gary@gnu.org>.
29631
29632         rename, renameat: Document Linux bug with NFS
29633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29634         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29635         * doc/posix-functions/renameat.texi: Likewise.
29636         Suggested by Eric Blake.
29637
29638 2010-11-13  Bruno Haible  <bruno@clisp.org>
29639
29640         rename test: Add comments.
29641         * tests/test-rename.h (test_rename): Add structure and comments.
29642
29643 2010-11-13  Eric Blake  <eblake@redhat.com>
29644
29645         maintainer-makefile: cover a few more files
29646         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29647         scripts generated within C files, for libvirt.
29648
29649 2010-11-13  Bruno Haible  <bruno@clisp.org>
29650
29651         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29652         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29653         character, return the number of bytes that belong together, not always
29654         1.
29655         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29656         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29657         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29658         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29659         number of bytes of an invalid character.
29660         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29661         (main): Invoke it.
29662         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29663         results.
29664         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29665         malformed byte sequences.
29666         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29667         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29668         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29669         Reported by Ben Pfaff and Paolo Bonzini.
29670
29671 2010-11-13  Bruno Haible  <bruno@clisp.org>
29672
29673         openat: Work around glibc bug with fchownat() and empty file names.
29674         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29675         (gl_FUNC_FCHOWNAT): Invoke it.
29676         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29677         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29678         Reported by Gary V. Vaughan <gary@gnu.org>.
29679
29680 2010-11-13  Bruno Haible  <bruno@clisp.org>
29681
29682         openat: Ensure autoconf macro ordering.
29683         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29684         gl_USE_SYSTEM_EXTENSIONS.
29685         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29686
29687 2010-11-13  Bruno Haible  <bruno@clisp.org>
29688
29689         Update comments.
29690         * lib/unistr/u8-check.c: Update file name in comments.
29691         * lib/unistr/u8-mblen.c: Likewise.
29692         * lib/unistr/u8-prev.c: Likewise.
29693         * lib/unistr/u8-strmblen.c: Likewise.
29694         * lib/unistr/u8-strmbtouc.c: Likewise.
29695
29696 2010-11-13  Jim Meyering  <meyering@redhat.com>
29697
29698         tests: avoid test failure on Solaris 10 due to lack of PATH export
29699         * tests/test-update-copyright.sh: Don't forget to export PATH.
29700
29701         init.sh: ensure that IFS is defined, just in case...
29702         * tests/init.sh (setup_): Ensure that IFS is defined,
29703         so that saving and restoring it works as expected.  This
29704         appears to be useful at least for an old version of dash
29705         from a long time ago (RH 6).  See here for details:
29706         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29707
29708         maint.mk: tighten "test a == b" check
29709         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29710         test to files that contain something like #!/bin/sh.
29711         Without this, coreutils would get two false positives in
29712         the comments of C source files.
29713
29714 2010-11-12  Eric Blake  <eblake@redhat.com>
29715
29716         bootstrap: fix typo in previous attempt
29717         * build-aux/bootstrap (buildreq): Correct the grouping.
29718         Reported by Paul Eggert.
29719
29720         maintainer-makefile: prohibit test x == x
29721         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29722         Based on a report by Matthias Bolte.
29723
29724         bootstrap: allow FreeBSD gzip
29725         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29726         which has no '.' and goes to stderr.
29727         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29728         Reported by Matthias Bolte.
29729
29730         maintainer-makefile: check for i18n setup
29731         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29732         will likely work.
29733
29734 2010-11-12  Bruno Haible  <bruno@clisp.org>
29735
29736         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29737         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29738         * lib/nanosleep.c (nanosleep): Likewise.
29739
29740 2010-11-11  Bruno Haible  <bruno@clisp.org>
29741
29742         fcntl-h: Fix for use of C++ on glibc systems.
29743         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29744         also on glibc systems in C++ mode.
29745         Reported by Gary V. Vaughan <gary@gnu.org>.
29746
29747 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29748
29749         mknod: avoid false failure with dash
29750         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29751
29752 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29753
29754         unlink: Fix "is it should" typo in diagnostic.
29755         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29757
29758 2010-11-11  Bruno Haible  <bruno@clisp.org>
29759
29760         Tests for module 'strerror_r-posix'.
29761         * modules/strerror_r-posix-tests: New file.
29762         * tests/test-strerror_r.c: New file.
29763         * tests/test-string-c++.cc: Check the signature of strerror_r.
29764
29765         New module 'strerror_r-posix'.
29766         * lib/string.in.h (strerror_r): New declaration.
29767         * lib/strerror_r.c: New file.
29768         * m4/strerror_r.m4: New file.
29769         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29770         of strerror_r.
29771         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29772         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29773         * modules/strerror_r-posix: New file.
29774         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29775         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29776         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29777         portability problems.
29778
29779 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29780
29781         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29782         line is also considered for output. Quoted function name in shell
29783         command, so temporary files for functions like MyClass::operator()
29784         are removed correctly without errors.
29785
29786 2010-11-09  Bruno Haible  <bruno@clisp.org>
29787
29788         * doc/posix-functions/strerror.texi: List more failing platforms.
29789
29790         * doc/posix-functions/strerror.texi: Add a comment.
29791
29792 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29793
29794         fdopendir: fix bug on MacOS X when low on file descriptors
29795
29796         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29797         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29798         All callers changed.
29799         (fdopendir): Invoke save_cwd at the top level, not after using
29800         multiple dup() calls to use up file descriptors.  Then retry
29801         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29802         less than the maximum number of open file descriptors, because
29803         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29804         on Mac OS X 10.6.4 for tar 1.24
29805         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29806         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29807         and for tar 1.25
29808         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29809
29810 2010-11-07  Bruno Haible  <bruno@clisp.org>
29811
29812         vasnprintf: Support I flag on glibc systems.
29813         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29814         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29815         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29816         snprintf function.
29817         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29818         glibc systems.
29819         * tests/test-vasnprintf-posix3.c: New file.
29820         * modules/vasnprintf-posix-tests (Files): Add it.
29821         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29822
29823 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29824
29825         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29826         * MODULES.html.sh: For compiler warnings, use name
29827         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29828
29829 2010-11-05  Eric Blake  <eblake@redhat.com>
29830
29831         ceil, floor: avoid spurious failure with icc
29832         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29833         [denormals-as-zero] when optimizing without -mieee-fp option.
29834         * tests/test-floorf2.c (floorf_reference): Likewise.
29835         * tests/test-ceilf1.c (dummy): New function.
29836         (main): Use it to outsmart icc's optimization.
29837         * tests/test-floorf1.c (dummy, main): Likewise.
29838
29839         tests: require working signbit
29840         * modules/ceilf-tests (Depends-on): Add signbit.
29841         * modules/ceill-tests (Depends-on): Likewise.
29842         * modules/floorf-tests (Depends-on): Likewise.
29843         * modules/floorl-tests (Depends-on): Likewise.
29844         * modules/round-tests (Depends-on): Likewise.
29845         * modules/roundf-tests (Depends-on): Likewise.
29846         * modules/roundl-tests (Depends-on): Likewise.
29847         * modules/trunc-tests (Depends-on): Likewise.
29848         * modules/truncf-tests (Depends-on): Likewise.
29849         * modules/truncl-tests (Depends-on): Likewise.
29850
29851         strtod: work around icc bug
29852         * lib/strtod.c (minus_zero): Define to working value.
29853         (strtod): Use it to avoid icc bug.
29854
29855         copysign: enhance tests
29856         * modules/copysign-tests (Files): Add minus-zero.h.
29857         * tests/test-copysign.c (main): Also test zeros.
29858
29859 2010-11-04  Eric Blake  <eblake@redhat.com>
29860
29861         ceil, floor, round, trunc: enhance tests of -0
29862         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29863         * tests/test-ceill.c (main): Likewise.
29864         * tests/test-floorf1.c (main): Likewise.
29865         * tests/test-floorl.c (main): Likewise.
29866         * tests/test-round1.c (main): Likewise.
29867         * tests/test-roundf1.c (main): Likewise.
29868         * tests/test-roundl.c (main): Likewise.
29869         * tests/test-trunc1.c (main): Likewise.
29870         * tests/test-truncf1.c (main): Likewise.
29871         * tests/test-truncl.c (main): Likewise.
29872
29873 2010-11-04  Eric Blake  <eblake@redhat.com>
29874
29875         frexp, tests: work around ICC bug with -zero
29876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29877         works with more compilers.
29878         * tests/minus-zero.h: New file.
29879         * modules/ceilf-tests (Files): Include it.
29880         * modules/ceill-tests (Files): Likewise.
29881         * modules/floorf-tests (Files): Likewise.
29882         * modules/floorl-tests (Files): Likewise.
29883         * modules/frexp-nolibm-tests (Files): Likewise.
29884         * modules/frexp-tests (Files): Likewise.
29885         * modules/frexpl-nolibm-tests (Files): Likewise.
29886         * modules/frexpl-tests (Files): Likewise.
29887         * modules/isnan-tests (Files): Likewise.
29888         * modules/isnand-nolibm-tests (Files): Likewise.
29889         * modules/isnand-tests (Files): Likewise.
29890         * modules/isnanf-nolibm-tests (Files): Likewise.
29891         * modules/isnanf-tests (Files): Likewise.
29892         * modules/isnanl-nolibm-tests (Files): Likewise.
29893         * modules/isnanl-tests (Files): Likewise.
29894         * modules/round-tests (Files): Likewise.
29895         * modules/roundf-tests (Files): Likewise.
29896         * modules/roundl-tests (Files): Likewise.
29897         * modules/ldexpl-tests (Files): Likewise.
29898         * modules/signbit-tests (Files): Likewise.
29899         * modules/snprintf-posix-tests (Files): Likewise.
29900         * modules/sprintf-posix-tests (Files): Likewise.
29901         * modules/strtod-tests (Files): Likewise.
29902         * modules/trunc-tests (Files): Likewise.
29903         * modules/truncf-tests (Files): Likewise.
29904         * modules/truncl-tests (Files): Likewise.
29905         * modules/vsnprintf-posix-tests (Files): Likewise.
29906         * modules/vsprintf-posix-tests (Files): Likewise.
29907         * modules/vasnprintf-posix-tests (Files): Likewise.
29908         * modules/vasprintf-posix-tests (Files): Likewise.
29909         * tests/test-ceilf1.c (main): Use it.
29910         * tests/test-ceill.c (main): Likewise.
29911         * tests/test-floorf1.c (main): Likewise.
29912         * tests/test-floorl.c (main): Likewise.
29913         * tests/test-frexp.c (main): Likewise.
29914         * tests/test-frexpl.c (main): Likewise.
29915         * tests/test-isnan.c (main): Likewise.
29916         * tests/test-isnand.h (main): Likewise.
29917         * tests/test-isnanf.h (main): Likewise.
29918         * tests/test-isnanl.h (main): Likewise.
29919         * tests/test-ldexpl.c (main): Likewise.
29920         * tests/test-round.c (main): Likewise.
29921         * tests/test-roundf.c (main): Likewise.
29922         * tests/test-roundl.c (main): Likewise.
29923         * tests/test-signbit.c (test_signbitf, test_signbitd)
29924         (test_signbitl): Likewise.
29925         * tests/test-snprintf-posix.h (test_function): Likewise.
29926         * tests/test-sprintf-posix.h (test_function): Likewise.
29927         * tests/test-strtod.c (main): Likewise.
29928         * tests/test-trunc1.c (main): Likewise.
29929         * tests/test-truncf1.c (main): Likewise.
29930         * tests/test-truncl.c (main): Likewise.
29931
29932         isnanl: work around icc bug
29933         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29934
29935 2010-11-03  Eric Blake  <eblake@redhat.com>
29936
29937         tests: fix compiler warnings
29938         * tests/test-getopt.h (test_getopt): Fix condition.
29939         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29940         * tests/test-pipe2.c (main): Likewise.
29941         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29942
29943         utimens: fix broken m4 test
29944         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29945
29946 2010-10-28  Bruno Haible  <bruno@clisp.org>
29947
29948         posix_spawn*, getdtablesize: Relax license.
29949         * modules/posix_spawn (License): Change to LGPLv2+.
29950         * modules/posix_spawnp (License): Likewise.
29951         * modules/posix_spawn-internal (License): Likewise.
29952         * modules/posix_spawnattr_init (License): Likewise.
29953         * modules/posix_spawnattr_getflags (License): Likewise.
29954         * modules/posix_spawnattr_setflags (License): Likewise.
29955         * modules/posix_spawnattr_getpgroup (License): Likewise.
29956         * modules/posix_spawnattr_setpgroup (License): Likewise.
29957         * modules/posix_spawnattr_getschedparam (License): Likewise.
29958         * modules/posix_spawnattr_setschedparam (License): Likewise.
29959         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29960         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29961         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29962         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29963         * modules/posix_spawnattr_getsigmask (License): Likewise.
29964         * modules/posix_spawnattr_setsigmask (License): Likewise.
29965         * modules/posix_spawnattr_destroy (License): Likewise.
29966         * modules/posix_spawn_file_actions_init (License): Likewise.
29967         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29968         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29969         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29970         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29971         * modules/getdtablesize (License): Likewise.
29972         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29973
29974 2010-10-26  Bruno Haible  <bruno@clisp.org>
29975
29976         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29977         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29978         Cygwin and mingw.
29979         Suggested by Eric Blake.
29980
29981 2010-10-26  Bruno Haible  <bruno@clisp.org>
29982
29983         stdio: Work around compilation error due to renameat() on Solaris 10.
29984         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29985         * lib/renameat.c: Don't include <unistd.h> here.
29986         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29987         Reported by Paul Eggert and Eric Blake.
29988
29989 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29990
29991         renameat: port to Solaris 10, which declares renameat in unistd.h
29992
29993         * lib/renameat.c: Include unistd.h before stdio.h, because
29994         Solaris 10 declares renameat in unistd.h.  Problem encountered
29995         when building GNU tar 1.24 on Solaris 10.
29996
29997 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29998
29999         fdopendir: fix C89 compilation
30000         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30001         compilers.
30002
30003 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30004
30005         inttostr: simplify by removing unnecessary redundancy
30006         * lib/anytostr.c: Don't include verify.h.
30007         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30008         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30009         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30010         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30011         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30012         Likewise.
30013         * modules/inttostr (Depends-on): Remove 'verify'.
30014
30015 2010-10-23  Bruno Haible  <bruno@clisp.org>
30016
30017         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30018         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30019         Reported by Eric Blake.
30020
30021 2010-10-23  Bruno Haible  <bruno@clisp.org>
30022
30023         Tests: Fix LOCALE_JA on MirBSD 10.
30024         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30025         to an UTF-8 locale.
30026         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30028         Reported by Eric Blake.
30029
30030 2010-10-21  Bruno Haible  <bruno@clisp.org>
30031
30032         nl_langinfo test: Avoid test failure on NetBSD 5.
30033         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30034         Reported by Eric Blake.
30035
30036 2010-10-21  Eric Blake  <eblake@redhat.com>
30037
30038         c-stack: work around libsigsegv 2.8 bug
30039         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30040         overflow on at least PowerPC64.
30041
30042 2010-10-17  Bruno Haible  <bruno@clisp.org>
30043
30044         userspec: Drop redundant file.
30045         * modules/userspec (Files): Remove lib/inttostr.h.
30046
30047 2010-10-17  Bruno Haible  <bruno@clisp.org>
30048
30049         nl_langinfo tests: Silence some warnings.
30050         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30051         Reported by Jim Meyering.
30052
30053 2010-10-17  Bruno Haible  <bruno@clisp.org>
30054
30055         Make use of GCC's attribute __alloc_size__.
30056         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30057         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30058         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30059         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30060         __alloc_size__.
30061         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30062         Suggested by Jim Meyering.
30063
30064 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30065
30066         bootstrap: anchor .gitignore entries.
30067         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30068         with...
30069         (insert_vc_ignore): ... this new function, which prepends `/' to
30070         all .gitignore entries before passing them to
30071         insert_sorted_if_absent.
30072
30073 2010-10-16  Bruno Haible  <bruno@clisp.org>
30074
30075         nextafter: Fix configure check.
30076         * modules/nextafter (configure.ac): Correct expected prototype.
30077
30078 2010-10-16  Bruno Haible  <bruno@clisp.org>
30079
30080         termios: Update documentation.
30081         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30082
30083 2010-10-16  Bruno Haible  <bruno@clisp.org>
30084
30085         tests: Make them compile with TinyCC.
30086         * tests/test-strstr.c (main): Remove parentheses around array
30087         initializer.
30088
30089 2010-10-15  Eric Blake  <eblake@redhat.com>
30090
30091         ignore-value: make header idempotent
30092         * lib/ignore-value.h: Add double-inclusion guards.
30093         Reported by Stefan Berger.
30094
30095 2010-10-15  Jim Meyering  <meyering@redhat.com>
30096
30097         GNUmakefile: handle "stable" target, not "major"
30098         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30099         lists in maint.mk and announce-gen.  Without this, "make stable"
30100         would fail to ensure that $(VERSION) is up to date.
30101
30102 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30103
30104         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30105         & co.
30106
30107 2010-10-14  Bruno Haible  <bruno@clisp.org>
30108
30109         vasnprintf: Don't set errno to 0.
30110         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30111         block that sets it to 0.
30112         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30113
30114 2010-10-14  Bruno Haible  <bruno@clisp.org>
30115
30116         socketlib: Fix.
30117         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30118         gl_PREREQ_SYS_H_WINSOCK2.
30119         Reported by Ian Beckwith <ianb@erislabs.net>.
30120
30121 2010-10-13  Jim Meyering  <meyering@redhat.com>
30122
30123         test-select-stdin.c: avoid warn_unused_result warnings
30124         * tests/test-select-stdin.c: Include "macros.h".
30125         ASSERT that read and fflush succeed.
30126
30127 2010-10-13  Jim Meyering  <meyering@redhat.com>
30128
30129         git-version-gen: do require git-VC'd files in cwd
30130         * build-aux/git-version-gen: Reject a git version string
30131         if there are no commits associated with the current directory.
30132         This avoids an unlikely false-positive (unrelated dir whose parent
30133         repository also contains a tag matching v*), as pointed out
30134         by Giuseppe Scrivano in
30135         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30136
30137 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30138
30139         argv-iter: omit nonconforming declaration
30140         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30141         enum arg_iter_err declaration, which doesn't conform to C99.
30142         Solaris 10 cc warns about this.
30143
30144 2010-10-13  Eric Blake  <eblake@redhat.com>
30145
30146         termios: fix compilation on mingw
30147         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30148         (gl_TERMIOS_H): Adjust it on mingw.
30149         * modules/termios (Makefile.am): Substitute new key.
30150         * lib/termios.in.h (includes): Make include_next conditional.
30151         * doc/posix-headers/termios.texi (termios.h): Update
30152         documentation.
30153         Reported by Daniel P. Berrange.
30154
30155 2010-10-13  Jim Meyering  <meyering@redhat.com>
30156
30157         git-version-gen: don't require that .git/ be in the current dir
30158         * build-aux/git-version-gen: Adjust this script so that it works
30159         when run from any working directory beneath the top-level .git/-
30160         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30161         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30162
30163         test-select: avoid warn_unused_result warnings
30164         * tests/test-select.c: Include "macros.h".
30165         ASSERT that each call to read, write, and pipe succeeds.
30166         While not technically required, also check each "close".
30167         * modules/select-tests (Files): Add tests/macros.h.
30168
30169         test-symlinkat: remove declaration of unused local
30170         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30171
30172         test-inttostr: avoid shadowing warnings
30173         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30174         and use malloc rather than the stack for the same reason as
30175         mentioned in the comment justifying the other allocation.
30176
30177 2010-10-11  Bruno Haible  <bruno@clisp.org>
30178
30179         stdlib: Allow multiple gnulib generated replacements to coexist.
30180         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30181         Reported by Sam Steingold <sds@gnu.org>.
30182
30183 2010-10-11  Jim Meyering  <meyering@redhat.com>
30184
30185         fix a documentation typo
30186         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30187
30188 2010-10-11  Eric Blake  <eblake@redhat.com>
30189
30190         futimens: work around Solaris 11 bug
30191         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30192         * tests/test-futimens.h (test_futimens): Enhance, rather than
30193         weaken test.
30194         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30195
30196 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30197
30198         Indentation.
30199         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30200         higher-level operators more to the left.
30201
30202 2010-10-11  Jim Meyering  <meyering@redhat.com>
30203
30204         test-futimens: avoid unwarranted test failure on Solaris 5.11
30205         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30206         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30207         because it tries to dereference the NULL name argument.
30208
30209 2010-10-11  Bruno Haible  <bruno@clisp.org>
30210
30211         Indentation.
30212         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30213         indentation.
30214
30215 2010-10-11  Jim Meyering  <meyering@redhat.com>
30216
30217         spawn.in.h: make indentation consistent with parentheses
30218         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30219         Make indentation consistent with parentheses.
30220
30221 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30222
30223         Fix mismatched parens in previous commit
30224         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30225         parens.
30226
30227 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30228
30229         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30230
30231         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30232         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30233         * lib/malloca.c: Include "verify.h".
30234         (verify1): Remove, replacing with a verify call.
30235         * lib/relocwrapper.c (verify1): Likewise.
30236         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30237         Likewise.
30238         * modules/malloca (Depends-on): Add 'verify'.
30239         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30240         * modules/vasnprintf (Depends-on): Add 'verify'.
30241         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30242         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30243         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30244         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30245         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30246         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30247         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30248
30249         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30250
30251         Formerly the style was sometimes 2*X - 1, because the C standard
30252         was wrongly thought to disallow ?: in integral constant expressions.
30253         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30254         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30255         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30256         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30257         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30258         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30259         verify that time_t cannot be floating.
30260
30261 2010-10-08  Eric Blake  <eblake@redhat.com>
30262
30263         time: enforce recent POSIX ruling that time_t is integral
30264         * lib/time.in.h (__time_t_must_be_integral): Detect any
30265         problematic systems, allowing the rest of gnulib to assume POSIX.
30266
30267 2010-10-08  Jim Meyering  <meyering@redhat.com>
30268
30269         fdopendir: fix a bug on systems lacking openat and /proc support
30270         OpenBSD 4.7 is one such system.  The most noticeable effect was
30271         failure of any application making nontrivial use of fts: rm, du,
30272         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30273           ./rm: traversal failed: `a': Bad file descriptor
30274         Debugging that, you see that even though FD 6 was closed just
30275         prior to the opendir call in fd_clone_opendir, its resulting
30276         dir->dd_fd was 8, rather than the expected value of 6:
30277
30278         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30279         93                close (fd);
30280         (gdb) n
30281         94                dir = fd_clone_opendir (dupfd);
30282         (gdb) n
30283         95                saved_errno = errno;
30284         (gdb) p dir->dd_fd
30285         $11 = 8
30286
30287         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30288         The problem is that on OpenBSD, fd_clone_opendir has to resort
30289         to using the old-style save/restore CWD mechanism, due to its
30290         lack of openat/proc support, and *that* would steal the FD (6)
30291         that opendir was supposed to use.
30292
30293         The fix is to squirrel away the desired FD so that save_cwd uses a
30294         different one, and then free the dest FD right before calling opendir.
30295         That guarantees opendir will use the required file descriptor.
30296
30297         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30298
30299 2010-10-08  Bruno Haible  <bruno@clisp.org>
30300
30301         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30302         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30303
30304 2010-10-08  Bruno Haible  <bruno@clisp.org>
30305
30306         nanosleep: Make replacement POSIX compliant.
30307         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30308         is out of range.
30309         Reported by Jim Meyering.
30310
30311 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30312
30313         bootstrap: add hook for altering gnulib.mk, for Bison
30314         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30315         the Bison bootstrapping process can rewrite file names and variables
30316         in this file before later parts of 'bootstrap' use the file.
30317         Bison wants to include lib/gnulib.mk from the top-level makefile,
30318         so it needs the file names in this file to be relative to the top
30319         level, not relative to lib; plus it needs variable names to be
30320         rewritten.
30321         (slurp): Use the new function.
30322
30323         bootstrap: reformat for readability
30324         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30325
30326 2010-10-08  Eric Blake  <eblake@redhat.com>
30327
30328         docs: update cygwin progress
30329         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30330         1.7.7.
30331         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30332         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30333         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30334         * doc/posix-functions/carg.texi (carg): Likewise.
30335         * doc/posix-functions/cargf.texi (cargf): Likewise.
30336         * doc/posix-functions/casin.texi (casin): Likewise.
30337         * doc/posix-functions/casinf.texi (casinf): Likewise.
30338         * doc/posix-functions/casinh.texi (casinh): Likewise.
30339         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30340         * doc/posix-functions/catan.texi (catan): Likewise.
30341         * doc/posix-functions/catanf.texi (catanf): Likewise.
30342         * doc/posix-functions/catanh.texi (catanh): Likewise.
30343         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30344         * doc/posix-functions/ccos.texi (ccos): Likewise.
30345         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30346         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30347         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30348         * doc/posix-functions/cexp.texi (cexp): Likewise.
30349         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30350         * doc/posix-functions/cimag.texi (cimag): Likewise.
30351         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30352         * doc/posix-functions/clog.texi (clog): Likewise.
30353         * doc/posix-functions/clogf.texi (clogf): Likewise.
30354         * doc/posix-functions/conj.texi (conj): Likewise.
30355         * doc/posix-functions/conjf.texi (conjf): Likewise.
30356         * doc/posix-functions/cpow.texi (cpow): Likewise.
30357         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30358         * doc/posix-functions/cproj.texi (cproj): Likewise.
30359         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30360         * doc/posix-functions/creal.texi (creal): Likewise.
30361         * doc/posix-functions/crealf.texi (crealf): Likewise.
30362         * doc/posix-functions/csin.texi (csin): Likewise.
30363         * doc/posix-functions/csinf.texi (csinf): Likewise.
30364         * doc/posix-functions/csinh.texi (csinh): Likewise.
30365         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30366         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30367         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30368         * doc/posix-functions/ctan.texi (ctan): Likewise.
30369         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30370         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30371         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30372         * doc/posix-headers/complex.texi (complex.h): Likewise.
30373
30374 2010-10-07  Jim Meyering  <meyering@redhat.com>
30375
30376         parse-datetime: avoid compilation failure on OpenBSD 4.7
30377         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30378         This works around a compilation failure on OpenBSD 4.7:
30379         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30380
30381 2010-10-07  Eric Blake  <eblake@redhat.com>
30382
30383         docs: update cygwin progress
30384         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30385         1.7.6.
30386         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30387         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30388         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30389         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30390         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30391         Likewise.
30392         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30393         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30394         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30395         Likewise.
30396         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30397         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30398         Likewise.
30399         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30400         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30401         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30402         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30403         Likewise.
30404         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30405         Likewise.
30406         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30407
30408         docs: update parse-datetime history
30409         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30410         documentation of this function's history and alternatives.
30411
30412         cygwin: use more robust version check
30413         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30414         exclude an eventual cygwin 1.9.1.
30415         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30417         (gl_FUNC_STRCASESTR): Likewise.
30418         Reported by Bruno Haible.
30419
30420 2010-10-06  Bruno Haible  <bruno@clisp.org>
30421
30422         string, sys_select: Avoid #including large headers unless necessary.
30423         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30424         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30425         OSF/1, BeOS, Haiku.
30426         Reported by Jim Meyering.
30427
30428 2010-10-05  Eric Blake  <eblake@redhat.com>
30429
30430         memmem, strstr, strcasestr: fix bug with long periodic needle
30431         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30432         periodic needle having false positive.
30433         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30434         and cygwin 1.7.7.
30435         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30437         (gl_FUNC_STRCASESTR): Likewise.
30438         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30439         * tests/test-memmem.c (main): Expose the bug.
30440         * tests/test-strcasestr.c (main): Likewise.
30441         * tests/test-strstr.c (main): Likewise.
30442         * tests/test-c-strcasestr.c (main): Likewise.
30443         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30444         * doc/posix-functions/strstr.texi (strstr): Likewise.
30445         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30446         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30447
30448 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         parse-datetime: do some more renaming
30451         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30452         parse_datetime, not get_date.  Mention the renaming.
30453         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30454         in comments.
30455         * m4/bison.m4: Likewise.
30456
30457 2010-10-05  Eric Blake  <eblake@redhat.com>
30458
30459         parse-datetime: better name than get_date
30460         * NEWS: Reword the deprecation notice.
30461         * modules/get_date: Rename to modules/parse-datetime.
30462         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30463         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30464         * lib/get_date.y: Rename to lib/parse-datetime.y.
30465         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30466         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30467         * doc/getdate.texi: Provide fallback wrapper.
30468         * lib/getdate.h: Move guts, and wrap...
30469         * lib/parse-datetime.h: ...new file.
30470         * lib/parse-datetime.y (get_date): Rename...
30471         (parse_datetime): ...to this.
30472         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30473         (gl_PARSE_DATETIME): ...to this.
30474         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30475         documentation.
30476         * modules/getdate (Files): Provide fallback docs and header.
30477         (Notice, Depends-on): Update references.
30478         * tests/test-parse-datetime.c: Likewise.
30479         * DEPENDENCIES: Likewise.
30480         * MODULES.html.sh (Date and time <time.h>): Likewise.
30481         * doc/parse-datetime.texi (Date input formats)
30482         (Authors of parse_datetime): Likewise.
30483         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30484         (Include): Likewise.
30485         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30486         * gnulib-tool: Likewise.
30487         * m4/bison.m4 (gl_BISON): Likewise.
30488         Suggested by Bruno Haible.
30489
30490 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30491
30492         more ports to Solaris tr, which needs [] around ranges
30493         * gnulib-tool: Solaris tr needs [] around ranges.
30494         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30495         * tests/test-pipe-filter-gi1.c (main): Likewise.
30496         * tests/test-pipe-filter-ii1.c (main): Likewise.
30497
30498 2010-10-05  Eric Blake  <eblake@redhat.com>
30499
30500         bootstrap: fix Solaris regression
30501         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30502         around ranges.
30503         Reported by Pádraig Brady.
30504
30505         bootstrap: work with pkg-config
30506         * build-aux/bootstrap (check_versions): Also transliterate - in
30507         prerequisite name.
30508         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30509         prerequisites that were already found, to avoid confusion.
30510         Reported by Justin Clift.
30511
30512         faccessat: remove unused wrappers
30513         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30514         presence of these wrappers dragged in -lgen on Solaris.
30515         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30516
30517 2010-10-05  Jim Meyering  <meyering@redhat.com>
30518
30519         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30520         * Makefile (sc_pragma_columns): New syntax-check rule.
30521
30522 2010-10-04  Bruno Haible  <bruno@clisp.org>
30523
30524         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30525         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30526         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30527         Reported by Bruce Korb and Eric Blake.
30528
30529 2010-10-04  Bruno Haible  <bruno@clisp.org>
30530
30531         threadlib: Make option --with-libpth-prefix work.
30532         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30533         use $LIBPTH, not just -lpth.
30534
30535 2010-10-04  Bruno Haible  <bruno@clisp.org>
30536
30537         Avoid line length limitation from HP NonStop system header files.
30538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30539         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30540         * lib/ctype.in.h: Likewise.
30541         * lib/dirent.in.h: Likewise.
30542         * lib/errno.in.h: Likewise.
30543         * lib/fcntl.in.h: Likewise.
30544         * lib/float.in.h: Likewise.
30545         * lib/getopt.in.h: Likewise.
30546         * lib/iconv.in.h: Likewise.
30547         * lib/inttypes.in.h: Likewise.
30548         * lib/langinfo.in.h: Likewise.
30549         * lib/locale.in.h: Likewise.
30550         * lib/math.in.h: Likewise.
30551         * lib/netdb.in.h: Likewise.
30552         * lib/netinet_in.in.h: Likewise.
30553         * lib/poll.in.h: Likewise.
30554         * lib/pthread.in.h: Likewise.
30555         * lib/pty.in.h: Likewise.
30556         * lib/sched.in.h: Likewise.
30557         * lib/se-selinux.in.h: Likewise.
30558         * lib/search.in.h: Likewise.
30559         * lib/signal.in.h: Likewise.
30560         * lib/spawn.in.h: Likewise.
30561         * lib/stdarg.in.h: Likewise.
30562         * lib/stddef.in.h: Likewise.
30563         * lib/stdint.in.h: Likewise.
30564         * lib/stdio.in.h: Likewise.
30565         * lib/stdlib.in.h: Likewise.
30566         * lib/string.in.h: Likewise.
30567         * lib/strings.in.h: Likewise.
30568         * lib/sys_file.in.h: Likewise.
30569         * lib/sys_ioctl.in.h: Likewise.
30570         * lib/sys_select.in.h: Likewise.
30571         * lib/sys_socket.in.h: Likewise.
30572         * lib/sys_stat.in.h: Likewise.
30573         * lib/sys_time.in.h: Likewise.
30574         * lib/sys_times.in.h: Likewise.
30575         * lib/sys_utsname.in.h: Likewise.
30576         * lib/sys_wait.in.h: Likewise.
30577         * lib/sysexits.in.h: Likewise.
30578         * lib/termios.in.h: Likewise.
30579         * lib/time.in.h: Likewise.
30580         * lib/unistd.in.h: Likewise.
30581         * lib/wchar.in.h: Likewise.
30582         * lib/wctype.in.h: Likewise.
30583         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30584         * modules/ctype (Makefile.am): Likewise.
30585         * modules/dirent (Makefile.am): Likewise.
30586         * modules/errno (Makefile.am): Likewise.
30587         * modules/fcntl-h (Makefile.am): Likewise.
30588         * modules/float (Makefile.am): Likewise.
30589         * modules/getopt-posix (Makefile.am): Likewise.
30590         * modules/iconv-h (Makefile.am): Likewise.
30591         * modules/inttypes (Makefile.am): Likewise.
30592         * modules/langinfo (Makefile.am): Likewise.
30593         * modules/locale (Makefile.am): Likewise.
30594         * modules/math (Makefile.am): Likewise.
30595         * modules/netdb (Makefile.am): Likewise.
30596         * modules/netinet_in (Makefile.am): Likewise.
30597         * modules/poll-h (Makefile.am): Likewise.
30598         * modules/pthread (Makefile.am): Likewise.
30599         * modules/pty (Makefile.am): Likewise.
30600         * modules/sched (Makefile.am): Likewise.
30601         * modules/search (Makefile.am): Likewise.
30602         * modules/selinux-h (Makefile.am): Likewise.
30603         * modules/signal (Makefile.am): Likewise.
30604         * modules/spawn (Makefile.am): Likewise.
30605         * modules/stdarg (Makefile.am): Likewise.
30606         * modules/stddef (Makefile.am): Likewise.
30607         * modules/stdint (Makefile.am): Likewise.
30608         * modules/stdio (Makefile.am): Likewise.
30609         * modules/stdlib (Makefile.am): Likewise.
30610         * modules/string (Makefile.am): Likewise.
30611         * modules/strings (Makefile.am): Likewise.
30612         * modules/sys_file (Makefile.am): Likewise.
30613         * modules/sys_ioctl (Makefile.am): Likewise.
30614         * modules/sys_select (Makefile.am): Likewise.
30615         * modules/sys_socket (Makefile.am): Likewise.
30616         * modules/sys_stat (Makefile.am): Likewise.
30617         * modules/sys_time (Makefile.am): Likewise.
30618         * modules/sys_times (Makefile.am): Likewise.
30619         * modules/sys_utsname (Makefile.am): Likewise.
30620         * modules/sys_wait (Makefile.am): Likewise.
30621         * modules/sysexits (Makefile.am): Likewise.
30622         * modules/termios (Makefile.am): Likewise.
30623         * modules/time (Makefile.am): Likewise.
30624         * modules/unistd (Makefile.am): Likewise.
30625         * modules/wchar (Makefile.am): Likewise.
30626         * modules/wctype (Makefile.am): Likewise.
30627
30628 2010-10-04  Bruno Haible  <bruno@clisp.org>
30629
30630         read-file tests: Avoid a test failure on NonStop Kernel.
30631         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30632         a regular file.
30633         Reported by Joachim Schmitz <schmitz@hp.com>.
30634
30635 2010-10-03  Bruno Haible  <bruno@clisp.org>
30636
30637         gnulib-tool: Fixes for --create-testdir with --libtool.
30638         * gnulib-tool (func_get_automake_snippet): Don't augment
30639         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30640         an executable.
30641         (func_create_testdir): Handle module 'alloca' like func_import.
30642         Reported by Bruce Korb <bruce.korb@gmail.com>.
30643
30644 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30645
30646         Avoid some lines longer than 80 characters.
30647         * lib/stdint.in.h: Break long comment lines.
30648         * lib/math.in.h: Likewise.
30649         (_GL_NUM_UINT_WORDS): New macro, for readability.
30650         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30651         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30652         * lib/stdlib.in.h: Likewise.
30653         * lib/spawn.in.h: Likewise.
30654         * lib/sys_socket.in.h: Update an URL.
30655         * lib/sys_stat.in.h: Break long line.
30656
30657 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30658
30659         Improve pmccabe2html.
30660         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30661         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30662         when the sources change. Remove the line in the HTML about "Used
30663         ranges" (which implied that there might be other unused ranges),
30664         rename "Resume" to "Summary" (easier to understand for more users).
30665         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30666         styles, and some unnecessary blank lines.
30667
30668 2010-10-03  Bruno Haible  <bruno@clisp.org>
30669             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30670
30671         acl: Add support for ACLs on NonStop Kernel.
30672         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30673         Check whether the function aclsort() exists.
30674         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30675         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30676         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30677         (acl_nontrivial [HAVE_ACLSORT]: New function.
30678         (file_has_acl): Implement for NonStop Kernel.
30679         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30680         (qset_acl): Implement for NonStop Kernel.
30681         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30682         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30683         (main): Implement for NonStop Kernel.
30684         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30685         Kernel. Handle this flavor.
30686         * tests/test-set-mode-acl.sh: Likewise.
30687         * tests/test-copy-acl.sh: Likewise.
30688         * tests/test-copy-file.sh: Likewise.
30689
30690 2010-10-03  Bruno Haible  <bruno@clisp.org>
30691
30692         Info about ACLs on NonStop Kernel.
30693         * doc/acl-resources.txt: Add info about NonStop Kernel.
30694         References by Joachim Schmitz <schmitz@hp.com>.
30695
30696 2010-10-02  Bruno Haible  <bruno@clisp.org>
30697
30698         Define missing EDQUOT on NonStop Kernel.
30699         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30700         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30702         missing.
30703         * doc/posix-headers/errno.texi: Mention the NSK bug.
30704         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30705         Reported by Joachim Schmitz <schmitz@hp.com>.
30706
30707 2010-10-02  Bruno Haible  <bruno@clisp.org>
30708
30709         Update doc for POSIX:2008.
30710         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30711         Update URL of POSIX specification.
30712
30713 2010-10-02  Bruno Haible  <bruno@clisp.org>
30714
30715         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30716         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30717         from gnulib, not from Automake.
30718
30719 2010-10-02  Bruno Haible  <bruno@clisp.org>
30720
30721         New module 'system-posix'.
30722         * modules/system-posix: New file.
30723         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30724         module is present.
30725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30726         GNULIB_SYSTEM_POSIX.
30727         * modules/stdlib (Depends-on): Remove sys_wait.
30728         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30729         * doc/posix-functions/system.texi: Mention the new module.
30730         * doc/posix-headers/stdlib.texi: Likewise.
30731         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30732         define test_sys_wait_macros to a no-op.
30733         Reported by Sam Steingold <sds@gnu.org>.
30734
30735 2010-09-30  Bruno Haible  <bruno@clisp.org>
30736
30737         More renaming from 'getdate' to 'get_date'.
30738         * doc/get_date.texi: Renamed from doc/getdate.texi.
30739         * modules/get_date (Files): Update.
30740         * MODULES.html.sh (Date and time <time.h>): Update.
30741         * DEPENDENCIES: Update.
30742         * gnulib-tool: Update comment.
30743         * m4/bison.m4 (gl_BISON): Likewise.
30744         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30745
30746 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30747
30748         bootstrap: support ACLOCAL_FLAGS during aclocal
30749         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30750         can add additional -I dir for third-party .m4 files.
30751
30752 2010-09-30  Eric Blake  <eblake@redhat.com>
30753
30754         bootstrap: use glibtoolize on MacOS
30755         * build-aux/bootstrap (check_versions): Convert libtool into
30756         libtoolize.
30757         (tool search): Move libtool check earlier, and look for
30758         glibtoolize for MacOS.
30759         (gnulib_tool_options): Auto-add --libtool when appropriate.
30760         Reported by Justin Clift.
30761
30762         poll: fix typo that broke test on MacOS
30763         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30764         Reported by Justin Clift.
30765
30766         getdate: rename to get_date
30767         Note: getdate.h is not renamed, to minimize client impact.
30768         * modules/getdate: Mark obsolete.  Move old contents...
30769         * modules/get_date: ...to new module name.
30770         * modules/getdate-tests: Move...
30771         * modules/get_date-tests: ...here.
30772         * m4/getdate.m4: Move...
30773         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30774         * lib/getdate.y: Move...
30775         * lib/get_date.y: ...here.
30776         * tests/test-getdate.c: Move...
30777         * tests/test-get_date.c: ...here.
30778         * doc/posix-functions/getdate.texi (getdate): Update name.
30779         * NEWS: Mention the change.
30780
30781 2010-09-29  Bruno Haible  <bruno@clisp.org>
30782
30783         Separate the module 'waitpid' from the module 'sys_wait'.
30784         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30785         present.
30786         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30787         gl_MODULE_INDICATOR_FOR_TESTS.
30788         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30789         * modules/sys_wait (Depends-on): Remove waitpid.
30790         (Makefile.am): Substitute GNULIB_WAITPID.
30791         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30792         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30793         signature only if the 'waitpid' module is present.
30794         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30795         * NEWS: Mention the change.
30796         * modules/grantpt (Depends-on): Add waitpid.
30797         * modules/wait-process (Depends-on): Likewise.
30798
30799 2010-09-29  Bruno Haible  <bruno@clisp.org>
30800
30801         More tests for module 'sys_wait'.
30802         * modules/sys_wait-c++-tests: New file.
30803         * tests/test-sys_wait-c++.cc: New file.
30804         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30805         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30806
30807 2010-09-29  Bruno Haible  <bruno@clisp.org>
30808
30809         New module 'waitpid'.
30810         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30811         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30812         Don't include <process.h>.
30813         (waitpid): Declare only, using modern idiom.
30814         * m4/waitpid.m4: New file.
30815         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30816         * modules/waitpid: New file.
30817         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30818         (Makefile.am): Update.
30819         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30820
30821 2010-09-28  Bruno Haible  <bruno@clisp.org>
30822
30823         poll: Assume ANSI C.
30824         * lib/poll.c (poll): Use an ANSI C declaration.
30825
30826 2010-09-28  Bruno Haible  <bruno@clisp.org>
30827
30828         poll-h: Create poll.h on all platforms.
30829         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30830         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30831         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30832         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30833         (gl_REPLACE_POLL_H): Don't set POLL_H.
30834         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30835         * modules/poll-h (Depends-on): Add include_next.
30836         (Makefile.am): Create poll.h unconditionally. Substitute also
30837         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30838
30839 2010-09-28  Bruno Haible  <bruno@clisp.org>
30840
30841         Tests for module 'poll-h'.
30842         * modules/poll-h-c++-tests: New file.
30843         * tests/test-poll-h-c++.cc: New file.
30844
30845         Tests for module 'poll-h'.
30846         * modules/poll-h-tests: New file.
30847         * tests/test-poll-h.c: New file.
30848
30849 2010-09-28  Bruno Haible  <bruno@clisp.org>
30850
30851         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30852         * modules/poll-h (Depends-on): Add 'extensions'.
30853
30854 2010-09-28  Bruno Haible  <bruno@clisp.org>
30855
30856         New module 'poll-h'.
30857         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30858         (poll): Use modern idiom.
30859         * modules/poll-h: New file.
30860         * modules/poll (Files): Remove lib/poll.in.h.
30861         (Depends-on): Add poll-h.
30862         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30863         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30864         * m4/poll_h.m4: New file.
30865         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30866         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30867         and invoke gl_REPLACE_POLL_H.
30868         * lib/poll.c: Use common idiom.
30869         * tests/test-poll.c: Likewise.
30870         * doc/posix-headers/poll.texi: Mention the poll-h module.
30871         Suggested by Eric Blake.
30872
30873 2010-09-26  Bruno Haible  <bruno@clisp.org>
30874
30875         sys_wait: Implement WSTOPSIG.
30876         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30877         Reported by Simon Josefsson.
30878
30879 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30880
30881         stdlib, sys_wait: Avoid compilation error on mingw.
30882         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30883
30884 2010-09-26  Bruno Haible  <bruno@clisp.org>
30885
30886         stdlib tests: Avoid code duplication.
30887         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30888         * modules/sys_wait-tests (Files): Likewise.
30889         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30890         * tests/test-stdlib.c: Include test-sys_wait.h.
30891         (main): Invoke test_sys_wait_macros.
30892         * tests/test-sys_wait.c: Include test-sys_wait.h.
30893         (main): Invoke test_sys_wait_macros.
30894
30895 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30896
30897         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30898         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30899         sure Windows sockets are working before calling getaddrinfo.
30900         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30901         * doc/gnulib.texi (Windows sockets): Fix typo.
30902
30903 2010-09-25  Bruno Haible  <bruno@clisp.org>
30904
30905         Tests for module 'regex-quote'.
30906         * modules/regex-quote-tests: New file.
30907         * tests/test-regex-quote.c: New file.
30908
30909         New module 'regex-quote'.
30910         * lib/regex-quote.h: New file.
30911         * lib/regex-quote.c: New file.
30912         * modules/regex-quote: New file.
30913         Suggested by Reuben Thomas <rrt@sc3d.org>.
30914
30915 2010-09-24  Bruno Haible  <bruno@clisp.org>
30916
30917         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30918         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30919
30920 2010-09-23  Bruno Haible  <bruno@clisp.org>
30921
30922         setenv: Relax license.
30923         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30924         Blake.
30925         Requested by Eric Blake.
30926
30927 2010-09-22  Bruno Haible  <bruno@clisp.org>
30928
30929         termios: Relax license.
30930         * modules/termios (License): Change to LGPLv2+.
30931         Requested by Eric Blake.
30932
30933 2010-09-22  Bruno Haible  <bruno@clisp.org>
30934
30935         threadlib: Allow the package to change the default to 'no'.
30936         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30937         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30938         Reported by Paul Eggert.
30939
30940 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30941             Bruno Haible  <bruno@clisp.org>
30942
30943         Fix endless loop in mbmemcasecoll.
30944         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30945         byte.
30946         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30947
30948 2010-09-22  Bruno Haible  <bruno@clisp.org>
30949
30950         Tests for module 'memcoll'.
30951         * modules/memcoll-tests: New file.
30952         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30953
30954         memcoll, xmemcoll: Clarify size vs. length.
30955         * modules/memcoll.c (memcoll0): Clarify specification.
30956         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30957         passed to collate_error.
30958
30959 2010-09-22  Bruno Haible  <bruno@clisp.org>
30960
30961         Tests for module 'memcasecmp'.
30962         * modules/memcasecmp-tests: New file.
30963         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30964
30965 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30966
30967         * lib/pthread.in.h: Add split double-inclusion guard, and include
30968         system <pthread.h> if there is one.  Use @@-style as in other
30969         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30970         pthread.h doesn't.
30971         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30972         (pthread_mutexattr_settype, pthread_mutex_trylock):
30973         New static inline functions, if there's no system <pthread.h>.
30974         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30975         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30976         Approximate with mutexes if the system lacks spinlocks, as in
30977         MacOS.
30978         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30979         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30980         @@-style.  Check for spinlocks separately.
30981         (gl_PTHREAD_DEFAULTS): New macro.
30982         * modules/pthread: Redo to use a more typical style for in.h files.
30983
30984 2010-09-21  Eric Blake  <eblake@redhat.com>
30985
30986         net_if: enhance tests
30987         * tests/test-net_if.c (main): Move signature checks earlier.
30988         Print failures to stderr.
30989         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30990         Document the bug that we do not yet fix.
30991
30992 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30993
30994         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30995         about gnulib, not GSS.
30996
30997 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30998
30999         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31000         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31001         for Emacs.
31002         * build-aux/pmccabe2html: Make Makefile.am example code more
31003         cut-and-paste friendly.
31004
31005 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31006
31007         * tests/test-net_if.c: New file.
31008         * modules/net_if-tests: New file.
31009
31010 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31011
31012         pthread: add pthread_spin_destroy
31013         * lib/pthread.in.h (pthread_spin_destroy): New function.
31014
31015 2010-09-19  Bruno Haible  <bruno@clisp.org>
31016
31017         gnulib-tool: Fix --help output.
31018         * gnulib-tool (func_usage): Fix help message.
31019         Reported by Reuben Thomas <rrt@sc3d.org>.
31020
31021 2010-09-18  Jim Meyering  <meyering@redhat.com>
31022
31023         maint.mk: avoid unexpanded \n in two diagnostics
31024         * top/maint.mk (sc_prohibit_always_true_header_tests):
31025         Don't use a literal \n in a halt=... assignment.  It would not be
31026         expanded, and the two \n bytes would appear in the diagnostic output
31027         rather than the desired newline.  Use halt=$$(printf ... instead.
31028         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31029
31030 2010-09-18  Bruno Haible  <bruno@clisp.org>
31031
31032         netinet_in: Doc tweak.
31033         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31034         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31035
31036 2010-09-18  Jim Meyering  <meyering@redhat.com>
31037
31038         init.sh: correct an outdated comment
31039         * tests/init.sh (create_exe_shims_):  s/function/alias/
31040
31041         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31042         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31043         a file named "*.exe" is removed between the glob expansion and the
31044         processing of that oddly named file.
31045
31046 2010-09-17  Eric Blake  <eblake@redhat.com>
31047
31048         mirbsd: add some more support
31049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31050         in BSD family.
31051         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31052         devices as OpenBSD.
31053         * m4/host-os.m4 (mirbsd): Add MirBSD.
31054
31055         tests: fix unportable assumption on sys/wait.h
31056         * tests/test-sys_wait.c (main): Relax test.
31057         * tests/test-stdlib.c (main): Likewise.
31058
31059         init.sh: accommodate directory with no .exes
31060         * tests/init.sh: Accomodate directory containing only scripts.
31061
31062         tests: avoid compiler warning
31063         * tests/test-stdlib.c (main): Use the variable.
31064
31065         fdutimens, fdutimensat: update signature, again
31066         * lib/utimens.h (gl_futimens): Delete, and move signature...
31067         (fdutimens): ...here.
31068         (fdutimensat): Rearrange signature.
31069         (lutimensat): Rename variable for clarity.
31070         * lib/fdutimensat.c (fdutimensat): Update signature.
31071         * lib/utimens.c (fdutimens): Likewise.
31072         (gl_futimens): Delete.
31073         (utimens, lutimens): Update callers.
31074         * lib/futimens.c (futimens): Likewise.
31075         * tests/test-fdutimensat.c: Likewise.
31076         * tests/test-utimens.c: Likewise.
31077         * tests/test-futimens.h: Update comment.
31078         * NEWS: Mention this.
31079         Suggested by Paul Eggert.
31080
31081 2010-09-17  Bruno Haible  <bruno@clisp.org>
31082
31083         Take over the maintenance of some older macros from Autoconf.
31084         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31085         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31086         GNU Autoconf.
31087         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31088         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31089
31090 2010-09-17  Eric Blake  <eblake@redhat.com>
31091
31092         fdutimensat: drop atflag validation
31093         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31094         with valid fd, to close a race scenario where futimens is
31095         unsupported and FILE was replaced by a symlink.
31096         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31097         accordingly.
31098         Suggested by Paul Eggert.
31099
31100 2010-09-16  Bruno Haible  <bruno@clisp.org>
31101
31102         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31103         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31104
31105 2010-09-16  Bruno Haible  <bruno@clisp.org>
31106
31107         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31108         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31109         login_tty exists.
31110         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31111
31112 2010-09-16  Bruno Haible  <bruno@clisp.org>
31113
31114         login_tty: Make the replacement code work on BSD systems.
31115         * lib/login_tty.c: Include <sys/ioctl.h>.
31116         (login_tty): Use ioctl TIOCSCTTY when available.
31117         * modules/login_tty (Depends-on): Add sys_ioctl.
31118         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31119
31120 2010-09-16  Bruno Haible  <bruno@clisp.org>
31121
31122         login_tty: Stricter unit test.
31123         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31124         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31125         and tcgetsid() after login_tty.
31126         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31127
31128 2010-09-16  Bruno Haible  <bruno@clisp.org>
31129
31130         New module 'tcgetsid'.
31131         * lib/tcgetsid.c: New file.
31132         * m4/tcgetsid.m4: New file.
31133         * modules/tcgetsid: New file.
31134         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31135         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31136         GNULIB_TCGETSID, HAVE_TCGETSID.
31137         * lib/termios.in.h: Include <sys/types.h>.
31138         (tcgetsid): New declaration.
31139         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31140         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31141         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31142         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31143
31144 2010-09-16  Bruno Haible  <bruno@clisp.org>
31145
31146         Tests for module 'termios'.
31147         * modules/termios-c++-tests: New file.
31148         * modules/termios-tests: New file.
31149         * tests/test-termios-c++.cc: New file.
31150         * tests/test-termios.c: New file.
31151
31152         New module 'termios'.
31153         * modules/termios: New file.
31154         * lib/termios.in.h: New file.
31155         * m4/termios_h.m4: New file.
31156         * doc/posix-headers/termios.texi: Mention the new module.
31157
31158 2010-09-16  Eric Blake  <eblake@redhat.com>
31159
31160         fdutimensat: add an atflag parameter
31161         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31162         * lib/utimens.h (fdutimensat): Update prototype.
31163         * tests/test-fdutimensat.c: Adjust test to match.
31164         * NEWS: Document the change.
31165         Suggested by Paul Eggert.
31166
31167 2010-09-16  Bruno Haible  <bruno@clisp.org>
31168
31169         Fix typos in comments.
31170         * lib/striconveh.h: Fix typo in comment.
31171         * lib/login_tty.c (login_tty): Likewise.
31172
31173 2010-09-15  Bruno Haible  <bruno@clisp.org>
31174
31175         stdlib: clarify MirBSD WEXITSTATUS bug
31176         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31177         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31178
31179 2010-09-15  Eric Blake  <eblake@redhat.com>
31180
31181         stdlib: work around MirBSD WEXITSTATUS bug
31182         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31183         * modules/stdlib (Depends-on): Add sys_wait.
31184         * tests/test-sys_wait.c (main): Enhance test.
31185         * tests/test-stdlib.c (main): Likewise.
31186         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31187
31188         docs: mention MacOS issue with WEXITSTATUS(constant)
31189         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31190         issue.
31191         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31192
31193         strnlen: add tests
31194         * modules/strnlen-tests: New file.
31195         * tests/test-strnlen.c: Likewise.
31196
31197 2010-09-14  Bruno Haible  <bruno@clisp.org>
31198
31199         unistr/base: Avoid link errors when module 'libunistring' is also used.
31200         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31201         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31202         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31203         Declare also when HAVE_LIBUNISTRING is set.
31204         Reported by Pádraig Brady <P@draigbrady.com>.
31205
31206 2010-09-14  Eric Blake  <eblake@redhat.com>
31207
31208         test-rawmemchr: make more robust
31209         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31210         (Depends-on, configure.ac): Add needed prerequisites to use it.
31211         * modules/memchr-tests (Files, Depends-on, configure.ac):
31212         Likewise, to avoid implicit reliance on memchr module prereqs.
31213         * tests/test-memchr.c (main): Ensure proper masking.
31214         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31215         reads.
31216
31217         memchr: detect glibc Alpha bug
31218         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31219         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31220         Alpha.
31221         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31222         * tests/test-memchr.c (main): Enhance test.
31223         Reported by Nelson H. F. Beebe.
31224
31225 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31226
31227         fts, getcwd, glob: audit for dirfd returning -1
31228         * lib/fts.c (opendir): Remove #define; no longer used.
31229         (opendirat): New arg PDIR_FD.  All callers changed.
31230         (fts_build, _opendir2): Use new opendirat to avoid the need for
31231         dirfd, or for checking whether dirfd returns a negative value.
31232         Don't use opendir; always use openat followed by fdopendir.
31233         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31234         it.
31235         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31236         returns -1 here.
31237         * modules/fts (Depends-on): Remove dirfd.
31238         * modules/getcwd (Depends-on): Likewise.
31239
31240 2010-09-13  Eric Blake  <eblake@redhat.com>
31241
31242         float: fix broken MirBSD header
31243         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31244         * doc/posix-headers/float.texi (float.h): Document it.
31245
31246 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31247
31248         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31249         * lib/fts.c (opendirat): New arg extra_flags.
31250         (__opendir2): Use it to avoid following symlinks when opening
31251         a directory, if symlinks are not supposed to be followed.  See
31252         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31253
31254         fdopendir: preserve argument fd before returning
31255         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31256         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31257         (fdopendir): Use them, arranging for FD to be open to the same
31258         directory that it was when it started.  (It might be temporarily
31259         closed while fdopendir is running, so this not thread- or
31260         signal-safe.)  Be careful to do the right thing even when file
31261         descriptors are scarce and dup fails with errno == EMFILE.  See
31262         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31263
31264 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31265
31266         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31267         * NEWS: Document change.
31268         * m4/regex.m4: Disable test for regoff_t size.
31269
31270 2010-09-13  Jim Meyering  <meyering@redhat.com>
31271
31272         fts: don't operate on an invalid file descriptor after failed dup
31273         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31274         negative file descriptor.
31275
31276 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31277
31278         savedir: add streamsavedir, deprecate fdsavedir
31279         * NEWS: Mention deprecation of fdsavedir.
31280         * lib/savedir.c (streamsavedir): New extern function, whose name
31281         ends in "savedir" to be consistent with the others.  This differs
31282         from savedirstream in that it doesn't close its argument.  The
31283         next version of GNU tar will use this instead of fdsavedir, to
31284         avoid some race conditions and conserve file descriptors.
31285         (savedirstream): Reimplement as a wrapper around streamsavedir.
31286         (fdsavedir): Add a comment deprecating this function.  As far as
31287         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31288         * lib/savedir.h (streamsavedir): New decl.
31289         (fdsavedir): Add a comment deprecating this.
31290
31291 2010-09-10  Bruno Haible  <bruno@clisp.org>
31292
31293         langinfo: Fix last commit.
31294         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31295         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31297
31298 2010-09-10  Bruno Haible  <bruno@clisp.org>
31299
31300         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31301         * lib/progreloc.c (O_EXEC): Define fallback.
31302
31303 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31304
31305         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31306         * NEWS: Document recent changes to fcntl-h.
31307         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31308         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31309         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31310         Similarly for O_SEARCH; this last was already true, but not documented.
31311         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31312         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31313         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31314         Likewise.
31315         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31316         is zero, not whether it is defined.
31317         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31318         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31319         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31320
31321 2010-09-10  Bruno Haible  <bruno@clisp.org>
31322
31323         langinfo, nl_langinfo: Fix for IRIX 5.3.
31324         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31325         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31326         HAVE_LANGINFO_YESEXPR.
31327         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31328         HAVE_LANGINFO_YESEXPR.
31329         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31330         HAVE_LANGINFO_T_FMT_AMPM is 0.
31331         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31332         HAVE_LANGINFO_YESEXPR is 0.
31333         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31334         NOEXPR.
31335         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31336         * doc/posix-functions/nl_langinfo.texi: Likewise.
31337         Reported by Eric Blake.
31338
31339 2010-09-10  Bruno Haible  <bruno@clisp.org>
31340
31341         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31342         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31343         on FreeBSD 8.0 and OpenBSD 4.6.
31344         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31345         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31346         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31347         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31348         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31349         ac_includes_default.
31350         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31351
31352 2010-09-09  Eric Blake  <eblake@redhat.com>
31353
31354         strsignal: work around NetBSD bug
31355         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31356         * lib/string.in.h (includes): Likewise.
31357         * doc/posix-functions/strsignal.texi (strsignal): Document the
31358         bug.
31359         Reported by Nelson H. F. Beebe.
31360
31361         gnulib-tool: work with NetBSD /bin/sh
31362         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31363         (func_get_description, func_get_comment, func_get_status)
31364         (func_get_notice, func_get_applicability, func_get_filelist)
31365         (func_get_dependencies, func_get_autoconf_early_snippet)
31366         (func_get_autoconf_snippet, func_get_automake_snippet)
31367         (func_get_include_directive, func_get_link_directive)
31368         (func_get_license, func_get_maintainer, func_import): Avoid
31369         shell syntax errors from parsing syntax extensions.
31370
31371 2010-09-09  Bruno Haible  <bruno@clisp.org>
31372
31373         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31374         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31375         a reliable way to determine whether the 'alias' command works.
31376
31377 2010-09-08  Jim Meyering  <meyering@redhat.com>
31378
31379         init.sh: penalize a set-x-impaired shell; don't disqualify it
31380         * tests/init.sh: Too many shells corrupt application stderr when
31381         you set -x, so we can't afford to disqualify them, since at least
31382         on Irix-6.5, that would disqualify all bourne shells.
31383         Instead, use a two-pass approach.
31384         On the first pass, try to find a shell that meets the stricter
31385         condition that set -x does not corrupt stderr.
31386         If no shell meets the stricter condition, retest each candidate
31387         shell, but without that extra condition.  Finally, when
31388         VERBOSE=yes is requested and set -x might cause trouble, simply
31389         issue a warning and refrain from enabling debug output.
31390
31391 2010-09-08  Eric Blake  <eblake@redhat.com>
31392
31393         unsetenv: fix OpenBSD bug
31394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31395         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31396         documentation.
31397         Reported by Jim Meyering.
31398
31399         strtod: work around IRIX 6.5 bug
31400         * lib/strtod.c (strtod): Reparse number on shorter string if
31401         exponent parse was invalid.
31402         * tests/test-strtod.c (main): Add check for "0x1p 2".
31403         Reported by Tom G. Christensen.
31404
31405         getopt: optimize previous patch
31406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31407         empty variable.  Speed up awk script.
31408         Reported by Paolo Bonzini.
31409
31410 2010-09-08  Jim Meyering  <meyering@redhat.com>
31411
31412         test.sh: disqualify shells for which set -x corrupts stderr
31413         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31414         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31415         appear in stderr output.  For example, this command:
31416             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31417         prints "P=1" on those two systems:
31418
31419 2010-09-08  Bruno Haible  <bruno@clisp.org>
31420
31421         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31422         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31423         commands, because some shells ignore redirections when there is an
31424         error in the command lookup.
31425         Reported by Eric Blake.
31426
31427 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31428
31429         * lib/regex.h: Fix a mention of `regex_compile' (should be
31430         `re_compile_pattern').
31431         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31432         (re_set_registers): Correct name of parameter in comment.
31433
31434         * doc/regex.texi: Add documentation for missing syntax flags.
31435         Remove commented-out documentation of defunct syntax option
31436         RE_NO_EMPTY_ALTS.
31437         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31438         Add documentation of re_set_registers.
31439         Document trick to re-use a pattern buffer by setting fastmap manually.
31440         Update documentation of struct re_pattern_buffer per public members.
31441         Uncomment documentation of equivalence class operators and
31442         collating symbol operators, since they are now implemented,
31443         Explain leftmost-longest matching in relation to alternatives.
31444         Tidy documentation of substring matching.
31445         Remove POSIX documentation, which is done better in
31446         glibc, and refer the reader there. Keep BSD API documentation, as
31447         that is not readily available elsewhere.
31448
31449 2010-09-07  Eric Blake  <eblake@redhat.com>
31450
31451         getopt: handle POSIXLY_CORRECT set but not exported
31452         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31453         export state of POSIXLY_CORRECT, due to bash set -o posix.
31454         Reported by Dustin J. Mitchell.
31455
31456 2010-09-05  Bruno Haible  <bruno@clisp.org>
31457
31458         gnulib-tool: Highlight the changed options.
31459         * gnulib-tool (func_usage): Display the --import, --add-import,
31460         --remove-import explanations in bold font.
31461
31462 2010-09-06  Karl Berry  <karl@gnu.org>
31463
31464         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31465
31466 2010-09-05  Bruno Haible  <bruno@clisp.org>
31467
31468         uniwidth/width: Update comment.
31469         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31470         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31471
31472 2010-09-05  Bruno Haible  <bruno@clisp.org>
31473
31474         isinf, isnan: Relax license.
31475         * modules/isinf (License): Change from GPL to LGPL, with consent from
31476         Ben Pfaff.
31477         * modules/isnan (License): Likewise.
31478         Requested by Ludovic Courtès.
31479
31480 2010-09-04  Bruno Haible  <bruno@clisp.org>
31481
31482         gnulib-tool: Help migration from --import to --add-import or --update.
31483         * gnulib-tool: Emit a verbose error message when --import is used
31484         without any module name.
31485
31486 2010-09-04  Bruno Haible  <bruno@clisp.org>
31487
31488         Update doc about gnulib-tool.
31489         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31490         'gnulib-tool --update' in more detail.
31491         Reported by Eric Blake.
31492
31493 2010-09-04  Bruno Haible  <bruno@clisp.org>
31494
31495         gnulib-tool: Change --import. New options --add/remove-import.
31496         * gnulib-tool: New options --add-import, --remove-import.
31497         (func_usage): Document them.
31498         (have_associative): Define always.
31499         (func_import): In import mode, don't merge the specified settings with
31500         the cached settings. Implement remove-import mode.
31501         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31502         Explain when to use them versus --import.
31503         (Simple update): Use --add-import instead of --import.
31504         * NEWS: Mention the change.
31505
31506 2010-09-04  Bruno Haible  <bruno@clisp.org>
31507
31508         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31509         separate gnulib.mk.
31510
31511 2010-09-04  Bruno Haible  <bruno@clisp.org>
31512
31513         gnulib-tool: Don't talk about CVS any more.
31514         * gnulib-tool (func_usage, func_import): Write "version control"
31515         instead of CVS.
31516
31517 2010-09-04  Jim Meyering  <meyering@redhat.com>
31518
31519         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31520         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31521         false positives (whose names may be ill-chosen) when searching
31522         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31523         would cause a false-positive.
31524
31525         avoid coreutils "make distcheck" failure
31526         Coreutils tests with an absolute build directory name that contains
31527         a space.  Not quoting this directory name caused a failure.
31528         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31529         * tests/test-vc-list-files-cvs.sh: Likewise.
31530
31531 2010-09-04  Bruno Haible  <bruno@clisp.org>
31532
31533         gnulib-tool: Avoid error when run in a package without Makefile.am.
31534         * gnulib-tool: When collecting the m4dirs in a package that does not
31535         have a Makefile.am, eliminate those directories that contain no
31536         gnulib-cache.m4. Fix expression that counts these directories.
31537
31538 2010-09-04  Bruno Haible  <bruno@clisp.org>
31539
31540         update-copyright test: Improve output when perl is missing or too old.
31541         * tests/test-update-copyright.sh: Move test of Perl version down after
31542         the test whether Perl exists. Provide an explanation relating Perl's
31543         error message to Automake's SKIP: message.
31544
31545 2010-09-04  Bruno Haible  <bruno@clisp.org>
31546
31547         Don't augment PATH in TESTS_ENVIRONMENT.
31548         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31549         set abs_aux_dir instead of augmenting PATH.
31550         * modules/vc-list-files-tests (Makefile.am): Likewise.
31551         * tests/test-update-copyright.sh: Augment PATH here.
31552         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31553         path_prepend_.
31554         * tests/test-vc-list-files-git.sh: Likewise.
31555
31556 2010-09-04  Jim Meyering  <meyering@redhat.com>
31557
31558         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31559         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31560
31561 2010-09-04  Bruno Haible  <bruno@clisp.org>
31562
31563         strdup: Fix compilation error in C++ mode.
31564         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31565         the macro.
31566
31567 2010-09-04  Bruno Haible  <bruno@clisp.org>
31568
31569         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31570         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31571         macro into a function.
31572         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31573
31574 2010-09-04  Bruno Haible  <bruno@clisp.org>
31575
31576         Set PATH_SEPARATOR the same way autoconf does.
31577         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31578         the value of PATH_SEPARATOR the same way autoconf-generated configure
31579         scripts do.
31580         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31581         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31582
31583 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31584
31585         Set PATH_SEPARATOR the same way autoconf does.
31586         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31587         the same way autoconf-generated configure scripts do.
31588         * posix-modules: Likewise.
31589
31590 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31591
31592         hash: fix safe_hasher const typo
31593         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31594         const; otherwise, there is a type error later.
31595
31596 2010-09-02  Jim Meyering  <meyering@redhat.com>
31597
31598         test-update-copyright.sh: require perl 5.8.0
31599         * tests/test-update-copyright.sh: Require 5.8.0,
31600         which Tom G. Christensen has confirmed is adequate,
31601         while 5.6.1 is not.
31602
31603 2010-09-02  Eric Blake  <eblake@redhat.com>
31604
31605         tests: init.sh improvements for re-exec'ing with zsh
31606         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31607         -vx through shell re-exec.
31608         Reported by Tom G. Christensen.
31609
31610         wctype: fix typo in previous commit
31611         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31612         Reported by Ludovic Courtès.
31613
31614 2010-09-02  Jim Meyering  <meyering@redhat.com>
31615
31616         test-update-copyright.sh: skip test if Perl is too old
31617         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31618         Reported by Tom G. Christensen.
31619
31620 2010-09-02  Bruno Haible  <bruno@clisp.org>
31621
31622         wctype: Avoid compilation error on IRIX 6.5.30.
31623         * lib/wctype.in.h (iswblank): Declare with a replacement if
31624         REPLACE_ISWBLANK is set.
31625         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31626         declared. Set REPLACE_ISWBLANK.
31627         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31628         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31629         * doc/posix-headers/wctype.texi: Likewise.
31630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31631
31632 2010-09-01  Bruno Haible  <bruno@clisp.org>
31633
31634         New module 'socketlib'.
31635         * modules/socketlib: New file.
31636         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31637         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31638         * modules/sockets (Depends-on): Add socketlib.
31639         Suggested by Sam Steingold <sds@gnu.org>.
31640
31641 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31642
31643         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31644
31645         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31646         when one needs search access to a directory but not read access.
31647         On systems where it is available, it works in some cases where
31648         O_RDONLY does not, namely on directories that are searchable but
31649         not readable, and which need only to be searchable.  If O_SEARCH
31650         is not available, fall back to the traditional method of using
31651         O_RDONLY.
31652
31653         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31654         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31655         when opening a directory that needs only to be searchable.
31656         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31657         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31658         * lib/openat-proc.c (openat_proc_name): Likewise.
31659         * lib/openat.c (openat_needs_fchdir): Likewise.
31660         * lib/save-cwd.c (save_cwd): Likewise.
31661         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31662
31663 2010-08-28  Bruno Haible  <bruno@clisp.org>
31664
31665         New module 'host-cpu-c-abi'.
31666         * modules/host-cpu-c-abi: New file.
31667         * m4/host-cpu-c-abi.m4: New file, based on part of
31668         clisp/src/m4/general.m4.
31669         Requested by Sam Steingold <sds@gnu.org>.
31670
31671 2010-08-31  Eric Blake  <eblake@redhat.com>
31672         and Jim Meyering  <meyering@redhat.com>
31673
31674         hash: factor, and guard against misbehaving hasher function
31675         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31676         of table->hasher's return value.  Also protect against a hash value
31677         so large that adding it to table->bucket results in a NULL pointer.
31678         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31679         Use it in place of open-coded check-and-abort.
31680
31681 2010-08-30  Bruno Haible  <bruno@clisp.org>
31682
31683         hash: silence spurious clang warning
31684         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31685         Reported by Eric Blake.
31686
31687 2010-08-30  Eric Blake  <eblake@redhat.com>
31688
31689         strstr, memmem, strcasestr: avoid leaked shell message
31690         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31691         FreeBSD.
31692         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31693         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31694
31695         tests: silence clang warning
31696         * tests/test-malloca.c (do_allocation): Avoid dead store.
31697
31698 2010-08-29  Bruno Haible  <bruno@clisp.org>
31699
31700         gettext: Fix recent mistake.
31701         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31702
31703 2010-08-29  Bruno Haible  <bruno@clisp.org>
31704
31705         selinux-h: Offer a --without-selinux option.
31706         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31707         --without-selinux was specified, skip all tests and define
31708         HAVE_SELINUX_SELINUX_H to 0.
31709         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31710         set LIB_SELINUX to empty.
31711         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31712         gl_LIBSELINUX. If --without-selinux was specified, replace
31713         selinux/context.h.
31714         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31715
31716 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31717             Bruno Haible  <bruno@clisp.org>
31718
31719         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31720         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31721         of HAVE_REALLOC.
31722         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31723         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31724         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31725         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31726
31727 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31728             Bruno Haible  <bruno@clisp.org>
31729
31730         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31731         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31732         HAVE_CALLOC.
31733         * lib/xmalloc.c: Update accordingly.
31734         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31735         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31736         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31737
31738 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31739             Bruno Haible  <bruno@clisp.org>
31740
31741         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31742         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31743         HAVE_MALLOC.
31744         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31745         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31746         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31747
31748 2010-08-29  Bruno Haible  <bruno@clisp.org>
31749
31750         Update modules list.
31751         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31752         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31753         (String handling <string.h>): Add astrxfrm.
31754         (File system functions): Add readlinkat.
31755
31756 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31757
31758         Tests for module 'realloc-gnu'.
31759         * modules/realloc-gnu-tests: New file.
31760         * tests/test-realloc-gnu.c: New file.
31761
31762         Tests for module 'calloc-gnu'.
31763         * modules/calloc-gnu-tests: New file.
31764         * tests/test-calloc-gnu.c: New file.
31765
31766         Tests for module 'malloc-gnu'.
31767         * modules/malloc-gnu-tests: New file.
31768         * tests/test-malloc-gnu.c: New file.
31769
31770 2010-08-28  Bruno Haible  <bruno@clisp.org>
31771
31772         Rename module 'realloc' -> 'realloc-gnu'.
31773         * modules/realloc-gnu: New file, copied from modules/realloc.
31774         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31775         obsolete.
31776         * modules/mgetgroups (Depends-on): Update.
31777         * doc/posix-functions/realloc.texi: Update.
31778         * NEWS: Mention the change.
31779
31780         Rename module 'calloc' -> 'calloc-gnu'.
31781         * modules/calloc-gnu: New file, copied from modules/calloc.
31782         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31783         obsolete.
31784         * doc/posix-functions/calloc.texi: Update.
31785         * NEWS: Mention the change.
31786
31787         Rename module 'malloc' -> 'malloc-gnu'.
31788         * modules/malloc-gnu: New file, copied from modules/malloc.
31789         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31790         obsolete.
31791         * modules/argp (Depends-on): Update.
31792         * modules/regex (Depends-on): Update.
31793         * doc/posix-functions/malloc.texi: Update.
31794         * NEWS: Mention the change.
31795
31796 2010-08-28  Eric Blake  <eblake@redhat.com>
31797
31798         pread, pwrite: add missing dependency
31799         * modules/pread (Depends-on): Add extensions.
31800         * modules/pwrite (Depends-on): Likewise.
31801
31802 2010-08-28  Bruno Haible  <bruno@clisp.org>
31803
31804         unistr/u*-strchr: Fix tests dependencies.
31805         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31806         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31807         Reported by Ian Beckwith <ianb@erislabs.net>.
31808
31809 2010-08-28  Bruno Haible  <bruno@clisp.org>
31810
31811         read-file: Don't occupy too much unused memory.
31812         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31813
31814 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31815             Eric Blake  <eblake@redhat.com>
31816             Bruno Haible  <bruno@clisp.org>
31817
31818         read-file: Avoid memory reallocations with regular files.
31819         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31820         (fread_file): With regular files, use the remaining length as the
31821         initial buffer size.  Check against overflow.
31822         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31823         sys_stat.
31824
31825 2010-08-28  Bruno Haible  <bruno@clisp.org>
31826
31827         ftello: Relax license.
31828         * modules/ftello (License): Relax to LGPLv2+.
31829         Reported by Eric Blake.
31830
31831 2010-08-28  Bruno Haible  <bruno@clisp.org>
31832
31833         Avoid relocwrapper link errors due to gnulib replacement functions.
31834         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31835         function.
31836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31837
31838 2010-08-28  Bruno Haible  <bruno@clisp.org>
31839
31840         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31841         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31842         defined.
31843         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31844         Suggested by Eric Blake.
31845
31846 2010-08-28  Bruno Haible  <bruno@clisp.org>
31847
31848         sys_socket, netdb: Ensure socklen_t gets defined.
31849         * modules/sys_socket (Depends-on): Add socklen.
31850         * modules/netdb (Depends-on): Likewise.
31851         * modules/getaddrinfo (Depends-on): Remove socklen.
31852         * modules/getsockopt (Depends-on): Likewise.
31853         * modules/setsockopt (Depends-on): Likewise.
31854         * tests/test-sys_socket.c: Check that socklen_t is defined.
31855         * tests/test-netdb.c: Likewise.
31856         * m4/socklen.m4: Update comments.
31857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31858
31859 2010-08-27  Eric Blake  <eblake@redhat.com>
31860
31861         login_tty: add missing dependency
31862         * modules/login_tty (Depends-on): Add pty.
31863
31864 2010-08-26  Eric Blake  <eblake@redhat.com>
31865
31866         lib-symbol-versions: fix m4 quoting
31867         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31868         format for AC_LINK_IFELSE.
31869
31870         glob: fix compile test
31871         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31872
31873         btowc: fix missing file
31874         * modules/btowc (Files): Also ship locale-fr.m4.
31875
31876         lseek: fix link test
31877         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31878         AC_LINK_IFELSE.
31879
31880         include_next: silence autoconf 2.68 warning
31881         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31882         AC_COMPILE_IFELSE as special.
31883         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31884         autoconf < 2.68.
31885
31886         acl: fix compilation test
31887         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31888         AC_COMPILE_IFELSE.
31889
31890 2010-08-26  Bruno Haible  <bruno@clisp.org>
31891
31892         Modernize AC_TRY_RUN invocations.
31893         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31894         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31895         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31896         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31897         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31898         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31899         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31900         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31901         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31902         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31903         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31904         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31905         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31906         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31907         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31908         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31909         gl_MBRLEN_NUL_RETVAL): Likewise.
31910         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31911         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31912         Likewise.
31913         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31914         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31915         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31916         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31917         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31918         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31919         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31920         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31921         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31922         Likewise.
31923         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31924         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31926         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31927         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31928         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31929         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31930         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31931         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31933
31934 2010-08-26  Bruno Haible  <bruno@clisp.org>
31935
31936         Modernize AC_TRY_LINK invocations.
31937         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31938         AC_TRY_LINK.
31939         * m4/argp.m4 (gl_ARGP): Likewise.
31940         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31941         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31942         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31943         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31945         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31946         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31947         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31948         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31949         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31950         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31951         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31952         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31953         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31954         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31955         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31956         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31957         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31958         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31959         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31960         Likewise.
31961         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31962         Likewise.
31963         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31964         Likewise.
31965         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31966         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31967         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31968         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31969         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31970         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31971         * m4/servent.m4 (gl_SERVENT): Likewise.
31972         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31973         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31974         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31975         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31976         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31977         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31978         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31979         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31980         * modules/tsearch-tests (configure.ac): Likewise.
31981
31982 2010-08-26  Bruno Haible  <bruno@clisp.org>
31983
31984         Modernize AC_TRY_COMPILE invocations.
31985         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31986         AC_TRY_COMPILE.
31987         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31988         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31989         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31990         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31991         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31992         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31993         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31994         * m4/lock.m4 (gl_LOCK): Likewise.
31995         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31996         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31997         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31998         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31999         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32000         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32001         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32002         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32003         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32004         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32005         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32006         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32007         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32008         extraneous semicolon.
32009
32010 2010-08-26  Jim Meyering  <meyering@redhat.com>
32011
32012         stat-time: relax license LGPL
32013         * modules/stat-time (License): Change from GPL to LGPL,
32014         with consent from all contributors, for use in libguile.
32015         Requested by Ludovic Courtès.
32016
32017 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32018
32019         poll: return immediately on POLLHUP.
32020         * lib/poll.c (poll): Always set timeout before wait_timeout is
32021         computed.
32022
32023 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32024
32025         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32026         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32027         rmdir ("dir/.//"), unlinkat.
32028
32029 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32030
32031         stdbool: avoid spurious failure with modern xlc
32032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32033
32034 2010-08-24  Bruno Haible  <bruno@clisp.org>
32035
32036         getloadavg: simplify code
32037         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32038         gl_have_func. Update comments.
32039
32040 2010-08-24  Eric Blake  <eblake@redhat.com>
32041
32042         getloadavg: don't define SVR4 on cygwin
32043         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32044         only define SVR4 when -lkvm is required.
32045         Reported by Yaakov Selkowitz.
32046
32047 2010-08-24  Bruno Haible  <bruno@clisp.org>
32048
32049         priv-set: fix comment
32050         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32051
32052 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32053
32054         priv-set: fix comments
32055         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32056         to match code, as suggested by David Bartley in:
32057         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32058
32059 2010-08-23  Eric Blake  <eblake@redhat.com>
32060
32061         stdbool: avoid rejecting clang
32062         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32063         * tests/test-stdbool.c: Enable more tests if using the system
32064         <stdbool.h> instead of the gnulib replacement.
32065         (main): Move xlc bug test to a runtime test for all compilers.
32066         Reported by Anders Kaseorg.
32067
32068         argz: fix shell quoting issue
32069         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32070         Reported by Charles Wilson.
32071
32072 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32073             Erik Faye-Lund <kusmabite@gmail.com>
32074
32075         poll, select: handle ERROR_BROKEN_PIPE.
32076         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32077         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32078         * lib/select.c (win32_compute_revents): Do not mark a pipe
32079         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32080
32081 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32082
32083         fts: allow compilation with C++
32084         * lib/fts_.h: Specify extern "C" linkage with C++.
32085
32086 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32087
32088         Fix gnulib-tool sed script de-commentation for AIX sed.
32089         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32090         sed.
32091
32092 2010-08-17  Eric Blake  <eblake@redhat.com>
32093
32094         test-stddef: test for (some) offsetof bugs
32095         * tests/test-stddef.c: Enhance test to ensure correct type of
32096         offsetof.
32097         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32098         that we are not fixing at this time.
32099
32100 2010-08-15  Bruno Haible  <bruno@clisp.org>
32101
32102         stpncpy: Allow stpncpy to be defined as a macro.
32103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32104         if it's already correctly declared.
32105         * lib/string.in.h (stpncpy): Undefine before redefining.
32106         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32107
32108 2010-08-14  Bruno Haible  <bruno@clisp.org>
32109
32110         Rename module 'memxfrm' to 'amemxfrm'.
32111         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32112         (amemxfrm): Renamed from memxfrm.
32113         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32114         (amemxfrm): Renamed from memxfrm.
32115         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32116         * NEWS: Mention the change.
32117         * MODULES.html.sh (String handling <string.h>): Update.
32118         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32119         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32120         * lib/unicase/u16-casexfrm.c: Likewise.
32121         * lib/unicase/u32-casexfrm.c: Likewise.
32122         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32123         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32124         * lib/uninorm/u16-normxfrm.c: Likewise.
32125         * lib/uninorm/u32-normxfrm.c: Likewise.
32126         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32127         memxfrm.
32128         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32129         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32130         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32131         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32132         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32133         Suggested by Paul Eggert.
32134
32135 2010-08-14  Bruno Haible  <bruno@clisp.org>
32136
32137         Tests for module 'astrxfrm'.
32138         * modules/astrxfrm-tests: New file.
32139         * tests/test-astrxfrm.c: New file.
32140
32141         New module 'astrxfrm'.
32142         * lib/astrxfrm.h: New file.
32143         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32144         * modules/astrxfrm: New file.
32145
32146 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32147
32148         regex: Tweak doc.
32149         * doc/regex.texi (Overview): Don't mention regex.c.
32150         (GNU Regular Expression Compiling): Likewise.
32151         (Match-end-of-line Operator): Mention 'not_eol'.
32152
32153 2010-08-14  Brian Gough  <bjg@gnu.org>
32154             Bruno Haible  <bruno@clisp.org>
32155
32156         git-merge-changelog: add doc relating to use with bzr and hg.
32157         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32158
32159 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32160
32161         pthread: fix pthread.h creation for srcdir != builddir
32162         * modules/pthread (Makefile.am): Fix the rule to work also in a
32163         non-srcdir build.
32164
32165 2010-08-13  Karl Berry  <karl@gnu.org>
32166
32167         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32168         * doc/posix-*/*: force line break before @url of POSIX
32169         specifications.
32170         Suggested by Werner Lemberg.
32171
32172 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         strtod: fix const diagnostic
32175         * lib/strtod.c (strtod): Don't assign const char * to char *,
32176         as this elicits a warning from GCC when warnings are enabled.
32177
32178 2010-08-10  Pádraig Brady <P@draigbrady.com>
32179         and Eric Blake  <eblake@redhat.com>
32180
32181         copy-acl: ignore ENOTSUP on HP-UX
32182         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32183         so that it is available for HP-UX.
32184         * lib/copy-acl.c (qcopy_acl): Use it.
32185         Reported by Patrick M. Callahan.
32186
32187 2010-08-10  Eric Blake  <eblake@redhat.com>
32188
32189         open, chown: relax license
32190         * modules/open (License): Change to LGPLv2+, with consent by all
32191         authors, for use in augeas.
32192         * modules/chown (License): Likewise.
32193         * modules/lchown (Likewise): Likewise.
32194         Requested by Adam Stokes.
32195
32196 2010-08-09  Karl Berry  <karl@gnu.org>
32197
32198         * build-aux/ar-lib: new file, import from Automake.
32199         * config/srclist.txt: autocheck for updates.
32200
32201 2010-08-09  Eric Blake  <eblake@redhat.com>
32202
32203         readlinkat: adjust client modules
32204         * modules/areadlinkat (Depends-on): Use readlinkat, not
32205         symlinkat.
32206         * modules/areadlinkat-with-size (Depends-on): Likewise.
32207
32208         mknod: be more vocal about danger of running tests as root
32209         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32210         root, since that is just asking for problems.
32211         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32212
32213         readlinkat: split into its own module
32214         * modules/symlinkat: Split readlinkat...
32215         * modules/readlinkat: ...into separate module.
32216         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32217         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32218         * lib/symlinkat.c (readlinkat): Move...
32219         * lib/readlinkat.c: ...into new file.
32220         * modules/symlinkat-tests: Split readlinkat test...
32221         * modules/readlinkat-tests: ...into separate module.
32222         * tests/test-symlinkat.c: Split...
32223         * tests/test-readlinkat.c: ...into new file.
32224         * NEWS: Document the split.
32225         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32226         * lib/unistd.in.h (readlinkat): Likewise.
32227         Suggested by Bruno Haible.
32228
32229 2010-08-08  Bruno Haible  <bruno@clisp.org>
32230
32231         memxfrm: Speed up.
32232         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32233         that usually only one call to strxfrm is necessary for each string
32234         part.
32235         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32236
32237 2010-08-07  Karl Berry  <karl@gnu.org>
32238
32239         * doc/posix-headers/limits.texi,
32240         * doc/posix-functions/malloc.texi,
32241         * doc/posix-functions/strsignal.texi: missing @item.
32242         * doc/ld-version-script.texi: spurious leading i.
32243         * doc/regex.texi (Interval Operators): no commas inside @var.
32244
32245 2010-08-01  Bruno Haible  <bruno@clisp.org>
32246
32247         Integrate the regex documentation.
32248         * doc/gnulib.texi: Define 'cn' index.
32249         (Regular expressions): New a chapter that includes regex.texi and
32250         regexprops-generic.texi.
32251         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32252         syntax.
32253
32254         Whitespace cleanup.
32255         * doc/regex.texi: Remove trailing spaces.
32256
32257         Add regex documentation.
32258         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32259         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32260         Written by Kathy A. Hargreaves and Karl Berry.
32261
32262 2010-08-01  Bruno Haible  <bruno@clisp.org>
32263
32264         link: Update documentation.
32265         * doc/posix-functions/link.texi: Update regarding Solaris.
32266
32267 2010-07-31  Bruno Haible  <bruno@clisp.org>
32268
32269         Update modules list.
32270         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32271         (String handling <string.h>): Add memcmp2, memxfrm.
32272         (Container data structures): Add xlist, xsublist, xoset.
32273         (Core language properties): Add alignof, unused-parameter.
32274         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32275         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32276         (Unibyte characters <ctype.h>): New section.
32277         (String handling <string.h>): New section.
32278         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32279         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32280         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32281         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32282         tan, tanh, tanl, y0, y1, yn.
32283         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32284         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32285         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32286         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32287         unlockpt, vdprintf, vdprintf-posix.
32288         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32289         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32290         xconcat-filename.
32291         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32292         getdtablesize, pipe2, pipe2-safer.
32293         (Security): New section.
32294         (Networking functions): Add accept4.
32295         (Signal handling): Add sigpipe.
32296         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32297         mbmemcasecoll.
32298         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32299         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32300         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32301         pipe-filter-ii.
32302         (Misc): Add argp-version-etc, login_tty, parse-duration.
32303
32304 2010-07-31  Bruno Haible  <bruno@clisp.org>
32305
32306         Improve doc in MODULES.html.
32307         * modules/linkat (Description): Add the word "function".
32308         * modules/mkfifo (Description): Likewise.
32309         * modules/mknod (Description): Likewise.
32310         * modules/remove (Description): Likewise.
32311         * modules/renameat (Description): Likewise.
32312         * modules/stat (Description): Likewise.
32313         * modules/symlink (Description): Likewise.
32314         * modules/unlink (Description): Likewise.
32315
32316 2010-07-31  Bruno Haible  <bruno@clisp.org>
32317
32318         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32319         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32320         option --enable/disable-c++ instead of --enable/disable-cxx.
32321         * NEWS: Mention the change.
32322
32323 2010-07-31  Bruno Haible  <bruno@clisp.org>
32324
32325         readlink, areadlink: Relax test a bit.
32326         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32327         alternative to ENOTDIR.
32328         * tests/test-areadlink.h (test_areadlink): Likewise.
32329         Reported by Rainer Tammer.
32330
32331 2010-07-31  Bruno Haible  <bruno@clisp.org>
32332
32333         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32334         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32335         character, perform the search using U_STRCHR.
32336         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32337         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32338         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32339         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32340         Suggested by Paolo Bonzini.
32341
32342 2010-07-31  Bruno Haible  <bruno@clisp.org>
32343
32344         unistr/u*-strstr: Fix dependencies.
32345         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32346         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32347         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32348
32349 2010-07-31  Bruno Haible  <bruno@clisp.org>
32350
32351         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32352         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32353         the beginning of the loop.
32354         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32355         cases in 'switch' statement.
32356
32357         unistr/u8-strchr: Fix several bugs.
32358         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32359         the string. When not found, return NULL, not a pointer near the end.
32360
32361         More tests for unistr/u8-strchr.
32362         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32363         that the function does not read past the first occurrence of the byte
32364         being searched.
32365         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32366         * tests/unistr/test-u16-strchr.c (main): New function.
32367         * tests/unistr/test-u32-strchr.c (main): New function.
32368
32369 2010-07-31  Bruno Haible  <bruno@clisp.org>
32370
32371         posix-modules: Ignore backup files of documentation files.
32372         * posix-modules: grep only through files named *.texi.
32373
32374 2010-07-31  Bruno Haible  <bruno@clisp.org>
32375
32376         symlinkat: Fix documentation.
32377         * doc/posix-functions/readlinkat.texi: Fix module name.
32378
32379 2010-07-31  Bruno Haible  <bruno@clisp.org>
32380
32381         fchownat: Replace also when chown has the trailing slash bug.
32382         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32383         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32384         introduced on 2010-04-10.
32385         Reported by Rainer Tammer.
32386
32387 2010-07-31  Bruno Haible  <bruno@clisp.org>
32388
32389         linkat: Work around AIX 7.1 bug.
32390         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32391         whether linkat handles trailing slash correctly. If not, replace linkat
32392         and define LINKAT_TRAILING_SLASH_BUG.
32393         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32394         check whether (fd1,file1) points to a directory if file1 or file2 ends
32395         in a slash. Code taken from lib/link.c.
32396         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32397         Reported by Rainer Tammer.
32398
32399 2010-07-31  Bruno Haible  <bruno@clisp.org>
32400
32401         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32402         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32403         This disables an xlc optimization that was causing wrong test results.
32404         Reported by Rainer Tammer.
32405
32406 2010-07-31  Bruno Haible  <bruno@clisp.org>
32407
32408         iconv: Work around AIX 6.1..7.1 bug.
32409         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32410         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32411         cross-compiling, guess no on all versions of AIX.
32412         Reported by Rainer Tammer.
32413
32414 2010-07-31  Bruno Haible  <bruno@clisp.org>
32415
32416         readlink: Relax test a bit.
32417         * tests/test-readlink.h (test_readlink): Allow different errno value
32418         when readlink is called with a file name that ends in / and refers to
32419         a file.
32420         Suggested by Eric Blake.
32421         Reported by Rainer Tammer.
32422
32423 2010-07-31  Bruno Haible  <bruno@clisp.org>
32424
32425         copysign: Does not require -lm on glibc systems.
32426         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32427         gl_COMMON_DOUBLE_MATHFUNC.
32428         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32429
32430 2010-07-31  Bruno Haible  <bruno@clisp.org>
32431
32432         duplocale: Work around AIX 7.1 bug.
32433         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32434         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32435         * lib/duplocale.c (rpl_duplocale): Update comment.
32436         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32437         Reported by Rainer Tammer.
32438
32439 2010-07-30  Bruno Haible  <bruno@clisp.org>
32440
32441         dirfd: Avoid link error on AIX 7.1.
32442         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32443         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32444         exist, set REPLACE_DIRFD.
32445         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32446         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32447         * doc/posix-functions/dirfd.texi: Update.
32448         Reported by Rainer Tammer.
32449
32450 2010-07-30  Eric Blake  <eblake@redhat.com>
32451
32452         strtod: next round of AIX fixes
32453         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32454         exponent.
32455         * tests/test-strtod.c (main): Enhance tests.
32456         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32457         Reported by Rainer Tammer.
32458
32459         futimens: fix configure check
32460         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32461         Reported by Bruno Haible.
32462
32463 2010-07-30  Bruno Haible  <bruno@clisp.org>
32464
32465         getline: Update regarding AIX.
32466         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32467         Reported by Rainer Tammer.
32468
32469 2010-07-30  Bruno Haible  <bruno@clisp.org>
32470
32471         wcwidth: Drop replacement on AIX 7.
32472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32473         AIX 7.
32474         Reported by Rainer Tammer.
32475
32476 2010-07-30  Bruno Haible  <bruno@clisp.org>
32477
32478         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32479         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32480         a 'char *'.
32481         Reported by Rainer Tammer.
32482
32483 2010-07-30  Bruno Haible  <bruno@clisp.org>
32484
32485         unlink: Update regarding AIX.
32486         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32487         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32488         Reported by Rainer Tammer.
32489
32490 2010-07-30  Bruno Haible  <bruno@clisp.org>
32491
32492         symlink: Update regarding AIX.
32493         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32494         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32495         Reported by Rainer Tammer.
32496
32497 2010-07-30  Bruno Haible  <bruno@clisp.org>
32498
32499         strndup: Update regarding AIX.
32500         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32501         AIX 7.
32502         Reported by Rainer Tammer.
32503
32504 2010-07-30  Bruno Haible  <bruno@clisp.org>
32505
32506         stat: Update regarding AIX.
32507         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32508         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32509         Reported by Rainer Tammer.
32510
32511 2010-07-30  Bruno Haible  <bruno@clisp.org>
32512
32513         truncl: Fix autoconf test.
32514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32515         whether truncl works.
32516         Reported by Rainer Tammer.
32517
32518 2010-07-30  Bruno Haible  <bruno@clisp.org>
32519
32520         round: Update regarding AIX.
32521         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32522         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32523         Reported by Rainer Tammer.
32524
32525 2010-07-30  Bruno Haible  <bruno@clisp.org>
32526
32527         rename: Update regarding AIX.
32528         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32529         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32530         Reported by Rainer Tammer.
32531
32532 2010-07-30  Bruno Haible  <bruno@clisp.org>
32533
32534         printf.m4: Update regarding AIX.
32535         * m4/printf.m4: Update comments regarding AIX.
32536         Reported by Rainer Tammer.
32537
32538 2010-07-30  Bruno Haible  <bruno@clisp.org>
32539
32540         iconv: Update regarding AIX.
32541         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32542         AIX 7.
32543         Reported by Rainer Tammer.
32544
32545 2010-07-30  Bruno Haible  <bruno@clisp.org>
32546
32547         getopt: Update regarding AIX.
32548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32549         no on AIX.
32550         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32551         Reported by Rainer Tammer.
32552
32553 2010-07-30  Bruno Haible  <bruno@clisp.org>
32554
32555         ldexpl; Update regarding AIX.
32556         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32557         on AIX 7.
32558         Reported by Rainer Tammer.
32559
32560 2010-07-30  Bruno Haible  <bruno@clisp.org>
32561
32562         frexpl: Update regarding AIX.
32563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32564         on AIX 7.
32565         Reported by Rainer Tammer.
32566
32567 2010-07-30  Bruno Haible  <bruno@clisp.org>
32568
32569         open, fopen: Update regarding AIX.
32570         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32571         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32572         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32573         * doc/posix-functions/fopen.texi: Likewise.
32574         Reported by Rainer Tammer.
32575
32576 2010-07-30  Bruno Haible  <bruno@clisp.org>
32577
32578         chown: Update doc regarding AIX.
32579         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32580         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32581         Reported by Rainer Tammer.
32582
32583 2010-07-30  Eric Blake  <eblake@redhat.com>
32584
32585         strtod: fix bug in replacement function on AIX
32586         * lib/strtod.c (strtod): Special case broken "0x" parse in
32587         underlying strtod.
32588         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32589         * doc/posix-functions/strtod.texi (strtod): Likewise.
32590         Reported by Rainer Tammer.
32591
32592 2010-07-30  Bruno Haible  <bruno@clisp.org>
32593
32594         mbrlen: Fix cross-compilation guess for AIX.
32595         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32596         guess. Leftover from 2008-12-22.
32597
32598 2010-07-30  Bruno Haible  <bruno@clisp.org>
32599
32600         mbrtowc: Fix cross-compilation guess for AIX.
32601         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32602         guess. Leftover from 2008-12-21.
32603
32604 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32605
32606         init.sh: work around trap limitation of some shells
32607         * tests/init.sh (setup_): Move exit trap outside of shell function.
32608
32609 2010-07-29  Eric Blake  <eblake@redhat.com>
32610
32611         strtod: aid debugging
32612         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32613         understanding why strtod is rejected.
32614
32615 2010-07-28  Bruno Haible  <bruno@clisp.org>
32616
32617         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32618         * lib/unistr/u8-chr.c: Include <string.h>.
32619         * tests/unistr/test-u8-chr.c: Likewise.
32620         * tests/unistr/test-u16-chr.c: Likewise.
32621         * tests/unistr/test-u32-chr.c: Likewise.
32622         * tests/unistr/test-u8-strchr.c: Likewise.
32623         * tests/unistr/test-u16-strchr.c: Likewise.
32624         * tests/unistr/test-u32-strchr.c: Likewise.
32625         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32626         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32627         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32628         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32629
32630 2010-07-28  Bruno Haible  <bruno@clisp.org>
32631
32632         Use spaces for indentation, not tabs.
32633         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32634
32635 2010-07-27  Bruno Haible  <bruno@clisp.org>
32636
32637         mbspcasecmp: Fix function specification.
32638         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32639         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32640         Reported by Eric Blake <eblake@redhat.com>.
32641
32642 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32643
32644         timespec: use cast and not conditional, as truncation isn't possible
32645         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32646         instead of a conditional.  Comment about the situation in more detail.
32647         This undoes most of the 2009-10-29 patch.
32648
32649 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32650
32651         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32652         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32653         * lib/unistr/u8-strchr.c: Likewise.
32654         * modules/unistr/u8-chr: Depend on memchr.
32655
32656         unistr/u*-strchr: add tests
32657         * modules/unistr/u8-strchr-tests: New file.
32658         * modules/unistr/u16-strchr-tests: New file.
32659         * modules/unistr/u32-strchr-tests: New file.
32660         * tests/unistr/test-strchr.h: New file.
32661         * tests/unistr/test-u8-strchr.c: New file.
32662         * tests/unistr/test-u16-strchr.c: New file.
32663         * tests/unistr/test-u32-strchr.c: New file.
32664
32665         unistr/u*-chr: test multibyte sequences more
32666         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32667         test vector.
32668         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32669         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32670         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32671
32672         unistr/u*-chr: test multibyte sequences
32673         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32674
32675         unistr/u*-chr: prepare for multibyte tests
32676         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32677         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32678         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32679         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32680         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32681         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32682
32683 2010-07-18  Bruno Haible  <bruno@clisp.org>
32684
32685         unistr/u8-strchr: Optimize non-ASCII argument case.
32686         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32687         because the first byte often matches anyway.
32688         Reported by Pádraig Brady <P@draigbrady.com>.
32689
32690 2010-07-15  Karl Berry  <karl@gnu.org>
32691
32692         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32693
32694 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32695
32696         getcwd: on Solaris, work better if ancestors are inaccessible
32697         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32698         buffer and size, try again with a large buffer.  This works better
32699         on Solaris, since its getcwd succeeds even if the path to the root
32700         is inaccessible, and this is helpful in common cases such as .zfs
32701         hidden directories.  Problem reported by J Chapman Flack in
32702         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32703         Use system getcwd if it's declared, not merely if it's partly
32704         working; use the partly-working test only to avoid needless effort
32705         if the system getcwd fails.
32706         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32707         comment that was already obsolete and is now even more obsolete.
32708         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32709         now might call strdup.
32710
32711 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32712
32713         pthread: Add enough so that coreutils/src/sort.c compiles.
32714         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32715         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32716         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32717         Include <sys/types.h>, in case it defines pthread_t.
32718         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32719         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32720         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32721         (pthread_rwlockattr_t, pthread_spinlock_t):
32722         New typedefs, if HAVE_PTHREAD_T is not defined.
32723         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32724         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32725         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32726         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32727         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32728         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32729         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32730         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32731         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32732         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32733         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32734         New macros.
32735         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32736         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32737         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32738         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32739         (pthread_spin_unlock): New dummy functions.
32740         (pthread_create): Return EAGAIN; don't set errno.
32741         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32742         require AC_C_INLINE.
32743         * modules/pthread (Depends-on): Add sched, time.
32744         (pthread.h): Use AM_V_GEN.
32745
32746 2010-07-13  Bruno Haible  <bruno@clisp.org>
32747
32748         striconveh: Don't malloc memory if the result buffer is sufficient.
32749         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32750         buffer if its size is sufficient.
32751         Reported by Ludovic Courtès <ludo@gnu.org>.
32752
32753 2010-07-13  Bruno Haible  <bruno@clisp.org>
32754
32755         strtod: Add safety check.
32756         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32757
32758 2010-07-12  Bruno Haible  <bruno@clisp.org>
32759
32760         Unify tests that set gl_cv_func_ldexpl_no_libm.
32761         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32762         gl_FUNC_LDEXPL.
32763         (gl_FUNC_LDEXPL): Invoke it.
32764         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32765
32766 2010-07-12  Bruno Haible  <bruno@clisp.org>
32767
32768         Unify tests that set gl_cv_func_ldexp_no_libm.
32769         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32770         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32771         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32772         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32773         * modules/strtod (Files): Add m4/ldexp.m4.
32774
32775 2010-07-12  Bruno Haible  <bruno@clisp.org>
32776
32777         Unify tests that set gl_cv_func_frexpl_no_libm.
32778         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32779         gl_FUNC_FREXPL_NO_LIBM.
32780         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32782
32783 2010-07-12  Bruno Haible  <bruno@clisp.org>
32784
32785         Unify tests that set gl_cv_func_frexp_no_libm.
32786         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32787         gl_FUNC_FREXP_NO_LIBM.
32788         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32789         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32790
32791 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32792
32793         memcoll: clarify sizes versus lengths, document better, and tweak perf
32794         * lib/memcoll.c (strcoll_loop, memcoll0):
32795         Improve quality of descriptive comments.  Name variables
32796         consistently as to whether they are lengths (which do not include
32797         terminating null) versus sizes (which do).
32798         * lib/xmemcoll.c (xmemcoll0): Likewise.
32799         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32800         returned when s1size == 0; this is easier to compile and saves
32801         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32802
32803 2010-07-12  Bruno Haible  <bruno@clisp.org>
32804
32805         Tests for module '_Exit'.
32806         * modules/_Exit-tests: New file.
32807         * tests/test-_Exit.sh: New file.
32808         * tests/test-_Exit.c: New file.
32809
32810         New module '_Exit'.
32811         * lib/stdlib.in.h (__attribute__): New macro.
32812         (_Exit): New declaration.
32813         * lib/_Exit.c: New file.
32814         * m4/_Exit.m4: New file.
32815         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32816         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32817         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32818         * modules/_Exit: New file.
32819         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32820         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32821
32822 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32823
32824         strtod: make it more-accurate typically, and don't require libm
32825         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32826         Include limits.h.  Don't include string.h.
32827         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32828         (locale_isspace): New function, so that no casts are needed to
32829         check whether *s is a space.
32830         (ldexp): Provide an unused dummy if not available.
32831         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32832         (strtod): Use them.  This implementation prefers to use the
32833         underlying strtod if available, falling back on our own code
32834         only to fix known bugs.  This is more likely to produce an
32835         accurate result.  Also, it avoids the use of libm functions.
32836         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32837         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32838         was absent, but it caused a test failure with coreutils.
32839         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32840         with libm.
32841         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32842         * modules/strtod-tests (Makefile.am): Likewise.
32843
32844 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32845             Bruno Haible  <bruno@clisp.org>
32846
32847         unistr/u8-strchr: Optimize ASCII argument case.
32848         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32849
32850 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32851
32852         (x)memcoll: minor tweaks
32853         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32854         is after the type that it qualifies.
32855         (memcoll0): Likewise.
32856         * lib/memcoll.h (memcoll0): Likewise.
32857         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32858         * lib/xmemcoll.h (xmemcoll0): Likewise.
32859         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32860         differs from memcoll in that the NUL byte is part of the argument.
32861         Omit the abort-checks, as performance is a real issue here.  Plus,
32862         the checks were wrong anyway (an off-by-one error).  Omit local
32863         variable 'diff', as it's a bit clearer that way.
32864         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32865         no longer needed.
32866
32867 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32868
32869         (x)memcoll: speedup when input is known to be NUL delimited
32870         * lib/memcoll.c: Include stdlib.
32871         (memcoll0): New function.
32872         (strcoll_loop): New function, refactored for use in both memcoll
32873         and memcoll0.
32874         * lib/memcoll.h (memcoll0): Add prototype.
32875         * lib/xmemcoll.c (xmemcoll0): New function.
32876         (collate_error): New function, refactored for use in both xmemcoll
32877         and xmemcoll0.
32878         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32879         * m4/memcoll.m4: add inline invocation.
32880
32881 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32882
32883         * build-aux/bootstrap: Remove any local translations
32884         from the translation project synchronization directory,
32885         so that local only translations are not distributed.
32886
32887 2010-07-04  Bruno Haible  <bruno@clisp.org>
32888
32889         fsusage: Clarify which code applies to which platforms.
32890         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32891         platform.
32892         * lib/fsusage.c (get_fs_usage): Likewise.
32893
32894 2010-07-04  Bruno Haible  <bruno@clisp.org>
32895
32896         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32897         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32898         Reported by Martin Lambers <marlam@marlam.de>.
32899
32900 2010-07-04  Jim Meyering  <meyering@redhat.com>
32901
32902         hash: once again explicitly disallow insertion of NULL
32903         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32904         inserting a NULL pointer cannot work with these functions.
32905         Add a comment with details.
32906         This reverts part of the 2010-07-01 commit, 5bef1a35
32907         "hash: extend module to deal with non-pointer keys".
32908
32909 2010-07-01  Bruno Haible  <bruno@clisp.org>
32910
32911         stdbool: Update doc.
32912         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32913         Info from Christian Weisgerber <naddy@mips.inka.de>.
32914
32915 2010-07-01  Jim Meyering  <meyering@redhat.com>
32916
32917         hash: extend module to deal with non-pointer keys
32918         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32919         but that allows insertion of non-pointer entries.
32920         Do not disallow an ENTRY value of NULL.
32921         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32922         * lib/hash.h (hash_insert0): Declare.
32923
32924 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32925
32926         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32927         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32928         not present (i.e. with autoconf 2.59 and when using gettextize, not
32929         gnulib), require AC_GNU_SOURCE instead.
32930
32931 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32932
32933         idpriv-drop: Fix tests.
32934         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32935         not to the test-idpriv-droptemp program.
32936
32937 2010-06-29  Bruno Haible  <bruno@clisp.org>
32938
32939         string: Fix syntax error with g++ 2.96.
32940         * lib/string.in.h (__pure__): Remove definition.
32941         (_GL_ATTRIBUTE_PURE): New macro.
32942         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32943         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32944         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32945
32946 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32947
32948         unitypes: Fix bug introduced on 2010-05-18.
32949         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32950
32951 2010-06-22  Eric Blake  <eblake@redhat.com>
32952
32953         memmem: slight optimization
32954         * lib/str-two-way.h (critical_factorization): Update comments.
32955         Reduce work during factorization phase.
32956         Reported by Carlos Bueno <carlos@bueno.org>.
32957
32958 2010-06-21  Bruno Haible  <bruno@clisp.org>
32959
32960         Fix HAVE_CALLOC_POSIX misnomer.
32961         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32962         !HAVE_CALLOC_POSIX.
32963         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32964         HAVE_CALLOC_POSIX.
32965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32966         instead of HAVE_CALLOC_POSIX.
32967         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32968         HAVE_CALLOC_POSIX.
32969
32970         Use modern idiom for calloc() replacement.
32971         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32972         AC_FUNC_CALLOC.
32973         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32974         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32975         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32976         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32977         (gl_REPLACE_CALLOC): New macro.
32978
32979 2010-06-21  Bruno Haible  <bruno@clisp.org>
32980
32981         Fix HAVE_REALLOC_POSIX misnomer.
32982         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32983         !HAVE_REALLOC_POSIX.
32984         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32985         HAVE_REALLOC_POSIX.
32986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32987         instead of HAVE_REALLOC_POSIX.
32988         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32989         HAVE_REALLOC_POSIX.
32990
32991         Use modern idiom for realloc() replacement.
32992         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32993         AC_FUNC_REALLOC.
32994         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32995         Autoconf's AC_FUNC_REALLOC.
32996         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32997         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32998         (gl_REPLACE_REALLOC): New macro.
32999         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33000
33001 2010-06-21  Bruno Haible  <bruno@clisp.org>
33002
33003         Fix HAVE_MALLOC_POSIX misnomer.
33004         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33005         !HAVE_MALLOC_POSIX.
33006         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33007         HAVE_MALLOC_POSIX.
33008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33009         instead of HAVE_MALLOC_POSIX.
33010         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33011         HAVE_MALLOC_POSIX.
33012
33013         Use modern idiom for malloc() replacement.
33014         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33015         AC_FUNC_MALLOC.
33016         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33017         Autoconf's AC_FUNC_MALLOC.
33018         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33019         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33020         (gl_REPLACE_MALLOC): New macro.
33021         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33022
33023 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33024
33025         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33026         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33027         This macro takes 3 arguments, not 4.
33028
33029 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33030
33031         ipv6: fix detection under mingw
33032         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33033         in6_addr.
33034
33035 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33036
33037         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33038         that strtod() works when cross-compiling to a glibc version known
33039         to work.
33040
33041 2010-06-15  Bruno Haible  <bruno@clisp.org>
33042
33043         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33044
33045 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33046
33047         select: Correct timeout.
33048         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33049
33050 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33051
33052         git-version-gen: init shell var to avoid env var influence
33053         * build-aux/git-version-gen (v): Init shell var to empty.
33054
33055 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33056
33057         priv-set: Don't assume that priv.h exists merely because getppriv does.
33058         See Jan Andersen's bug report about AIX 5L in
33059         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33060         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33061         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33062         * lib/priv-set.h: Likewise.
33063         * tests/test-priv-set.c: Likewise.
33064
33065 2010-06-13  Bruno Haible  <bruno@clisp.org>
33066
33067         relocatable: Make it easier to test whether to install wrappers.
33068         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33069         RELOCATABLE_VIA_WRAPPER.
33070
33071 2010-06-13  Bruno Haible  <bruno@clisp.org>
33072
33073         gnulib-tool: Display specified modules and dependencies differently.
33074         * gnulib-tool (func_show_module_list): New function.
33075         (func_import, func_create_testdir): Invoke it.
33076         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33077
33078 2010-06-13  Bruno Haible  <bruno@clisp.org>
33079
33080         gnulib-tool: Align code of func_import and func_create_testdir.
33081         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33082         specified_modules.
33083
33084 2010-06-12  Jim Meyering  <meyering@redhat.com>
33085
33086         test-inttostr: avoid spurious failure on Solaris 9
33087         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33088         to accept "%ju".  Reported by Bruno Haible.
33089
33090 2010-06-11  Jim Meyering  <meyering@redhat.com>
33091
33092         test-sys_socket: mark variables as used more readably
33093         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33094         as "used" explicitly via (void) statement casts.  This is more
33095         readable than using them in an artificial return expression.
33096         Suggestion from Bruno Haible.
33097
33098 2010-06-11  Bruno Haible  <bruno@clisp.org>
33099
33100         Avoid some more warnings from "gcc -Wwrite-strings".
33101         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33102         to 'const char *'.
33103         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33104         * tests/test-c-strcasestr.c (main): Likewise.
33105         * tests/test-mbscasestr1.c (main): Likewise.
33106         * tests/test-mbscasestr2.c (main): Likewise.
33107         * tests/test-memmem.c (main): Likewise.
33108         * tests/test-strstr.c (main): Likewise.
33109         * tests/test-strcasestr.c (main): Likewise.
33110
33111 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33112
33113         init.sh: change framework_failure_ to fail with status 99, not 1
33114         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33115         automake's parallel-tests rule that this is an unexpected failure,
33116         even if the test is listed in XFAIL_TESTS.
33117
33118 2010-06-11  Jim Meyering  <meyering@redhat.com>
33119
33120         test-inttostr: avoid warnings about 4-6KB literal strings
33121         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33122         Include "macros.h", for its definition of ASSERT.
33123         (CK): s/assert/ASSERT/
33124         * modules/inttostr-tests (Files): Add macros.h.
33125
33126         init.sh: don't use $ME_ or skip_ before they are defined
33127         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33128         their first uses.  Also hoist their companions: warn_, fail_,
33129         framework_failure_, $stderr_fileno.  Prompted by a patch from
33130         Stefano Lattarini.
33131
33132         test-sys_socket: avoid set-but-not-used warnings from gcc
33133         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33134         avoid warning about set-but-not-used variables.
33135
33136         test-xvasprintf: avoid 'const' discard warnings
33137         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33138         "const" when assigning from literal strings.
33139         (test_xasprintf): Add "void" in function argument list to placate
33140         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33141
33142         tests: avoid compilation warnings in argmatch and exclude tests...
33143         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33144         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33145         Since it always exits, declare with the "noreturn" attribute.
33146         * tests/test-argmatch.c: Likewise.
33147
33148         tests: avoid 'const' discard warnings in mbsstr tests
33149         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33150         * tests/test-mbsstr2.c (main): Likewise.
33151
33152         test-verify: avoid warning from gcc's -Wmissing-declarations
33153         * tests/test-verify.c (function): Declare to be static.
33154
33155         test-inttostr.c: include <string.h> for use of strcmp
33156         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33157
33158         test-linkat: avoid failed assertion on "other" architectures
33159         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33160         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33161         sparc: https://bugs.launchpad.net/bugs/591968
33162
33163 2010-06-11  Jim Meyering  <meyering@redhat.com>
33164
33165         printf.m4: avoid autoconf's "Expanded Before Required" warning
33166         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33167         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33168         autoconf warning.
33169
33170 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33171
33172         Replacement header templates are now named with ".in", not "_".
33173         * doc/gnulib-intro.texi: Correct.
33174
33175 2010-06-10  Jim Meyering  <meyering@redhat.com>
33176
33177         inttostr-tests: depend on snprintf, not snprintf-posix
33178         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33179         snprintf-posix, to avoid this aclocal failure:
33180           missing file gnulib-tests/vasnprintf.c
33181           configure.ac:45: error: expected source file, required through \
33182           AC_LIBSOURCES, not found
33183
33184 2010-06-10  Jim Meyering  <meyering@redhat.com>
33185
33186         inttostr: add a new function, inttostr, and tests
33187         The namesake function was not available.  The existence of the
33188         template file, inttostr.c makes its addition nontrivial.
33189         * lib/anytostr.c: Rename from inttostr.c.
33190         (anytostr): Rename from inttostr.
33191         * lib/inttostr.c: New file.
33192         * modules/inttostr (Files): Add anytostr.c.
33193         (Makefile.am): Set lib_SOURCES instead of ...
33194         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33195         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33196         * lib/offtostr.c: Likewise.
33197         * lib/uinttostr.c: Likewise.
33198         * lib/umaxtostr.c: Likewise.
33199         * modules/inttostr-tests: New file.
33200         * tests/test-inttostr.c: New file.  Test these functions.
33201
33202 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33203             Bruno Haible  <bruno@clisp.org>
33204
33205         Add "Extending Gnulib" chapter to manual.
33206         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33207         chapter.
33208         (Extending Gnulib): New chapter.
33209         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33210         chapter.
33211
33212 2010-06-09  Bruno Haible  <bruno@clisp.org>
33213
33214         Avoid relocwrapper link errors due to gnulib replacement functions.
33215         * lib/areadlink.c: Use the system's malloc, realloc functions.
33216         (areadlink): Set errno to ENOMEM explicitly.
33217         * modules/areadlink (Depends-on): Remove malloc-posix.
33218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33219
33220 2010-06-09  Bruno Haible  <bruno@clisp.org>
33221
33222         Avoid relocwrapper link errors due to gnulib replacement functions.
33223         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33224         * lib/malloca.c: Likewise.
33225         * lib/relocatable.c: Likewise.
33226         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33227         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33228         * lib/setenv.c: Use the system's malloc, realloc functions.
33229         * lib/strerror.c: Use the system's sprintf function.
33230         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33231
33232 2010-06-04  Bruno Haible  <bruno@clisp.org>
33233
33234         Prefer documented low-level autoconf macro names.
33235         * m4/lib-link.m4: Use m4_translit instead of translit.
33236         * m4/environ.m4: Likewise.
33237         * m4/mathfunc.m4: Likewise.
33238         * m4/onceonly.m4: Likewise.
33239         * m4/stdint.m4: Likewise.
33240         Suggested by Eric Blake.
33241
33242 2010-06-04  Martin Lambers  <marlam@marlam.de>
33243             Bruno Haible  <bruno@clisp.org>
33244
33245         havelib: Allow library names with '+' characters.
33246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33247         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33248
33249 2010-06-09  Bruno Haible  <bruno@clisp.org>
33250
33251         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33252         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33253         realloc failed.
33254
33255 2010-06-08  Peter Simons  <simons@cryp.to>
33256
33257         maint.mk: make the news-check rule more configurable
33258         * top/maint.mk (news-check-lines-spec): New variable.
33259         (news-check): Use "sed -n 1,10p" in place of "head".
33260
33261 2010-06-07  Jim Meyering  <meyering@redhat.com>
33262
33263         do-release-commit-and-tag: fix typo in --help
33264         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33265
33266         regex: avoid new dead-code warning with gcc-4.6.0
33267         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33268         if-block containing a while-loop.  It's been unused for at least
33269         5 years.
33270
33271 2010-06-05  Bruno Haible  <bruno@clisp.org>
33272
33273         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33274         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33275
33276 2010-06-04  Bruno Haible  <bruno@clisp.org>
33277
33278         Update to GNU gettext 0.18.1.
33279         * modules/gettext (configure.ac): Require gettext infrastructure from
33280         version 0.18.1.
33281
33282 2010-06-03  Bruno Haible  <bruno@clisp.org>
33283
33284         Don't use AC_LIBOBJ with file names in subdirectories.
33285         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33286         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33287         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33288         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33289         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33290         gl_LIBUNISTRING_LIBSOURCE.
33291         (Makefile.am): Augment lib_SOURCES here, conditionally.
33292         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33293
33294 2010-06-03  Bruno Haible  <bruno@clisp.org>
33295
33296         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33297         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33298         expansion does not end with a newline.
33299         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33300         unnecessary newline.
33301
33302 2010-06-03  Bruno Haible  <bruno@clisp.org>
33303
33304         Reduce dependencies.
33305         * tests/test-quotearg.h: New file, extracted from
33306         tests/test-quotearg.c.
33307         * tests/test-quotearg-simple.c: New file, extracted from
33308         tests/test-quotearg.c.
33309         * tests/test-quotearg.c: Don't include <ctype.h>.
33310         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33311         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33312         use_quote_double_quotes, use_quotearg_colon): Moved to
33313         tests/test-quotearg.h.
33314         (results_g, flag_results, custom_quotes, custom_results): Moved
33315         to tests/test-quotearg-simple.c.
33316         (main): Moved the part that does not depend on gettext to
33317         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33318         performed.
33319         * modules/quotearg-simple: New file.
33320         * modules/quotearg-simple-tests: New file.
33321         * modules/quotearg (Depends-on): Add quotearg-simple.
33322         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33323         (Files): Add tests/test-quotearg.h.
33324         Reported by Paolo Bonzini.
33325
33326 2010-06-03  Bruno Haible  <bruno@clisp.org>
33327
33328         Reduce dependencies.
33329         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33330
33331 2010-06-03  Bruno Haible  <bruno@clisp.org>
33332
33333         time: Undefine more broken macros.
33334         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33335         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33336         Reported by Eric Blake.
33337
33338 2010-06-03  Bruno Haible  <bruno@clisp.org>
33339
33340         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33341         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33342         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33343         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33344         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33345         Reported by Ludovic Courtès <ludo@gnu.org>.
33346
33347 2010-06-02  Eric Blake  <eblake@redhat.com>
33348
33349         time: work with mingw + pthreads-win32 library
33350         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33351         if timespec is defined only in pthread.h.
33352         * modules/time (Makefile.am): Substitute it.
33353         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33354         <pthread.h>, when needed.
33355         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33356         from the library.
33357
33358 2010-05-31  Bruno Haible  <bruno@clisp.org>
33359
33360         Avoid expanding two macros in the wrong order.
33361         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33362         gl_LIBUNISTRING if it is defined.
33363         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33364         autoconf >= 2.64.
33365         Reported by Ludovic Courtès <ludo@gnu.org>.
33366
33367 2010-05-27  Jim Meyering  <meyering@redhat.com>
33368
33369         maint.mk: also prohibit "#undef" of always-defined symbols
33370         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33371         Allow more than one space before the symbol name.
33372         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33373         the regexp uses alternation.
33374
33375 2010-05-26  Eric Blake  <eblake@redhat.com>
33376
33377         maint.mk: avoid echo -e
33378         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33379         Convert all uses of echo -* to printf.
33380         Reported by Matthias Bolte.
33381
33382 2010-05-25  Bruno Haible  <bruno@clisp.org>
33383
33384         Update to GNU gettext 0.18, part 2.
33385         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33386         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33387
33388 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33389
33390         Add missing include in test-pwrite.c.
33391         * tests/test-pwrite.c: Include string.h, for strcmp.
33392
33393 2010-05-24  Bruno Haible  <bruno@clisp.org>
33394
33395         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33396
33397 2010-05-24  Bruno Haible  <bruno@clisp.org>
33398
33399         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33400         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33401         iconveh_error argument.
33402         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33403         U_STRCONV_TO_LOCALE.
33404         * lib/unistr/u16-strcoll.c: Likewise.
33405         * lib/unistr/u32-strcoll.c: Likewise.
33406         * modules/unistr/u8-strcoll (Depends-on): Add
33407         uniconv/u8-strconv-to-enc, localcharset. Remove
33408         uniconv/u8-strconv-to-locale.
33409         (configure.ac): Bump version number.
33410         * modules/unistr/u16-strcoll (Depends-on): Add
33411         uniconv/u16-strconv-to-enc, localcharset. Remove
33412         uniconv/u16-strconv-to-locale.
33413         (configure.ac): Bump version number.
33414         * modules/unistr/u32-strcoll (Depends-on): Add
33415         uniconv/u32-strconv-to-enc, localcharset. Remove
33416         uniconv/u32-strconv-to-locale.
33417         (configure.ac): Bump version number.
33418
33419 2010-05-24  Bruno Haible  <bruno@clisp.org>
33420
33421         Avoid a test failure on NetBSD 5.0.
33422         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33423         an iconv() bug.
33424
33425 2010-05-24  Bruno Haible  <bruno@clisp.org>
33426
33427         Adjust #include directive style.
33428         * modules/regex (Includes): Recommend to write <regex.h>.
33429
33430 2010-05-24  Bruno Haible  <bruno@clisp.org>
33431
33432         regex: Don't require alloca.
33433         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33434         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33435         only inside if (0).
33436
33437 2010-05-23  Jim Meyering  <meyering@redhat.com>
33438
33439         test-renameat.c: include <sys/stat.h>
33440         * tests/test-renameat.c: Include <sys/stat.h>; required for
33441         definition of S_IS* macros.
33442
33443 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33444
33445         Update maintainer documentation for 'relocatable-prog' module.
33446         * doc/relocatable-maint.texi: Update.
33447         Comments by Bruno Haible.
33448
33449 2010-05-23  Bruno Haible  <bruno@clisp.org>
33450
33451         git-merge-changelog: Enable --split-merged-entry by default.
33452         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33453         (usage): Don't mention this option any more.
33454         Reported by Ralf Wildenhues.
33455
33456 2010-05-23  Jim Meyering  <meyering@redhat.com>
33457
33458         test-pwrite: do not leave behind a test file named "out"
33459         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33460         The trivial-looking use of init.sh is really necessary.
33461         It ensures that the temporary file, "out", is created in
33462         a temporary directory, and removed upon termination.
33463         * tests/test-pwrite.sh: Re-add file.
33464         * modules/pwrite-tests: Reference it.
33465
33466 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33467
33468         Fix output redirection buglet in init.sh.
33469         * tests/init.sh: Fix redirection of stderr.
33470
33471 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33472
33473         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33474
33475 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33476
33477         * modules/valgrind-tests: New file.
33478         * m4/valgrind-tests.m4: New file.
33479         * doc/valgrind-tests.texi: New file.
33480         * doc/gnulib.texi (Running self-tests under valgrind): New
33481         section.
33482
33483 2010-05-19  Bruno Haible  <bruno@clisp.org>
33484
33485         Clean up dead code in recent commit.
33486         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33487         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33488         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33489         Suggested by Paolo Bonzini.
33490
33491 2010-05-19  Bruno Haible  <bruno@clisp.org>
33492
33493         Avoid valgrind error reports from libunistring.
33494         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33495         * modules/libunistring (Files): Add it.
33496         * modules/libunistring-optional (Files): Likewise.
33497
33498 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33499             Bruno Haible  <bruno@clisp.org>
33500
33501         New module 'libunistring-optional'.
33502         * modules/libunistring-optional: New file.
33503         * m4/libunistring-base.m4: New file.
33504         * m4/libunistring-optional.m4: New file.
33505         * lib/unicase.in.h: Renamed from lib/unicase.h.
33506         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33507         * lib/unictype.in.h: Renamed from lib/unictype.h.
33508         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33509         * lib/uniname.in.h: Renamed from lib/uniname.h.
33510         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33511         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33512         * lib/unistr.in.h: Renamed from lib/unistr.h.
33513         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33514         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33515         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33516         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33517         gl_LIBUNISTRING. If the library was found, determine the installed
33518         version and set LIBUNISTRING_VERSION.
33519         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33520         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33521         handle a configuration option --with-included-libunistring.
33522         * modules/libunistring (Files): Add m4/absolute-header.m4.
33523         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33524         Add m4/libunistring-base.m4.
33525         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33526         (Makefile.am): Build unicase.h from unicase.in.h.
33527         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33528         Add m4/libunistring-base.m4.
33529         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33530         (Makefile.am): Build uniconv.h from uniconv.in.h.
33531         * modules/unictype/base (Files): Use unictype.in.h instead of
33532         unictype.h. Add m4/libunistring-base.m4.
33533         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33534         (Makefile.am): Build unictype.h from unictype.in.h.
33535         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33536         Add m4/libunistring-base.m4.
33537         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33538         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33539         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33540         Add m4/libunistring-base.m4.
33541         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33542         (Makefile.am): Build uniname.h from uniname.in.h.
33543         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33544         Add m4/libunistring-base.m4.
33545         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33546         (Makefile.am): Build uninorm.h from uninorm.in.h.
33547         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33548         unistdio.h. Add m4/libunistring-base.m4.
33549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33550         (Makefile.am): Build unistdio.h from unistdio.in.h.
33551         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33552         Add m4/libunistring-base.m4.
33553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33554         (Makefile.am): Build unistr.h from unistr.in.h.
33555         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33556         Add m4/libunistring-base.m4.
33557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33558         (Makefile.am): Build unitypes.h from unitypes.in.h.
33559         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33560         Add m4/libunistring-base.m4.
33561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33562         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33563         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33564         uniwidth.h. Add m4/libunistring-base.m4.
33565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33566         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33567         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33568         instead of augmenting lib_SOURCES.
33569         * modules/unicase/empty-suffix-context: Likewise.
33570         * modules/unicase/locale-language: Likewise.
33571         * modules/unicase/tolower: Likewise.
33572         * modules/unicase/totitle: Likewise.
33573         * modules/unicase/toupper: Likewise.
33574         * modules/unicase/u8-casecmp: Likewise.
33575         * modules/unicase/u8-casecoll: Likewise.
33576         * modules/unicase/u8-casefold: Likewise.
33577         * modules/unicase/u8-casexfrm: Likewise.
33578         * modules/unicase/u8-ct-casefold: Likewise.
33579         * modules/unicase/u8-ct-tolower: Likewise.
33580         * modules/unicase/u8-ct-totitle: Likewise.
33581         * modules/unicase/u8-ct-toupper: Likewise.
33582         * modules/unicase/u8-is-cased: Likewise.
33583         * modules/unicase/u8-is-casefolded: Likewise.
33584         * modules/unicase/u8-is-lowercase: Likewise.
33585         * modules/unicase/u8-is-titlecase: Likewise.
33586         * modules/unicase/u8-is-uppercase: Likewise.
33587         * modules/unicase/u8-prefix-context: Likewise.
33588         * modules/unicase/u8-suffix-context: Likewise.
33589         * modules/unicase/u8-tolower: Likewise.
33590         * modules/unicase/u8-totitle: Likewise.
33591         * modules/unicase/u8-toupper: Likewise.
33592         * modules/unicase/u16-casecmp: Likewise.
33593         * modules/unicase/u16-casecoll: Likewise.
33594         * modules/unicase/u16-casefold: Likewise.
33595         * modules/unicase/u16-casexfrm: Likewise.
33596         * modules/unicase/u16-ct-casefold: Likewise.
33597         * modules/unicase/u16-ct-tolower: Likewise.
33598         * modules/unicase/u16-ct-totitle: Likewise.
33599         * modules/unicase/u16-ct-toupper: Likewise.
33600         * modules/unicase/u16-is-cased: Likewise.
33601         * modules/unicase/u16-is-casefolded: Likewise.
33602         * modules/unicase/u16-is-lowercase: Likewise.
33603         * modules/unicase/u16-is-titlecase: Likewise.
33604         * modules/unicase/u16-is-uppercase: Likewise.
33605         * modules/unicase/u16-prefix-context: Likewise.
33606         * modules/unicase/u16-suffix-context: Likewise.
33607         * modules/unicase/u16-tolower: Likewise.
33608         * modules/unicase/u16-totitle: Likewise.
33609         * modules/unicase/u16-toupper: Likewise.
33610         * modules/unicase/u32-casecmp: Likewise.
33611         * modules/unicase/u32-casecoll: Likewise.
33612         * modules/unicase/u32-casefold: Likewise.
33613         * modules/unicase/u32-casexfrm: Likewise.
33614         * modules/unicase/u32-ct-casefold: Likewise.
33615         * modules/unicase/u32-ct-tolower: Likewise.
33616         * modules/unicase/u32-ct-totitle: Likewise.
33617         * modules/unicase/u32-ct-toupper: Likewise.
33618         * modules/unicase/u32-is-cased: Likewise.
33619         * modules/unicase/u32-is-casefolded: Likewise.
33620         * modules/unicase/u32-is-lowercase: Likewise.
33621         * modules/unicase/u32-is-titlecase: Likewise.
33622         * modules/unicase/u32-is-uppercase: Likewise.
33623         * modules/unicase/u32-prefix-context: Likewise.
33624         * modules/unicase/u32-suffix-context: Likewise.
33625         * modules/unicase/u32-tolower: Likewise.
33626         * modules/unicase/u32-totitle: Likewise.
33627         * modules/unicase/u32-toupper: Likewise.
33628         * modules/unicase/ulc-casecmp: Likewise.
33629         * modules/unicase/ulc-casecoll: Likewise.
33630         * modules/unicase/ulc-casexfrm: Likewise.
33631         * modules/uniconv/u8-conv-from-enc: Likewise.
33632         * modules/uniconv/u8-conv-to-enc: Likewise.
33633         * modules/uniconv/u8-strconv-from-enc: Likewise.
33634         * modules/uniconv/u8-strconv-from-locale: Likewise.
33635         * modules/uniconv/u8-strconv-to-enc: Likewise.
33636         * modules/uniconv/u8-strconv-to-locale: Likewise.
33637         * modules/uniconv/u16-conv-from-enc: Likewise.
33638         * modules/uniconv/u16-conv-to-enc: Likewise.
33639         * modules/uniconv/u16-strconv-from-enc: Likewise.
33640         * modules/uniconv/u16-strconv-from-locale: Likewise.
33641         * modules/uniconv/u16-strconv-to-enc: Likewise.
33642         * modules/uniconv/u16-strconv-to-locale: Likewise.
33643         * modules/uniconv/u32-conv-from-enc: Likewise.
33644         * modules/uniconv/u32-conv-to-enc: Likewise.
33645         * modules/uniconv/u32-strconv-from-enc: Likewise.
33646         * modules/uniconv/u32-strconv-from-locale: Likewise.
33647         * modules/uniconv/u32-strconv-to-enc: Likewise.
33648         * modules/uniconv/u32-strconv-to-locale: Likewise.
33649         * modules/unictype/bidicategory-byname: Likewise.
33650         * modules/unictype/bidicategory-name: Likewise.
33651         * modules/unictype/bidicategory-of: Likewise.
33652         * modules/unictype/bidicategory-test: Likewise.
33653         * modules/unictype/block-list: Likewise.
33654         * modules/unictype/block-test: Likewise.
33655         * modules/unictype/category-C: Likewise.
33656         * modules/unictype/category-Cc: Likewise.
33657         * modules/unictype/category-Cf: Likewise.
33658         * modules/unictype/category-Cn: Likewise.
33659         * modules/unictype/category-Co: Likewise.
33660         * modules/unictype/category-Cs: Likewise.
33661         * modules/unictype/category-L: Likewise.
33662         * modules/unictype/category-Ll: Likewise.
33663         * modules/unictype/category-Lm: Likewise.
33664         * modules/unictype/category-Lo: Likewise.
33665         * modules/unictype/category-Lt: Likewise.
33666         * modules/unictype/category-Lu: Likewise.
33667         * modules/unictype/category-M: Likewise.
33668         * modules/unictype/category-Mc: Likewise.
33669         * modules/unictype/category-Me: Likewise.
33670         * modules/unictype/category-Mn: Likewise.
33671         * modules/unictype/category-N: Likewise.
33672         * modules/unictype/category-Nd: Likewise.
33673         * modules/unictype/category-Nl: Likewise.
33674         * modules/unictype/category-No: Likewise.
33675         * modules/unictype/category-P: Likewise.
33676         * modules/unictype/category-Pc: Likewise.
33677         * modules/unictype/category-Pd: Likewise.
33678         * modules/unictype/category-Pe: Likewise.
33679         * modules/unictype/category-Pf: Likewise.
33680         * modules/unictype/category-Pi: Likewise.
33681         * modules/unictype/category-Po: Likewise.
33682         * modules/unictype/category-Ps: Likewise.
33683         * modules/unictype/category-S: Likewise.
33684         * modules/unictype/category-Sc: Likewise.
33685         * modules/unictype/category-Sk: Likewise.
33686         * modules/unictype/category-Sm: Likewise.
33687         * modules/unictype/category-So: Likewise.
33688         * modules/unictype/category-Z: Likewise.
33689         * modules/unictype/category-Zl: Likewise.
33690         * modules/unictype/category-Zp: Likewise.
33691         * modules/unictype/category-Zs: Likewise.
33692         * modules/unictype/category-and: Likewise.
33693         * modules/unictype/category-and-not: Likewise.
33694         * modules/unictype/category-byname: Likewise.
33695         * modules/unictype/category-name: Likewise.
33696         * modules/unictype/category-none: Likewise.
33697         * modules/unictype/category-of: Likewise.
33698         * modules/unictype/category-or: Likewise.
33699         * modules/unictype/category-test: Likewise.
33700         * modules/unictype/combining-class: Likewise.
33701         * modules/unictype/ctype-alnum: Likewise.
33702         * modules/unictype/ctype-alpha: Likewise.
33703         * modules/unictype/ctype-blank: Likewise.
33704         * modules/unictype/ctype-cntrl: Likewise.
33705         * modules/unictype/ctype-digit: Likewise.
33706         * modules/unictype/ctype-graph: Likewise.
33707         * modules/unictype/ctype-lower: Likewise.
33708         * modules/unictype/ctype-print: Likewise.
33709         * modules/unictype/ctype-punct: Likewise.
33710         * modules/unictype/ctype-space: Likewise.
33711         * modules/unictype/ctype-upper: Likewise.
33712         * modules/unictype/ctype-xdigit: Likewise.
33713         * modules/unictype/decimal-digit: Likewise.
33714         * modules/unictype/digit: Likewise.
33715         * modules/unictype/mirror: Likewise.
33716         * modules/unictype/numeric: Likewise.
33717         * modules/unictype/property-alphabetic: Likewise.
33718         * modules/unictype/property-ascii-hex-digit: Likewise.
33719         * modules/unictype/property-bidi-arabic-digit: Likewise.
33720         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33721         * modules/unictype/property-bidi-block-separator: Likewise.
33722         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33723         * modules/unictype/property-bidi-common-separator: Likewise.
33724         * modules/unictype/property-bidi-control: Likewise.
33725         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33726         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33727         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33728         * modules/unictype/property-bidi-european-digit: Likewise.
33729         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33730         * modules/unictype/property-bidi-left-to-right: Likewise.
33731         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33732         * modules/unictype/property-bidi-other-neutral: Likewise.
33733         * modules/unictype/property-bidi-pdf: Likewise.
33734         * modules/unictype/property-bidi-segment-separator: Likewise.
33735         * modules/unictype/property-bidi-whitespace: Likewise.
33736         * modules/unictype/property-byname: Likewise.
33737         * modules/unictype/property-combining: Likewise.
33738         * modules/unictype/property-composite: Likewise.
33739         * modules/unictype/property-currency-symbol: Likewise.
33740         * modules/unictype/property-dash: Likewise.
33741         * modules/unictype/property-decimal-digit: Likewise.
33742         * modules/unictype/property-default-ignorable-code-point: Likewise.
33743         * modules/unictype/property-deprecated: Likewise.
33744         * modules/unictype/property-diacritic: Likewise.
33745         * modules/unictype/property-extender: Likewise.
33746         * modules/unictype/property-format-control: Likewise.
33747         * modules/unictype/property-grapheme-base: Likewise.
33748         * modules/unictype/property-grapheme-extend: Likewise.
33749         * modules/unictype/property-grapheme-link: Likewise.
33750         * modules/unictype/property-hex-digit: Likewise.
33751         * modules/unictype/property-hyphen: Likewise.
33752         * modules/unictype/property-id-continue: Likewise.
33753         * modules/unictype/property-id-start: Likewise.
33754         * modules/unictype/property-ideographic: Likewise.
33755         * modules/unictype/property-ids-binary-operator: Likewise.
33756         * modules/unictype/property-ids-trinary-operator: Likewise.
33757         * modules/unictype/property-ignorable-control: Likewise.
33758         * modules/unictype/property-iso-control: Likewise.
33759         * modules/unictype/property-join-control: Likewise.
33760         * modules/unictype/property-left-of-pair: Likewise.
33761         * modules/unictype/property-line-separator: Likewise.
33762         * modules/unictype/property-logical-order-exception: Likewise.
33763         * modules/unictype/property-lowercase: Likewise.
33764         * modules/unictype/property-math: Likewise.
33765         * modules/unictype/property-non-break: Likewise.
33766         * modules/unictype/property-not-a-character: Likewise.
33767         * modules/unictype/property-numeric: Likewise.
33768         * modules/unictype/property-other-alphabetic: Likewise.
33769         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33770         * modules/unictype/property-other-grapheme-extend: Likewise.
33771         * modules/unictype/property-other-id-continue: Likewise.
33772         * modules/unictype/property-other-id-start: Likewise.
33773         * modules/unictype/property-other-lowercase: Likewise.
33774         * modules/unictype/property-other-math: Likewise.
33775         * modules/unictype/property-other-uppercase: Likewise.
33776         * modules/unictype/property-paired-punctuation: Likewise.
33777         * modules/unictype/property-paragraph-separator: Likewise.
33778         * modules/unictype/property-pattern-syntax: Likewise.
33779         * modules/unictype/property-pattern-white-space: Likewise.
33780         * modules/unictype/property-private-use: Likewise.
33781         * modules/unictype/property-punctuation: Likewise.
33782         * modules/unictype/property-quotation-mark: Likewise.
33783         * modules/unictype/property-radical: Likewise.
33784         * modules/unictype/property-sentence-terminal: Likewise.
33785         * modules/unictype/property-soft-dotted: Likewise.
33786         * modules/unictype/property-space: Likewise.
33787         * modules/unictype/property-terminal-punctuation: Likewise.
33788         * modules/unictype/property-test: Likewise.
33789         * modules/unictype/property-titlecase: Likewise.
33790         * modules/unictype/property-unassigned-code-value: Likewise.
33791         * modules/unictype/property-unified-ideograph: Likewise.
33792         * modules/unictype/property-uppercase: Likewise.
33793         * modules/unictype/property-variation-selector: Likewise.
33794         * modules/unictype/property-white-space: Likewise.
33795         * modules/unictype/property-xid-continue: Likewise.
33796         * modules/unictype/property-xid-start: Likewise.
33797         * modules/unictype/property-zero-width: Likewise.
33798         * modules/unictype/scripts: Likewise.
33799         * modules/unictype/syntax-c-ident: Likewise.
33800         * modules/unictype/syntax-c-whitespace: Likewise.
33801         * modules/unictype/syntax-java-ident: Likewise.
33802         * modules/unictype/syntax-java-whitespace: Likewise.
33803         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33804         * modules/unilbrk/u8-width-linebreaks: Likewise.
33805         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33806         * modules/unilbrk/u16-width-linebreaks: Likewise.
33807         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33808         * modules/unilbrk/u32-width-linebreaks: Likewise.
33809         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33810         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33811         * modules/uniname/uniname: Likewise.
33812         * modules/uninorm/canonical-decomposition: Likewise.
33813         * modules/uninorm/composition: Likewise.
33814         * modules/uninorm/decomposing-form: Likewise.
33815         * modules/uninorm/decomposition: Likewise.
33816         * modules/uninorm/filter: Likewise.
33817         * modules/uninorm/nfc: Likewise.
33818         * modules/uninorm/nfd: Likewise.
33819         * modules/uninorm/nfkc: Likewise.
33820         * modules/uninorm/nfkd: Likewise.
33821         * modules/uninorm/u8-normalize: Likewise.
33822         * modules/uninorm/u8-normcmp: Likewise.
33823         * modules/uninorm/u8-normcoll: Likewise.
33824         * modules/uninorm/u8-normxfrm: Likewise.
33825         * modules/uninorm/u16-normalize: Likewise.
33826         * modules/uninorm/u16-normcmp: Likewise.
33827         * modules/uninorm/u16-normcoll: Likewise.
33828         * modules/uninorm/u16-normxfrm: Likewise.
33829         * modules/uninorm/u32-normalize: Likewise.
33830         * modules/uninorm/u32-normcmp: Likewise.
33831         * modules/uninorm/u32-normcoll: Likewise.
33832         * modules/uninorm/u32-normxfrm: Likewise.
33833         * modules/unistdio/u8-asnprintf: Likewise.
33834         * modules/unistdio/u8-asprintf: Likewise.
33835         * modules/unistdio/u8-snprintf: Likewise.
33836         * modules/unistdio/u8-sprintf: Likewise.
33837         * modules/unistdio/u8-u8-asnprintf: Likewise.
33838         * modules/unistdio/u8-u8-asprintf: Likewise.
33839         * modules/unistdio/u8-u8-snprintf: Likewise.
33840         * modules/unistdio/u8-u8-sprintf: Likewise.
33841         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33842         * modules/unistdio/u8-u8-vasprintf: Likewise.
33843         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33844         * modules/unistdio/u8-u8-vsprintf: Likewise.
33845         * modules/unistdio/u8-vasnprintf: Likewise.
33846         * modules/unistdio/u8-vasprintf: Likewise.
33847         * modules/unistdio/u8-vsnprintf: Likewise.
33848         * modules/unistdio/u8-vsprintf: Likewise.
33849         * modules/unistdio/u16-asnprintf: Likewise.
33850         * modules/unistdio/u16-asprintf: Likewise.
33851         * modules/unistdio/u16-snprintf: Likewise.
33852         * modules/unistdio/u16-sprintf: Likewise.
33853         * modules/unistdio/u16-u16-asnprintf: Likewise.
33854         * modules/unistdio/u16-u16-asprintf: Likewise.
33855         * modules/unistdio/u16-u16-snprintf: Likewise.
33856         * modules/unistdio/u16-u16-sprintf: Likewise.
33857         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33858         * modules/unistdio/u16-u16-vasprintf: Likewise.
33859         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33860         * modules/unistdio/u16-u16-vsprintf: Likewise.
33861         * modules/unistdio/u16-vasnprintf: Likewise.
33862         * modules/unistdio/u16-vasprintf: Likewise.
33863         * modules/unistdio/u16-vsnprintf: Likewise.
33864         * modules/unistdio/u16-vsprintf: Likewise.
33865         * modules/unistdio/u32-asnprintf: Likewise.
33866         * modules/unistdio/u32-asprintf: Likewise.
33867         * modules/unistdio/u32-snprintf: Likewise.
33868         * modules/unistdio/u32-sprintf: Likewise.
33869         * modules/unistdio/u32-u32-asnprintf: Likewise.
33870         * modules/unistdio/u32-u32-asprintf: Likewise.
33871         * modules/unistdio/u32-u32-snprintf: Likewise.
33872         * modules/unistdio/u32-u32-sprintf: Likewise.
33873         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33874         * modules/unistdio/u32-u32-vasprintf: Likewise.
33875         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33876         * modules/unistdio/u32-u32-vsprintf: Likewise.
33877         * modules/unistdio/u32-vasnprintf: Likewise.
33878         * modules/unistdio/u32-vasprintf: Likewise.
33879         * modules/unistdio/u32-vsnprintf: Likewise.
33880         * modules/unistdio/u32-vsprintf: Likewise.
33881         * modules/unistdio/ulc-asnprintf: Likewise.
33882         * modules/unistdio/ulc-asprintf: Likewise.
33883         * modules/unistdio/ulc-fprintf: Likewise.
33884         * modules/unistdio/ulc-snprintf: Likewise.
33885         * modules/unistdio/ulc-sprintf: Likewise.
33886         * modules/unistdio/ulc-vasnprintf: Likewise.
33887         * modules/unistdio/ulc-vasprintf: Likewise.
33888         * modules/unistdio/ulc-vfprintf: Likewise.
33889         * modules/unistdio/ulc-vsnprintf: Likewise.
33890         * modules/unistdio/ulc-vsprintf: Likewise.
33891         * modules/unistr/u8-check: Likewise.
33892         * modules/unistr/u8-chr: Likewise.
33893         * modules/unistr/u8-cmp: Likewise.
33894         * modules/unistr/u8-cmp2: Likewise.
33895         * modules/unistr/u8-cpy: Likewise.
33896         * modules/unistr/u8-cpy-alloc: Likewise.
33897         * modules/unistr/u8-endswith: Likewise.
33898         * modules/unistr/u8-mblen: Likewise.
33899         * modules/unistr/u8-mbsnlen: Likewise.
33900         * modules/unistr/u8-mbtouc: Likewise.
33901         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33902         * modules/unistr/u8-mbtoucr: Likewise.
33903         * modules/unistr/u8-move: Likewise.
33904         * modules/unistr/u8-next: Likewise.
33905         * modules/unistr/u8-prev: Likewise.
33906         * modules/unistr/u8-set: Likewise.
33907         * modules/unistr/u8-startswith: Likewise.
33908         * modules/unistr/u8-stpcpy: Likewise.
33909         * modules/unistr/u8-stpncpy: Likewise.
33910         * modules/unistr/u8-strcat: Likewise.
33911         * modules/unistr/u8-strchr: Likewise.
33912         * modules/unistr/u8-strcmp: Likewise.
33913         * modules/unistr/u8-strcoll: Likewise.
33914         * modules/unistr/u8-strcpy: Likewise.
33915         * modules/unistr/u8-strcspn: Likewise.
33916         * modules/unistr/u8-strdup: Likewise.
33917         * modules/unistr/u8-strlen: Likewise.
33918         * modules/unistr/u8-strmblen: Likewise.
33919         * modules/unistr/u8-strmbtouc: Likewise.
33920         * modules/unistr/u8-strncat: Likewise.
33921         * modules/unistr/u8-strncmp: Likewise.
33922         * modules/unistr/u8-strncpy: Likewise.
33923         * modules/unistr/u8-strnlen: Likewise.
33924         * modules/unistr/u8-strpbrk: Likewise.
33925         * modules/unistr/u8-strrchr: Likewise.
33926         * modules/unistr/u8-strspn: Likewise.
33927         * modules/unistr/u8-strstr: Likewise.
33928         * modules/unistr/u8-strtok: Likewise.
33929         * modules/unistr/u8-to-u16: Likewise.
33930         * modules/unistr/u8-to-u32: Likewise.
33931         * modules/unistr/u8-uctomb: Likewise.
33932         * modules/unistr/u16-check: Likewise.
33933         * modules/unistr/u16-chr: Likewise.
33934         * modules/unistr/u16-cmp: Likewise.
33935         * modules/unistr/u16-cmp2: Likewise.
33936         * modules/unistr/u16-cpy: Likewise.
33937         * modules/unistr/u16-cpy-alloc: Likewise.
33938         * modules/unistr/u16-endswith: Likewise.
33939         * modules/unistr/u16-mblen: Likewise.
33940         * modules/unistr/u16-mbsnlen: Likewise.
33941         * modules/unistr/u16-mbtouc: Likewise.
33942         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33943         * modules/unistr/u16-mbtoucr: Likewise.
33944         * modules/unistr/u16-move: Likewise.
33945         * modules/unistr/u16-next: Likewise.
33946         * modules/unistr/u16-prev: Likewise.
33947         * modules/unistr/u16-set: Likewise.
33948         * modules/unistr/u16-startswith: Likewise.
33949         * modules/unistr/u16-stpcpy: Likewise.
33950         * modules/unistr/u16-stpncpy: Likewise.
33951         * modules/unistr/u16-strcat: Likewise.
33952         * modules/unistr/u16-strchr: Likewise.
33953         * modules/unistr/u16-strcmp: Likewise.
33954         * modules/unistr/u16-strcoll: Likewise.
33955         * modules/unistr/u16-strcpy: Likewise.
33956         * modules/unistr/u16-strcspn: Likewise.
33957         * modules/unistr/u16-strdup: Likewise.
33958         * modules/unistr/u16-strlen: Likewise.
33959         * modules/unistr/u16-strmblen: Likewise.
33960         * modules/unistr/u16-strmbtouc: Likewise.
33961         * modules/unistr/u16-strncat: Likewise.
33962         * modules/unistr/u16-strncmp: Likewise.
33963         * modules/unistr/u16-strncpy: Likewise.
33964         * modules/unistr/u16-strnlen: Likewise.
33965         * modules/unistr/u16-strpbrk: Likewise.
33966         * modules/unistr/u16-strrchr: Likewise.
33967         * modules/unistr/u16-strspn: Likewise.
33968         * modules/unistr/u16-strstr: Likewise.
33969         * modules/unistr/u16-strtok: Likewise.
33970         * modules/unistr/u16-to-u32: Likewise.
33971         * modules/unistr/u16-to-u8: Likewise.
33972         * modules/unistr/u16-uctomb: Likewise.
33973         * modules/unistr/u32-check: Likewise.
33974         * modules/unistr/u32-chr: Likewise.
33975         * modules/unistr/u32-cmp: Likewise.
33976         * modules/unistr/u32-cmp2: Likewise.
33977         * modules/unistr/u32-cpy: Likewise.
33978         * modules/unistr/u32-cpy-alloc: Likewise.
33979         * modules/unistr/u32-endswith: Likewise.
33980         * modules/unistr/u32-mblen: Likewise.
33981         * modules/unistr/u32-mbsnlen: Likewise.
33982         * modules/unistr/u32-mbtouc: Likewise.
33983         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33984         * modules/unistr/u32-mbtoucr: Likewise.
33985         * modules/unistr/u32-move: Likewise.
33986         * modules/unistr/u32-next: Likewise.
33987         * modules/unistr/u32-prev: Likewise.
33988         * modules/unistr/u32-set: Likewise.
33989         * modules/unistr/u32-startswith: Likewise.
33990         * modules/unistr/u32-stpcpy: Likewise.
33991         * modules/unistr/u32-stpncpy: Likewise.
33992         * modules/unistr/u32-strcat: Likewise.
33993         * modules/unistr/u32-strchr: Likewise.
33994         * modules/unistr/u32-strcmp: Likewise.
33995         * modules/unistr/u32-strcoll: Likewise.
33996         * modules/unistr/u32-strcpy: Likewise.
33997         * modules/unistr/u32-strcspn: Likewise.
33998         * modules/unistr/u32-strdup: Likewise.
33999         * modules/unistr/u32-strlen: Likewise.
34000         * modules/unistr/u32-strmblen: Likewise.
34001         * modules/unistr/u32-strmbtouc: Likewise.
34002         * modules/unistr/u32-strncat: Likewise.
34003         * modules/unistr/u32-strncmp: Likewise.
34004         * modules/unistr/u32-strncpy: Likewise.
34005         * modules/unistr/u32-strnlen: Likewise.
34006         * modules/unistr/u32-strpbrk: Likewise.
34007         * modules/unistr/u32-strrchr: Likewise.
34008         * modules/unistr/u32-strspn: Likewise.
34009         * modules/unistr/u32-strstr: Likewise.
34010         * modules/unistr/u32-strtok: Likewise.
34011         * modules/unistr/u32-to-u16: Likewise.
34012         * modules/unistr/u32-to-u8: Likewise.
34013         * modules/unistr/u32-uctomb: Likewise.
34014         * modules/uniwbrk/u8-wordbreaks: Likewise.
34015         * modules/uniwbrk/u16-wordbreaks: Likewise.
34016         * modules/uniwbrk/u32-wordbreaks: Likewise.
34017         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34018         * modules/uniwbrk/wordbreak-property: Likewise.
34019         * modules/uniwidth/u8-strwidth: Likewise.
34020         * modules/uniwidth/u8-width: Likewise.
34021         * modules/uniwidth/u16-strwidth: Likewise.
34022         * modules/uniwidth/u16-width: Likewise.
34023         * modules/uniwidth/u32-strwidth: Likewise.
34024         * modules/uniwidth/u32-width: Likewise.
34025         * modules/uniwidth/width: Likewise.
34026         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34027         with $(LIBUNISTRING).
34028         * modules/unicase/ignorable-tests: Likewise.
34029         * modules/unicase/locale-language-tests: Likewise.
34030         * modules/unicase/tolower-tests: Likewise.
34031         * modules/unicase/totitle-tests: Likewise.
34032         * modules/unicase/toupper-tests: Likewise.
34033         * modules/unicase/u8-casecmp-tests: Likewise.
34034         * modules/unicase/u8-casecoll-tests: Likewise.
34035         * modules/unicase/u8-casefold-tests: Likewise.
34036         * modules/unicase/u8-is-cased-tests: Likewise.
34037         * modules/unicase/u8-is-casefolded-tests: Likewise.
34038         * modules/unicase/u8-is-lowercase-tests: Likewise.
34039         * modules/unicase/u8-is-titlecase-tests: Likewise.
34040         * modules/unicase/u8-is-uppercase-tests: Likewise.
34041         * modules/unicase/u8-tolower-tests: Likewise.
34042         * modules/unicase/u8-totitle-tests: Likewise.
34043         * modules/unicase/u8-toupper-tests: Likewise.
34044         * modules/unicase/u16-casecmp-tests: Likewise.
34045         * modules/unicase/u16-casecoll-tests: Likewise.
34046         * modules/unicase/u16-casefold-tests: Likewise.
34047         * modules/unicase/u16-is-cased-tests: Likewise.
34048         * modules/unicase/u16-is-casefolded-tests: Likewise.
34049         * modules/unicase/u16-is-lowercase-tests: Likewise.
34050         * modules/unicase/u16-is-titlecase-tests: Likewise.
34051         * modules/unicase/u16-is-uppercase-tests: Likewise.
34052         * modules/unicase/u16-tolower-tests: Likewise.
34053         * modules/unicase/u16-totitle-tests: Likewise.
34054         * modules/unicase/u16-toupper-tests: Likewise.
34055         * modules/unicase/u32-casecmp-tests: Likewise.
34056         * modules/unicase/u32-casecoll-tests: Likewise.
34057         * modules/unicase/u32-casefold-tests: Likewise.
34058         * modules/unicase/u32-is-cased-tests: Likewise.
34059         * modules/unicase/u32-is-casefolded-tests: Likewise.
34060         * modules/unicase/u32-is-lowercase-tests: Likewise.
34061         * modules/unicase/u32-is-titlecase-tests: Likewise.
34062         * modules/unicase/u32-is-uppercase-tests: Likewise.
34063         * modules/unicase/u32-tolower-tests: Likewise.
34064         * modules/unicase/u32-totitle-tests: Likewise.
34065         * modules/unicase/u32-toupper-tests: Likewise.
34066         * modules/unicase/ulc-casecmp-tests: Likewise.
34067         * modules/unicase/ulc-casecoll-tests: Likewise.
34068         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34069         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34070         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34071         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34072         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34073         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34074         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34075         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34076         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34077         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34078         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34079         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34080         * modules/unictype/bidicategory-byname-tests: Likewise.
34081         * modules/unictype/bidicategory-name-tests: Likewise.
34082         * modules/unictype/bidicategory-of-tests: Likewise.
34083         * modules/unictype/bidicategory-test-tests: Likewise.
34084         * modules/unictype/block-list-tests: Likewise.
34085         * modules/unictype/block-of-tests: Likewise.
34086         * modules/unictype/block-test-tests: Likewise.
34087         * modules/unictype/category-C-tests: Likewise.
34088         * modules/unictype/category-Cc-tests: Likewise.
34089         * modules/unictype/category-Cf-tests: Likewise.
34090         * modules/unictype/category-Cn-tests: Likewise.
34091         * modules/unictype/category-Co-tests: Likewise.
34092         * modules/unictype/category-Cs-tests: Likewise.
34093         * modules/unictype/category-L-tests: Likewise.
34094         * modules/unictype/category-Ll-tests: Likewise.
34095         * modules/unictype/category-Lm-tests: Likewise.
34096         * modules/unictype/category-Lo-tests: Likewise.
34097         * modules/unictype/category-Lt-tests: Likewise.
34098         * modules/unictype/category-Lu-tests: Likewise.
34099         * modules/unictype/category-M-tests: Likewise.
34100         * modules/unictype/category-Mc-tests: Likewise.
34101         * modules/unictype/category-Me-tests: Likewise.
34102         * modules/unictype/category-Mn-tests: Likewise.
34103         * modules/unictype/category-N-tests: Likewise.
34104         * modules/unictype/category-Nd-tests: Likewise.
34105         * modules/unictype/category-Nl-tests: Likewise.
34106         * modules/unictype/category-No-tests: Likewise.
34107         * modules/unictype/category-P-tests: Likewise.
34108         * modules/unictype/category-Pc-tests: Likewise.
34109         * modules/unictype/category-Pd-tests: Likewise.
34110         * modules/unictype/category-Pe-tests: Likewise.
34111         * modules/unictype/category-Pf-tests: Likewise.
34112         * modules/unictype/category-Pi-tests: Likewise.
34113         * modules/unictype/category-Po-tests: Likewise.
34114         * modules/unictype/category-Ps-tests: Likewise.
34115         * modules/unictype/category-S-tests: Likewise.
34116         * modules/unictype/category-Sc-tests: Likewise.
34117         * modules/unictype/category-Sk-tests: Likewise.
34118         * modules/unictype/category-Sm-tests: Likewise.
34119         * modules/unictype/category-So-tests: Likewise.
34120         * modules/unictype/category-Z-tests: Likewise.
34121         * modules/unictype/category-Zl-tests: Likewise.
34122         * modules/unictype/category-Zp-tests: Likewise.
34123         * modules/unictype/category-Zs-tests: Likewise.
34124         * modules/unictype/category-and-not-tests: Likewise.
34125         * modules/unictype/category-and-tests: Likewise.
34126         * modules/unictype/category-byname-tests: Likewise.
34127         * modules/unictype/category-name-tests: Likewise.
34128         * modules/unictype/category-none-tests: Likewise.
34129         * modules/unictype/category-of-tests: Likewise.
34130         * modules/unictype/category-or-tests: Likewise.
34131         * modules/unictype/category-test-withtable-tests: Likewise.
34132         * modules/unictype/combining-class-tests: Likewise.
34133         * modules/unictype/ctype-alnum-tests: Likewise.
34134         * modules/unictype/ctype-alpha-tests: Likewise.
34135         * modules/unictype/ctype-blank-tests: Likewise.
34136         * modules/unictype/ctype-cntrl-tests: Likewise.
34137         * modules/unictype/ctype-digit-tests: Likewise.
34138         * modules/unictype/ctype-graph-tests: Likewise.
34139         * modules/unictype/ctype-lower-tests: Likewise.
34140         * modules/unictype/ctype-print-tests: Likewise.
34141         * modules/unictype/ctype-punct-tests: Likewise.
34142         * modules/unictype/ctype-space-tests: Likewise.
34143         * modules/unictype/ctype-upper-tests: Likewise.
34144         * modules/unictype/ctype-xdigit-tests: Likewise.
34145         * modules/unictype/decimal-digit-tests: Likewise.
34146         * modules/unictype/digit-tests: Likewise.
34147         * modules/unictype/mirror-tests: Likewise.
34148         * modules/unictype/numeric-tests: Likewise.
34149         * modules/unictype/property-alphabetic-tests: Likewise.
34150         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34151         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34152         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34153         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34154         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34155         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34156         * modules/unictype/property-bidi-control-tests: Likewise.
34157         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34158         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34159         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34160         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34161         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34162         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34163         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34164         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34165         * modules/unictype/property-bidi-pdf-tests: Likewise.
34166         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34167         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34168         * modules/unictype/property-byname-tests: Likewise.
34169         * modules/unictype/property-combining-tests: Likewise.
34170         * modules/unictype/property-composite-tests: Likewise.
34171         * modules/unictype/property-currency-symbol-tests: Likewise.
34172         * modules/unictype/property-dash-tests: Likewise.
34173         * modules/unictype/property-decimal-digit-tests: Likewise.
34174         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34175         * modules/unictype/property-deprecated-tests: Likewise.
34176         * modules/unictype/property-diacritic-tests: Likewise.
34177         * modules/unictype/property-extender-tests: Likewise.
34178         * modules/unictype/property-format-control-tests: Likewise.
34179         * modules/unictype/property-grapheme-base-tests: Likewise.
34180         * modules/unictype/property-grapheme-extend-tests: Likewise.
34181         * modules/unictype/property-grapheme-link-tests: Likewise.
34182         * modules/unictype/property-hex-digit-tests: Likewise.
34183         * modules/unictype/property-hyphen-tests: Likewise.
34184         * modules/unictype/property-id-continue-tests: Likewise.
34185         * modules/unictype/property-id-start-tests: Likewise.
34186         * modules/unictype/property-ideographic-tests: Likewise.
34187         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34188         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34189         * modules/unictype/property-ignorable-control-tests: Likewise.
34190         * modules/unictype/property-iso-control-tests: Likewise.
34191         * modules/unictype/property-join-control-tests: Likewise.
34192         * modules/unictype/property-left-of-pair-tests: Likewise.
34193         * modules/unictype/property-line-separator-tests: Likewise.
34194         * modules/unictype/property-logical-order-exception-tests: Likewise.
34195         * modules/unictype/property-lowercase-tests: Likewise.
34196         * modules/unictype/property-math-tests: Likewise.
34197         * modules/unictype/property-non-break-tests: Likewise.
34198         * modules/unictype/property-not-a-character-tests: Likewise.
34199         * modules/unictype/property-numeric-tests: Likewise.
34200         * modules/unictype/property-other-alphabetic-tests: Likewise.
34201         * modules/unictype/property-other-default-ignorable-code-point-tests:
34202         Likewise.
34203         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34204         * modules/unictype/property-other-id-continue-tests: Likewise.
34205         * modules/unictype/property-other-id-start-tests: Likewise.
34206         * modules/unictype/property-other-lowercase-tests: Likewise.
34207         * modules/unictype/property-other-math-tests: Likewise.
34208         * modules/unictype/property-other-uppercase-tests: Likewise.
34209         * modules/unictype/property-paired-punctuation-tests: Likewise.
34210         * modules/unictype/property-paragraph-separator-tests: Likewise.
34211         * modules/unictype/property-pattern-syntax-tests: Likewise.
34212         * modules/unictype/property-pattern-white-space-tests: Likewise.
34213         * modules/unictype/property-private-use-tests: Likewise.
34214         * modules/unictype/property-punctuation-tests: Likewise.
34215         * modules/unictype/property-quotation-mark-tests: Likewise.
34216         * modules/unictype/property-radical-tests: Likewise.
34217         * modules/unictype/property-sentence-terminal-tests: Likewise.
34218         * modules/unictype/property-soft-dotted-tests: Likewise.
34219         * modules/unictype/property-space-tests: Likewise.
34220         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34221         * modules/unictype/property-test-tests: Likewise.
34222         * modules/unictype/property-titlecase-tests: Likewise.
34223         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34224         * modules/unictype/property-unified-ideograph-tests: Likewise.
34225         * modules/unictype/property-uppercase-tests: Likewise.
34226         * modules/unictype/property-variation-selector-tests: Likewise.
34227         * modules/unictype/property-white-space-tests: Likewise.
34228         * modules/unictype/property-xid-continue-tests: Likewise.
34229         * modules/unictype/property-xid-start-tests: Likewise.
34230         * modules/unictype/property-zero-width-tests: Likewise.
34231         * modules/unictype/scripts-tests: Likewise.
34232         * modules/unictype/syntax-c-ident-tests: Likewise.
34233         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34234         * modules/unictype/syntax-java-ident-tests: Likewise.
34235         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34236         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34237         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34238         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34239         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34240         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34241         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34242         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34243         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34244         * modules/uniname/uniname-tests: Likewise.
34245         * modules/uninorm/canonical-decomposition-tests: Likewise.
34246         * modules/uninorm/compat-decomposition-tests: Likewise.
34247         * modules/uninorm/composition-tests: Likewise.
34248         * modules/uninorm/decomposing-form-tests: Likewise.
34249         * modules/uninorm/decomposition-tests: Likewise.
34250         * modules/uninorm/filter-tests: Likewise.
34251         * modules/uninorm/nfc-tests: Likewise.
34252         * modules/uninorm/nfd-tests: Likewise.
34253         * modules/uninorm/nfkc-tests: Likewise.
34254         * modules/uninorm/nfkd-tests: Likewise.
34255         * modules/uninorm/u8-normcmp-tests: Likewise.
34256         * modules/uninorm/u8-normcoll-tests: Likewise.
34257         * modules/uninorm/u16-normcmp-tests: Likewise.
34258         * modules/uninorm/u16-normcoll-tests: Likewise.
34259         * modules/uninorm/u32-normcmp-tests: Likewise.
34260         * modules/uninorm/u32-normcoll-tests: Likewise.
34261         * modules/unistdio/u8-asnprintf-tests: Likewise.
34262         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34263         * modules/unistdio/u8-vasprintf-tests: Likewise.
34264         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34265         * modules/unistdio/u8-vsprintf-tests: Likewise.
34266         * modules/unistdio/u16-asnprintf-tests: Likewise.
34267         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34268         * modules/unistdio/u16-vasprintf-tests: Likewise.
34269         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34270         * modules/unistdio/u16-vsprintf-tests: Likewise.
34271         * modules/unistdio/u32-asnprintf-tests: Likewise.
34272         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34273         * modules/unistdio/u32-vasprintf-tests: Likewise.
34274         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34275         * modules/unistdio/u32-vsprintf-tests: Likewise.
34276         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34277         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34278         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34279         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34280         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34281         * modules/unistr/u8-check-tests: Likewise.
34282         * modules/unistr/u8-chr-tests: Likewise.
34283         * modules/unistr/u8-cmp-tests: Likewise.
34284         * modules/unistr/u8-cmp2-tests: Likewise.
34285         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34286         * modules/unistr/u8-cpy-tests: Likewise.
34287         * modules/unistr/u8-mblen-tests: Likewise.
34288         * modules/unistr/u8-mbsnlen-tests: Likewise.
34289         * modules/unistr/u8-mbtouc-tests: Likewise.
34290         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34291         * modules/unistr/u8-mbtoucr-tests: Likewise.
34292         * modules/unistr/u8-move-tests: Likewise.
34293         * modules/unistr/u8-next-tests: Likewise.
34294         * modules/unistr/u8-prev-tests: Likewise.
34295         * modules/unistr/u8-set-tests: Likewise.
34296         * modules/unistr/u8-stpcpy-tests: Likewise.
34297         * modules/unistr/u8-stpncpy-tests: Likewise.
34298         * modules/unistr/u8-strcat-tests: Likewise.
34299         * modules/unistr/u8-strcmp-tests: Likewise.
34300         * modules/unistr/u8-strcoll-tests: Likewise.
34301         * modules/unistr/u8-strcpy-tests: Likewise.
34302         * modules/unistr/u8-strdup-tests: Likewise.
34303         * modules/unistr/u8-strlen-tests: Likewise.
34304         * modules/unistr/u8-strmblen-tests: Likewise.
34305         * modules/unistr/u8-strmbtouc-tests: Likewise.
34306         * modules/unistr/u8-strncat-tests: Likewise.
34307         * modules/unistr/u8-strncmp-tests: Likewise.
34308         * modules/unistr/u8-strncpy-tests: Likewise.
34309         * modules/unistr/u8-strnlen-tests: Likewise.
34310         * modules/unistr/u8-to-u16-tests: Likewise.
34311         * modules/unistr/u8-to-u32-tests: Likewise.
34312         * modules/unistr/u8-uctomb-tests: Likewise.
34313         * modules/unistr/u16-check-tests: Likewise.
34314         * modules/unistr/u16-chr-tests: Likewise.
34315         * modules/unistr/u16-cmp-tests: Likewise.
34316         * modules/unistr/u16-cmp2-tests: Likewise.
34317         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34318         * modules/unistr/u16-cpy-tests: Likewise.
34319         * modules/unistr/u16-mblen-tests: Likewise.
34320         * modules/unistr/u16-mbsnlen-tests: Likewise.
34321         * modules/unistr/u16-mbtouc-tests: Likewise.
34322         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34323         * modules/unistr/u16-mbtoucr-tests: Likewise.
34324         * modules/unistr/u16-move-tests: Likewise.
34325         * modules/unistr/u16-next-tests: Likewise.
34326         * modules/unistr/u16-prev-tests: Likewise.
34327         * modules/unistr/u16-set-tests: Likewise.
34328         * modules/unistr/u16-stpcpy-tests: Likewise.
34329         * modules/unistr/u16-stpncpy-tests: Likewise.
34330         * modules/unistr/u16-strcat-tests: Likewise.
34331         * modules/unistr/u16-strcmp-tests: Likewise.
34332         * modules/unistr/u16-strcoll-tests: Likewise.
34333         * modules/unistr/u16-strcpy-tests: Likewise.
34334         * modules/unistr/u16-strdup-tests: Likewise.
34335         * modules/unistr/u16-strlen-tests: Likewise.
34336         * modules/unistr/u16-strmblen-tests: Likewise.
34337         * modules/unistr/u16-strmbtouc-tests: Likewise.
34338         * modules/unistr/u16-strncat-tests: Likewise.
34339         * modules/unistr/u16-strncmp-tests: Likewise.
34340         * modules/unistr/u16-strncpy-tests: Likewise.
34341         * modules/unistr/u16-strnlen-tests: Likewise.
34342         * modules/unistr/u16-to-u32-tests: Likewise.
34343         * modules/unistr/u16-to-u8-tests: Likewise.
34344         * modules/unistr/u16-uctomb-tests: Likewise.
34345         * modules/unistr/u32-check-tests: Likewise.
34346         * modules/unistr/u32-chr-tests: Likewise.
34347         * modules/unistr/u32-cmp-tests: Likewise.
34348         * modules/unistr/u32-cmp2-tests: Likewise.
34349         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34350         * modules/unistr/u32-cpy-tests: Likewise.
34351         * modules/unistr/u32-mblen-tests: Likewise.
34352         * modules/unistr/u32-mbsnlen-tests: Likewise.
34353         * modules/unistr/u32-mbtouc-tests: Likewise.
34354         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34355         * modules/unistr/u32-mbtoucr-tests: Likewise.
34356         * modules/unistr/u32-move-tests: Likewise.
34357         * modules/unistr/u32-next-tests: Likewise.
34358         * modules/unistr/u32-prev-tests: Likewise.
34359         * modules/unistr/u32-set-tests: Likewise.
34360         * modules/unistr/u32-stpcpy-tests: Likewise.
34361         * modules/unistr/u32-stpncpy-tests: Likewise.
34362         * modules/unistr/u32-strcat-tests: Likewise.
34363         * modules/unistr/u32-strcmp-tests: Likewise.
34364         * modules/unistr/u32-strcoll-tests: Likewise.
34365         * modules/unistr/u32-strcpy-tests: Likewise.
34366         * modules/unistr/u32-strdup-tests: Likewise.
34367         * modules/unistr/u32-strlen-tests: Likewise.
34368         * modules/unistr/u32-strmblen-tests: Likewise.
34369         * modules/unistr/u32-strmbtouc-tests: Likewise.
34370         * modules/unistr/u32-strncat-tests: Likewise.
34371         * modules/unistr/u32-strncmp-tests: Likewise.
34372         * modules/unistr/u32-strncpy-tests: Likewise.
34373         * modules/unistr/u32-strnlen-tests: Likewise.
34374         * modules/unistr/u32-to-u16-tests: Likewise.
34375         * modules/unistr/u32-to-u8-tests: Likewise.
34376         * modules/unistr/u32-uctomb-tests: Likewise.
34377         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34378         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34379         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34380         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34381         * modules/uniwidth/u8-strwidth-tests: Likewise.
34382         * modules/uniwidth/u8-width-tests: Likewise.
34383         * modules/uniwidth/u16-strwidth-tests: Likewise.
34384         * modules/uniwidth/u16-width-tests: Likewise.
34385         * modules/uniwidth/u32-strwidth-tests: Likewise.
34386         * modules/uniwidth/u32-width-tests: Likewise.
34387         * modules/uniwidth/width-tests: Likewise.
34388
34389 2010-05-18  Richard Jones  <rjones@redhat.com>
34390
34391         doc: users.txt: list hivex
34392         * users.txt: Add hivex.
34393
34394 2010-05-18  Richard Jones  <rjones@redhat.com>
34395
34396         doc: users.txt: list febootstrap
34397         * users.txt: Add febootstrap.
34398
34399 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34400
34401         bootstrap: fix an error when gnulib is not used as a git submodule
34402         * build-aux/bootstrap (gnulib_path): If its length is zero then
34403         assign "gnulib" to it.
34404         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34405
34406 2010-05-16  Bruno Haible  <bruno@clisp.org>
34407
34408         Avoid autoconf warnings about AM_ICONV.
34409         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34410         2.64.
34411
34412 2010-05-16  Bruno Haible  <bruno@clisp.org>
34413
34414         absolute-header: Make the macro usable in more situations.
34415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34416         from gl_ABSOLUTE_HEADER.
34417         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34418
34419 2010-05-16  James Youngman  <jay@gnu.org>
34420
34421         doc: update users.txt
34422         * users.txt: Add CSSC.
34423
34424 2010-05-16  Jim Meyering  <meyering@redhat.com>
34425
34426         init.sh: fix an error in the previous change; add more comments
34427         * tests/init.sh: Compare exit code in loop against 9, not 2.
34428         Patch by Bruno Haible.
34429         Make the two tests more similar by adding an empty "then" clause.
34430         Add comments.
34431
34432         init.sh: avoid unnecessary shell re-exec
34433         * tests/init.sh: Improve the re-exec-required check to first test the
34434         current shell.  If it passes the test, do not search for a shell that
34435         does pass, and do not re-exec.  This test is particularly contorted to
34436         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34437         of $(...) evokes a syntax error and causes immediate shell exit with
34438         status 2.  Bruno Haible reported that the re-exec made it impossible
34439         to single-step through any init.sh-using script.
34440
34441 2010-05-16  Bruno Haible  <bruno@clisp.org>
34442
34443         Fix collision between gnulib's and libintl's printf replacements.
34444         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34445         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34446         (printf): When using GNU C, map the __printf__ function to rpl_printf
34447         via __asm__. When not using GNU C, define rpl_printf instead of
34448         __printf__.
34449         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34450         commit.
34451         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34452         commit.
34453         * m4/asm-underscore.m4: New file.
34454         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34455         * modules/stdio (Files): Add m4/asm-underscore.m4.
34456         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34457         Reported by Ben Pfaff.
34458
34459 2010-05-16  Bruno Haible  <bruno@clisp.org>
34460
34461         verify: Avoid skipping the test on openSUSE 11.0.
34462         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34463
34464 2010-05-13  Bruno Haible  <bruno@clisp.org>
34465
34466         Avoid useless warnings from G++.
34467         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34468         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34469         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34470
34471 2010-05-11  Jim Meyering  <meyering@redhat.com>
34472
34473         maint.mk: tweak preceding change
34474         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34475         regexps tighter by anchoring at EOL, and make the new group "shy"
34476         for slightly decreased overhead.
34477
34478 2010-05-11  Eric Blake  <eblake@redhat.com>
34479
34480         maint.mk: gnulib doesn't guarantee NSIG
34481         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34482
34483 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34484
34485         test-pwrite.c: Remove unused variable declaration.
34486         * tests/test-pwrite.c (main): Remove read_buf declaration.
34487
34488         Remove useless test-pwrite.sh file.
34489         * tests/test-pwrite.sh: Delete file.
34490         * modules/pwrite-tests: Remove references.
34491         Reported by Bruno Haible.
34492
34493 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34494
34495         init.sh: fix a typo
34496         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34497
34498 2010-05-10  Jim Meyering  <meyering@redhat.com>
34499
34500         maint.mk: avoid using a temporary file in the always-defined-macros check
34501         * top/maint.mk (.re-defmac): Remove rule.
34502         (gl_trap_): Remove definition.
34503         (sc_prohibit_always-defined_macros): Rewrite not to create and
34504         depend on a temporary file.  Instead, depend on GNU grep's ability
34505         to read a list of regular expressions from stdin when given "-f -".
34506
34507 2010-05-09  Bruno Haible  <bruno@clisp.org>
34508
34509         Update to GNU gettext 0.18, part 1.
34510         * m4/gettext.m4: Update to GNU gettext 0.18.
34511         * m4/intl.m4: Likewise.
34512         * m4/po.m4: Likewise.
34513         * modules/gettext (Files): Add m4/fcntl-o.m4.
34514         (configure.ac): Require gettext infrastructure from version 0.18.
34515
34516 2010-05-09  Jim Meyering  <meyering@redhat.com>
34517
34518         init.sh: enable MALLOC_PERTURB_
34519         * tests/init.sh: Enable glibc's malloc-perturbing option.
34520
34521         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34522         With my recent change in init.sh from the two-line form:
34523             -#   : ${srcdir=.}
34524             -#   . "$srcdir/init.sh"; path_prepend_ .
34525             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34526         I noticed that using the one-line form would cause this test
34527         to fail with a false-positive, or to stop working altogether,
34528         depending on whether help-version changed or all the tests did.
34529         * top/maint.mk (_hv_regex): Remove this definition.
34530         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34531         (_hv_regex_strong): Use a stronger regex to check for conformance.
34532         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34533         Give a separate diagnostic for lack of conforming use.
34534
34535         maint.mk: prohibit definition of symbols defined by gnulib
34536         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34537         definition of symbols defined by gnulib.
34538
34539 2010-05-09  Bruno Haible  <bruno@clisp.org>
34540
34541         acl: Avoid test failure on Cygwin-hosted mingw.
34542         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34543
34544 2010-05-09  Bruno Haible  <bruno@clisp.org>
34545
34546         error: Use system's fcntl function.
34547         * lib/error.c (fcntl): Undefine.
34548
34549 2010-05-09  Jim Meyering  <meyering@redhat.com>
34550
34551         verify: adjust formatting to be more consistent
34552         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34553         argument-list '('s, and after one comma.
34554
34555 2010-05-09  Bruno Haible  <bruno@clisp.org>
34556
34557         error: More reliable output on mingw.
34558         * lib/error.c: Include <windows.h>.
34559         (is_open): New function.
34560         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34561         defined.
34562
34563 2010-05-09  Bruno Haible  <bruno@clisp.org>
34564
34565         vasnprintf: Fix syntax errors in libintl build on mingw.
34566         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34567         pad_ourselves and prec_ourselves after use.
34568
34569 2010-05-08  Bruno Haible  <bruno@clisp.org>
34570
34571         * lib/config.charset: Update comments for Cygwin 1.7.
34572         * lib/localcharset.c: Likewise.
34573
34574 2010-05-07  Jim Meyering  <meyering@redhat.com>
34575
34576         init.sh: improve comments
34577         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34578         . "${srcdir=.}/init.sh"; path_prepend_ .
34579         Add a note about path_prepend_ and the alternative of using
34580         TESTS_ENVIRONMENT.
34581
34582 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34583
34584         exclude: Unescape hashed patterns in wildcard mode.
34585         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34586         to the hash list.
34587         * tests/test-exclude8.sh: New test case.
34588         * modules/exclude-tests: Add new test.
34589
34590 2010-05-05  Eric Blake  <eblake@redhat.com>
34591
34592         verify: automate tests
34593         * modules/verify-tests: New module.
34594         * tests/test-verify.sh: New file.
34595         * tests/test-verify.c: Guard each negative test with a unique id.
34596         Also avoid warning about unused left hand of comma expressions.
34597
34598 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34599
34600         Further improvements to verify.h, suggested by Eric Blake.
34601         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34602         the GL_* versions, to avoid collision with OpenGL.
34603         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34604         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34605         than testing merely whether it's defined.
34606
34607         Modify verify.h to pacify gcc -Wredundant_decls.
34608         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34609         These use the prefix "GL_" since they're likely to be useful elsewhere.
34610         We may need to break them out into a different .h file.
34611         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34612         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34613         of verify_function__.
34614
34615 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34616
34617         Tests for module pwrite.
34618         * modules/pwrite-tests: New file.
34619         * tests/test-pwrite.sh: New file.
34620         * tests/test-pwrite.c: New file.
34621
34622         New module pwrite.
34623         * lib/unistd.in.h (pwrite): New declaration.
34624         * lib/pwrite.c: New file, from glibc with modifications.
34625         * m4/pwrite.m4: New file.
34626         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34627         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34628         REPLACE_PWRITE.
34629         * modules/pwrite: New file.
34630         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34631         REPLACE_PWRITE.
34632         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34633         * doc/posix-functions/pwrite.texi: Mention the new module.
34634
34635 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34636
34637         pread: Update documentation.
34638         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34639
34640 2010-05-04  Eric Blake  <eblake@redhat.com>
34641
34642         docs: update cygwin progress
34643         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34644         this bug.
34645         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34646         Added in cygwin 1.7.2.
34647         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34648         Likewise.
34649         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34650         Likewise.
34651         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34652         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34653         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34654         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34655         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34656         Mention nproc module.
34657         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34658         bug in cygwin 1.7.5 addition.
34659         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34660         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34661         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34662         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34663         1.7.5.
34664         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34665         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34666         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34667         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34668         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34669         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34670         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34671         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34672         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34673         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34674         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34675         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34676         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34677         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34678         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34679         Likewise.
34680         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34681         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34682         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34683         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34684         Likewise.
34685         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34686         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34687         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34688         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34689         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34690         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34691         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34692         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34693         Likewise.
34694         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34695         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34696         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34697         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34698         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34699         Likewise.
34700         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34701         Likewise.
34702         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34703         Likewise.
34704         * doc/glibc-functions/xdrrec_endofrecord.texi
34705         (xdrrec_endofrecord): Likewise.
34706         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34707         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34708         Likewise.
34709         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34710         Likewise.
34711
34712 2010-05-04  Jim Meyering  <meyering@redhat.com>
34713
34714         gendocs.sh: make its "-s FILE" option more useful
34715         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34716         $PACKAGE to reflect the probably-different basename of "FILE".
34717
34718 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34719
34720         bootstrap: don't ignore download_po_files failure
34721         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34722         failure.
34723
34724 2010-05-03  Jim Meyering  <meyering@redhat.com>
34725
34726         maint.mk: allow to pass options to gendocs.sh
34727         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34728         (gendocs_options_): New overridable variable.
34729
34730         gnu-web-doc-update: don't ignore configure or build failure
34731         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34732
34733         announce-gen: backslash-escape '@'s in --help output
34734         * build-aux/announce-gen: Fix syntax errors.
34735
34736         maint.mk, announce-gen: allow project-specific announcement mail headers
34737         * top/maint.mk (translation_project_): Define default.
34738         (announcement_Cc_, announcement_mail_headers_): Likewise.
34739         (announcement): Invoke announce-gen with new --mail-headers option.
34740         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34741
34742         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34743         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34744         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34745         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34746         line in the "err2" output file when running "make check" in verbose
34747         mode (i.e., with set -x enabled).
34748
34749 2010-05-03  Bruno Haible  <bruno@clisp.org>
34750
34751         wctob: Fix for weird platforms.
34752         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34753         argument value.
34754
34755 2010-05-03  Jim Meyering  <meyering@redhat.com>
34756
34757         maint.mk: prohibit unwarranted use of <strings.h>
34758         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34759         strings.h in a file that does not also use strcasecmp, strncasecmp,
34760         ffs or ffsll.
34761
34762         maint.mk: remove obsolete comments
34763         * top/maint.mk: Remove stale, commented-out rules.
34764
34765 2010-05-02  Bruno Haible  <bruno@clisp.org>
34766
34767         wcwidth: Declare also when it's aliased.
34768         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34769         macro.
34770
34771 2010-05-02  Bruno Haible  <bruno@clisp.org>
34772
34773         Fix regression from 2010-04-25.
34774         * gnulib-tool (func_modules_transitive_closure): Check the status of
34775         all modules, not only of the tests that are of the form foo-tests where
34776         foo is a module.
34777
34778 2010-05-02  Bruno Haible  <bruno@clisp.org>
34779
34780         wctob: Work around nasty Cygwin 1.7.2 bug.
34781         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34782         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34783
34784 2010-05-01  Bruno Haible  <bruno@clisp.org>
34785
34786         fpurge: Sharper test.
34787         * tests/test-fpurge.c (main): Add one more ftell check.
34788         * modules/fpurge-tests (Depends-on): Add ftell.
34789         Suggested by Eric Blake.
34790
34791 2010-05-01  Bruno Haible  <bruno@clisp.org>
34792
34793         ftello: Another test.
34794         * tests/test-ftello3.c: New file.
34795         * modules/ftello-tests (Files): Add it.
34796         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34797         MOSTLYCLEANFILES.
34798
34799         ftell: Another test.
34800         * tests/test-ftell3.c: New file.
34801         * modules/ftell-tests (Files): Add it.
34802         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34803         MOSTLYCLEANFILES.
34804
34805 2010-05-01  Bruno Haible  <bruno@clisp.org>
34806
34807         ftell, ftello: Work around Solaris bug.
34808         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34809         * lib/ftello.c: Include stdio-impl.h.
34810         (ftello): On Solaris, when _IOWRT is set, compute the result without
34811         looking at _IOREAD.
34812         * modules/ftello (Files): Add lib/stdio-impl.h.
34813         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34814         * doc/posix-functions/ftello.texi: Likewise.
34815         Reported by Eric Blake.
34816
34817 2010-05-01  Bruno Haible  <bruno@clisp.org>
34818
34819         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34820         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34821         the _IOWRT flag is also set.
34822
34823 2010-05-01  Bruno Haible  <bruno@clisp.org>
34824
34825         Fix doc about a HP-UX stdio bug.
34826         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34827         * doc/posix-functions/ftello.texi: Likewise.
34828
34829 2010-05-01  Bruno Haible  <bruno@clisp.org>
34830
34831         lseek test: Fix failure on Solaris.
34832         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34833         output.
34834
34835 2010-04-30  Jim Meyering  <meyering@redhat.com>
34836
34837         bootstrap: don't ignore failure to generate po*/Makevars
34838         * build-aux/bootstrap (with_gettext): Don't ignore failure
34839         to create po/Makevars or runtime-po/Makevars.
34840
34841 2010-04-29  Eric Blake  <eblake@redhat.com>
34842
34843         headers: relax license to LGPLv2+
34844         * modules/fcntl-h (License): Relax license.
34845         * modules/getopt-posix (License): Likewise.
34846         * modules/locale (License): Likewise.
34847         * modules/math (License): Likewise.
34848         * modules/pty (License): Likewise.
34849         * modules/sched (License): Likewise.
34850         * modules/search (License): Likewise.
34851         * modules/spawn (License): Likewise.
34852         * modules/stdarg (License): Likewise.
34853         * modules/sysexits (License): Likewise.
34854
34855 2010-04-29  Jim Meyering  <meyering@redhat.com>
34856
34857         inttypes: relax license to LGPLv2+
34858         * modules/inttypes (License): Relax license.
34859
34860 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34861
34862         * top/maint.mk (indent): Run twice to produce idempotent results.
34863
34864 2010-04-28  Bruno Haible  <bruno@clisp.org>
34865
34866         getdate: Generate getdate.c in the source directory.
34867         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34868         MOSTLYCLEANFILES.
34869         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34870
34871 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34872
34873         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34874         is not declared as a const *; avoid warnings in that case.
34875
34876 2010-04-28  Eric Blake  <eblake@redhat.com>
34877
34878         canonicalize-lgpl: avoid compiler warning
34879         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34880         declaration' / 'extraneous semicolon' warning with some compilers.
34881         Reported by Andreas Gruenbacher.
34882
34883 2010-04-28  Jim Meyering  <meyering@redhat.com>
34884
34885         init.sh: ensure a more reliable exit status when exiting via trap
34886         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34887         Inspired by patches from Dmitry V. Levin.
34888         Also trap on signal 3 (SIGQUIT).
34889
34890 2010-04-27  Bruno Haible  <bruno@clisp.org>
34891
34892         Update doc about utimes().
34893         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34894         'utimens' module.
34895         Reported by Andreas Gruenbacher <agruen@suse.de>.
34896
34897 2010-04-27  Eric Blake  <eblake@redhat.com>
34898
34899         full-read, full-write: relax license
34900         * modules/full-read (License): Drop to LGPLv2+.
34901         * modules/full-write (License): Likewise.
34902         * modules/safe-read (License): Likewise.
34903         * modules/safe-write (License): Likewise.
34904
34905         pthread: mention library for linking
34906         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34907
34908 2010-04-27  Jim Meyering  <meyering@redhat.com>
34909
34910         maint.mk: fix a bug introduced in last change
34911         * top/maint.mk (gl_assured_headers_): Now that all names are on
34912         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34913         is not anchored to end of word, it should be adequate.
34914
34915         maint.mk: avoid side-effect in latest syntax-check
34916         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34917         to run commands via $(shell...), and hence to incur cost only when
34918         the new rule is actually run.
34919
34920         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34921         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34922         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34923         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34924         (gl_assured_headers_, az_, AZ_): Define.
34925         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34926
34927 2010-04-26  Jim Meyering  <jim@meyering.net>
34928             Bruno Haible  <bruno@clisp.org>
34929
34930         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34931         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34932         Prompted by an exchange with Gilles Espinasse.
34933
34934 2010-04-26  Jim Meyering  <meyering@redhat.com>
34935
34936         git-version-gen: aesthetic tweak
34937         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34938         so that the command remains on a single line.
34939
34940 2010-04-26  Eric Blake  <eblake@redhat.com>
34941
34942         git-version-gen: allow use on EBCDIC hosts
34943         * build-aux/git-version-gen (dirty): Use literal rather than tying
34944         ourselves to ascii.
34945         Reported by Steve Goetze.
34946
34947 2010-04-25  Bruno Haible  <bruno@clisp.org>
34948
34949         netdb: Add support for GNULIB_POSIXCHECK.
34950         * lib/netdb.in.h: Include warn-on-use.h.
34951         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34952         functions are used when GNULIB_POSIXCHECK is defined and the
34953         getaddrinfo module is not in use.
34954         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34955         freeaddrinfo, gai_strerror, getnameinfo are declared.
34956         * modules/netdb (Depends-on): Add warn-on-use.
34957         (Makefile.am): Include warn-on-use.h in netdb.h.
34958
34959 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34960
34961         build: avoid "make check" failure without .git/ directory
34962         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34963         there is no .git/ directory.
34964
34965 2010-04-25  Bruno Haible  <bruno@clisp.org>
34966
34967         ptsname: Fix misuse of ttyname_r.
34968         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34969         of errno.
34970
34971 2010-04-25  Bruno Haible  <bruno@clisp.org>
34972
34973         ttyname_r: Make it work on Solaris 10.
34974         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34975         if the system function has the POSIX declaration. Test whether the
34976         function fails if the buffer is less than 128 bytes large.
34977         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34978         system's ttyname_r function. Provide a reasonably large buffer.
34979         * modules/ttyname_r (Depends-on): Add extensions.
34980         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34981
34982 2010-04-25  Bruno Haible  <bruno@clisp.org>
34983
34984         Use the 'extensions' module for some more functions on Solaris.
34985         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34986         module.
34987         * doc/posix-functions/ctime_r.texi: Likewise.
34988         * doc/posix-functions/getgrgid_r.texi: Likewise.
34989         * doc/posix-functions/getgrnam_r.texi: Likewise.
34990         * doc/posix-functions/getpwnam_r.texi: Likewise.
34991         * doc/posix-functions/getpwuid_r.texi: Likewise.
34992         * doc/posix-functions/readdir_r.texi: Likewise.
34993         * doc/posix-functions/sigwait.texi: Likewise.
34994         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34995         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34996
34997 2010-04-25  Bruno Haible  <bruno@clisp.org>
34998
34999         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35000         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35001         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35002         * lib/ttyname_r.c: Include <limits.h>.
35003         (ttyname_r): Define using the system's ttyname_r function, if it exists
35004         and not on Solaris.
35005         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35006         set.
35007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35008         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35009         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35010         Reported by Simon Josefsson.
35011
35012 2010-04-25  Bruno Haible  <bruno@clisp.org>
35013
35014         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35015         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35016         * doc/posix-functions/ctime_r.texi: Likewise.
35017         * doc/posix-functions/getgrgid_r.texi: Likewise.
35018         * doc/posix-functions/getgrnam_r.texi: Likewise.
35019         * doc/posix-functions/getlogin_r.texi: Likewise.
35020         * doc/posix-functions/getpwnam_r.texi: Likewise.
35021         * doc/posix-functions/getpwuid_r.texi: Likewise.
35022         * doc/posix-functions/readdir_r.texi: Likewise.
35023         * doc/posix-functions/sigwait.texi: Likewise.
35024         * doc/posix-functions/ttyname_r.texi: Likewise.
35025         Reported by Simon Josefsson.
35026
35027 2010-04-25  Bruno Haible  <bruno@clisp.org>
35028
35029         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35030         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35031         also to --create-testdir.
35032         (func_acceptable): Don't consider the status of *-tests modules here.
35033         (func_modules_transitive_closure): Consider it here, before including a
35034         test module.
35035         (func_import, func_create_testdir): Set inc_all_direct_tests,
35036         inc_all_indirect_tests.
35037         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35038         --create-testdir and --create-megatestdir.
35039
35040 2010-04-25  Bruno Haible  <bruno@clisp.org>
35041
35042         gnulib-tool: Add --without-*-tests options.
35043         * gnulib-tool (func_usage): Document the --without-*-tests options.
35044         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35045         excl_unportable_tests): New variables.
35046         Fail if they are specified with --import or --update.
35047         (func_acceptable): Respect the excl_*_tests variables.
35048         (func_import): Set the excl_*_tests variables to empty.
35049
35050 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35051             Bruno Haible  <bruno@clisp.org>
35052
35053         Work around a MacOS X 10.4 bug with openpty.
35054         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35055         * tests/test-openpty.c (main): Close the master side explicitly.
35056
35057 2010-04-25  Bruno Haible  <bruno@clisp.org>
35058
35059         strnlen: Fix a C++ test error on MacOS X and Solaris.
35060         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35061         the function is not declared.
35062         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35063         Simon Josefsson.
35064
35065 2010-04-24  Bruno Haible  <bruno@clisp.org>
35066
35067         Avoid a gcc warning.
35068         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35069         of correct type for %08lx directive.
35070         Reported by Eric Blake.
35071
35072 2010-04-24  Bruno Haible  <bruno@clisp.org>
35073
35074         vasnprintf: Correct errno value in case of out-of-memory.
35075         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35076         or sprintf. Use the errno value from SNPRINTF or sprintf.
35077         Reported by Ian Beckwith <ianb@erislabs.net>.
35078
35079 2010-04-24  Bruno Haible  <bruno@clisp.org>
35080
35081         ansi-c++-opt: Find correct compiler when cross-compiling.
35082         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35083         AC_CHECK_PROGS.
35084         Reported by Simon Josefsson.
35085
35086 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35087
35088         vc-list-files: Add support for subversion
35089         * build-aux/vc-list-files: Use "svn list" to generate the list of
35090         files controlled by subversion.
35091
35092 2010-04-23  Jim Meyering  <meyering@redhat.com>
35093
35094         vc-list-files tests: convert to use init.sh
35095         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35096         path_prepend_.
35097         Use Exit, not exit.
35098         Use skip_ rather than open coding it.
35099         Remove trap set-up and compare definitions.
35100         * tests/test-vc-list-files-git.sh: Likewise.
35101         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35102
35103 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35104
35105         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35106         backup files.
35107
35108 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35109
35110         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35111
35112 2010-04-20  Eric Blake  <eblake@redhat.com>
35113
35114         tests: be robust to ignored SIGPIPE
35115         * tests/test-select-in.sh: Consume all output.
35116         * tests/test-lseek.sh: Check correct exit status, while avoiding
35117         EPIPE.
35118
35119 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35120             Bruno Haible  <bruno@clisp.org>
35121
35122         visibility: Don't use -fvisibility if it leads to a warning.
35123         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35124         yes, don't pretend that visibility works if it leads to a warning.
35125         Reported by Mike Gran <spk121@yahoo.com>.
35126
35127 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35128
35129         * build-aux/bootstrap: Use "git -h" for testing for supported options
35130         instead of "git --help".  The short-form option only shows a summary,
35131         and doesn't layout the full man page.  Grep for the full option name
35132         in the summary, too.
35133
35134 2010-04-19  Bruno Haible  <bruno@clisp.org>
35135
35136         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35137         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35138         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35139         mention of RELOCATABLE_STRIP.
35140         Reported by Sylvain Beucler <beuc@beuc.net>.
35141
35142 2010-04-19  Bruno Haible  <bruno@clisp.org>
35143
35144         * lib/diffseq.h: Fix typo in comment.
35145         Reported by Eric Blake.
35146
35147 2010-04-19  Bruno Haible  <bruno@clisp.org>
35148
35149         ioctl: Move autoconf macro to a .m4 file.
35150         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35151         * modules/ioctl (Files): Add it.
35152         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35153         Reported by Ian Beckwith <ianb@erislabs.net>.
35154
35155 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35156             Bruno Haible  <bruno@clisp.org>
35157
35158         diffseq: Accommodate use-case with abstract arrays.
35159         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35160         is not defined.
35161         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35162         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35163
35164 2010-04-18  Bruno Haible  <bruno@clisp.org>
35165
35166         * doc/posix-headers/stdbool.texi: More precise wording.
35167
35168 2010-04-17  Jim Meyering  <meyering@redhat.com>
35169
35170         maint.mk: use gnu-style indentation in an embedded perl script
35171         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35172         Rename variable: s/two/last_two_bytes/
35173
35174 2010-04-16  Eric Blake  <eblake@redhat.com>
35175
35176         test-stdbool: skip test that fails with Solaris CC
35177         * tests/test-stdbool.c (f): Skip test that causes compilation
35178         error under buggy C++ compiler.
35179         * lib/stdbool.in.h: Document the limitation.
35180         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35181
35182         setenv: allow compilation with C++
35183         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35184         register keyword.
35185
35186         stdint: allow test to pass with C++
35187         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35188
35189         getopt: allow compilation with C++
35190         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35191         struct.
35192         * lib/getopt.c (_getopt_internal_r): Use correct type.
35193         Reported by Dagobert Michelson, via Joel E. Denny.
35194
35195 2010-04-16  Bruno Haible  <bruno@clisp.org>
35196
35197         Override netdb.h always.
35198         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35199         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35200         Reported by Ludovic Courtès <ludo@gnu.org>.
35201
35202 2010-04-15  Bruno Haible  <bruno@clisp.org>
35203
35204         openpty: Fix mistake from 2010-03-21.
35205         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35206         Reported by Simon Josefsson.
35207
35208 2010-04-15  Eric Blake  <eblake@redhat.com>
35209
35210         test-forkpty: fix expected signature
35211         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35212         Reported by Simon Josefsson.
35213
35214 2010-04-15  Jim Meyering  <meyering@redhat.com>
35215
35216         maint.mk: texinfo_suffix_re_: correct the default regexp
35217         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35218
35219         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35220         make it configurable via texinfo_suffix_re_.
35221
35222 2010-04-14  Eric Blake  <eblake@redhat.com>
35223
35224         strtok_r: relax license to LGPLv2+
35225         * modules/strtok_r (License): Relax license.
35226         Reported by Matthias Bolte.
35227
35228 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35229
35230         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35231         version 1.4.4 by default instead of requiring the libgcrypt
35232         version used during build.  This makes it possible to use the
35233         application with older but still binary compatible libgcrypt
35234         versions.
35235
35236 2010-04-13  Eric Blake  <eblake@redhat.com>
35237
35238         getopt-gnu: match recent glibc fixes and posix ruling
35239         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35240         '+' handling, when requesting extensions.
35241         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35242         'W;' handling.
35243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35244         * doc/posix-functions/getopt.texi (getopt): Document this.
35245         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35246         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35247         Likewise.
35248
35249         getopt: merge bug fixes from glibc
35250         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35251         diagnostics.  Honor '+:' correctly.  Reject ';'.
35252
35253         getopt-posix: detect MacOS bug
35254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35255         optind when missing a required argument.
35256         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35257         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35258         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35259         Likewise.
35260
35261         getopt-posix: avoid spurious failure on Solaris
35262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35263         an indicator that setting optind=1 is sufficient for reset.
35264
35265         getopt-posix: avoid spurious failure on FreeBSD
35266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35267         in POSIX mode, since the m4 test uses it.
35268
35269         gnulib-tool: silence warning on BSD sh
35270         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35271
35272 2010-04-13  Jim Meyering  <meyering@redhat.com>
35273
35274         doc: users.txt: GNU patch now uses gnulib
35275         * users.txt: Add patch.
35276
35277 2010-04-12  Jim Meyering  <meyering@redhat.com>
35278
35279         maint.mk: generate more concise timing data for syntax-check rules
35280         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35281         " done" from each line that reports a syntax-check test duration.
35282
35283 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35284
35285         git-version-gen: use "git update-index..." rather than "git status"
35286         * build-aux/git-version-gen: Use git update-index --refresh, not
35287         "git status".  With some versions of git, "git status" would fail
35288         to update the index and result in an unwarranted "-dirty" suffix.
35289
35290 2010-04-11  Jim Meyering  <meyering@redhat.com>
35291
35292         openat: correct formatting (no semantic change)
35293         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35294         Suggested by Bruno Haible.
35295
35296 2010-04-11  Bruno Haible  <bruno@clisp.org>
35297
35298         Stricter declaration checking in testdirs.
35299         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35300         If for_tests is true, augment AM_CPPFLAGS to define
35301         GNULIB_STRICT_CHECKING.
35302         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35303         GNULIB_STRICT_CHECKING is defined, verify that the function is
35304         declared.
35305
35306 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35307             Bruno Haible  <bruno@clisp.org>
35308
35309         libunistring: Improve configure output.
35310         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35311         Don't say "consider installing GNU libunistring" when checking again
35312         with libiconv.
35313
35314 2010-04-11  Bruno Haible  <bruno@clisp.org>
35315
35316         libunistring: Correct value of $LTLIBUNISTRING.
35317         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35318         correct the value of $LTLIBUNISTRING.
35319
35320 2010-04-11  Bruno Haible  <bruno@clisp.org>
35321
35322         havelib: Add static libraries to LIBS in the right order.
35323         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35324         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35325
35326 2010-04-11  Bruno Haible  <bruno@clisp.org>
35327
35328         libunistring: Detect libunistring also when it depends on libiconv.
35329         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35330         the second AC_LIB_HAVE_LINKFLAGS invocation.
35331
35332 2010-04-11  James Youngman  <jay@gnu.org>
35333
35334         close-stream: declare local scalars to be "const"
35335         * lib/close-stream.c (close_stream): Make boolean variables const
35336         to document the fact that we set but do not change them.
35337
35338 2010-04-11  Bruno Haible  <bruno@clisp.org>
35339
35340         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35341
35342 2010-04-11  Jim Meyering  <meyering@redhat.com>
35343
35344         maint.mk: don't include dist-check.mk
35345         * top/maint.mk: Remove bogus include directive.
35346
35347         maint.mk: improve empty-line-at-EOF check
35348         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35349         solution, rather than tail+Perl-based one.  The latter would read
35350         a few kilobytes from the end of each file, and did not handle empty
35351         files properly.
35352
35353         maint.mk: print the elapsed time for each syntax-check rule
35354         * top/maint.mk (sc_m_rules_): Save start time in a file.
35355         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35356         (local-check): Interpose the .z rules
35357
35358 2010-04-11  Jim Meyering  <meyering@redhat.com>
35359
35360         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35361         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35362         empty file with one that ends in an empty line.
35363
35364 2010-04-10  Bruno Haible  <bruno@clisp.org>
35365
35366         mkdir: Make it work on mingw64.
35367         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35368         * lib/mkdir.c: Update comment.
35369         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35370
35371 2010-04-10  Bruno Haible  <bruno@clisp.org>
35372
35373         Don't override improved macro from newer autoconf.
35374         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35375         autoconf >= 2.62.
35376         Reported by Joel E. Denny <jdenny@clemson.edu>.
35377
35378 2010-04-10  Jim Meyering  <meyering@redhat.com>
35379
35380         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35381         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35382
35383         maint.mk: correct a diagnostic
35384         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35385         in diagnostic; now use $prohibit.
35386
35387 2010-04-10  Bruno Haible  <address@hidden>
35388
35389         fchownat: Fix a C++ test error on Solaris 8.
35390         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35391         the function does not exist.
35392
35393 2010-04-10  Bruno Haible  <bruno@clisp.org>
35394
35395         vasnprintf: Add more tests.
35396         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35397         (test_function): Test converting an invalid wide string.
35398
35399         vasnprintf: Correct handling of unconvertible wide string arguments.
35400         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35401         VASNPRINTF.
35402         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35403         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35404         smaller than the expected maximum need for the directive. Set errno to
35405         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35406         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35408         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35409         * modules/vasnprintf (Files): Add m4/printf.m4.
35410         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35411
35412 2010-04-10  Bruno Haible  <bruno@clisp.org>
35413
35414         vasnprintf: Fix crash in %ls directive.
35415         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35416         string is passed as argument to %ls, with no precision and no width.
35417         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35418
35419 2010-04-10  Bruno Haible  <bruno@clisp.org>
35420
35421         vasnprintf: Fix multiple test failures on mingw.
35422         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35423         _snprintf, or snwprintf, not _snwprintf.
35424
35425 2010-04-10  Bruno Haible  <bruno@clisp.org>
35426
35427         write: Fix a C++ test error on mingw.
35428         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35429
35430 2010-04-10  Bruno Haible  <bruno@clisp.org>
35431
35432         vasnprintf test: Reduce code duplication.
35433         * tests/test-vasnprintf.c (test_function): New function, extracted from
35434         test_vasnprintf.
35435         (test_vasnprintf, test_asnprintf): Invoke it.
35436
35437 2010-04-10  Bruno Haible  <bruno@clisp.org>
35438
35439         strnlen: Fix warning in C++ mode on MacOS X.
35440         * lib/string.in.h (strnlen): Use the modern idiom.
35441         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35442         defining strnlen as a macro already in <config.h>.
35443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35444         REPLACE_STRNLEN.
35445         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35447
35448 2010-04-08  James Youngman  <jay@gnu.org>
35449
35450         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35451         the example.
35452
35453 2010-04-09  Jim Meyering  <meyering@redhat.com>
35454
35455         maint.mk: print better diagnostic when there is no $(_hv_file)
35456         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35457         announce that when $(_hv_file) (aka help-version) does not exist.
35458
35459         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35460         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35461         not try to interpret its random input bytes.  Jarno Rajahalme reported
35462         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35463         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35464         (mktempd_): Likewise, just in case.
35465
35466         ftruncate: add two years to projected module removal date: 2012
35467         * m4/ftruncate.m4: Adjust comments.
35468
35469         ftruncate: mark module as obsolete; even MinGW provides it, now
35470         * modules/ftruncate (Status): Obsolete.
35471         (Notice): Say that.
35472         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35473         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35474
35475 2010-04-08  Bruno Haible  <bruno@clisp.org>
35476
35477         Fix side effects from tests-related modules.
35478         * modules/dprintf-posix (Comment): New section.
35479         * modules/fprintf-posix (Comment): Likewise.
35480         * modules/obstack-printf-posix (Comment): Likewise.
35481         * modules/printf-posix (Comment): Likewise.
35482         * modules/snprintf-posix (Comment): Likewise.
35483         * modules/sprintf-posix (Comment): Likewise.
35484         * modules/vasnprintf-posix (Comment): Likewise.
35485         * modules/vasprintf-posix (Comment): Likewise.
35486         * modules/vdprintf-posix (Comment): Likewise.
35487         * modules/vfprintf-posix (Comment): Likewise.
35488         * modules/vprintf-posix (Comment): Likewise.
35489         * modules/vsnprintf-posix (Comment): Likewise.
35490         * modules/vsprintf-posix (Comment): Likewise.
35491         * modules/xprintf-posix (Comment): Likewise.
35492         * modules/xvasprintf-posix (Comment): Likewise.
35493         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35494         * modules/floorf-tests (Depends-on): Likewise.
35495         * modules/round-tests (Depends-on): Likewise.
35496         * modules/roundf-tests (Depends-on): Likewise.
35497         * modules/trunc-tests (Depends-on): Likewise.
35498         * modules/truncf-tests (Depends-on): Likewise.
35499         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35500         'fprintf-posix' module is not present.
35501         * tests/test-floorf2.c (check): Likewise.
35502         * tests/test-trunc2.c (check): Likewise.
35503         * tests/test-truncf2.c (check): Likewise.
35504         * tests/test-round2.c (equal): Likewise.
35505         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35506
35507 2010-04-07  Karl Berry  <karl@gnu.org>
35508
35509         * config/srclist.txt,
35510         * config/srclistvars.sh,
35511         * config/srclist-update: doc fixes.
35512
35513 2010-04-07  Jim Meyering  <meyering@redhat.com>
35514
35515         maint.mk: add a PATH crosschecking syntax-check rule
35516         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35517         Useful if you use a test like the one in help-version (coreutils,
35518         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35519         printed by prog --version.
35520
35521 2010-04-06  Bruno Haible  <bruno@clisp.org>
35522
35523         Fix link error on mingw.
35524         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35525         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35526
35527 2010-04-06  Bruno Haible  <bruno@clisp.org>
35528
35529         Assume rmdir exists.
35530         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35531
35532 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35533
35534         doc: update users.txt
35535         * users.txt: Add gcal.
35536
35537 2010-04-06  Jim Meyering  <meyering@redhat.com>
35538
35539         init.sh: simply unset TMPDIR rather than risking env -i
35540         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35541         although it probably works fine on all Unix-based systems, some
35542         systems (Cygwin?) cannot tolerate a totally cleared environment.
35543         Suggestion from Eric Blake.
35544
35545 2010-04-06  Jim Meyering  <meyering@redhat.com>
35546
35547         init.sh: portability fix: use env's POSIX-specified -i option not -u
35548         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35549         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35550
35551 2010-04-05  Bruno Haible  <bruno@clisp.org>
35552
35553         btowc: Work around Cygwin 1.7.2 bug.
35554         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35555         does not map NUL to 0.
35556         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35557
35558 2010-04-05  Bruno Haible  <bruno@clisp.org>
35559
35560         Make the multithread modules work on Cygwin 1.7.2.
35561         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35562         imported symbols can be declared weak, so that it returns "no" on
35563         Cygwin 1.7.2.
35564
35565 2010-04-05  Bruno Haible  <bruno@clisp.org>
35566
35567         Use the module 'strncat'.
35568         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35569
35570         Tests for module 'strncat'.
35571         * modules/strncat-tests: New file.
35572         * tests/test-strncat.c: New file.
35573
35574         New module 'strncat'.
35575         * lib/string.in.h (strncat): New declaration.
35576         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35577         * m4/strncat.m4: New file, based on m4/memchr.m4.
35578         * modules/strncat: New file.
35579         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35580         is declared.
35581         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35582         REPLACE_STRNCAT.
35583         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35584         REPLACE_STRNCAT.
35585         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35586         module.
35587         * tests/test-string-c++.cc: Check signature of strncat.
35588
35589 2010-04-05  Jim Meyering  <meyering@redhat.com>
35590
35591         xstrtoumax-tests: convert to use init.sh
35592         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35593         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35594         Use Exit, not exit.
35595         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35596
35597         xstrtoimax-tests: convert to use init.sh
35598         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35599         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35600         Use Exit, not exit.
35601         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35602
35603 2010-04-05  Bruno Haible  <bruno@clisp.org>
35604
35605         sys_socket: Avoid #define replacements in C++ mode.
35606         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35607         warning to the function if possible, rather than #defining the symbol
35608         to a dysfunctional alias.
35609
35610 2010-04-05  Bruno Haible  <bruno@clisp.org>
35611
35612         fseeko: Fix C++ test error on mingw.
35613         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35614         gl_FUNC_FSEEKO.
35615         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35616         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35617         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35618         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35619
35620 2010-04-05  Bruno Haible  <bruno@clisp.org>
35621
35622         duplocale: Improve test output.
35623         * tests/test-duplocale.c (main): Print reason for skipped test.
35624
35625 2010-04-05  Bruno Haible  <bruno@clisp.org>
35626
35627         Assume rmdir exists.
35628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35629         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35630
35631 2010-04-05  Bruno Haible  <bruno@clisp.org>
35632
35633         Fix link error on Solaris 8 with cc.
35634         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35635
35636 2010-04-05  Bruno Haible  <bruno@clisp.org>
35637
35638         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35639         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35640
35641 2010-04-05  Bruno Haible  <bruno@clisp.org>
35642
35643         vasprintf: Update documentation.
35644         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35645
35646 2010-04-05  Bruno Haible  <bruno@clisp.org>
35647
35648         ptsname: Improve test.
35649         * tests/test-ptsname.c (main): Also try the various master names of BSD
35650         systems.
35651
35652 2010-04-05  Bruno Haible  <bruno@clisp.org>
35653
35654         memchr: Avoid a possible C++ test error.
35655         * lib/string.in.h (memchr): Provide declaration if function is missing.
35656         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35657         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35659         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35660
35661 2010-04-05  Bruno Haible  <bruno@clisp.org>
35662
35663         strtok_r: Improve idiom.
35664         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35665         AC_LIBOBJ is used.
35666
35667 2010-04-05  Bruno Haible  <bruno@clisp.org>
35668
35669         strdup: Improve idiom.
35670         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35671         AC_LIBOBJ is used.
35672         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35673         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35674         when AC_LIBOBJ is used.
35675
35676 2010-04-05  Bruno Haible  <bruno@clisp.org>
35677
35678         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35679         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35680         don't set REPLACE_MBSINIT to 1.
35681         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35682         don't set REPLACE_MBRTOWC to 1.
35683         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35684         exist, don't set REPLACE_MBSRTOWCS to 1.
35685         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35686         exist, don't set REPLACE_MBSNRTOWCS to 1.
35687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35688         don't set REPLACE_WCRTOMB to 1.
35689         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35690         exist, don't set REPLACE_WCSRTOMBS to 1.
35691         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35692         exist, don't set REPLACE_WCSNRTOMBS to 1.
35693
35694 2010-04-05  Bruno Haible  <bruno@clisp.org>
35695
35696         ldexpl: Improve idiom.
35697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35698         make sure to set HAVE_DECL_LDEXPL to 0.
35699
35700 2010-04-05  Jim Meyering  <meyering@redhat.com>
35701
35702         xstrtol-tests: convert to use init.sh
35703         * modules/xstrtol-tests (Files): Add tests/init.sh.
35704         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35705         Use Exit, not exit.
35706         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35707
35708         atexit-tests: convert to use init.sh
35709         * modules/atexit-tests (Files): Add tests/init.sh.
35710         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35711         Use Exit, not exit.
35712         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35713
35714         init.sh: fix typo
35715         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35716
35717         init.sh: make it easier for a test script to write to the tty, ...
35718         when using automake's parallel-tests mode.
35719         * tests/init.sh (stderr_fileno_): Define overridable variable.
35720         (warn_): New function, to use it.
35721         (fail_, skip_, framework_failure_): Use warn_.
35722
35723 2010-04-04  Bruno Haible  <bruno@clisp.org>
35724
35725         btowc: Avoid warning.
35726         * lib/btowc.c: Include <stdlib.h>.
35727         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35728
35729 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35730             Bruno Haible  <bruno@clisp.org>
35731
35732         wchar: Port to NetBSD 1.5.
35733         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35734         * lib/wctype.in.h (WEOF): Likewise.
35735
35736 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35737             Bruno Haible  <bruno@clisp.org>
35738
35739         Port extended stdio to NetBSD 1.5.
35740         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35741         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35742         older.
35743
35744 2010-04-04  Bruno Haible  <bruno@clisp.org>
35745
35746         string: Remove unused substitution.
35747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35748         HAVE_DECL_STRERROR.
35749         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35750
35751 2010-04-04  Bruno Haible  <bruno@clisp.org>
35752
35753         strtod: Avoid a possible C++ test error.
35754         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35755         set REPLACE_STRTOD.
35756
35757 2010-04-04  Bruno Haible  <bruno@clisp.org>
35758
35759         strerror: Update documentation.
35760         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35761
35762 2010-04-04  Bruno Haible  <bruno@clisp.org>
35763
35764         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35765         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35766         _GL_CXXALIAS_SYS_CAST.
35767
35768 2010-04-04  Bruno Haible  <bruno@clisp.org>
35769
35770         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35771         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35772         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35773         REPLACE_FREXPL to 1.
35774         * doc/posix-functions/frexpl.texi: Update documentation.
35775
35776 2010-04-04  Bruno Haible  <bruno@clisp.org>
35777
35778         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35779         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35780
35781 2010-04-04  Bruno Haible  <bruno@clisp.org>
35782
35783         Implement nanosleep for native Windows.
35784         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35785
35786 2010-04-04  Bruno Haible  <bruno@clisp.org>
35787
35788         math: Fix some C++ test errors on Solaris 8.
35789         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35790
35791 2010-04-04  Bruno Haible  <bruno@clisp.org>
35792
35793         math: Fix some C++ test errors on Cygwin.
35794         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35795         truncl): Provide declaration if the system does not have it.
35796         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35797         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35798         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35799         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35800         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35801         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35802         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35803         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35804         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35805         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35806         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35807         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35808         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35809         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35810         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35811         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35813         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35814         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35815         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35816         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35817         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35818
35819 2010-04-04  Bruno Haible  <bruno@clisp.org>
35820
35821         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35822         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35823         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35824         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35825         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35826         * m4/isinf.m4 (gl_ISINF): Likewise.
35827         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35828
35829 2010-04-04  Bruno Haible  <bruno@clisp.org>
35830
35831         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35832         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35833
35834 2010-04-04  Bruno Haible  <bruno@clisp.org>
35835
35836         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35837         * modules/tmpfile (configure.ac): Update.
35838
35839         tmpfile: Fix C++ test error on mingw.
35840         * lib/stdio.in.h (tmpfile): New declaration.
35841         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35842         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35843         * modules/tmpfile (Depends-on): Add stdio.
35844         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35845         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35846         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35847         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35848         REPLACE_TMPFILE.
35849         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35850
35851 2010-04-04  Bruno Haible  <bruno@clisp.org>
35852
35853         ioctl: Fix C++ test error on mingw.
35854         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35855         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35856         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35857
35858 2010-04-03  Bruno Haible  <bruno@clisp.org>
35859
35860         wcwidth: Fix C++ test error on mingw.
35861         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35863         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35864
35865 2010-04-03  Bruno Haible  <bruno@clisp.org>
35866
35867         nanosleep: Fix C++ test error on mingw.
35868         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35869         * lib/time.in.h (nanosleep): Use modern idiom.
35870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35871         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35872         REPLACE_NANOSLEEP to 1.
35873         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35874         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35875
35876 2010-04-03  Bruno Haible  <bruno@clisp.org>
35877
35878         strptime: Fix C++ test error on mingw.
35879         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35880         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35881         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35882         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35883         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35884         not REPLACE_STRPTIME.
35885         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35886         REPLACE_STRPTIME.
35887
35888 2010-04-03  Bruno Haible  <bruno@clisp.org>
35889
35890         timegm: Fix C++ test error on mingw.
35891         * lib/time.in.h (timegm): Use modern idiom.
35892         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35893         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35895         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35896
35897 2010-04-03  Bruno Haible  <bruno@clisp.org>
35898
35899         timegm: Assume declaration if function exists.
35900         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35901         if it exists. Don't clobber ac_cv_func_timegm.
35902
35903 2010-04-03  Bruno Haible  <bruno@clisp.org>
35904
35905         time_r: Fix C++ test error on mingw.
35906         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35907         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35908         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35909         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35910         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35911
35912 2010-04-03  Bruno Haible  <bruno@clisp.org>
35913
35914         time_r: Minor updates.
35915         * modules/time_r (Description): Mention the provided functions.
35916         * lib/time_r.c: Don't include <string.h>.
35917         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35918         * doc/posix-functions/localtime_r.texi: Likewise.
35919
35920 2010-04-03  Bruno Haible  <bruno@clisp.org>
35921
35922         time: Fix regression introduced on 2010-03-08.
35923         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35924         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35925
35926 2010-04-03  Jim Meyering  <meyering@redhat.com>
35927
35928         maint.mk: don't silently disable project-specific syntax-check rules
35929         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35930         that they need to convert their project-specific syntax-check rules
35931         to use the new _sc_search_regexp.
35932
35933 2010-04-03  Bruno Haible  <bruno@clisp.org>
35934
35935         fchdir: Fix regression introduced on 2010-03-08.
35936         * lib/unistd.in.h (fchdir): Fix declaration.
35937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35939         REPLACE_FCHDIR.
35940         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35941         REPLACE_FCHDIR.
35942
35943 2010-04-03  Bruno Haible  <bruno@clisp.org>
35944
35945         getpagesize: Fix C++ test error on mingw.
35946         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35947         system does not declare the function.
35948         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35949         declared.
35950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35951         HAVE_DECL_GETPAGESIZE.
35952         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35953
35954 2010-04-03  Bruno Haible  <bruno@clisp.org>
35955
35956         stdio: Make C++ tests work on mingw.
35957         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35958         does not declare the function.
35959
35960 2010-04-03  Bruno Haible  <bruno@clisp.org>
35961
35962         ftello: Fix C++ test error on mingw.
35963         * lib/stdio.in.h (ftello): Use modern idiom.
35964         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35965         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35966         is missing and that it needs to be replaced.
35967         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35969         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35970
35971 2010-04-03  Bruno Haible  <bruno@clisp.org>
35972
35973         fseeko: Fix C++ test error on mingw.
35974         * lib/stdio.in.h (fseeko): Use modern idiom.
35975         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35976         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35977         is missing and that it needs to be replaced.
35978         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35980         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35981
35982 2010-04-03  Bruno Haible  <bruno@clisp.org>
35983
35984         mkstemp: Fix C++ test error on mingw.
35985         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35987         function is missing and that it needs to be replaced.
35988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35989         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35990
35991 2010-04-03  Bruno Haible  <bruno@clisp.org>
35992
35993         stpncpy: Fix C++ test error on mingw.
35994         * lib/string.in.h (stpncpy): Use modern idiom.
35995         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35996         function is missing and that it needs to be replaced.
35997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35998         REPLACE_STPNCPY.
35999         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36000
36001 2010-04-03  Bruno Haible  <bruno@clisp.org>
36002
36003         sys_stat: Fix C++ test error on mingw.
36004         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36005         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36006
36007 2010-04-03  Bruno Haible  <bruno@clisp.org>
36008
36009         pty: Update doc.
36010         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36011
36012 2010-04-03  Bruno Haible  <bruno@clisp.org>
36013
36014         unistd: Fix C++ test error on mingw.
36015         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36016
36017 2010-04-03  Bruno Haible  <bruno@clisp.org>
36018
36019         Update doc regarding mingw.
36020         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36021         * doc/glibc-functions/login_tty.texi: Likewise.
36022         * doc/glibc-functions/forkpty.texi: Likewise.
36023
36024 2010-04-03  Bruno Haible  <bruno@clisp.org>
36025
36026         stdlib: Avoid compilation failure of c-strtold on mingw.
36027         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36028
36029 2010-04-03  Bruno Haible  <bruno@clisp.org>
36030
36031         locale: Make C++ tests work on Cygwin and mingw.
36032         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36033         cannot provide the function.
36034         Reported by Simon Josefsson.
36035
36036 2010-04-03  Bruno Haible  <bruno@clisp.org>
36037
36038         localename: Port to MacOS X 10.6.
36039         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36040         memory layout of the locales in MacOS X 10.6 as well.
36041         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36042
36043 2010-04-02  Bruno Haible  <bruno@clisp.org>
36044
36045         gnulib-tool: Ensure that long-running tests are executed last.
36046         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36047         running tests after the one for the other tests.
36048
36049 2010-04-02  Bruno Haible  <bruno@clisp.org>
36050
36051         gnulib-tool: Ensure the tests in the main directory are executed first.
36052         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36053         start with the current directory.
36054
36055 2010-04-02  Bruno Haible  <bruno@clisp.org>
36056
36057         Tests for module 'havelib', moved here from GNU gettext.
36058         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36059         modifications.
36060         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36061         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36062         with modifications.
36063         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36064         modifications.
36065         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36066         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36067         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36068         with modifications.
36069         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36070         with modifications.
36071         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36072         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36073         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36074         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36075         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36076         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36077         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36078         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36079         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36080         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36081         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36082         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36083         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36084         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36085         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36086         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36087         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36088         with modifications.
36089         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36090         with modifications.
36091         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36092         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36093         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36094         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36095         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36096         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36097         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36098         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36099         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36100         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36101         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36102         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36103         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36104         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36105         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36106         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36107         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36108         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36109         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36110         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36111         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36112         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36113         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36114         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36115         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36116         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36117         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36118         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36119         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36120         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36121         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36122         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36123         * tests/havelib/rpathx/rpathx.c: New file, from
36124         gettext/autoconf-lib-link.
36125         * tests/havelib/rpathx/Makefile.am: New file, from
36126         gettext/autoconf-lib-link.
36127         * tests/havelib/rpathx/configure.ac: New file, from
36128         gettext/autoconf-lib-link with modifications.
36129         * tests/havelib/rpathy/rpathy.c: New file, from
36130         gettext/autoconf-lib-link.
36131         * tests/havelib/rpathy/Makefile.am: New file, from
36132         gettext/autoconf-lib-link.
36133         * tests/havelib/rpathy/configure.ac: New file, from
36134         gettext/autoconf-lib-link with modifications.
36135         * tests/havelib/rpathz/rpathz.c: New file, from
36136         gettext/autoconf-lib-link.
36137         * tests/havelib/rpathz/Makefile.am: New file, from
36138         gettext/autoconf-lib-link.
36139         * tests/havelib/rpathz/configure.ac: New file, from
36140         gettext/autoconf-lib-link with modifications.
36141         * tests/havelib/rpathlx/usex.c: New file, from
36142         gettext/autoconf-lib-link.
36143         * tests/havelib/rpathlx/Makefile.am: New file, from
36144         gettext/autoconf-lib-link.
36145         * tests/havelib/rpathlx/configure.ac: New file, from
36146         gettext/autoconf-lib-link with modifications.
36147         * tests/havelib/rpathly/usey.c: New file, from
36148         gettext/autoconf-lib-link.
36149         * tests/havelib/rpathly/Makefile.am: New file, from
36150         gettext/autoconf-lib-link.
36151         * tests/havelib/rpathly/configure.ac: New file, from
36152         gettext/autoconf-lib-link with modifications.
36153         * tests/havelib/rpathlz/usez.c: New file, from
36154         gettext/autoconf-lib-link.
36155         * tests/havelib/rpathlz/Makefile.am: New file, from
36156         gettext/autoconf-lib-link.
36157         * tests/havelib/rpathlz/configure.ac: New file, from
36158         gettext/autoconf-lib-link with modifications.
36159         * tests/havelib/rpathlyx/usey.c: New file, from
36160         gettext/autoconf-lib-link.
36161         * tests/havelib/rpathlyx/Makefile.am: New file, from
36162         gettext/autoconf-lib-link.
36163         * tests/havelib/rpathlyx/configure.ac: New file, from
36164         gettext/autoconf-lib-link with modifications.
36165         * tests/havelib/rpathlzyx/usez.c: New file, from
36166         gettext/autoconf-lib-link.
36167         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36168         gettext/autoconf-lib-link.
36169         * tests/havelib/rpathlzyx/configure.ac: New file, from
36170         gettext/autoconf-lib-link with modifications.
36171         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36172         with modifications.
36173
36174 2010-04-02  Bruno Haible  <bruno@clisp.org>
36175
36176         gnulib-tool: Create distributed built sources also for the tests.
36177         * gnulib-tool (func_create_testdir): Also generate distributed built
36178         sources in the tests directory.
36179
36180 2010-04-02  Bruno Haible  <bruno@clisp.org>
36181
36182         gnulib-tool: Obey user's environment variables.
36183         * gnulib-tool (func_create_testdir): When creating built sources,
36184         respect the environment variables for autoconf, automake, etc. given by
36185         the user.
36186
36187 2010-04-02  Bruno Haible  <bruno@clisp.org>
36188
36189         gnulib-tool: Provide the value of --m4-base to modules.
36190         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36191         of gl_m4_base.
36192
36193 2010-04-02  Eric Blake  <eblake@redhat.com>
36194
36195         maint.mk: fix some fallout
36196         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36197         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36198
36199 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36200
36201         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36202         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36203         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36204         (sc_cast_of_x_alloc_return_value): Likewise.
36205         (sc_cast_of_alloca_return_value): Likewise.
36206         (sc_space_tab): Likewise.
36207         (sc_prohibit_atoi_atof): Likewise.
36208         (sc_prohibit_magic_number_exit): Likewise.
36209         (sc_error_exit_success): Likewise.
36210         (sc_file_system): Likewise.
36211         (sc_prohibit_have_config_h): Likewise.
36212         (sc_require_config_h): Likewise.
36213         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36214         (sc_obsolete_symbols): Likewise.
36215         (sc_changelog): Likewise.
36216         (sc_program_name): Likewise.
36217         (sc_the_the): Likewise.
36218         (sc_trailing_blank): Likewise.
36219         (sc_two_space_separator_in_usage): Likewise.
36220         (sc_useless_cpp_parens): Likewise.
36221         (sc_GPL_version): Likewise.
36222         (sc_GFDL_version): Likewise.
36223         (sc_texinfo_acronym): Likewise.
36224         (sc_prohibit_cvs_keyword): Likewise.
36225         (sc_prohibit_stat_st_blocks): Likewise.
36226         (sc_prohibit_S_IS_definition): Likewise.
36227         (sc_redundant_const): Likewise.
36228         (sc_makefile_TAB_only_indentation): Likewise.
36229         (sc_m4_quote_check): Likewise.
36230         (sc_makefile_path_separator_check): Likewise.
36231         (sc_copyright_check): Likewise.
36232         (sc_Wundef_boolean): Likewise.
36233         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36234
36235         maint.mk: match 0 or more whitespace-before-function-call '('
36236         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36237         that have zero or two-and-more spaces between the function name
36238         and the open parenthesis.
36239         (sc_error_message_warn_fatal): Likewise.
36240         (sc_error_message_uppercase): Likewise.
36241         (sc_error_message_period): Likewise.
36242
36243 2010-03-31  Eric Blake  <eblake@redhat.com>
36244
36245         maint.mk: check for [ as well as test
36246         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36247         Based on a libvirt report by Matthias Bolte.
36248
36249         gnumakefile: don't squelch _version output
36250         * top/GNUmakefile (_version): Create one-shot dependency rather
36251         than using $(shell) when version must be regenerated.
36252         (_autoreconf): Run verbosely, by default.
36253
36254         sys_time: avoid compiler warnings
36255         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36256         unconditional, fixing regression from 2010-03-29.
36257         Reported by Simon Josefsson.
36258
36259 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36260
36261         maint.mk: s/_header_without_use/_sc_header_without_use/
36262         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36263         (sc_prohibit_assert_without_use): Use the new name.
36264         (sc_prohibit_close_stream_without_use): Likewise.
36265         (sc_prohibit_getopt_without_use): Likewise.
36266         (sc_prohibit_quotearg_without_use): Likewise.
36267         (sc_prohibit_quote_without_use): Likewise.
36268         (sc_prohibit_long_options_without_use): Likewise.
36269         (sc_prohibit_inttostr_without_use): Likewise.
36270         (sc_prohibit_ignore_value_without_use): Likewise.
36271         (sc_prohibit_error_without_use): Likewise.
36272         (sc_prohibit_xalloc_without_use): Likewise.
36273         (sc_prohibit_hash_without_use): Likewise.
36274         (sc_prohibit_hash_pjw_without_use): Likewise.
36275         (sc_prohibit_safe_read_without_use): Likewise.
36276         (sc_prohibit_argmatch_without_use): Likewise.
36277         (sc_prohibit_canonicalize_without_use): Likewise.
36278         (sc_prohibit_root_dev_ino_without_use): Likewise.
36279         (sc_prohibit_openat_without_use): Likewise.
36280         (sc_prohibit_c_ctype_without_use): Likewise.
36281         (sc_prohibit_signal_without_use): Likewise.
36282         (sc_prohibit_intprops_without_use): Likewise.
36283
36284 2010-03-30  Eric Blake  <eblake@redhat.com>
36285
36286         maint: improve module indicators
36287         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36288         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36289         columns, and avoid extra macro expansion.
36290
36291         fdopendir: work around FreeBSD bug
36292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36293         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36294         * modules/dirent (Makefile.am): Substitute it.
36295         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36296         declaration.
36297         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36298         fix.
36299         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36300
36301 2010-03-29  Bruno Haible  <bruno@clisp.org>
36302
36303         Emit #pragma system_header after the inclusion guard, not before.
36304         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36305         guard that spans the entire file, not before. This enables an
36306         optimization in GCC's preprocessor.
36307         * lib/ctype.in.h: Likewise.
36308         * lib/dirent.in.h: Likewise.
36309         * lib/errno.in.h: Likewise.
36310         * lib/float.in.h: Likewise.
36311         * lib/getopt.in.h: Likewise.
36312         * lib/iconv.in.h: Likewise.
36313         * lib/langinfo.in.h: Likewise.
36314         * lib/locale.in.h: Likewise.
36315         * lib/math.in.h: Likewise.
36316         * lib/netdb.in.h: Likewise.
36317         * lib/netinet_in.in.h: Likewise.
36318         * lib/pty.in.h: Likewise.
36319         * lib/sched.in.h: Likewise.
36320         * lib/se-selinux.in.h: Likewise.
36321         * lib/search.in.h: Likewise.
36322         * lib/spawn.in.h: Likewise.
36323         * lib/stdarg.in.h: Likewise.
36324         * lib/stdint.in.h: Likewise.
36325         * lib/string.in.h: Likewise.
36326         * lib/strings.in.h: Likewise.
36327         * lib/sys_file.in.h: Likewise.
36328         * lib/sys_ioctl.in.h: Likewise.
36329         * lib/sys_time.in.h: Likewise.
36330         * lib/sys_times.in.h: Likewise.
36331         * lib/sys_utsname.in.h: Likewise.
36332         * lib/sys_wait.in.h: Likewise.
36333         * lib/sysexits.in.h: Likewise.
36334         * lib/wctype.in.h: Likewise.
36335
36336 2010-03-28  James Youngman  <jay@gnu.org>
36337
36338         save-cwd: don't leak a file descriptor when the caller execs.
36339         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36340         saved file descriptor.
36341         * modules/save-cwd (Depends-on): Depend on cloexec.
36342
36343 2010-03-29  Bruno Haible  <bruno@clisp.org>
36344
36345         Remove vestiges of fts-lgpl module.
36346         * lib/fts_.h: Assume GNULIB_FTS is 1.
36347         * lib/fts.c: Likewise.
36348         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36349
36350 2010-03-28  Bruno Haible  <bruno@clisp.org>
36351
36352         Fix definition of tests witness macro.
36353         * gnulib-tool (func_import): Fix definition of witness macro.
36354
36355 2010-03-28  Bruno Haible  <bruno@clisp.org>
36356
36357         Fix ioctl's protoype on glibc systems.
36358         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36359         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36360         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36361         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36362         signature. If not, arrange to replace the ioctl function.
36363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36364         REPLACE_IOCTL.
36365         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36366         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36367         Reported by Ludovic Courtès <ludo@gnu.org>.
36368
36369 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36370
36371         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36372         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36373         made it so grep -r --include=GLOB* ... did not work.
36374
36375 2010-03-26  Jim Meyering  <meyering@redhat.com>
36376             Eric Blake  <eblake@redhat.com>
36377
36378         maint.mk: prohibit use of test's -o and -a operators
36379         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36380
36381 2010-03-28  Bruno Haible  <bruno@clisp.org>
36382
36383         Remove unused GNULIB_XYZ macro definitions.
36384         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36385         invocation.
36386
36387 2010-03-28  Bruno Haible  <bruno@clisp.org>
36388
36389         Mark privileged tests modules.
36390         * modules/idpriv-drop-tests (Status): New section.
36391         * modules/idpriv-droptemp-tests (Status): New section.
36392
36393 2010-03-28  Bruno Haible  <bruno@clisp.org>
36394
36395         Split C++ tests into separate tests modules.
36396         * modules/dirent-c++-tests: New file, extracted from
36397         modules/dirent-tests.
36398         * modules/dirent-tests: Depend on it.
36399         * modules/fcntl-h-c++-tests: New file, extracted from
36400         modules/fcntl-h-tests.
36401         * modules/fcntl-h-tests: Depend on it.
36402         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36403         * modules/glob-tests: Depend on it.
36404         * modules/iconv-h-c++-tests: New file, extracted from
36405         modules/iconv-h-tests.
36406         * modules/iconv-h-tests: Depend on it.
36407         * modules/langinfo-c++-tests: New file, extracted from
36408         modules/langinfo-tests.
36409         * modules/langinfo-tests: Depend on it.
36410         * modules/locale-c++-tests: New file, extracted from
36411         modules/locale-tests.
36412         * modules/locale-tests: Depend on it.
36413         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36414         * modules/math-tests: Depend on it.
36415         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36416         * modules/pty-tests: Depend on it.
36417         * modules/search-c++-tests: New file, extracted from
36418         modules/search-tests.
36419         * modules/search-tests: Depend on it.
36420         * modules/signal-c++-tests: New file, extracted from
36421         modules/signal-tests.
36422         * modules/signal-tests: Depend on it.
36423         * modules/spawn-c++-tests: New file, extracted from
36424         modules/spawn-tests.
36425         * modules/spawn-tests: Depend on it.
36426         * modules/stdio-c++-tests: New file, extracted from
36427         modules/stdio-tests.
36428         * modules/stdio-tests: Depend on it.
36429         * modules/stdlib-c++-tests: New file, extracted from
36430         modules/stdlib-tests.
36431         * modules/stdlib-tests: Depend on it.
36432         * modules/string-c++-tests: New file, extracted from
36433         modules/string-tests.
36434         * modules/string-tests: Depend on it.
36435         * modules/sys_ioctl-c++-tests: New file, extracted from
36436         modules/sys_ioctl-tests.
36437         * modules/sys_ioctl-tests: Depend on it.
36438         * modules/sys_select-c++-tests: New file, extracted from
36439         modules/sys_select-tests.
36440         * modules/sys_select-tests: Depend on it.
36441         * modules/sys_socket-c++-tests: New file, extracted from
36442         modules/sys_socket-tests.
36443         * modules/sys_socket-tests: Depend on it.
36444         * modules/sys_stat-c++-tests: New file, extracted from
36445         modules/sys_stat-tests.
36446         * modules/sys_stat-tests: Depend on it.
36447         * modules/sys_time-c++-tests: New file, extracted from
36448         modules/sys_time-tests.
36449         * modules/sys_time-tests: Depend on it.
36450         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36451         * modules/time-tests: Depend on it.
36452         * modules/unistd-c++-tests: New file, extracted from
36453         modules/unistd-tests.
36454         * modules/unistd-tests: Depend on it.
36455         * modules/wchar-c++-tests: New file, extracted from
36456         modules/wchar-tests.
36457         * modules/wchar-tests: Depend on it.
36458         * modules/wctype-c++-tests: New file, extracted from
36459         modules/wctype-tests.
36460         * modules/wctype-tests: Depend on it.
36461         Reported by Simon Josefsson.
36462
36463 2010-03-28  Bruno Haible  <bruno@clisp.org>
36464
36465         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36466         * gnulib-tool (func_exists_module): New function, extracted from
36467         func_verify_module.
36468         (func_verify_module): Use it.
36469         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36470         'foo' only if 'foo' exists.
36471         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36472         module.
36473
36474 2010-03-28  Bruno Haible  <bruno@clisp.org>
36475
36476         gnulib-tool: Add support for special categories of tests.
36477         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36478         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36479         (func_usage): Document them.
36480         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36481         inc_unportable_tests, inc_all_tests): New variables.
36482         (func_acceptable): Consider these variables.
36483         (func_modules_transitive_closure): Make it work when the 'Status' field
36484         consists of multiple words.
36485         (func_import): Store and restore the values of inc_cxx_tests,
36486         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36487         inc_all_tests in gnulib-comp.m4.
36488         (func_create_testdir): Set inc_all_tests to true.
36489         * doc/gnulib.texi (Extra tests modules): New section.
36490         Suggested by Jim Meyering.
36491
36492 2010-03-28  Bruno Haible  <bruno@clisp.org>
36493
36494         ansi-c++-opt: Allow turning off the C++ build by default.
36495         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36496         gl_CXX_CHOICE_DEFAULT_NO is defined.
36497         Requested by Eric Blake.
36498
36499 2010-03-28  Bruno Haible  <bruno@clisp.org>
36500
36501         unistd: Avoid #define replacements in C++ mode.
36502         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36503         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36504         setsockopt, shutdown, select): In C++, attach a warning to the function
36505         if possible, rather than #defining the symbol to a dysfunctional alias.
36506         Reported by John W. Eaton <jwe@gnu.org>.
36507
36508 2010-03-28  Bruno Haible  <bruno@clisp.org>
36509
36510         Fix link errors on mingw.
36511         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36512         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36513         $(LIBSOCKET).
36514         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36515         $(LIBSOCKET).
36516
36517 2010-03-28  Bruno Haible  <bruno@clisp.org>
36518             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36519
36520         lib-ignore: Determine different options for different compilers.
36521         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36522         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36523         Add comments.
36524         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36525         * NEWS: Mention the change.
36526
36527 2010-03-27  Bruno Haible  <bruno@clisp.org>
36528
36529         Remove unused GNULIB_XYZ macro definitions.
36530         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36531         * modules/fseek (configure.ac): Likewise.
36532         * modules/ioctl (configure.ac): Likewise.
36533         * modules/open (configure.ac): Likewise.
36534         * modules/stdlib-safer (configure.ac): Likewise.
36535
36536 2010-03-27  Bruno Haible  <bruno@clisp.org>
36537
36538         Add a remark about certain modules.
36539         * modules/malloc (Comment): New section.
36540         * modules/realloc (Comment): Likewise.
36541         * modules/sigpipe (Comment): Likewise.
36542
36543 2010-03-27  Bruno Haible  <bruno@clisp.org>
36544
36545         Resolve conflict between the two kinds of module indicators.
36546         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36547         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36548         * modules/canonicalize (configure.ac): Invoke
36549         gl_MODULE_INDICATOR_FOR_TESTS.
36550         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36551         GNULIB_XYZ.
36552         * tests/test-dirent-c++.cc: Likewise.
36553         * tests/test-dirent-safer.c: Likewise.
36554         * tests/test-dup2.c: Likewise.
36555         * tests/test-fchdir.c: Likewise.
36556         * tests/test-fcntl-h-c++.cc: Likewise.
36557         * tests/test-getopt.c: Likewise.
36558         * tests/test-getopt.h: Likewise.
36559         * tests/test-langinfo-c++.cc: Likewise.
36560         * tests/test-locale-c++.cc: Likewise.
36561         * tests/test-math-c++.cc: Likewise.
36562         * tests/test-pty-c++.cc: Likewise.
36563         * tests/test-search-c++.cc: Likewise.
36564         * tests/test-signal-c++.cc: Likewise.
36565         * tests/test-spawn-c++.cc: Likewise.
36566         * tests/test-stdio-c++.cc: Likewise.
36567         * tests/test-stdlib-c++.cc: Likewise.
36568         * tests/test-string-c++.cc: Likewise.
36569         * tests/test-sys_ioctl-c++.cc: Likewise.
36570         * tests/test-sys_select-c++.cc: Likewise.
36571         * tests/test-sys_socket-c++.cc: Likewise.
36572         * tests/test-sys_stat-c++.cc: Likewise.
36573         * tests/test-sys_time-c++.cc: Likewise.
36574         * tests/test-time-c++.cc: Likewise.
36575         * tests/test-unistd-c++.cc: Likewise.
36576         * tests/test-wchar-c++.cc: Likewise.
36577         * tests/uninorm/test-u8-nfc.c: Likewise.
36578         * tests/uninorm/test-u8-nfd.c: Likewise.
36579         * tests/uninorm/test-u8-nfkc.c: Likewise.
36580         * tests/uninorm/test-u8-nfkd.c: Likewise.
36581         * tests/uninorm/test-u16-nfc.c: Likewise.
36582         * tests/uninorm/test-u16-nfd.c: Likewise.
36583         * tests/uninorm/test-u16-nfkc.c: Likewise.
36584         * tests/uninorm/test-u16-nfkd.c: Likewise.
36585         * tests/uninorm/test-u32-nfc.c: Likewise.
36586         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36587         * tests/uninorm/test-u32-nfd.c: Likewise.
36588         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36589         * tests/uninorm/test-u32-nfkc.c: Likewise.
36590         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36591         * tests/uninorm/test-u32-nfkd.c: Likewise.
36592         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36593         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36594
36595 2010-03-27  Bruno Haible  <bruno@clisp.org>
36596
36597         Distinguish two kinds of module indicators.
36598         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36599         gl_MODULE_INDICATOR.
36600         (gl_MODULE_INDICATOR): New macro.
36601         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36602         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36603         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36604         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36605         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36606         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36607         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36608         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36609         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36610         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36611         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36612         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36615         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36616         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36617         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36618         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36619         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36620         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36621         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36622         * modules/cloexec (configure.ac): Likewise.
36623         * modules/getopt-gnu (configure.ac): Likewise.
36624         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36625         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36626         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36627         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36628
36629 2010-03-27  Bruno Haible  <bruno@clisp.org>
36630
36631         New module description field 'Comment'.
36632         * gnulib-tool: New option --extract-comment.
36633         (func_usage): Document it.
36634         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36635         (func_get_comment): New function.
36636         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36637
36638 2010-03-27  Bruno Haible  <bruno@clisp.org>
36639
36640         Addendum to 2010-02-07 commit.
36641         * gnulib-tool (func_usage): Document --extract-applicability option.
36642
36643 2010-03-27  Bruno Haible  <bruno@clisp.org>
36644
36645         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36646         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36647         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36648         rather than link errors.
36649
36650 2010-03-27  Bruno Haible  <bruno@clisp.org>
36651
36652         Avoid side effects from tests-related modules on the compilation of lib.
36653         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36654         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36655         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36656         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36657         macro.
36658         (func_import): Define a witness macro. Assign it a value that depends
36659         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36660         tests-related modules.
36661         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36662         Reported by Jim Meyering.
36663
36664 2010-03-27  Bruno Haible  <bruno@clisp.org>
36665
36666         Factorize common .m4 code.
36667         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36668         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36669         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36670         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36671         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36672         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36673         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36674         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36675         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36676         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36677         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36678         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36679         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36680         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36681         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36682         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36683         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36684         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36686         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36687         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36688         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36689         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36690         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36691         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36692         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36693         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36694         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36695         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36696         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36697         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36698         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36699
36700 2010-03-27  Bruno Haible  <bruno@clisp.org>
36701
36702         Fix a compilation error on Cygwin with g++ >= 4.3.
36703         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36704         if it is undefined or if we alias it to chmod.
36705         (lstat): Don't warn about the use of this function if it is undefined
36706         or if we alias it to stat.
36707         Reported by Simon Josefsson.
36708
36709 2010-03-27  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36712         * modules/getlogin (configure.ac): Update.
36713
36714         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36715         * modules/getlogin_r (configure.ac): Update.
36716
36717         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36719         * modules/inet_ntop (configure.ac): Update.
36720
36721         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36722         * modules/inet_pton (configure.ac): Update.
36723
36724         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36725         * modules/mbslen (configure.ac): Update.
36726
36727         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36728         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36729         * modules/forkpty (configure.ac): Update.
36730         * modules/openpty (configure.ac): Update.
36731
36732 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36733
36734         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36735         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36736
36737 2010-03-25  Eric Blake  <eblake@redhat.com>
36738
36739         maint: use pragma consistently across replacement headers
36740         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36741         * lib/dirent.in.h (system_header): Likewise.
36742         * lib/errno.in.h (system_header): Likewise.
36743         * lib/float.in.h (system_header): Likewise.
36744         * lib/getopt.in.h (system_header): Likewise.
36745         * lib/iconv.in.h (system_header): Likewise.
36746         * lib/inttypes.in.h (system_header): Likewise.
36747         * lib/langinfo.in.h (system_header): Likewise.
36748         * lib/locale.in.h (system_header): Likewise.
36749         * lib/math.in.h (system_header): Likewise.
36750         * lib/netdb.in.h (system_header): Likewise.
36751         * lib/netinet_in.in.h (system_header): Likewise.
36752         * lib/pty.in.h (system_header): Likewise.
36753         * lib/sched.in.h (system_header): Likewise.
36754         * lib/se-selinux.in.h (system_header): Likewise.
36755         * lib/search.in.h (system_header): Likewise.
36756         * lib/spawn.in.h (system_header): Likewise.
36757         * lib/stdarg.in.h (system_header): Likewise.
36758         * lib/stdint.in.h (system_header): Likewise.
36759         * lib/string.in.h (system_header): Likewise.
36760         * lib/strings.in.h (system_header): Likewise.
36761         * lib/sys_file.in.h (system_header): Likewise.
36762         * lib/sys_ioctl.in.h (system_header): Likewise.
36763         * lib/sys_socket.in.h (system_header): Likewise.
36764         * lib/sys_times.in.h (system_header): Likewise.
36765         * lib/sys_utsname.in.h (system_header): Likewise.
36766         * lib/sys_wait.in.h (system_header): Likewise.
36767         * lib/sysexits.in.h (system_header): Likewise.
36768         * lib/unistd.in.h (system_header): Likewise.
36769         * lib/wctype.in.h (system_header): Likewise.
36770
36771         arpa/inet: fix mingw compilation warning
36772         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36773         Reported by Matthew Bolte.
36774
36775 2010-03-25  Bruno Haible  <bruno@clisp.org>
36776
36777         Avoid collision between gnulib wrapper and libintl wrapper.
36778         * lib/printf.c (printf): Don't define if a printf wrapper is already
36779         defined in intl/printf.c.
36780         Reported by Michel Boaventura <michel@michelboaventura.com>.
36781
36782 2010-03-25  Bruno Haible  <bruno@clisp.org>
36783
36784         Use ANSI C.
36785         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36786
36787 2010-03-25  Bruno Haible  <bruno@clisp.org>
36788
36789         Minor formatting changes.
36790         * lib/acosl.c: Insert space before function argument list.
36791         * lib/argz.c: Likewise.
36792         * lib/asinl.c: Likewise.
36793         * lib/expl.c: Likewise.
36794         * lib/gen-uni-tables.c: Likewise.
36795         * lib/gettext.h: Likewise.
36796         * lib/glthread/lock.h: Likewise.
36797         * lib/tanl.c: Likewise.
36798         * lib/uniname/uniname.c: Likewise.
36799         * tests/test-idpriv-drop.c: Likewise.
36800         * tests/test-idpriv-droptemp.c: Likewise.
36801         * tests/test-lock.c: Likewise.
36802         * tests/test-tls.c: Likewise.
36803         * lib/argp-help.c: Insert space before function-like macro argument
36804         list.
36805         * lib/memcmp.c: Likewise.
36806         * tests/test-base64.c: Likewise.
36807         * lib/localename.c: Insert space before sizeof's argument list.
36808         * lib/safe-alloc.h: Likewise.
36809         * lib/file-set.h: Insert space before macro argument list.
36810         * tests/test-argp.c: Likewise.
36811         * lib/argp-namefrob.h: Insert space before function parameter list.
36812         * lib/getaddrinfo.c: Likewise.
36813         * lib/netdb.in.h: Likewise.
36814         * lib/parse-duration.h: Likewise.
36815         * lib/parse-duration.c: Likewise.
36816         * lib/poll.c: Likewise.
36817         * lib/select.c: Likewise.
36818         * lib/trim.h: Likewise.
36819         * tests/test-usleep.c: Likewise.
36820         * lib/ldexpl.c: Insert space before function parameter list and before
36821         function argument list.
36822         * lib/logl.c: Likewise.
36823         * lib/sqrtl.c: Likewise.
36824         * lib/trim.c: Likewise.
36825         * lib/cosl.c: Use GNU style indentation. Insert space before function
36826         argument list.
36827         * lib/sinl.c: Likewise.
36828         * lib/tsearch.c: Insert space after 'for'.
36829         Reported by Jim Meyering.
36830
36831 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36832
36833         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36834         config header before grepping, as it's not present before
36835         autoreconf/configure are run.  Reported by Simon Josefsson.
36836
36837 2010-03-23  Bruno Haible  <bruno@clisp.org>
36838
36839         pt_chown: Make it work with automake < 1.11.
36840         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36841         Reported by Simon Josefsson.
36842
36843 2010-03-23  Bruno Haible  <bruno@clisp.org>
36844
36845         pt_chown: Don't depend on GPLed modules.
36846         * lib/pt_chown.c: Don't include idpriv.h.
36847         (main): Don't drop privileges.
36848         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36849         Reported by Simon Josefsson.
36850
36851 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36852
36853         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36854         suggestions from karl@freefriends.org (Karl Berry).
36855
36856 2010-03-22  Eric Blake  <eblake@redhat.com>
36857
36858         gethostname: further tweaks
36859         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36860         are overriding gethostname.
36861         Suggested by Bruno Haible.
36862
36863 2010-03-21  Bruno Haible  <bruno@clisp.org>
36864
36865         Fix comments.
36866         * lib/forkpty.c (rpl_forkpty): Fix comment.
36867         * lib/openpty.c (rpl_openpty): Likewise.
36868         Reported by Eric Blake.
36869
36870 2010-03-22  Eric Blake  <eblake@redhat.com>
36871
36872         gethostname: fix build on mingw
36873         * lib/unistd.in.h (includes): Work around fact that mingw
36874         <winsock2.h> re-includes <unistd.h>, by avoiding any
36875         redeclarations if we are being included by <winsock2.h>.
36876         Reported by Matthias Bolte.
36877
36878 2010-03-21  Bruno Haible  <bruno@clisp.org>
36879
36880         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36881         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36882         modifications.
36883         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36884         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36885         provide the replacement.
36886         * modules/forkpty (Depends-on): Add openpty, login_tty.
36887         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36888         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36889         * doc/glibc-functions/forkpty.texi: More supported platforms.
36890         * config/srclist.txt: Add forkpty.c (commented).
36891
36892 2010-03-21  Bruno Haible  <bruno@clisp.org>
36893
36894         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36895         (Makefile.am): Verify that PTY_LIB is defined.
36896
36897         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36898
36899 2010-03-21  Bruno Haible  <bruno@clisp.org>
36900
36901         Tests for module 'login_tty'.
36902         * modules/login_tty-tests: New file.
36903         * tests/test-login_tty.c: New file.
36904
36905         New module 'login_tty'.
36906         * lib/login_tty.c: New file.
36907         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36908         * modules/login_tty: New file.
36909         * doc/glibc-functions/login_tty.texi: Mention the new module.
36910
36911 2010-03-21  Bruno Haible  <bruno@clisp.org>
36912
36913         login_tty: Documentation.
36914         * doc/glibc-functions/login_tty.texi: New file.
36915         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36916
36917 2010-03-21  Bruno Haible  <bruno@clisp.org>
36918
36919         pty: Consistent macro naming.
36920         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36921         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36922         * modules/pty (configure.ac): Update.
36923
36924 2010-03-21  Bruno Haible  <bruno@clisp.org>
36925
36926         Tests for openpty: Make stricter.
36927         * tests/test-openpty.c (main): Add test of canonical processing and
36928         erase.
36929         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36930
36931         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36932         * lib/openpty.c (openpty): New replacement function.
36933         * lib/pty.in.h: Include <termios.h>.
36934         (openpty): Update declaration. Add comments.
36935         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36936         is not declared, arrange to provide the replacement. Check for _getpty
36937         and posix_openpt.
36938         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36939         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36940         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36941         * modules/pty-tests (test_pty_c___LDADD): New variable.
36942         * doc/glibc-functions/openpty.texi: More supported platforms.
36943
36944 2010-03-21  Bruno Haible  <bruno@clisp.org>
36945
36946         setenv: Tweaks.
36947         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36948         the test program.
36949         * doc/posix-functions/setenv.texi: Update platforms list.
36950
36951 2010-03-21  Bruno Haible  <bruno@clisp.org>
36952
36953         New module 'unlockpt'.
36954         * lib/unlockpt.c: New file, from glibc with modifications.
36955         * m4/unlockpt.m4: New file.
36956         * modules/unlockpt: New file.
36957         * lib/stdlib.in.h (unlockpt): New declaration.
36958         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36959         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36960         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36961         HAVE_UNLOCKPT.
36962         * doc/posix-functions/unlockpt.texi: Mention the new module.
36963         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36964         * config/srclist.txt: Add unlockpt.c (commented).
36965
36966 2010-03-21  Jim Meyering  <meyering@redhat.com>
36967
36968         maint.mk: prohibit inclusion of "intprops.h" without use
36969         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36970
36971 2010-03-21  Bruno Haible  <bruno@clisp.org>
36972
36973         New module 'grantpt'.
36974         * lib/grantpt.c: New file, from glibc with modifications.
36975         * m4/grantpt.m4: New file.
36976         * modules/grantpt: New file.
36977         * lib/stdlib.in.h (grantpt): New declaration.
36978         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36979         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36980         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36981         HAVE_GRANTPT.
36982         * doc/posix-functions/grantpt.texi: Mention the new module.
36983         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36984         * config/srclist.txt: Add grantpt.c (commented).
36985
36986 2010-03-21  Bruno Haible  <bruno@clisp.org>
36987
36988         New module 'pt_chown'.
36989         * lib/pt_chown.c: New file, from glibc with modifications.
36990         * lib/pty-private.h: New file, from glibc with modifications.
36991         * modules/pt_chown: New file.
36992         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36993
36994 2010-03-21  Bruno Haible  <bruno@clisp.org>
36995
36996         Tests for module 'ptsname'.
36997         * modules/ptsname-tests: New file.
36998         * tests/test-ptsname.c: New file.
36999
37000         New module 'ptsname'.
37001         * lib/ptsname.c: New file, from glibc with modifications.
37002         * m4/ptsname.m4: New file.
37003         * modules/ptsname: New file.
37004         * lib/stdlib.in.h (ptsname): New declaration.
37005         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37006         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37007         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37008         HAVE_PTSNAME.
37009         * doc/posix-functions/ptsname.texi: Mention the new module.
37010         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37011         * config/srclist.txt: Add ptsname.c (commented).
37012
37013 2010-03-21  Bruno Haible  <bruno@clisp.org>
37014
37015         Tests for module 'ttyname_r'.
37016         * modules/ttyname_r-tests: New file.
37017         * tests/test-ttyname_r.c: New file.
37018
37019         New module 'ttyname_r'.
37020         * lib/ttyname_r.c: New file.
37021         * m4/ttyname_r.m4: New file.
37022         * modules/ttyname_r: New file.
37023         * lib/unistd.in.h (ttyname_r): New declaration.
37024         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37025         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37026         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37027         HAVE_TTYNAME_R.
37028         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37029         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37030
37031 2010-03-20  Bruno Haible  <bruno@clisp.org>
37032
37033         signal: Undefine macro definitions in C++ mode.
37034         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37035         sigfillset): Undefine macro definitions from the system header in C++
37036         mode.
37037         Reported by John W. Eaton <jwe@gnu.org>.
37038
37039 2010-03-20  Bruno Haible  <bruno@clisp.org>
37040
37041         Ensure no #include statements inside extern "C" { ... }.
37042         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37043         contain #include statements.
37044         * lib/time.in.h: Likewise.
37045
37046 2010-03-20  Bruno Haible  <bruno@clisp.org>
37047
37048         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37049         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37050         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37051         Reported by John W. Eaton <jwe@gnu.org>.
37052
37053 2010-03-20  Bruno Haible  <bruno@clisp.org>
37054
37055         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37056         Reported by Jim Meyering.
37057
37058 2010-03-20  Bruno Haible  <bruno@clisp.org>
37059
37060         pipe: Set errno upon failure.
37061         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37062         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37063         errno value in error message.
37064
37065 2010-03-20  Bruno Haible  <bruno@clisp.org>
37066             Jim Meyering  <meyering@redhat.com>
37067
37068         lchown: Avoid "unused variable" warning.
37069         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37070
37071 2010-03-20  Bruno Haible  <bruno@clisp.org>
37072
37073         Work around unlink() bug on MacOS X 10.5.6.
37074         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37075         attempting to unlink a parent directory.
37076         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37077         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37078         activate for the replacement function.
37079         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37080
37081 2010-03-20  Bruno Haible  <bruno@clisp.org>
37082
37083         Fix link errors on Solaris 8.
37084         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37085         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37086
37087 2010-03-19  Jim Meyering  <meyering@redhat.com>
37088
37089         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37090         The _LIBC implementation of build_range_exp correctly honors the
37091         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37092         However, the non-_LIBC implementation would ignore that syntax-bit
37093         flag and return REG_ERANGE unconditionally.
37094         This change makes it honor that flag.
37095         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37096         Make two pointer parameters "const".
37097         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37098         (parse_bracket_exp): Update caller.
37099
37100         regex.m4: correct the reversed range endpoint ([b-a]) test
37101         * m4/regex.m4: When requiring that [b-a] evoke failure,
37102         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37103         test pass once again for x86-based systems.
37104
37105 2010-03-19  Bruno Haible  <bruno@clisp.org>
37106
37107         scandir: Fix link error on Solaris 8.
37108         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37109         macros.
37110
37111 2010-03-19  Bruno Haible  <bruno@clisp.org>
37112
37113         getusershell: Fix documentation.
37114         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37115         module.
37116         * doc/glibc-functions/setusershell.texi: Likewise.
37117
37118         getusershell: Provide declaration, missing on Solaris 9.
37119         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37120         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37121         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37122         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37124         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37125         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37126         HAVE_GETUSERSHELL.
37127         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37128
37129 2010-03-19  Bruno Haible  <bruno@clisp.org>
37130
37131         wctype: Provide iswblank function.
37132         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37133         exists and is fine.
37134         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37135         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37136         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37137         * doc/posix-functions/iswblank.texi: Update.
37138
37139 2010-03-19  Bruno Haible  <bruno@clisp.org>
37140
37141         Tests of module 'pty' in C++ mode.
37142         * modules/pty-tests: New file.
37143         * tests/test-pty-c++.cc: New file.
37144         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37145
37146 2010-03-19  Eric Blake  <eblake@redhat.com>
37147
37148         logb: fix documentation
37149         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37150         1.5 declaration bug.
37151
37152         forkpty, openpty: prefer glibc's const-safe prototype
37153         * lib/forkpty.c (rpl_forkpty): New file.
37154         * lib/openpty.c (rpl_openpty): Likewise.
37155         * modules/forkpty (Files): Distribute it.
37156         * modules/openpty (Files): Likewise.
37157         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37158         check...
37159         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37160         replacement for for non-const BSD signature.
37161         * modules/pty (Makefile.am): Substitute witnesses.
37162         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37163         * tests/test-forkpty.c: Update signature check.
37164         * tests/test-openpty.c: Likewise.
37165         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37166         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37167
37168         forkpty, openpty: split functions into new modules
37169         * modules/pty (Makefile.am): Substitute new witnesses.
37170         (Libraries): Move library detection...
37171         * modules/forkpty: ...into new module.
37172         * modules/openpty: Another new module.
37173         * modules/pty-tests: Rename and split...
37174         * modules/forkpty-tests: ...to this...
37175         * modules/openpty-tests: ...and this.
37176         * tests/test-pty.c: Rename and split...
37177         * tests/test-forkpty.c: ...to this...
37178         * tests/test-openpty.c: ...and this.
37179         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37180         (gl_PTY): Split library searching...
37181         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37182         (gl_FORKPTY, gl_OPENPTY): New macros.
37183         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37184         * NEWS: Mention the split.
37185         * MODULES.html.sh (Misc): Document the modules.
37186         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37187         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37188
37189         pty: improve replacement header
37190         * lib/pty.in.h: New file.
37191         * modules/pty (Files): Ship it.
37192         (Makefile.am): Always build replacement.
37193         * m4/pty.m4: Rename...
37194         * m4/pty_h.m4: ...to this.
37195         (gl_PTY): Modernize setting of witness macros; update check of
37196         forkpty to take proper advantage of cache.
37197         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37198
37199         getopt: avoid compiler warning
37200         * lib/getopt.c (attribute_hidden): Remove unused macro.
37201
37202 2010-03-18  Bruno Haible  <bruno@clisp.org>
37203
37204         Fix link errors on Solaris 8.
37205         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37206         * modules/search-tests (test_search_c___LDADD): Likewise.
37207         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37208         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37209         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37210         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37211         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37212         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37213         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37214
37215 2010-03-18  Bruno Haible  <bruno@clisp.org>
37216
37217         Fix bug introduced on 2010-03-14.
37218         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37219         (gl_SPAWN_H): Require it.
37220         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37221         Reported by Simon Josefsson.
37222
37223 2010-03-18  Bruno Haible  <bruno@clisp.org>
37224
37225         Fix typo introduced on 2009-12-31.
37226         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37227         posix_spawn_file_actions_adddup2.
37228
37229 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37230         and Eric Blake  <eblake@redhat.com>
37231
37232         test-vc-list-files-git: make more robust
37233         * tests/test-vc-list-files-git.sh: Unset problematic environment
37234         variables.  Chain commands together.
37235
37236 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37237
37238         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37239         `AC_CHECK_DECL' invocation.
37240
37241 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37242
37243         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37244         appears before executable statements. Suggested by Petr Sumbera
37245         <Petr.Sumbera@Sun.COM>.
37246
37247 2010-03-14  Bruno Haible  <bruno@clisp.org>
37248
37249         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37250         portability problems. Instead use a simpler test.
37251         (main): Check that invalid arguments are rejected only on Linux.
37252
37253 2010-03-14  Bruno Haible  <bruno@clisp.org>
37254
37255         Fix bug introduced on 2009-12-31.
37256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37257         gl_PREREQ_SYS_H_WINSOCK2 always.
37258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37259         SYS_SOCKET_H variable.
37260         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37261         Update comments.
37262         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37263         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37264         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37265         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37266         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37267
37268 2010-03-14  Bruno Haible  <bruno@clisp.org>
37269
37270         Fix values returned by sinl, cosl.
37271         * lib/trigl.h: Add specification comments.
37272         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37273         that combines the values from the precomputed table with the values of
37274         the Chebyshev polynomials.
37275
37276 2010-03-14  Bruno Haible  <bruno@clisp.org>
37277
37278         Fix compilation error when modules 'posix_spawn[p]' are not used.
37279         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37281
37282 2010-03-14  Bruno Haible  <bruno@clisp.org>
37283
37284         Fix compilation error on mingw when module 'time_r' is not used.
37285         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37286         is 1.
37287         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37288         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37289         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37290         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37291
37292 2010-03-14  Bruno Haible  <bruno@clisp.org>
37293
37294         Fix compilation error with Sun C.
37295         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37296         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37297         instead of GCC specific ULONG_LONG_MAX.
37298         * lib/xstrtoll.c: Likewise.
37299         * lib/xstrtoull.c: Likewise.
37300
37301 2010-03-13  Bruno Haible  <bruno@clisp.org>
37302
37303         Allow the user to disable C++ code and tests.
37304         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37305         (gl_PROG_ANSI_CXX): Require it.
37306
37307 2010-03-13  Bruno Haible  <bruno@clisp.org>
37308
37309         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37310         cases.
37311
37312 2010-03-13  Bruno Haible  <bruno@clisp.org>
37313
37314         Test that gnulib does not break the standard C++ headers.
37315         * tests/test-locale-c++2.cc: New file.
37316         * modules/locale-tests (Files): Add it.
37317         (Makefile.am): Compile it for test-locale-c++.
37318         * tests/test-math-c++2.cc: New file.
37319         * modules/math-tests (Files): Add it.
37320         (Makefile.am): Compile it for test-math-c++.
37321         * tests/test-signal-c++2.cc: New file.
37322         * modules/signal-tests (Files): Add it.
37323         (Makefile.am): Compile it for test-signal-c++.
37324         * tests/test-stdio-c++2.cc: New file.
37325         * modules/stdio-tests (Files): Add it.
37326         (Makefile.am): Compile it for test-stdio-c++.
37327         * tests/test-stdlib-c++2.cc: New file.
37328         * modules/stdlib-tests (Files): Add it.
37329         (Makefile.am): Compile it for test-stdlib-c++.
37330         * tests/test-string-c++2.cc: New file.
37331         * modules/string-tests (Files): Add it.
37332         (Makefile.am): Compile it for test-string-c++.
37333         * tests/test-time-c++2.cc: New file.
37334         * modules/time-tests (Files): Add it.
37335         (Makefile.am): Compile it for test-time-c++.
37336         Reported by John W. Eaton <jwe@gnu.org>.
37337
37338 2010-03-13  Bruno Haible  <bruno@clisp.org>
37339
37340         * gnulib-tool (func_usage): Clarify which options are available for
37341         --create-testdir and --create-megatestdir.
37342
37343 2010-03-13  Bruno Haible  <bruno@clisp.org>
37344
37345         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37346         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37347         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37348         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37349         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37350         when appropriate.
37351         Reported by Jim Meyering.
37352
37353 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37354
37355         * gnulib-tool (func_import): Explain origin of code.
37356
37357 2010-03-12  Bruno Haible  <bruno@clisp.org>
37358
37359         Fix problem with automake's definition of CXXLINK.
37360         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37361         Reported by Simon Josefsson and Ludovic Courtès.
37362
37363 2010-03-12  Bruno Haible  <bruno@clisp.org>
37364
37365         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37366         stable releases.
37367
37368 2010-03-11  Bruno Haible  <bruno@clisp.org>
37369
37370         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37371         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37372         whether the system provides one variant or multiple variants of the
37373         function.
37374         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37375         C++ compilers.
37376         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37377         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37378         Reported by Jim Meyering.
37379
37380 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37381
37382         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37383
37384 2010-03-08  Bruno Haible  <bruno@clisp.org>
37385
37386         gnulib-tool: Add support for --libtool in --create-testdir.
37387         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37388         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37389
37390 2010-03-08  Eric Blake  <eblake@redhat.com>
37391
37392         gnulib-tool.texi: mention possibility of git submodule
37393         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37394         submodules.
37395         * doc/.gitignore: Ignore another generated file.
37396
37397 2010-03-08  Karl Berry  <karl@gnu.org>
37398
37399         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37400         of committing gnulib files while skipping others.
37401
37402 2010-03-07  Bruno Haible  <bruno@clisp.org>
37403
37404         Tests of module 'wctype' in C++ mode.
37405         * tests/test-wctype-c++.cc: New file.
37406         * modules/wctype-tests (Files): Add it and tests/signature.h.
37407         (Depends-on): Add ansi-c++-opt.
37408         (Makefile.am): Arrange to compile and run test-wctype-c++.
37409
37410         Tests of module 'wchar' in C++ mode.
37411         * tests/test-wchar-c++.cc: New file.
37412         * modules/wchar-tests (Files): Add it and tests/signature.h.
37413         (Depends-on): Add ansi-c++-opt.
37414         (Makefile.am): Arrange to compile and run test-wchar-c++.
37415         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37416         gl_MODULE_INDICATOR.
37417
37418         Tests of module 'unistd' in C++ mode.
37419         * tests/test-unistd-c++.cc: New file.
37420         * modules/unistd-tests (Files): Add it and tests/signature.h.
37421         (Depends-on): Add ansi-c++-opt.
37422         (Makefile.am): Arrange to compile and run test-unistd-c++.
37423         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37424         gl_MODULE_INDICATOR.
37425
37426         Tests of module 'time' in C++ mode.
37427         * tests/test-time-c++.cc: New file.
37428         * modules/time-tests (Files): Add it and tests/signature.h.
37429         (Depends-on): Add ansi-c++-opt.
37430         (Makefile.am): Arrange to compile and run test-time-c++.
37431         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37432
37433         Tests of module 'sys_time' in C++ mode.
37434         * tests/test-sys_time-c++.cc: New file.
37435         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37436         (Depends-on): Add ansi-c++-opt.
37437         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37438         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37439         gl_MODULE_INDICATOR.
37440
37441         Tests of module 'sys_stat' in C++ mode.
37442         * tests/test-sys_stat-c++.cc: New file.
37443         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37444         (Depends-on): Add ansi-c++-opt.
37445         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37446         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37447         gl_MODULE_INDICATOR.
37448
37449         Tests of module 'sys_socket' in C++ mode.
37450         * tests/test-sys_socket-c++.cc: New file.
37451         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37452         (Depends-on): Add ansi-c++-opt.
37453         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37454         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37455         gl_MODULE_INDICATOR.
37456
37457         Tests of module 'sys_select' in C++ mode.
37458         * tests/test-sys_select-c++.cc: New file.
37459         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37460         (Depends-on): Add ansi-c++-opt.
37461         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37462         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37463         gl_MODULE_INDICATOR.
37464
37465         Tests of module 'sys_ioctl' in C++ mode.
37466         * tests/test-sys_ioctl-c++.cc: New file.
37467         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37468         (Depends-on): Add ansi-c++-opt.
37469         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37470         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37471         gl_MODULE_INDICATOR.
37472
37473         Tests of module 'string' in C++ mode.
37474         * tests/test-string-c++.cc: New file.
37475         * modules/string-tests (Files): Add it and tests/signature.h.
37476         (Depends-on): Add ansi-c++-opt.
37477         (Makefile.am): Arrange to compile and run test-string-c++.
37478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37479         gl_MODULE_INDICATOR.
37480
37481         Tests of module 'stdlib' in C++ mode.
37482         * tests/test-stdlib-c++.cc: New file.
37483         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37484         (Depends-on): Add ansi-c++-opt.
37485         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37486         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37487         gl_MODULE_INDICATOR.
37488
37489         Tests of module 'stdio' in C++ mode.
37490         * tests/test-stdio-c++.cc: New file.
37491         * modules/stdio-tests (Files): Add it and tests/signature.h.
37492         (Depends-on): Add ansi-c++-opt.
37493         (Makefile.am): Arrange to compile and run test-stdio-c++.
37494         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37495         gl_MODULE_INDICATOR.
37496
37497         Tests of module 'spawn' in C++ mode.
37498         * tests/test-spawn-c++.cc: New file.
37499         * modules/spawn-tests (Files): Add it and tests/signature.h.
37500         (Depends-on): Add ansi-c++-opt.
37501         (Makefile.am): Arrange to compile and run test-spawn-c++.
37502         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37503         gl_MODULE_INDICATOR.
37504
37505         Tests of module 'signal' in C++ mode.
37506         * tests/test-signal-c++.cc: New file.
37507         * modules/signal-tests (Files): Add it and tests/signature.h.
37508         (Depends-on): Add ansi-c++-opt.
37509         (Makefile.am): Arrange to compile and run test-signal-c++.
37510         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37511         gl_MODULE_INDICATOR.
37512
37513         Tests of module 'search' in C++ mode.
37514         * tests/test-search-c++.cc: New file.
37515         * modules/search-tests (Files): Add it and tests/signature.h.
37516         (Depends-on): Add ansi-c++-opt.
37517         (Makefile.am): Arrange to compile and run test-search-c++.
37518         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37519         gl_MODULE_INDICATOR.
37520
37521         Tests of module 'math' in C++ mode.
37522         * tests/test-math-c++.cc: New file.
37523         * modules/math-tests (Files): Add it and tests/signature.h.
37524         (Depends-on): Add ansi-c++-opt.
37525         (Makefile.am): Arrange to compile and run test-math-c++.
37526         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37527
37528         Tests of module 'locale' in C++ mode.
37529         * tests/test-locale-c++.cc: New file.
37530         * modules/locale-tests (Files): Add it and tests/signature.h.
37531         (Depends-on): Add ansi-c++-opt.
37532         (Makefile.am): Arrange to compile and run test-locale-c++.
37533         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37534         gl_MODULE_INDICATOR.
37535
37536         Tests of module 'langinfo' in C++ mode.
37537         * tests/test-langinfo-c++.cc: New file.
37538         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37539         (Depends-on): Add ansi-c++-opt.
37540         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37541         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37542         gl_MODULE_INDICATOR.
37543
37544         Tests of module 'iconv-h' in C++ mode.
37545         * tests/test-iconv-h-c++.cc: New file.
37546         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37547         (Depends-on): Add ansi-c++-opt.
37548         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37549
37550         Tests of module 'glob' in C++ mode.
37551         * tests/test-glob-c++.cc: New file.
37552         * modules/glob-tests (Files): Add it.
37553         (Depends-on): Add ansi-c++-opt.
37554         (Makefile.am): Arrange to compile and run test-glob-c++.
37555
37556         Tests of module 'fcntl-h' in C++ mode.
37557         * tests/test-fcntl-h-c++.cc: New file.
37558         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37559         (Depends-on): Add ansi-c++-opt.
37560         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37561         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37562         gl_MODULE_INDICATOR.
37563
37564         Tests of module 'dirent' in C++ mode.
37565         * tests/test-dirent-c++.cc: New file.
37566         * modules/dirent-tests (Files): Add it and tests/signature.h.
37567         (Depends-on): Add ansi-c++-opt.
37568         (Makefile.am): Arrange to compile and run test-dirent-c++.
37569         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37570         gl_MODULE_INDICATOR.
37571
37572         New module 'ansi-c++-opt'.
37573         * modules/ansi-c++-opt: New file.
37574         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37575
37576         Document C++ namespace mode.
37577         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37578
37579         wctype: Avoid #define replacements in C++ mode.
37580         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37581         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37582         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37583         In C++, define a namespaced alias symbol.
37584         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37585         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37586         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37587         rule.
37588
37589         wchar: Avoid #define replacements in C++ mode.
37590         * lib/wchar.in.h: Include c++defs.h.
37591         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37592         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37593         symbol.
37594         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37595         * modules/wchar (Depends-on): Add c++defs.
37596         (Makefile.am): Update wchar.h rule.
37597
37598         unistd: Avoid #define replacements in C++ mode.
37599         * lib/unistd.in.h: Include c++defs.h.
37600         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37601         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37602         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37603         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37604         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37605         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37606         symbol.
37607         (environ): Update.
37608         * modules/unistd (Depends-on): Add c++defs.
37609         (Makefile.am): Update unistd.h rule.
37610
37611         time: Avoid #define replacements in C++ mode.
37612         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37613         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37614         define a namespaced alias symbol.
37615         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37616         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37617         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37618         * modules/time (Depends-on): Add c++defs, warn-on-use.
37619         (Makefile.am): Update time.h rule.
37620         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37621         * modules/nanosleep (configure.ac): Likewise.
37622         * modules/strptime (configure.ac): Likewise.
37623         * modules/timegm (configure.ac): Likewise.
37624
37625         sys_time: Avoid #define replacements in C++ mode.
37626         * lib/sys_time.in.h: Include c++defs.h.
37627         (gettimeofday): In C++, define a namespaced alias symbol.
37628         * modules/sys_time (Depends-on): Add c++defs.
37629         (Makefile.am): Update sys/time.h rule.
37630
37631         sys_stat: Avoid #define replacements in C++ mode.
37632         * lib/sys_stat.in.h: Include c++defs.h.
37633         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37634         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37635         namespaced alias symbol.
37636         In C++, define a namespaced alias symbol.
37637         * modules/sys_stat (Depends-on): Add c++defs.
37638         (Makefile.am): Update sys/stat.h rule.
37639
37640         sys_socket: Avoid #define replacements in C++ mode.
37641         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37642         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37643         definitions also when the system has a <sys/socket.h>.
37644         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37645         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37646         In C++, define a namespaced alias symbol.
37647         * modules/sys_socket (Depends-on): Add c++defs.
37648         (Makefile.am): Update sys/socket.h rule.
37649
37650         sys_select: Avoid #define replacements in C++ mode.
37651         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37652         definitions also when the system has a <sys/select.h>.
37653         (select): In C++, define a namespaced alias symbol.
37654         * modules/sys_select (Depends-on): Add c++defs.
37655         (Makefile.am): Update sys/select.h rule.
37656
37657         sys_ioctl: Avoid #define replacements in C++ mode.
37658         * lib/sys_ioctl.in.h: Include c++defs.h.
37659         (ioctl): In C++, define a namespaced alias symbol.
37660         * modules/sys_ioctl (Depends-on): Add c++defs.
37661         (Makefile.am): Update sys/ioctl.h rule.
37662
37663         string: Avoid #define replacements in C++ mode.
37664         * lib/string.in.h: Include c++defs.h.
37665         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37666         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37667         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37668         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37669         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37670         * modules/string (Depends-on): Add c++defs.
37671         (Makefile.am): Update string.h rule.
37672
37673         stdlib: Avoid #define replacements in C++ mode.
37674         * lib/stdlib.in.h: Include c++defs.h.
37675         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37676         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37677         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37678         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37679         symbol.
37680         * modules/stdlib (Depends-on): Add c++defs.
37681         (Makefile.am): Update stdlib.h rule.
37682
37683         stdio: Avoid #define replacements in C++ mode.
37684         * lib/stdio.in.h: Include c++defs.h.
37685         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37686         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37687         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37688         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37689         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37690         namespaced alias symbol.
37691         * modules/stdio (Depends-on): Add c++defs.
37692         (Makefile.am): Update stdio.h rule.
37693
37694         spawn: Avoid #define replacements in C++ mode.
37695         * lib/spawn.in.h: Include c++defs.h.
37696         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37697         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37698         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37699         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37700         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37701         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37702         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37703         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37704         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37705         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37706         In C++, define a namespaced alias symbol.
37707         * modules/spawn (Depends-on): Add c++defs.
37708         (Makefile.am): Update spawn.h rule.
37709
37710         signal: Avoid #define replacements in C++ mode.
37711         * lib/signal.in.h: Include c++defs.h.
37712         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37713         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37714         namespaced alias symbol.
37715         * modules/signal (Depends-on): Add c++defs.
37716         (Makefile.am): Update signal.h rule.
37717
37718         search: Avoid #define replacements in C++ mode.
37719         * lib/search.in.h: Include c++defs.h.
37720         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37721         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37722         symbol.
37723         * modules/search (Depends-on): Add c++defs.
37724         (Makefile.am): Update search.h rule.
37725
37726         math: Avoid #define replacements in C++ mode.
37727         * lib/math.in.h: Include c++defs.h.
37728         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37729         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37730         trunc, truncl): In C++, define a namespaced alias symbol.
37731         * modules/math (Depends-on): Add c++defs.
37732         (Makefile.am): Update math.h rule.
37733
37734         locale: Avoid #define replacements in C++ mode.
37735         * lib/locale.in.h: Include c++defs.h.
37736         (duplocale): In C++, define a namespaced alias symbol.
37737         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37738         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37739         * modules/locale (Depends-on): Add c++defs.
37740         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37741
37742         langinfo: Avoid #define replacements in C++ mode.
37743         * lib/langinfo.in.h: Include c++defs.h.
37744         (nl_langinfo): In C++, define a namespaced alias symbol.
37745         * modules/langinfo (Depends-on): Add c++defs.
37746         (Makefile.am): Update langinfo.h rule.
37747
37748         iconv-h: Avoid #define replacements in C++ mode.
37749         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37750         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37751         symbol.
37752         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37753         whenever iconv is present.
37754         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37755         (Makefile.am): Update iconv.h rule.
37756
37757         glob: Avoid #define replacements in C++ mode.
37758         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37759         (_gl_glob_errfunc_fn): New type.
37760         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37761         symbol.
37762         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37763         (Makefile.am): Update glob.h rule.
37764
37765         fcntl-h: Avoid #define replacements in C++ mode.
37766         * lib/fcntl.in.h: Include c++defs.h.
37767         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37768         * modules/fcntl-h (Depends-on): Add c++defs.
37769         (Makefile.am): Update fcntl.h rule.
37770
37771         dirent: Avoid #define replacements in C++ mode.
37772         * lib/dirent.in.h: Include c++defs.h.
37773         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37774         namespaced alias symbol.
37775         (dirfd): Update declaration.
37776         * modules/dirent (Depends-on): Add c++defs.
37777         (Makefile.am): Update dirent.h rule.
37778
37779         ctype: Make it usable in C++ code.
37780         * lib/ctype.in.h: Include c++defs.h.
37781         (isblank): Declare as extern "C".
37782         * modules/ctype (Depends-on): Add c++defs.
37783         (Makefile.am): Update ctype.h rule.
37784
37785         New module 'c++defs'.
37786         * modules/c++defs: New file.
37787         * build-aux/c++defs.h: New file.
37788         Reported by John W. Eaton <jwe@gnu.org>.
37789
37790 2010-03-07  Bruno Haible  <bruno@clisp.org>
37791
37792         logb: Provide missing declaration for Cygwin.
37793         * lib/math.in.h (logb): New declaration.
37794         * m4/logb.m4: New file.
37795         * modules/logb (Files): Add m4/logb.m4.
37796         (Depends-on): Add math.
37797         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37798         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37800         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37801         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37802
37803 2010-03-07  Bruno Haible  <bruno@clisp.org>
37804
37805         Fix test-cond link error.
37806         * tests/test-cond.c: Include <stdio.h>.
37807
37808 2010-03-07  Bruno Haible  <bruno@clisp.org>
37809
37810         Fix test-dirent-safer link error.
37811         * modules/dirent-safer-tests (Makefile.am): Define
37812         test_dirent_safer_LDADD.
37813
37814 2010-03-07  Bruno Haible  <bruno@clisp.org>
37815
37816         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37817         among default module list.
37818
37819 2010-03-07  Bruno Haible  <bruno@clisp.org>
37820
37821         Fix link error on platforms with GNU libiconv.
37822         * modules/unistr/u8-strcoll-tests (Makefile): Define
37823         test_u8_strcoll_LDADD.
37824         * modules/unistr/u16-strcoll-tests (Makefile): Define
37825         test_u16_strcoll_LDADD.
37826         * modules/unistr/u32-strcoll-tests (Makefile): Define
37827         test_u32_strcoll_LDADD.
37828
37829 2010-03-07  Bruno Haible  <bruno@clisp.org>
37830
37831         Use POSIX declarations for socket functions.
37832         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37833         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37834         rpl_sendto): Change declaration to match POSIX.
37835         * lib/connect.c (rpl_connect): Likewise.
37836         * lib/accept.c (rpl_accept): Likewise.
37837         * lib/bind.c (rpl_bind): Likewise.
37838         * lib/getpeername.c (rpl_getpeername): Likewise.
37839         * lib/getsockname.c (rpl_getsockname): Likewise.
37840         * lib/recv.c (rpl_recv): Likewise.
37841         * lib/send.c (rpl_send): Likewise.
37842         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37843         * lib/sendto.c (rpl_sendto): Likewise.
37844
37845 2010-03-06  Bruno Haible  <bruno@clisp.org>
37846
37847         Clarify access, euidaccess, faccessat.
37848         * doc/posix-functions/faccessat.texi: Mention security problem under
37849         "Other problems", not "Portability problems".
37850         * doc/posix-functions/access.texi: Likewise. Mention a related security
37851         problem.
37852         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37853         * lib/euidaccess.c: Add comments about platforms.
37854         * lib/unistd.in.h (access, euidaccess): Add warnings.
37855
37856 2010-03-07  Bruno Haible  <bruno@clisp.org>
37857
37858         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37859         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37860         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37861         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37862         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37863         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37864         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37865         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37866         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37868         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37869         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37870         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37871         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37872         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37873         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37874         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37875         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37876         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37877         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37878         Likewise.
37879         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37880         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37881         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37882         Likewise.
37883         * tests/test-spawn.c (main): Make it work when
37884         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37885
37886 2010-03-07  Bruno Haible  <bruno@clisp.org>
37887
37888         Fix incorrect Makefile.am generation in German locale.
37889         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37890         Execute sed command with character range in C locale.
37891
37892 2010-03-06  Bruno Haible  <bruno@clisp.org>
37893
37894         Tests for module 'iconv-h'.
37895         * modules/iconv-h-tests: New file.
37896         * tests/test-iconv-h.c: New file.
37897
37898         New module 'iconv-h'.
37899         * modules/iconv-h: New file.
37900         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37901         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37902         (configure.ac): Remove gl_ICONV_H.
37903         (Makefile.am): Remove rule for iconv.h.
37904
37905 2010-03-06  Bruno Haible  <bruno@clisp.org>
37906
37907         More consistent naming of *.m4 files.
37908         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37909         * modules/wctype (Files): Update.
37910
37911         More consistent naming of *.m4 files.
37912         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37913         * modules/wchar (Files): Update.
37914
37915 2010-03-06  Jim Meyering  <meyering@redhat.com>
37916
37917         euidaccess: relax license to LGPLv2+
37918         * modules/euidaccess (License): Relax to LGPLv2+.
37919
37920 2010-03-06  Bruno Haible  <bruno@clisp.org>
37921
37922         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37923         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37924         (Makefile.am): Augment lib_SOURCES instead.
37925
37926 2010-03-04  Jim Meyering  <meyering@redhat.com>
37927
37928         utime: remove obsolete module
37929         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37930         unnecessary for years, and has been marked as obsolete for 10 months.
37931         * modules/utime: Remove file.
37932         * lib/utime.c: Remove file.
37933         * m4/utime.m4: Remove file.
37934         * m4/utimes-null.m4: Remove file.
37935         * doc/posix-functions/utime.texi (utime): Remove reference to
37936         the module.  Move the sole "fixed by gnulib" item into the
37937         "problems not fixed by Gnulib" list.
37938         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37939
37940 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37941
37942         * modules/exit (License): Relax license to LGPLv2+.
37943         (Status): Mark as obsolete.
37944         * NEWS: Mention deprecated 'exit' module.
37945         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37946         of now obsolete 'exit'.
37947
37948 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37949
37950         fts-lgpl: remove unused module
37951         * modules/fts-lgpl: Remove.
37952         * MODULES.html.sh (func_all_modules): Adjust.
37953         * check-module (find_included_lib_files): Adjust.
37954         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37955
37956 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37957
37958         copy-acl: enhance Solaris ACL error handling
37959         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37960         * lib/set-mode-acl.c (qset_acl): Likewise.
37961
37962 2010-03-02  Bruno Haible  <bruno@clisp.org>
37963
37964         spawn: Don't override the system defined values on FreeBSD 8.
37965         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37966         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37967         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37968         if HAVE_POSIX_SPAWN is 1.
37969         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37970
37971 2010-03-01  Bruno Haible  <bruno@clisp.org>
37972
37973         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37974         regarding Automake.
37975
37976 2010-02-25  Bruno Haible  <bruno@clisp.org>
37977
37978         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37979         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37980         setting, not afterwards.
37981         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37982
37983 2010-02-24  Eric Blake  <eblake@redhat.com>
37984
37985         bootstrap, git-version-gen: use timestamp
37986         * build-aux/git-version-gen (scriptversion): Force UTC.
37987         * build-aux/bootstrap (scriptversion): New variable.
37988
37989         bootstrap: allow older git
37990         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37991         older than 1.6.4.  Requested by the libvirt project.
37992
37993 2010-02-23  Eric Blake  <eblake@redhat.com>
37994
37995         warn-on-use: work with old autoconf
37996         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37997         AS_VAR semantics of autoconf 2.60.
37998         Reported by Bruno Haible.
37999
38000         bootstrap: improve some comments
38001         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38002         clarification comments.
38003
38004         gettimeofday: provide correct function
38005         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38006         when replacement is declared, otherwise provide gettimeofday.
38007         Reported by Michael Goffioul.
38008
38009 2010-02-23  Jim Meyering  <meyering@redhat.com>
38010
38011         lib-ignore: relax license to "unlimited", not LGPLv2+
38012         * modules/lib-ignore (License): Relax to "unlimited".
38013
38014 2010-02-23  Jim Meyering  <meyering@redhat.com>
38015
38016         lib-ignore: relax license to LGPLv2+
38017         * modules/lib-ignore (License): Relax to LGPLv2+.
38018
38019 2010-02-22  Eric Blake  <eblake@redhat.com>
38020
38021         lseek: avoid bash 3.2 broken pipe bug
38022         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38023         warning from bash 3.2.
38024         Reported by Ben Pfaff, with analysis from Bruno Haible.
38025
38026         bootstrap: support non-FSF copyright holder
38027         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38028         bootstrap.conf override of COPYRIGHT_HOLDER.
38029         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38030
38031         bootstrap: interoperate with gettext 0.14.1
38032         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38033
38034         bootstrap: allow for alternate submodule location
38035         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38036         hardcoding submodule location.
38037         (gnulib_mk): Allow direct use of Makefile.am.
38038
38039         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38040         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38041         rather than reconfiguring where the submodule points.
38042
38043         gettimeofday: restore support for platforms that lack function
38044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38045         replacement if function is missing.
38046         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38047         * modules/sys_time (Makefile.am): Substitute it.
38048         * lib/sys_time.in.h (gettimeofday): Check it.
38049         Reported by Michael Goffioul.
38050
38051 2010-02-21  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/stdio.in.h (obstack_printf): Fix typo.
38054
38055 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38056
38057         vc-list-files: use bzr ls's -R option
38058         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38059         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38060
38061 2010-02-21  Jim Meyering  <meyering@redhat.com>
38062
38063         init.sh: fix EXEEXT shims to work also for names like test-prog
38064         * tests/init.sh: Re-exec a better shell, when needed.
38065         If the current shell lacks support for posix $(...), an init.sh-using
38066         test will now try to find a shell that supports that.  If EXEEXT is
38067         nonempty, we also require support for hyphen-in-alias-name and shell
38068         substitutions like ${var#glob}.  Failure to find such a shell results
38069         in a skipped test.
38070
38071 2010-02-21  Bruno Haible  <bruno@clisp.org>
38072
38073         Really work around around "broken pipe" error message from bash 3.2.
38074         * gnulib-tool (func_reset_sigpipe): Remove function.
38075         (echo): In bash 3.2, define to a function that uses printf.
38076         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38077
38078 2010-02-20  Bruno Haible  <bruno@clisp.org>
38079
38080         Restore support for automake 1.9.6 with autoconf 2.61.
38081         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38082         Reported by James Youngman <jay@gnu.org>.
38083
38084 2010-02-20  Bruno Haible  <bruno@clisp.org>
38085
38086         Improve *printf warning condition.
38087         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38088         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38089         and the function is overridden due to SIGPIPE emulation.
38090
38091 2010-02-20  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/stdio.in.h: Tweak comments.
38094
38095 2010-02-19  Bruno Haible  <bruno@clisp.org>
38096
38097         Make it easier to find modules. New gnulib-tool option '--find'.
38098         * gnulib-tool: New option --find.
38099         (func_usage): Document it.
38100         (func_sanitize_modulelist): New function, extracted from
38101         func_all_modules.
38102         (func_all_modules): Invoke it.
38103         * doc/gnulib-tool.texi (Which modules?): New node.
38104
38105 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38106
38107         * lib/sys_select.in.h: Provide select replacement even if
38108         sys/select.h exists on a system, for Interix.
38109
38110 2010-02-18  Jim Meyering  <meyering@redhat.com>
38111
38112         init.sh: don't use $(...) just yet
38113         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38114         to accommodate e.g., Solaris' /bin/sh.
38115
38116 2010-02-17  Bruno Haible  <bruno@clisp.org>
38117
38118         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38119         Reported by Ludovic Courtès <ludo@gnu.org>.
38120
38121 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38122
38123         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38124         linking with -lintl.
38125
38126 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38127
38128         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38129         if not provided by the system's netdb.h.  Reported by
38130         ludo@gnu.org (Ludovic Courtès).
38131
38132 2010-02-15  Jim Meyering  <meyering@redhat.com>
38133
38134         init.sh: improve portability and efficiency
38135         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38136         "dummy" in a for loop.
38137         Use '!', not '^' to select the complement of a character set used
38138         in a "case" statement.
38139         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38140         Suggestions from Eric Blake.
38141
38142         init.sh: automatically accommodate programs with the .exe suffix
38143         Automatically arrange for an invocation of "prog" to execute the
38144         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38145         may use the simpler "prog", yet still work when built on a system
38146         that requires specifying the added suffix.
38147         Do this by constructing a function named "prog" that invokes
38148         "prog.exe" for each .exe file in selected directories.
38149         * tests/init.sh (find_exe_basenames_): New function.
38150         (create_exe_shim_functions_): New function.
38151         (path_prepend_): Use it.
38152
38153         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38154         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38155         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38156
38157 2010-02-14  Jim Meyering  <meyering@redhat.com>
38158
38159         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38160         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38161         (sc_prohibit_hash_pjw_without_use): New rule.
38162
38163         maint.mk: allow the default upload destination dir to be overridden
38164         * top/maint.mk (upload_dest_dir_): Define with a default that
38165         preserves the status quo.
38166         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38167         Reported by Peter Simons.
38168
38169         maint.mk: prohibit inclusion of "hash.h" without_use
38170         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38171
38172 2010-02-10  Jim Meyering  <meyering@redhat.com>
38173
38174         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38175         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38176
38177 2010-02-09  Eric Blake  <ebb9@byu.net>
38178         and Bruno Haible  <bruno@clisp.org>
38179
38180         obstack-printf-posix: ensure declaration
38181         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38182         extracted from gl_FUNC_OBSTACK_PRINTF.
38183         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38184         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38185         Likewise.
38186         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38187         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38188         0.
38189
38190 2010-02-08  Bruno Haible  <bruno@clisp.org>
38191
38192         gnulib-tool: Fix typo in 2010-02-07 commit.
38193         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38194         Reported by Eric Blake.
38195
38196 2010-02-07  Bruno Haible  <bruno@clisp.org>
38197
38198         gnulib-tool: Fix up caching patches.
38199         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38200         option --no-cache. Use associative arrays when supported by the shell.
38201         (sed_comments): New variable.
38202         (modcache): Renamed from do_cache.
38203         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38204         abbreviate unnecessarily.
38205         (have_associative): New variable.
38206         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38207         way also for ksh and zsh.
38208         (func_init_sed_convert_to_cache_statements): New function, extracted
38209         from func_cache_lookup_module. Add support for associative arrays.
38210         Don't set the c_MODULE_cached variable here. Ignore all lines before
38211         the first field header. Remove only the final newline, not all trailing
38212         newlines. Support empty fields correctly. Limit the use of 'eval' to
38213         assignments.
38214         (func_get_description, func_get_status, func_get_notice,
38215         func_get_applicability, func_get_filelist, func_get_dependencies,
38216         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38217         func_get_automake_snippet, func_get_include_directive,
38218         func_get_link_directive, func_get_license, func_get_maintainer):
38219         Update documentation. List the unoptimized code first. Add support for
38220         associative arrays. Limit the use of 'eval' to assignments.
38221         (func_get_applicability): Undo stylistic pessimisations.
38222         (func_get_automake_snippet, func_get_include_directive): Reduce code
38223         duplication.
38224         (func_modules_transitive_closure, func_modules_add_dummy,
38225         func_modules_notice, func_modules_to_filelist, func_add_file,
38226         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38227         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38228         func_create_testdir, func_create_megatestdir): Update documentation.
38229
38230 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38231
38232         * gnulib-tool (func_cache_lookup_module): Store the module name
38233         belonging to the cache variable; error out if two different
38234         module names map to the same cache variable name.
38235
38236 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38237
38238         gnulib-tool: Make caching optional.
38239         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38240         Update matching short versions of --no-changelog.
38241         (func_usage): Update.
38242         (sed_extract_cache_prog): Renamed from ...
38243         (sed_extract_prog): ... this; revert to old extraction script.
38244         (func_get_description, func_get_status)
38245         (func_get_notice, func_get_applicability, func_get_filelist)
38246         (func_get_dependencies, func_get_autoconf_early_snippet)
38247         (func_get_autoconf_snippet, func_get_automake_snippet)
38248         (func_get_include_directive, func_get_link_directive)
38249         (func_get_license, func_get_maintainer): If $do_cache is false,
38250         use old, non-caching extraction scripts.
38251         Suggestion by Bruno Haible.
38252
38253 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38254
38255         gnulib-tool: cache module metainformation.
38256         * gnulib-tool (sed_extract_prog): Match newline before each
38257         header, and rewrite header to a shell variable suffix.
38258         (func_cache_var, func_cache_lookup_module): New functions,
38259         to turn a module name into a cache variable prefix, and to
38260         look up and cache module metainformation.
38261         (func_get_description, func_get_status)
38262         (func_get_notice, func_get_applicability, func_get_filelist)
38263         (func_get_dependencies, func_get_autoconf_early_snippet)
38264         (func_get_autoconf_snippet, func_get_automake_snippet)
38265         (func_get_include_directive, func_get_link_directive)
38266         (func_get_license, func_get_maintainer): Use
38267         func_cache_lookup_module.
38268
38269 2010-02-07  Bruno Haible  <bruno@clisp.org>
38270
38271         fnctl: Fix missing dependency.
38272         * modules/fcntl (Depends-on): Add getdtablesize.
38273         Reported by John W. Eaton <jwe@gnu.org>.
38274
38275 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38276
38277         Argp: fix recognition of short alias options.
38278
38279         * lib/argp-parse.c (convert_options): Fix improper use of
38280         `|' between character values.
38281         * tests/test-argp.c (group1_option): New alias option
38282         --read (-r).
38283         (group1_parser): Special handling for 'r'.
38284         (test15): New test case.
38285         (test_fun): Add test15.
38286         * tests/test-argp-2.sh: Update expected --help and --usage
38287         outputs.
38288
38289 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38290
38291         * tests/test-argp.c: Fix indentation.
38292
38293 2010-02-04  Eric Blake  <ebb9@byu.net>
38294
38295         gettimeofday: expose type of second argument
38296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38297         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38298         * tests/test-gettimeofday.c: Use it to silence warning.
38299         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38300         the issue.
38301
38302 2010-02-03  Jim Meyering  <meyering@redhat.com>
38303
38304         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38305         * lib/regcomp.c (TYPE_SIGNED): Define.
38306         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38307
38308         regcomp.c: avoid a new -Wshadow warning
38309         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38310
38311 2010-02-01  Jim Meyering  <meyering@redhat.com>
38312
38313         removing useless parentheses in cpp #define directives
38314         For motivation, see commit c0221df4, "define STREQ(a,b)
38315         consistently, removing useless parentheses"
38316         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38317         * lib/mountlist.c (MNT_IGNORE): Likewise.
38318         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38319
38320 2010-02-01  Eric Blake  <ebb9@byu.net>
38321
38322         sys_time: use link-warning
38323         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38324         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38325         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38326         * modules/sys_time (Depends-on): Add warn-on-use.
38327         (Makefile.am): Always build replacement.
38328         (configure.ac): Update substitutions.
38329         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38330         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38331         bother with SYS_TIME_H.
38332         * modules/gettimeofday (configure.ac): Declare indicator.
38333         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38334         in use.
38335
38336         closein-tests: silence compiler warning
38337         * tests/test-closein.c (main): Ignore fread result.
38338         * modules/closein-tests (Depends-on): Add ignore-value.
38339
38340         tests: silence warning about system return
38341         * tests/test-areadlink-with-size.c (main): Ignore system result.
38342         * tests/test-areadlink.c (main): Likewise.
38343         * tests/test-areadlinkat-with-size.c (main): Likewise.
38344         * tests/test-areadlinkat.c (main): Likewise.
38345         * tests/test-canonicalize-lgpl.c (main): Likewise.
38346         * tests/test-canonicalize.c (main): Likewise.
38347         * tests/test-chown.c (main): Likewise.
38348         * tests/test-fchownat.c (main): Likewise.
38349         * tests/test-fdutimensat.c (main): Likewise.
38350         * tests/test-fstatat.c (main): Likewise.
38351         * tests/test-futimens.c (main): Likewise.
38352         * tests/test-lchown.c (main): Likewise.
38353         * tests/test-link.c (main): Likewise.
38354         * tests/test-linkat.c (main): Likewise.
38355         * tests/test-lstat.c (main): Likewise.
38356         * tests/test-mkdir.c (main): Likewise.
38357         * tests/test-mkdirat.c (main): Likewise.
38358         * tests/test-mkfifo.c (main): Likewise.
38359         * tests/test-mkfifoat.c (main): Likewise.
38360         * tests/test-mknod.c (main): Likewise.
38361         * tests/test-readlink.c (main): Likewise.
38362         * tests/test-remove.c (main): Likewise.
38363         * tests/test-rename.c (main): Likewise.
38364         * tests/test-renameat.c (main): Likewise.
38365         * tests/test-rmdir.c (main): Likewise.
38366         * tests/test-symlink.c (main): Likewise.
38367         * tests/test-symlinkat.c (main): Likewise.
38368         * tests/test-unlink.c (main): Likewise.
38369         * tests/test-unlinkat.c (main): Likewise.
38370         * tests/test-utimens.c (main): Likewise.
38371         * tests/test-utimensat.c (main): Likewise.
38372         * modules/areadlink-tests (Depends-on): Add ignore-value.
38373         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38374         * modules/areadlinkat-tests (Depends-on): Likewise.
38375         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38376         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38377         * modules/canonicalize-tests (Depends-on): Likewise.
38378         * modules/chown-tests (Depends-on): Likewise.
38379         * modules/fdutimensat-tests (Depends-on): Likewise.
38380         * modules/futimens-tests (Depends-on): Likewise.
38381         * modules/lchown-tests (Depends-on): Likewise.
38382         * modules/link-tests (Depends-on): Likewise.
38383         * modules/linkat-tests (Depends-on): Likewise.
38384         * modules/lstat-tests (Depends-on): Likewise.
38385         * modules/mkdir-tests (Depends-on): Likewise.
38386         * modules/mkfifo-tests (Depends-on): Likewise.
38387         * modules/mkfifoat-tests (Depends-on): Likewise.
38388         * modules/mknod-tests (Depends-on): Likewise.
38389         * modules/openat-tests (Depends-on): Likewise.
38390         * modules/readlink-tests (Depends-on): Likewise.
38391         * modules/remove-tests (Depends-on): Likewise.
38392         * modules/rename-tests (Depends-on): Likewise.
38393         * modules/renameat-tests (Depends-on): Likewise.
38394         * modules/rmdir-tests (Depends-on): Likewise.
38395         * modules/symlink-tests (Depends-on): Likewise.
38396         * modules/symlinkat-tests (Depends-on): Likewise.
38397         * modules/unlink-tests (Depends-on): Likewise.
38398         * modules/utimens-tests (Depends-on): Likewise.
38399         * modules/utimensat-tests (Depends-on): Likewise.
38400
38401 2010-01-31  Bruno Haible  <bruno@clisp.org>
38402
38403         Perform the same test for many <math.h> functions.
38404         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38405         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38406         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38407         of gl_MATHFUNC.
38408         * modules/acos (configure.ac): Likewise.
38409         * modules/asin (configure.ac): Likewise.
38410         * modules/atan (configure.ac): Likewise.
38411         * modules/atan2 (configure.ac): Likewise.
38412         * modules/cbrt (configure.ac): Likewise.
38413         * modules/copysign (configure.ac): Likewise.
38414         * modules/cos (configure.ac): Likewise.
38415         * modules/cosh (configure.ac): Likewise.
38416         * modules/erf (configure.ac): Likewise.
38417         * modules/erfc (configure.ac): Likewise.
38418         * modules/exp (configure.ac): Likewise.
38419         * modules/fmod (configure.ac): Likewise.
38420         * modules/hypot (configure.ac): Likewise.
38421         * modules/j0 (configure.ac): Likewise.
38422         * modules/j1 (configure.ac): Likewise.
38423         * modules/jn (configure.ac): Likewise.
38424         * modules/lgamma (configure.ac): Likewise.
38425         * modules/log (configure.ac): Likewise.
38426         * modules/log10 (configure.ac): Likewise.
38427         * modules/log1p (configure.ac): Likewise.
38428         * modules/pow (configure.ac): Likewise.
38429         * modules/remainder (configure.ac): Likewise.
38430         * modules/sin (configure.ac): Likewise.
38431         * modules/sinh (configure.ac): Likewise.
38432         * modules/tan (configure.ac): Likewise.
38433         * modules/tanh (configure.ac): Likewise.
38434         * modules/y0 (configure.ac): Likewise.
38435         * modules/y1 (configure.ac): Likewise.
38436         * modules/yn (configure.ac): Likewise.
38437         Suggested by Paolo Bonzini.
38438
38439 2010-01-31  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38442
38443 2010-01-31  Bruno Haible  <bruno@clisp.org>
38444
38445         Work around getdelim() bug on FreeBSD 8.0.
38446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38447         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38448         not work.
38449         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38450         is 1.
38451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38452         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38453         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38454         a non-zero size.
38455         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38456
38457 2010-01-31  Bruno Haible  <bruno@clisp.org>
38458
38459         Work around getline() bug on FreeBSD 8.0.
38460         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38461         and a non-zero size.
38462         * tests/test-getline.c (main): Likewise.
38463         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38464         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38465
38466 2010-01-28  Eric Blake  <ebb9@byu.net>
38467
38468         regex: fix build failure
38469         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38470         platforms.
38471
38472 2010-01-28  Jim Meyering  <meyering@redhat.com>
38473
38474         regex: do not ignore memory allocation failure
38475         * lib/regex_internal.c (create_cd_newstate): Detect
38476         re_node_set_init_copy failure.   Extracted from glibc commit
38477         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38478
38479         regex: sync more white-space changes from libc
38480         * lib/regex_internal.c: White-space only changes.
38481         * lib/regexec.c: Likewise.
38482
38483         regex: add many uses of __attribute_warn_unused_result__
38484         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38485         * lib/regexec.c: Likewise.
38486         Extracted from a messy glibc commit.
38487
38488         regcomp.c: spelling and merge-artifact from glibc
38489         * lib/regcomp.c: Merge remainder of glibc's
38490         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38491
38492         regcomp.c: sync white-space changes from glibc
38493         * lib/regcomp.c: Merge to accommodate white space
38494         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38495
38496         regcomp.c: do not ignore internal return values
38497         * lib/regcomp.c: Do not ignore internal return values.
38498         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38499         but without its white-space changes and spelling fixes.
38500
38501         regex_internal.h: define __attribute_warn_unused_result__
38502         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38503
38504         maint: add a syntax-check rule to check for vulnerable Makefile.in
38505         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38506
38507 2010-01-27  Jim Meyering  <meyering@redhat.com>
38508
38509         ncftpput-ftp: clean up spaces
38510         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38511         Remove trailing blanks.
38512
38513 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38514
38515         * build-aux/git-version-gen: Fix copyright statement.
38516         * build-aux/gnupload: Likewise.
38517         * tests/test-arcfour.c: Likewise.
38518         * tests/test-arctwo.c: Likewise.
38519         * tests/test-count-one-bits.c: Likewise.
38520         * tests/test-crc.c: Likewise.
38521         * tests/test-des.c: Likewise.
38522         * tests/test-gc-arcfour.c: Likewise.
38523         * tests/test-gc-arctwo.c: Likewise.
38524         * tests/test-gc-des.c: Likewise.
38525         * tests/test-gc-hmac-md5.c: Likewise.
38526         * tests/test-gc-hmac-sha1.c: Likewise.
38527         * tests/test-gc-md2.c: Likewise.
38528         * tests/test-gc-md4.c: Likewise.
38529         * tests/test-gc-md5.c: Likewise.
38530         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38531         * tests/test-gc-rijndael.c: Likewise.
38532         * tests/test-gc-sha1.c: Likewise.
38533         * tests/test-gc.c: Likewise.
38534         * tests/test-gethostname.c: Likewise.
38535         * tests/test-gettimeofday.c: Likewise.
38536         * tests/test-hash.c: Likewise.
38537         * tests/test-hmac-md5.c: Likewise.
38538         * tests/test-hmac-sha1.c: Likewise.
38539         * tests/test-md2.c: Likewise.
38540         * tests/test-md4.c: Likewise.
38541         * tests/test-md5.c: Likewise.
38542         * tests/test-memchr.c: Likewise.
38543         * tests/test-memchr2.c: Likewise.
38544         * tests/test-memcmp.c: Likewise.
38545         * tests/test-memmem.c: Likewise.
38546         * tests/test-memrchr.c: Likewise.
38547         * tests/test-rawmemchr.c: Likewise.
38548         * tests/test-read-file.c: Likewise.
38549         * tests/test-rijndael.c: Likewise.
38550         * tests/test-sockets.c: Likewise.
38551         * tests/test-strchrnul.c: Likewise.
38552         * tests/test-strstr.c: Likewise.
38553         * tests/test-strtod.c: Likewise.
38554         * build-aux/ncftpput-ftp: Likewise.
38555
38556 2010-01-26  Eric Blake  <ebb9@byu.net>
38557
38558         ignore-value: update recommended header name
38559         * modules/ignore-value (Include): Only use <> for headers that
38560         exist in glibc.
38561
38562 2010-01-26  Jim Meyering  <meyering@redhat.com>
38563
38564         test-userspec.c: avoid compiler warnings
38565         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38566         and "initialization discards qualifiers..." warnings.
38567         Put the first "uid" in its own scope, and make char* members "const".
38568
38569 2010-01-25  Bruno Haible  <bruno@clisp.org>
38570
38571         gnulib-tool: Make warning diagnostics consistent.
38572         * gnulib-tool (func_warning): New function.
38573         Use it everywhere where gnulib-tool produces output to stderr and it is
38574         not a fatal error.
38575
38576 2010-01-25  Bruno Haible  <bruno@clisp.org>
38577
38578         Fix test dependencies.
38579         * modules/xstrtol-tests (Depends-on): Add inttypes.
38580         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38581
38582 2010-01-25 Pádraig Brady <P@draigBrady.com>
38583
38584         syntax-check: detect incorrect boolean macro values in config.h
38585         * modules/maintainer-makefile (configure.ac): Parameterize the location
38586         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38587         The logic is from Eric Blake and the location indicated by Jim Meyering.
38588         Note the more natural CONFIG_HEADER name is prohibited by automake
38589         for backwards compatibility reasons.
38590         * top/maint.mk (sc_Wundef_boolean): New rule.
38591
38592 2010-01-25  Jim Meyering  <meyering@redhat.com>
38593
38594         bootstrap: detect MacOS 10.6's shasum, too
38595         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38596         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38597
38598 2010-01-23  Jim Meyering  <meyering@redhat.com>
38599
38600         xstrtoll: new module
38601         * modules/xstrtoll: New file.
38602         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38603         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38604         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38605         ./configure fails if you use this module and lack "long long".
38606         * modules/xstrtoll-tests: New module.
38607         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38608         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38609         new init.sh-based test framework.
38610
38611 2010-01-24  Bruno Haible  <bruno@clisp.org>
38612
38613         Tests for module 'yn'.
38614         * modules/yn-tests: New file.
38615         * tests/test-yn.c: New file.
38616
38617         Tests for module 'y1'.
38618         * modules/y1-tests: New file.
38619         * tests/test-y1.c: New file.
38620
38621         Tests for module 'y0'.
38622         * modules/y0-tests: New file.
38623         * tests/test-y0.c: New file.
38624
38625         Tests for module 'tanh'.
38626         * modules/tanh-tests: New file.
38627         * tests/test-tanh.c: New file.
38628
38629         Tests for module 'tan'.
38630         * modules/tan-tests: New file.
38631         * tests/test-tan.c: New file.
38632
38633         Tests for module 'sqrt'.
38634         * modules/sqrt-tests: New file.
38635         * tests/test-sqrt.c: New file.
38636
38637         Tests for module 'sinh'.
38638         * modules/sinh-tests: New file.
38639         * tests/test-sinh.c: New file.
38640
38641         Tests for module 'sin'.
38642         * modules/sin-tests: New file.
38643         * tests/test-sin.c: New file.
38644
38645         Tests for module 'rint'.
38646         * modules/rint-tests: New file.
38647         * tests/test-rint.c: New file.
38648
38649         Tests for module 'remainder'.
38650         * modules/remainder-tests: New file.
38651         * tests/test-remainder.c: New file.
38652
38653         Tests for module 'pow'.
38654         * modules/pow-tests: New file.
38655         * tests/test-pow.c: New file.
38656
38657         Tests for module 'nextafter'.
38658         * modules/nextafter-tests: New file.
38659         * tests/test-nextafter.c: New file.
38660
38661         Tests for module 'modf'.
38662         * modules/modf-tests: New file.
38663         * tests/test-modf.c: New file.
38664
38665         Tests for module 'logb'.
38666         * modules/logb-tests: New file.
38667         * tests/test-logb.c: New file.
38668
38669         Tests for module 'log1p'.
38670         * modules/log1p-tests: New file.
38671         * tests/test-log1p.c: New file.
38672
38673         Tests for module 'log10'.
38674         * modules/log10-tests: New file.
38675         * tests/test-log10.c: New file.
38676
38677         Tests for module 'log'.
38678         * modules/log-tests: New file.
38679         * tests/test-log.c: New file.
38680
38681         Tests for module 'lgamma'.
38682         * modules/lgamma-tests: New file.
38683         * tests/test-lgamma.c: New file.
38684
38685         Tests for module 'ldexp'.
38686         * modules/ldexp-tests: New file.
38687         * tests/test-ldexp.c: New file.
38688
38689         Tests for module 'jn'.
38690         * modules/jn-tests: New file.
38691         * tests/test-jn.c: New file.
38692
38693         Tests for module 'j1'.
38694         * modules/j1-tests: New file.
38695         * tests/test-j1.c: New file.
38696
38697         Tests for module 'j0'.
38698         * modules/j0-tests: New file.
38699         * tests/test-j0.c: New file.
38700
38701         Tests for module 'hypot'.
38702         * modules/hypot-tests: New file.
38703         * tests/test-hypot.c: New file.
38704
38705         Tests for module 'fmod'.
38706         * modules/fmod-tests: New file.
38707         * tests/test-fmod.c: New file.
38708
38709         Tests for module 'fabs'.
38710         * modules/fabs-tests: New file.
38711         * tests/test-fabs.c: New file.
38712
38713         Tests for module 'exp'.
38714         * modules/exp-tests: New file.
38715         * tests/test-exp.c: New file.
38716
38717         Tests for module 'erfc'.
38718         * modules/erfc-tests: New file.
38719         * tests/test-erfc.c: New file.
38720
38721         Tests for module 'erf'.
38722         * modules/erf-tests: New file.
38723         * tests/test-erf.c: New file.
38724
38725         Tests for module 'cosh'.
38726         * modules/cosh-tests: New file.
38727         * tests/test-cosh.c: New file.
38728
38729         Tests for module 'cos'.
38730         * modules/cos-tests: New file.
38731         * tests/test-cos.c: New file.
38732
38733         Tests for module 'copysign'.
38734         * modules/copysign-tests: New file.
38735         * tests/test-copysign.c: New file.
38736
38737         Tests for module 'cbrt'.
38738         * modules/cbrt-tests: New file.
38739         * tests/test-cbrt.c: New file.
38740
38741         Tests for module 'atan2'.
38742         * modules/atan2-tests: New file.
38743         * tests/test-atan2.c: New file.
38744
38745         Tests for module 'atan'.
38746         * modules/atan-tests: New file.
38747         * tests/test-atan.c: New file.
38748
38749         Tests for module 'asin'.
38750         * modules/asin-tests: New file.
38751         * tests/test-asin.c: New file.
38752
38753         Tests for module 'acos'.
38754         * modules/acos-tests: New file.
38755         * tests/test-acos.c: New file.
38756
38757 2010-01-24  Bruno Haible  <bruno@clisp.org>
38758
38759         Fix tests for common <math.h> functions.
38760         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38761         code snippet that references the function pointer, rather than merely
38762         calling the function. Substitute the FUNC_LIBM variable.
38763         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38764         * modules/acos (configure.ac): Likewise.
38765         * modules/asin (configure.ac): Likewise.
38766         * modules/atan (configure.ac): Likewise.
38767         * modules/atan2 (configure.ac): Likewise.
38768         * modules/cbrt (configure.ac): Likewise.
38769         * modules/copysign (configure.ac): Likewise.
38770         * modules/cos (configure.ac): Likewise.
38771         * modules/cosh (configure.ac): Likewise.
38772         * modules/erf (configure.ac): Likewise.
38773         * modules/erfc (configure.ac): Likewise.
38774         * modules/exp (configure.ac): Likewise.
38775         * modules/fabs (configure.ac): Likewise.
38776         * modules/fmod (configure.ac): Likewise.
38777         * modules/hypot (configure.ac): Likewise.
38778         * modules/j0 (configure.ac): Likewise.
38779         * modules/j1 (configure.ac): Likewise.
38780         * modules/jn (configure.ac): Likewise.
38781         * modules/ldexp (configure.ac): Likewise.
38782         * modules/lgamma (configure.ac): Likewise.
38783         * modules/log (configure.ac): Likewise.
38784         * modules/log10 (configure.ac): Likewise.
38785         * modules/log1p (configure.ac): Likewise.
38786         * modules/logb (configure.ac): Likewise.
38787         * modules/modf (configure.ac): Likewise.
38788         * modules/nextafter (configure.ac): Likewise.
38789         * modules/pow (configure.ac): Likewise.
38790         * modules/remainder (configure.ac): Likewise.
38791         * modules/rint (configure.ac): Likewise.
38792         * modules/sin (configure.ac): Likewise.
38793         * modules/sinh (configure.ac): Likewise.
38794         * modules/tan (configure.ac): Likewise.
38795         * modules/tanh (configure.ac): Likewise.
38796         * modules/y0 (configure.ac): Likewise.
38797         * modules/y1 (configure.ac): Likewise.
38798         * modules/yn (configure.ac): Likewise.
38799
38800 2010-01-24  Bruno Haible  <bruno@clisp.org>
38801
38802         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38803         * tests/test-acosl.c (x): New variable.
38804         (main): Store argument in x and fetch it from x.
38805         * tests/test-asinl.c (x): New variable.
38806         (main): Store argument in x and fetch it from x.
38807         * tests/test-atanl.c (x): New variable.
38808         (main): Store argument in x and fetch it from x.
38809         * tests/test-cosl.c (x): New variable.
38810         (main): Store argument in x and fetch it from x.
38811         * tests/test-expl.c (x): New variable.
38812         (main): Store argument in x and fetch it from x.
38813         * tests/test-logl.c (x): New variable.
38814         (main): Store argument in x and fetch it from x.
38815         * tests/test-sinl.c (x): New variable.
38816         (main): Store argument in x and fetch it from x.
38817         * tests/test-sqrtl.c (x): New variable.
38818         (main): Store argument in x and fetch it from x.
38819         * tests/test-tanl.c (x): New variable.
38820         (main): Store argument in x and fetch it from x.
38821
38822 2010-01-24  Bruno Haible  <bruno@clisp.org>
38823
38824         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38825         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38826         assignments to the initial TESTS_ENVIRONMENT.
38827         * doc/gnulib.texi (Unit test modules): Document it.
38828         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38829         TESTS_ENVIRONMENT.
38830         * modules/btowc-tests (Makefile.am): Likewise.
38831         * modules/c-stack-tests (Makefile.am): Likewise.
38832         * modules/c-strcase-tests (Makefile.am): Likewise.
38833         * modules/copy-file-tests (Makefile.am): Likewise.
38834         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38835         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38836         * modules/mbrtowc-tests (Makefile.am): Likewise.
38837         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38838         * modules/mbscasestr-tests (Makefile.am): Likewise.
38839         * modules/mbschr-tests (Makefile.am): Likewise.
38840         * modules/mbscspn-tests (Makefile.am): Likewise.
38841         * modules/mbsinit-tests (Makefile.am): Likewise.
38842         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38843         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38844         * modules/mbspbrk-tests (Makefile.am): Likewise.
38845         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38846         * modules/mbsrchr-tests (Makefile.am): Likewise.
38847         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38848         * modules/mbsspn-tests (Makefile.am): Likewise.
38849         * modules/mbsstr-tests (Makefile.am): Likewise.
38850         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38851         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38852         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38853         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38854         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38855         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38856         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38857         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38858         * modules/wcrtomb-tests (Makefile.am): Likewise.
38859         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38860         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38861         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38862         assignments from TESTS_ENVIRONMENT.
38863         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38864         augmentation.
38865         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38866         * modules/atexit-tests (Makefile.am): Likewise.
38867         * modules/binary-io-tests (Makefile.am): Likewise.
38868         * modules/closein-tests (Makefile.am): Likewise.
38869         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38870         * modules/exclude-tests (Makefile.am): Likewise.
38871         * modules/fflush-tests (Makefile.am): Likewise.
38872         * modules/fpending-tests (Makefile.am): Likewise.
38873         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38874         * modules/freadahead-tests (Makefile.am): Likewise.
38875         * modules/freadptr-tests (Makefile.am): Likewise.
38876         * modules/freadseek-tests (Makefile.am): Likewise.
38877         * modules/fseek-tests (Makefile.am): Likewise.
38878         * modules/fseeko-tests (Makefile.am): Likewise.
38879         * modules/ftell-tests (Makefile.am): Likewise.
38880         * modules/ftello-tests (Makefile.am): Likewise.
38881         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38882         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38883         * modules/lseek-tests (Makefile.am): Likewise.
38884         * modules/parse-duration-tests (Makefile.am): Likewise.
38885         * modules/perror-tests (Makefile.am): Likewise.
38886         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38887         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38888         * modules/pipe-tests (Makefile.am): Likewise.
38889         * modules/pread-tests (Makefile.am): Likewise.
38890         * modules/printf-posix-tests (Makefile.am): Likewise.
38891         * modules/select-tests (Makefile.am): Likewise.
38892         * modules/sigpipe-tests (Makefile.am): Likewise.
38893         * modules/tsearch-tests (Makefile.am): Likewise.
38894         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38895         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38896         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38897         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38898         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38899         * modules/version-etc-tests (Makefile.am): Likewise.
38900         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38901         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38902         * modules/xalloc-die-tests (Makefile.am): Likewise.
38903         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38904         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38905         * modules/xstrtol-tests (Makefile.am): Likewise.
38906         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38907         * modules/yesno-tests (Makefile.am): Likewise.
38908         Suggested by Jim Meyering.
38909
38910 2010-01-24  Bruno Haible  <bruno@clisp.org>
38911
38912         More documentation.
38913         * doc/gnulib.texi (Writing modules): New chapter.
38914         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38915         the new chapter.
38916
38917 2010-01-24  Jim Meyering  <meyering@redhat.com>
38918
38919         maint.mk: do not prepend "./" after filtering
38920         * top/maint.mk (_prepend_srcdir_prefix): New variable
38921         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38922         "./" when $(srcdir) is ".".
38923
38924         define STREQ(a,b) consistently, removing useless parentheses
38925         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38926         since the only risk is that "a" or "b" contains an unparenthesized
38927         comma, but if either did that, STREQ would have 3 or more arguments.
38928         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38929         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38930         * lib/hash-triple.c (STREQ): Likewise.
38931         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38932         * lib/getugroups.c (STREQ): Likewise.
38933
38934 2010-01-23  Jim Meyering  <meyering@redhat.com>
38935
38936         maint.mk: fix syntax-check in a non-srcdir build directory
38937         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38938         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38939
38940 2010-01-22  Jim Meyering  <meyering@redhat.com>
38941
38942         userspec: add unit tests
38943         * tests/test-userspec.c: New file.
38944         * modules/userspec-tests: Likewise.
38945
38946 2010-01-21  Jim Meyering  <meyering@redhat.com>
38947
38948         maint.mk: handle source file names containing "." robustly
38949         * top/maint.mk (_dot_escaped_srcdir): Define.
38950         (VC_LIST): Use it in LHS of sed substitution.
38951
38952 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38953
38954         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38955         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38956         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38957         from a non-srcdir build.
38958
38959 2010-01-20  Eric Blake  <ebb9@byu.net>
38960
38961         warn-on-use: use instead of link-warning
38962         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38963         * modules/unistd (Depends-on, Makefile.am): Likewise.
38964         * modules/arpa_inet (Depends-on): Replace link-warning with
38965         warn-on-use.
38966         (Makefile.am): Update rules accordingly.
38967         * modules/ctype (Depends-on, Makefile.am): Likewise.
38968         * modules/dirent (Depends-on, Makefile.am): Likewise.
38969         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38970         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38971         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38972         * modules/locale (Depends-on, Makefile.am): Likewise.
38973         * modules/math (Depends-on, Makefile.am): Likewise.
38974         * modules/search (Depends-on, Makefile.am): Likewise.
38975         * modules/signal (Depends-on, Makefile.am): Likewise.
38976         * modules/spawn (Depends-on, Makefile.am): Likewise.
38977         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38978         * modules/string (Depends-on, Makefile.am): Likewise.
38979         * modules/strings (Depends-on, Makefile.am): Likewise.
38980         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38981         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38982         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38983         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38984         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38985         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38986         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38987         * modules/wchar (Depends-on, Makefile.am): Likewise.
38988         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38989         should be poisoned.
38990         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38991         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38992         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38993         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38994         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38995         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38996         * m4/math_h.m4 (gl_MATH_H): Likewise.
38997         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38998         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38999         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39000         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39001         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39003         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39004         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39009         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39010         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39011         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39012         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39013         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39014         GL_LINK_WARNING.
39015         * lib/ctype.in.h: Likewise.
39016         * lib/dirent.in.h: Likewise.
39017         * lib/fcntl.in.h: Likewise.
39018         * lib/inttypes.in.h: Likewise.
39019         * lib/langinfo.in.h: Likewise.
39020         * lib/locale.in.h: Likewise.
39021         * lib/math.in.h: Likewise.
39022         * lib/search.in.h: Likewise.
39023         * lib/signal.in.h: Likewise.
39024         * lib/spawn.in.h: Likewise.
39025         * lib/stdio.in.h: Likewise.
39026         * lib/stdlib.in.h: Likewise.
39027         * lib/string.in.h: Likewise.
39028         * lib/strings.in.h: Likewise.
39029         * lib/sys_file.in.h: Likewise.
39030         * lib/sys_ioctl.in.h: Likewise.
39031         * lib/sys_select.in.h: Likewise.
39032         * lib/sys_socket.in.h: Likewise.
39033         * lib/sys_stat.in.h: Likewise.
39034         * lib/sys_times.in.h: Likewise.
39035         * lib/sys_utsname.in.h: Likewise.
39036         * lib/unistd.in.h: Likewise.
39037         * lib/wchar.in.h: Likewise.
39038
39039 2010-01-20  Bruno Haible  <bruno@clisp.org>
39040
39041         Avoid duplicate -lm.
39042         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39043         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39044         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39045         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39046         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39047         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39048         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39049         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39050         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39051         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39052         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39053         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39054         Reported by Paolo Bonzini.
39055
39056 2010-01-19  Bruno Haible  <bruno@clisp.org>
39057
39058         langinfo, nl_langinfo: Relicense under LGPLv2+.
39059         * modules/langinfo (License): Change to LGPLv2+.
39060         * modules/nl_langinfo (License): Likewise.
39061         Patch by David Lutterkort <lutter@redhat.com>.
39062
39063 2010-01-19  Bruno Haible  <bruno@clisp.org>
39064
39065         Avoid compilation error with cc on OSF/1 5.1.
39066         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39067         statement, not before.
39068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39069
39070 2010-01-18  Bruno Haible  <bruno@clisp.org>
39071
39072         Avoid a link error due to the __printf__ symbol.
39073         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39074         and 2.6.x.
39075         (__format__, __printf__): Remove definitions.
39076         * lib/argp-fmtstream.h: Likewise.
39077         * lib/argp.h: Likewise.
39078         * lib/error.h: Likewise.
39079         * lib/vasnprintf.h: Likewise.
39080         * lib/xprintf.h: Likewise.
39081         * lib/xvasprintf.h: Likewise.
39082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39083
39084 2010-01-18  Bruno Haible  <bruno@clisp.org>
39085
39086         Tests for module 'tanl'.
39087         * modules/tanl-tests: New file.
39088         * tests/test-tanl.c: New file.
39089
39090         Tests for module 'sqrtl'.
39091         * modules/sqrtl-tests: New file.
39092         * tests/test-sqrtl.c: New file.
39093
39094         Tests for module 'sinl'.
39095         * modules/sinl-tests: New file.
39096         * tests/test-sinl.c: New file.
39097
39098         Tests for module 'logl'.
39099         * modules/logl-tests: New file.
39100         * tests/test-logl.c: New file.
39101
39102         Tests for module 'expl'.
39103         * modules/expl-tests: New file.
39104         * tests/test-expl.c: New file.
39105
39106         Tests for module 'cosl'.
39107         * modules/cosl-tests: New file.
39108         * tests/test-cosl.c: New file.
39109
39110         Tests for module 'atanl'.
39111         * modules/atanl-tests: New file.
39112         * tests/test-atanl.c: New file.
39113
39114         Tests for module 'asinl'.
39115         * modules/asinl-tests: New file.
39116         * tests/test-asinl.c: New file.
39117
39118         Tests for module 'acosl'.
39119         * modules/acosl-tests: New file.
39120         * tests/test-acosl.c: New file.
39121
39122         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39123         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39124         tanl): Use the standard gnulib idiom.
39125         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39126         * lib/sinl.c: Likewise.
39127         * lib/tanl.c: Don't include trigl.c.
39128         (kernel_tanl): Make static.
39129         * lib/sincosl.c: Include trigl.h first.
39130         * lib/trigl.c: Likewise.
39131         * m4/acosl.m4: New file.
39132         * m4/asinl.m4: New file.
39133         * m4/atanl.m4: New file.
39134         * m4/cosl.m4: New file.
39135         * m4/expl.m4: New file.
39136         * m4/logl.m4: New file.
39137         * m4/sinl.m4: New file.
39138         * m4/sqrtl.m4: New file.
39139         * m4/tanl.m4: New file.
39140         * m4/mathl.m4: Remove file.
39141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39142         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39143         Don't initialize GNULIB_MATHL.
39144         * modules/acosl: New file.
39145         * modules/asinl: New file.
39146         * modules/atanl: New file.
39147         * modules/cosl: New file.
39148         * modules/expl: New file.
39149         * modules/logl: New file.
39150         * modules/sinl: New file.
39151         * modules/sqrtl: New file.
39152         * modules/tanl: New file.
39153         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39154         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39155         substitute GNULIB_MATHL.
39156         * modules/mathl: Rewritten.
39157         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39158         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39159         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39160         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39161         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39162         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39163         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39164         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39165         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39166
39167 2010-01-18  Bruno Haible  <bruno@clisp.org>
39168
39169         sqrt: Make gl_FUNC_SQRT requirable.
39170         * m4/sqrt.m4: New file.
39171         * modules/sqrt (Files): Add it.
39172         (configure.ac): Invoke gl_FUNC_SQRT.
39173
39174 2010-01-18  Bruno Haible  <bruno@clisp.org>
39175
39176         New modules for common <math.h> functions.
39177         * m4/mathfunc.m4: New file.
39178         * modules/acos: New file.
39179         * modules/asin: New file.
39180         * modules/atan: New file.
39181         * modules/atan2: New file.
39182         * modules/cbrt: New file.
39183         * modules/copysign: New file.
39184         * modules/cos: New file.
39185         * modules/cosh: New file.
39186         * modules/erf: New file.
39187         * modules/erfc: New file.
39188         * modules/exp: New file.
39189         * modules/fabs: New file.
39190         * modules/fmod: New file.
39191         * modules/hypot: New file.
39192         * modules/j0: New file.
39193         * modules/j1: New file.
39194         * modules/jn: New file.
39195         * modules/ldexp: New file.
39196         * modules/lgamma: New file.
39197         * modules/log: New file.
39198         * modules/log10: New file.
39199         * modules/log1p: New file.
39200         * modules/logb: New file.
39201         * modules/modf: New file.
39202         * modules/nextafter: New file.
39203         * modules/pow: New file.
39204         * modules/remainder: New file.
39205         * modules/rint: New file.
39206         * modules/sin: New file.
39207         * modules/sinh: New file.
39208         * modules/sqrt: New file.
39209         * modules/tan: New file.
39210         * modules/tanh: New file.
39211         * modules/y0: New file.
39212         * modules/y1: New file.
39213         * modules/yn: New file.
39214         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39215         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39216         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39217         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39218         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39219         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39220         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39221         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39222         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39223         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39224         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39225         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39226         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39227         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39228         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39229         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39230         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39231         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39232         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39233         * doc/posix-functions/log.texi: Mention the 'log' module.
39234         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39235         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39236         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39237         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39238         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39239         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39240         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39241         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39242         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39243         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39244         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39245         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39246         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39247         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39248         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39249         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39250
39251 2010-01-18  Jim Meyering  <meyering@redhat.com>
39252
39253         ignore-value: relax license to LGPLv2+
39254         * modules/ignore-value (License): Relax to LGPLv2+.
39255
39256         getdate: don't leak when TZ contains two or more '"'s
39257         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39258         double quote in TZ after the first one.
39259
39260         readtokens: do not leak internal token_lengths buffer
39261         * lib/readtokens.c (readtokens): Free the local, lengths,
39262         when the supplied "token_lengths" parameter is NULL.
39263
39264 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39265
39266         Fix a couple of missing LIBTHREAD link failures on AIX.
39267         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39268         $(LIBTHREAD).
39269         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39270
39271         Link test-poll against INET_PTON_LIB.
39272         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39273         for inet_pton on Solaris 10.
39274
39275 2010-01-17  Bruno Haible  <bruno@clisp.org>
39276
39277         unistdio/*-sprintf: Fix typo in module description.
39278         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39279         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39280         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39281         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39282         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39283         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39284         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39286
39287 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39288
39289         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39290         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39291         variables in shell case patterns, for AIX and HP-UX ksh.
39292
39293         Split large sed scripts, for HP-UX sed.
39294         * modules/stdio: Split sed scripts around 50 sed commands,
39295         to avoid HP-UX limit of 99 commands, in the near future.
39296         * modules/string: Likewise.
39297         * modules/unistd: Likewise.
39298
39299         gnulib-tool: avoid writing in the current directory.
39300         * gnulib-tool (func_emit_lib_Makefile_am)
39301         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39302         not in the current directory, so concurrent gnulib-tool
39303         instances do not interfere.
39304
39305 2010-01-16  Jim Meyering  <meyering@redhat.com>
39306
39307         doc: update users.txt
39308         * users.txt: Add grep.
39309         (diffutils, gzip): Update URLs.
39310
39311 2010-01-12  Bruno Haible  <bruno@clisp.org>
39312
39313         posix_spawn: Avoid test failure on Cygwin.
39314         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39315         characters.
39316         Reported by Simon Josefsson.
39317
39318 2010-01-12  Bruno Haible  <bruno@clisp.org>
39319
39320         * tests/test-cond.c (main): When skipping the test, show the reason.
39321
39322 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39323
39324         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39325
39326 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39327
39328         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39329         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39330
39331 2010-01-12  Eric Blake  <ebb9@byu.net>
39332
39333         build: guarantee AS_VAR_IF
39334         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39335         (gl_AS_VAR_IF): Move...
39336         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39337         Reported by Simon Josefsson.
39338
39339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39340
39341         * lib/stdio.in.h: Fix typo.
39342
39343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39344
39345         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39346         libgpg-error.
39347
39348 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39349
39350         * tests/test-xalloc-die.sh: Use $EXEEXT.
39351
39352 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39353             Bruno Haible  <bruno@clisp.org>
39354
39355         getlogin, getlogin_r: Avoid test failure.
39356         * tests/test-getlogin.c: Include <stdio.h>.
39357         (main): Skip the test when the function fails because stdin is not a
39358         tty.
39359         * tests/test-getlogin_r.c: Include <stdio.h>.
39360         (main): Skip the test when the function fails because stdin is not a
39361         tty.
39362
39363 2010-01-11  Eric Blake  <ebb9@byu.net>
39364
39365         tests: avoid more large file warnings
39366         * tests/test-fflush.c: Avoid warning about ftell use.
39367         * tests/test-fseek.c: Avoid warning about fseek use.
39368
39369 2010-01-10  Bruno Haible  <bruno@clisp.org>
39370
39371         nproc: Work better on Linux when /proc and /sys are not mounted.
39372         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39373         as lower bound when, on glibc/Linux systems,
39374         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39375         Suggested by Pádraig Brady <P@draigbrady.com>.
39376         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39377
39378         nproc: Refactor.
39379         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39380         extracted from num_processors.
39381         (num_processors): Call it.
39382
39383 2010-01-11  Jim Meyering  <meyering@redhat.com>
39384
39385         utimecmp: avoid new warning from upcoming gcc-4.5.0
39386         * lib/utimecmp.c (BILLION): Define using #define rather than an
39387         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39388
39389 2010-01-11  Eric Blake  <ebb9@byu.net>
39390
39391         math: add portability warnings for classification macros
39392         * modules/math (Depends-on): Add warn-on-use.
39393         (Makefile.am): Provide new substitutions.
39394         * m4/math_h.m4 (gl_MATH_H): Require inline.
39395         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39396         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39397         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39398         implement warnings.
39399
39400         unistd: warn on use of environ without module
39401         * modules/unistd (Depends-on): Add warn-on-use.
39402         (Makefile.am): Provide new substitutions.
39403         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39404         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39405
39406         stdio: warn on suspicious uses
39407         * modules/stdio (Depends-on): Add warn-on-use.
39408         (Makefile.am): Provide new substitutions.
39409         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39410         fseeko.
39411         * lib/stdio.in.h (gets): Always warn on use.
39412         (fseek, ftell): Adjust when warnings are issued, and honor
39413         _GL_NO_LARGE_FILES as a way to silence the warning.
39414         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39415         any warning about large file offsets.
39416         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39417         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39418         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39419         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39420         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39421         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39422         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39423         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39424
39425         warn-on-use: new module
39426         * modules/warn-on-use: New file.
39427         * build-aux/warn-on-use.h: Likewise.
39428         * m4/warn-on-use.m4: Likewise.
39429         * MODULES.html.sh (Support for building): Mention it.
39430
39431 2010-01-10  Bruno Haible  <bruno@clisp.org>
39432
39433         Tests for module 'unistr/u32-strdup'.
39434         * modules/unistr/u32-strdup-tests: New file.
39435         * tests/unistr/test-u32-strdup.c: New file.
39436
39437         Tests for module 'unistr/u16-strdup'.
39438         * modules/unistr/u16-strdup-tests: New file.
39439         * tests/unistr/test-u16-strdup.c: New file.
39440
39441         Tests for module 'unistr/u8-strdup'.
39442         * modules/unistr/u8-strdup-tests: New file.
39443         * tests/unistr/test-u8-strdup.c: New file.
39444         * tests/unistr/test-strdup.h: New file.
39445
39446         Tests for module 'unistr/u32-strncmp'.
39447         * modules/unistr/u32-strncmp-tests: New file.
39448         * tests/unistr/test-u32-strncmp.c: New file.
39449
39450         Tests for module 'unistr/u16-strncmp'.
39451         * modules/unistr/u16-strncmp-tests: New file.
39452         * tests/unistr/test-u16-strncmp.c: New file.
39453
39454         Tests for module 'unistr/u8-strncmp'.
39455         * modules/unistr/u8-strncmp-tests: New file.
39456         * tests/unistr/test-u8-strncmp.c: New file.
39457         * tests/unistr/test-strncmp.h: New file.
39458
39459         Tests for module 'unistr/u32-strcoll'.
39460         * modules/unistr/u32-strcoll-tests: New file.
39461         * tests/unistr/test-u32-strcoll.c: New file.
39462
39463         Tests for module 'unistr/u16-strcoll'.
39464         * modules/unistr/u16-strcoll-tests: New file.
39465         * tests/unistr/test-u16-strcoll.c: New file.
39466
39467         Tests for module 'unistr/u8-strcoll'.
39468         * modules/unistr/u8-strcoll-tests: New file.
39469         * tests/unistr/test-u8-strcoll.c: New file.
39470
39471         Tests for module 'unistr/u32-strcmp'.
39472         * modules/unistr/u32-strcmp-tests: New file.
39473         * tests/unistr/test-u32-strcmp.c: New file.
39474         * tests/unistr/test-u32-strcmp.h: New file.
39475
39476         Tests for module 'unistr/u16-strcmp'.
39477         * modules/unistr/u16-strcmp-tests: New file.
39478         * tests/unistr/test-u16-strcmp.c: New file.
39479         * tests/unistr/test-u16-strcmp.h: New file.
39480
39481         Tests for module 'unistr/u8-strcmp'.
39482         * modules/unistr/u8-strcmp-tests: New file.
39483         * tests/unistr/test-u8-strcmp.c: New file.
39484         * tests/unistr/test-u8-strcmp.h: New file.
39485         * tests/unistr/test-strcmp.h: New file.
39486
39487         Tests for module 'unistr/u32-strncat'.
39488         * modules/unistr/u32-strncat-tests: New file.
39489         * tests/unistr/test-u32-strncat.c: New file.
39490
39491         Tests for module 'unistr/u16-strncat'.
39492         * modules/unistr/u16-strncat-tests: New file.
39493         * tests/unistr/test-u16-strncat.c: New file.
39494
39495         Tests for module 'unistr/u8-strncat'.
39496         * modules/unistr/u8-strncat-tests: New file.
39497         * tests/unistr/test-u8-strncat.c: New file.
39498         * tests/unistr/test-strncat.h: New file.
39499
39500         Tests for module 'unistr/u32-strcat'.
39501         * modules/unistr/u32-strcat-tests: New file.
39502         * tests/unistr/test-u32-strcat.c: New file.
39503
39504         Tests for module 'unistr/u16-strcat'.
39505         * modules/unistr/u16-strcat-tests: New file.
39506         * tests/unistr/test-u16-strcat.c: New file.
39507
39508         Tests for module 'unistr/u8-strcat'.
39509         * modules/unistr/u8-strcat-tests: New file.
39510         * tests/unistr/test-u8-strcat.c: New file.
39511         * tests/unistr/test-strcat.h: New file.
39512
39513         Tests for module 'unistr/u32-stpncpy'.
39514         * modules/unistr/u32-stpncpy-tests: New file.
39515         * tests/unistr/test-u32-stpncpy.c: New file.
39516
39517         Tests for module 'unistr/u16-stpncpy'.
39518         * modules/unistr/u16-stpncpy-tests: New file.
39519         * tests/unistr/test-u16-stpncpy.c: New file.
39520
39521         Tests for module 'unistr/u8-stpncpy'.
39522         * modules/unistr/u8-stpncpy-tests: New file.
39523         * tests/unistr/test-u8-stpncpy.c: New file.
39524         * tests/unistr/test-stpncpy.h: New file.
39525
39526         Tests for module 'unistr/u32-strncpy'.
39527         * modules/unistr/u32-strncpy-tests: New file.
39528         * tests/unistr/test-u32-strncpy.c: New file.
39529
39530         Tests for module 'unistr/u16-strncpy'.
39531         * modules/unistr/u16-strncpy-tests: New file.
39532         * tests/unistr/test-u16-strncpy.c: New file.
39533
39534         Tests for module 'unistr/u8-strncpy'.
39535         * modules/unistr/u8-strncpy-tests: New file.
39536         * tests/unistr/test-u8-strncpy.c: New file.
39537         * tests/unistr/test-strncpy.h: New file.
39538
39539         Tests for module 'unistr/u32-stpcpy'.
39540         * modules/unistr/u32-stpcpy-tests: New file.
39541         * tests/unistr/test-u32-stpcpy.c: New file.
39542
39543         Tests for module 'unistr/u16-stpcpy'.
39544         * modules/unistr/u16-stpcpy-tests: New file.
39545         * tests/unistr/test-u16-stpcpy.c: New file.
39546
39547         Tests for module 'unistr/u8-stpcpy'.
39548         * modules/unistr/u8-stpcpy-tests: New file.
39549         * tests/unistr/test-u8-stpcpy.c: New file.
39550         * tests/unistr/test-stpcpy.h: New file.
39551
39552         Tests for module 'unistr/u32-strcpy'.
39553         * modules/unistr/u32-strcpy-tests: New file.
39554         * tests/unistr/test-u32-strcpy.c: New file.
39555
39556         Tests for module 'unistr/u16-strcpy'.
39557         * modules/unistr/u16-strcpy-tests: New file.
39558         * tests/unistr/test-u16-strcpy.c: New file.
39559
39560         Tests for module 'unistr/u8-strcpy'.
39561         * modules/unistr/u8-strcpy-tests: New file.
39562         * tests/unistr/test-u8-strcpy.c: New file.
39563         * tests/unistr/test-strcpy.h: New file.
39564
39565         Tests for module 'unistr/u32-strnlen'.
39566         * modules/unistr/u32-strnlen-tests: New file.
39567         * tests/unistr/test-u32-strnlen.c: New file.
39568
39569         Tests for module 'unistr/u16-strnlen'.
39570         * modules/unistr/u16-strnlen-tests: New file.
39571         * tests/unistr/test-u16-strnlen.c: New file.
39572
39573         Tests for module 'unistr/u8-strnlen'.
39574         * modules/unistr/u8-strnlen-tests: New file.
39575         * tests/unistr/test-u8-strnlen.c: New file.
39576         * tests/unistr/test-strnlen.h: New file.
39577
39578         Tests for module 'unistr/u32-strlen'.
39579         * modules/unistr/u32-strlen-tests: New file.
39580         * tests/unistr/test-u32-strlen.c: New file.
39581
39582         Tests for module 'unistr/u16-strlen'.
39583         * modules/unistr/u16-strlen-tests: New file.
39584         * tests/unistr/test-u16-strlen.c: New file.
39585
39586         Tests for module 'unistr/u8-strlen'.
39587         * modules/unistr/u8-strlen-tests: New file.
39588         * tests/unistr/test-u8-strlen.c: New file.
39589
39590         Tests for module 'unistr/u32-prev'.
39591         * modules/unistr/u32-prev-tests: New file.
39592         * tests/unistr/test-u32-prev.c: New file.
39593
39594         Tests for module 'unistr/u16-prev'.
39595         * modules/unistr/u16-prev-tests: New file.
39596         * tests/unistr/test-u16-prev.c: New file.
39597
39598         Tests for module 'unistr/u8-prev'.
39599         * modules/unistr/u8-prev-tests: New file.
39600         * tests/unistr/test-u8-prev.c: New file.
39601
39602         Tests for module 'unistr/u32-next'.
39603         * modules/unistr/u32-next-tests: New file.
39604         * tests/unistr/test-u32-next.c: New file.
39605
39606         Tests for module 'unistr/u16-next'.
39607         * modules/unistr/u16-next-tests: New file.
39608         * tests/unistr/test-u16-next.c: New file.
39609
39610         Tests for module 'unistr/u8-next'.
39611         * modules/unistr/u8-next-tests: New file.
39612         * tests/unistr/test-u8-next.c: New file.
39613
39614         Tests for module 'unistr/u32-strmbtouc'.
39615         * modules/unistr/u32-strmbtouc-tests: New file.
39616         * tests/unistr/test-u32-strmbtouc.c: New file.
39617
39618         Tests for module 'unistr/u16-strmbtouc'.
39619         * modules/unistr/u16-strmbtouc-tests: New file.
39620         * tests/unistr/test-u16-strmbtouc.c: New file.
39621
39622         Tests for module 'unistr/u8-strmbtouc'.
39623         * modules/unistr/u8-strmbtouc-tests: New file.
39624         * tests/unistr/test-u8-strmbtouc.c: New file.
39625
39626         Tests for module 'unistr/u32-strmblen'.
39627         * modules/unistr/u32-strmblen-tests: New file.
39628         * tests/unistr/test-u32-strmblen.c: New file.
39629
39630         Tests for module 'unistr/u16-strmblen'.
39631         * modules/unistr/u16-strmblen-tests: New file.
39632         * tests/unistr/test-u16-strmblen.c: New file.
39633
39634         Tests for module 'unistr/u8-strmblen'.
39635         * modules/unistr/u8-strmblen-tests: New file.
39636         * tests/unistr/test-u8-strmblen.c: New file.
39637
39638         Tests for module 'unistr/u32-cpy-alloc'.
39639         * modules/unistr/u32-cpy-alloc-tests: New file.
39640         * tests/unistr/test-u32-cpy-alloc.c: New file.
39641
39642         Tests for module 'unistr/u16-cpy-alloc'.
39643         * modules/unistr/u16-cpy-alloc-tests: New file.
39644         * tests/unistr/test-u16-cpy-alloc.c: New file.
39645
39646         Tests for module 'unistr/u8-cpy-alloc'.
39647         * modules/unistr/u8-cpy-alloc-tests: New file.
39648         * tests/unistr/test-u8-cpy-alloc.c: New file.
39649         * tests/unistr/test-cpy-alloc.h: New file.
39650
39651         Tests for module 'unistr/u32-mbsnlen'.
39652         * modules/unistr/u32-mbsnlen-tests: New file.
39653         * tests/unistr/test-u32-mbsnlen.c: New file.
39654
39655         Tests for module 'unistr/u16-mbsnlen'.
39656         * modules/unistr/u16-mbsnlen-tests: New file.
39657         * tests/unistr/test-u16-mbsnlen.c: New file.
39658
39659         Tests for module 'unistr/u8-mbsnlen'.
39660         * modules/unistr/u8-mbsnlen-tests: New file.
39661         * tests/unistr/test-u8-mbsnlen.c: New file.
39662
39663         Tests for module 'unistr/u32-chr'.
39664         * modules/unistr/u32-chr-tests: New file.
39665         * tests/unistr/test-u32-chr.c: New file.
39666
39667         Tests for module 'unistr/u16-chr'.
39668         * modules/unistr/u16-chr-tests: New file.
39669         * tests/unistr/test-u16-chr.c: New file.
39670
39671         Tests for module 'unistr/u8-chr'.
39672         * modules/unistr/u8-chr-tests: New file.
39673         * tests/unistr/test-u8-chr.c: New file.
39674         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39675
39676         Tests for module 'unistr/u32-cmp2'.
39677         * modules/unistr/u32-cmp2-tests: New file.
39678         * tests/unistr/test-u32-cmp2.c: New file.
39679
39680         Tests for module 'unistr/u16-cmp2'.
39681         * modules/unistr/u16-cmp2-tests: New file.
39682         * tests/unistr/test-u16-cmp2.c: New file.
39683
39684         Tests for module 'unistr/u8-cmp2'.
39685         * modules/unistr/u8-cmp2-tests: New file.
39686         * tests/unistr/test-u8-cmp2.c: New file.
39687         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39688
39689         Tests for module 'unistr/u32-cmp'.
39690         * modules/unistr/u32-cmp-tests: New file.
39691         * tests/unistr/test-u32-cmp.c: New file.
39692
39693         Tests for module 'unistr/u16-cmp'.
39694         * modules/unistr/u16-cmp-tests: New file.
39695         * tests/unistr/test-u16-cmp.c: New file.
39696
39697         Tests for module 'unistr/u8-cmp'.
39698         * modules/unistr/u8-cmp-tests: New file.
39699         * tests/unistr/test-u8-cmp.c: New file.
39700         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39701
39702         Tests for module 'unistr/u32-set'.
39703         * modules/unistr/u32-set-tests: New file.
39704         * tests/unistr/test-u32-set.c: New file.
39705
39706         Tests for module 'unistr/u16-set'.
39707         * modules/unistr/u16-set-tests: New file.
39708         * tests/unistr/test-u16-set.c: New file.
39709
39710         Tests for module 'unistr/u8-set'.
39711         * modules/unistr/u8-set-tests: New file.
39712         * tests/unistr/test-u8-set.c: New file.
39713         * tests/unistr/test-set.h: New file.
39714
39715         Tests for module 'unistr/u32-move'.
39716         * modules/unistr/u32-move-tests: New file.
39717         * tests/unistr/test-u32-move.c: New file.
39718
39719         Tests for module 'unistr/u16-move'.
39720         * modules/unistr/u16-move-tests: New file.
39721         * tests/unistr/test-u16-move.c: New file.
39722
39723         Tests for module 'unistr/u8-move'.
39724         * modules/unistr/u8-move-tests: New file.
39725         * tests/unistr/test-u8-move.c: New file.
39726         * tests/unistr/test-move.h: New file.
39727
39728         Tests for module 'unistr/u32-cpy'.
39729         * modules/unistr/u32-cpy-tests: New file.
39730         * tests/unistr/test-u32-cpy.c: New file.
39731
39732         Tests for module 'unistr/u16-cpy'.
39733         * modules/unistr/u16-cpy-tests: New file.
39734         * tests/unistr/test-u16-cpy.c: New file.
39735
39736         Tests for module 'unistr/u8-cpy'.
39737         * modules/unistr/u8-cpy-tests: New file.
39738         * tests/unistr/test-u8-cpy.c: New file.
39739         * tests/unistr/test-cpy.h: New file.
39740
39741 2010-01-09  Bruno Haible  <bruno@clisp.org>
39742
39743         Tests for module 'unistr/u32-uctomb'.
39744         * modules/unistr/u32-uctomb-tests: New file.
39745         * tests/unistr/test-u32-uctomb.c: New file.
39746
39747         Tests for module 'unistr/u16-uctomb'.
39748         * modules/unistr/u16-uctomb-tests: New file.
39749         * tests/unistr/test-u16-uctomb.c: New file.
39750
39751         Tests for module 'unistr/u8-uctomb'.
39752         * modules/unistr/u8-uctomb-tests: New file.
39753         * tests/unistr/test-u8-uctomb.c: New file.
39754
39755         Tests for module 'unistr/u32-mbtoucr'.
39756         * modules/unistr/u32-mbtoucr-tests: New file.
39757         * tests/unistr/test-u32-mbtoucr.c: New file.
39758
39759         Tests for module 'unistr/u16-mbtoucr'.
39760         * modules/unistr/u16-mbtoucr-tests: New file.
39761         * tests/unistr/test-u16-mbtoucr.c: New file.
39762
39763         Tests for module 'unistr/u8-mbtoucr'.
39764         * modules/unistr/u8-mbtoucr-tests: New file.
39765         * tests/unistr/test-u8-mbtoucr.c: New file.
39766
39767         Tests for module 'unistr/u32-mbtouc'.
39768         * modules/unistr/u32-mbtouc-tests: New file.
39769         * tests/unistr/test-u32-mbtouc.c: New file.
39770
39771         Tests for module 'unistr/u16-mbtouc'.
39772         * modules/unistr/u16-mbtouc-tests: New file.
39773         * tests/unistr/test-u16-mbtouc.c: New file.
39774
39775         Tests for module 'unistr/u8-mbtouc'.
39776         * modules/unistr/u8-mbtouc-tests: New file.
39777         * tests/unistr/test-u8-mbtouc.c: New file.
39778
39779         Tests for module 'unistr/u32-mbtouc-unsafe'.
39780         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39781         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39782         * tests/unistr/test-u32-mbtouc.h: New file.
39783
39784         Tests for module 'unistr/u16-mbtouc-unsafe'.
39785         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39786         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39787         * tests/unistr/test-u16-mbtouc.h: New file.
39788
39789         Tests for module 'unistr/u8-mbtouc-unsafe'.
39790         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39791         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39792         * tests/unistr/test-u8-mbtouc.h: New file.
39793
39794         Tests for module 'unistr/u32-mblen'.
39795         * modules/unistr/u32-mblen-tests: New file.
39796         * tests/unistr/test-u32-mblen.c: New file.
39797
39798         Tests for module 'unistr/u16-mblen'.
39799         * modules/unistr/u16-mblen-tests: New file.
39800         * tests/unistr/test-u16-mblen.c: New file.
39801
39802         Tests for module 'unistr/u8-mblen'.
39803         * modules/unistr/u8-mblen-tests: New file.
39804         * tests/unistr/test-u8-mblen.c: New file.
39805
39806         Tests for module 'unistr/u32-to-u16'.
39807         * modules/unistr/u32-to-u16-tests: New file.
39808         * tests/unistr/test-u32-to-u16.c: New file.
39809
39810         Tests for module 'unistr/u32-to-u8'.
39811         * modules/unistr/u32-to-u8-tests: New file.
39812         * tests/unistr/test-u32-to-u8.c: New file.
39813
39814         Tests for module 'unistr/u16-to-u32'.
39815         * modules/unistr/u16-to-u32-tests: New file.
39816         * tests/unistr/test-u16-to-u32.c: New file.
39817
39818         Tests for module 'unistr/u16-to-u8'.
39819         * modules/unistr/u16-to-u8-tests: New file.
39820         * tests/unistr/test-u16-to-u8.c: New file.
39821
39822         Tests for module 'unistr/u8-to-u32'.
39823         * modules/unistr/u8-to-u32-tests: New file.
39824         * tests/unistr/test-u8-to-u32.c: New file.
39825
39826         Tests for module 'unistr/u8-to-u16'.
39827         * modules/unistr/u8-to-u16-tests: New file.
39828         * tests/unistr/test-u8-to-u16.c: New file.
39829
39830         Tests for module 'unistr/u32-check'.
39831         * modules/unistr/u32-check-tests: New file.
39832         * tests/unistr/test-u32-check.c: New file.
39833
39834         Tests for module 'unistr/u16-check'.
39835         * modules/unistr/u16-check-tests: New file.
39836         * tests/unistr/test-u16-check.c: New file.
39837
39838         Tests for module 'unistr/u8-check'.
39839         * modules/unistr/u8-check-tests: New file.
39840         * tests/unistr/test-u8-check.c: New file.
39841
39842         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39843         (category_equals): New function.
39844         (main): Add more tests.
39845         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39846
39847         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39848
39849 2010-01-10  Bruno Haible  <bruno@clisp.org>
39850
39851         unistr/u*-strcoll: Try harder to distinguish different strings.
39852         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39853         compare s1 and s2 to see if they are different.
39854
39855 2010-01-10  Bruno Haible  <bruno@clisp.org>
39856
39857         unistr/u*-stpncpy: Fix the return value.
39858         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39859         description of the return value consistent with stpncpy in glibc.
39860         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39861         written non-NUL unit.
39862
39863 2010-01-10  Bruno Haible  <bruno@clisp.org>
39864
39865         unistr/u*-next: Add missing dependencies.
39866         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39867         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39868         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39869
39870 2010-01-10  Bruno Haible  <bruno@clisp.org>
39871
39872         unistr/u8-mbsnlen: Fix return value for incomplete character.
39873         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39874         u8_mblen.
39875         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39876         Remove unistr/u8-mblen.
39877         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39878         u16_mblen.
39879         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39880         Remove unistr/u16-mblen.
39881
39882 2010-01-10  Bruno Haible  <bruno@clisp.org>
39883
39884         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39885         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39886         Reported by Brian Gough <bjg@gnu.org> and
39887         Chris Clayton <chris2553@googlemail.com> via
39888         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39889
39890 2010-01-09  Bruno Haible  <bruno@clisp.org>
39891
39892         unistr/u16-to-u32: Reject invalid input.
39893         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39894         u16_mbtouc.
39895         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39896         Remove unistr/u16-mbtouc.
39897
39898         unistr/u16-to-u8: Reject invalid input.
39899         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39900         u16_mbtouc.
39901         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39902         Remove unistr/u16-mbtouc.
39903
39904         unistr/u8-to-u32: Reject invalid input.
39905         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39906         u8_mbtouc.
39907         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39908         Remove unistr/u8-mbtouc.
39909
39910         unistr/u8-to-u16: Reject invalid input.
39911         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39912         u8_mbtouc.
39913         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39914         Remove unistr/u8-mbtouc.
39915
39916 2010-01-09  Bruno Haible  <bruno@clisp.org>
39917
39918         Tests for module 'getlogin'.
39919         * modules/getlogin-tests: New file.
39920         * tests/test-getlogin.c: New file.
39921
39922         New module 'getlogin'.
39923         * lib/unistd.in.h (getlogin): New declaration.
39924         * lib/getlogin.c: New file.
39925         * m4/getlogin.m4: New file.
39926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39927         HAVE_GETLOGIN.
39928         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39929         HAVE_GETLOGIN.
39930         * modules/getlogin: New file.
39931         * doc/posix-functions/getlogin.texi: Mention the new module.
39932         Reported by John W. Eaton <jwe@gnu.org>.
39933
39934 2010-01-09  Bruno Haible  <bruno@clisp.org>
39935
39936         getlogin_r: Support for native Windows.
39937         * lib/getlogin_r.c: Include <windows.h>
39938         (getlogin_r): Implement for native Windows.
39939         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39940         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39941         via John W. Eaton <jwe@gnu.org>.
39942
39943 2010-01-09  Bruno Haible  <bruno@clisp.org>
39944
39945         getlogin_r: Small fixes.
39946         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39947         succeeds.
39948         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39949         before testing whether getlogin_r is declared. No need to set
39950         HAVE_DECL_GETLOGIN_R to 1.
39951         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39952
39953 2010-01-09  Bruno Haible  <bruno@clisp.org>
39954
39955         * lib/unistd.in.h (getlogin_r): Add comment.
39956
39957 2010-01-09  Bruno Haible  <bruno@clisp.org>
39958
39959         Tests for module 'getlogin_r'.
39960         * modules/getlogin_r-tests: New file.
39961         * tests/test-getlogin_r.c: New file.
39962
39963 2010-01-09  Jim Meyering  <meyering@redhat.com>
39964
39965         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39966         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39967         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39968
39969 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39970
39971         * lib/dup2.c (rpl_dup2): Improve comment.
39972
39973 2010-01-08  Eric Blake  <ebb9@byu.net>
39974
39975         maint.mk: allow packages to add makefile @@ exceptions
39976         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39977         (sc_makefile_check): Rename...
39978         (sc_makefile_at_at_check): ...to this, and use hook.
39979
39980         dup2: work around mingw bug
39981         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39982         Reported by Simon Josefsson.
39983
39984 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39985
39986         glob: Fix C++ compilation.
39987         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39988         C++.
39989
39990 2010-01-07  Bruno Haible  <bruno@clisp.org>
39991
39992         Fix indentation of wctype.in.h, broken since 2007-01-06.
39993         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39994
39995 2010-01-07  Bruno Haible  <bruno@clisp.org>
39996
39997         mbslen: Avoid collision with system function.
39998         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39999         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40000         * m4/mbslen.m4: New file.
40001         * modules/mbslen (Files): Add it.
40002         (configure.ac): Invoke gl_MBSLEN.
40003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40004         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40005         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40006         via Ian Beckwith <ianb@erislabs.net>.
40007
40008 2010-01-07  Bruno Haible  <bruno@clisp.org>
40009
40010         dirent: Document the last fix.
40011         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40012
40013 2010-01-07  Bruno Haible  <bruno@clisp.org>
40014
40015         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40016         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40017         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40018         va_list are defined.
40019         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40020         Reported by Eric Blake.
40021
40022 2010-01-07  Bruno Haible  <bruno@clisp.org>
40023
40024         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40025         * modules/xlist (Depends-on): Add 'list',
40026         * modules/xoset (Depends-on): Add 'oset'.
40027         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40028
40029 2010-01-07  Bruno Haible  <bruno@clisp.org>
40030
40031         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40032         * doc/posix-functions/strncasecmp.texi: Likewise.
40033
40034 2010-01-07  Bruno Haible  <bruno@clisp.org>
40035
40036         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40037
40038 2010-01-07  John W. Eaton  <jwe@octave.org>
40039
40040         wctype: allow C++ use
40041         * lib/wctype.in.h: Add extern "C" block for C++.
40042
40043 2010-01-06  Eric Blake  <ebb9@byu.net>
40044
40045         maint.mk: detect incorrect GFDL usage
40046         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40047
40048 2010-01-06  Jim Meyering  <meyering@redhat.com>
40049         and Eric Blake  <ebb9@byu.net>
40050
40051         maint.mk: ignore multi-line copyright in NEWS
40052         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40053
40054 2010-01-06  Eric Blake  <ebb9@byu.net>
40055
40056         select: add missing dependency
40057         * modules/select-tests (Depends-on): Move sockets dependency...
40058         * modules/select (Depends-on): ...here.
40059         Reported by Ian Beckwith.
40060
40061         doc: regenerate INSTALL
40062         * doc/INSTALL: Reflect recent autoconf update.
40063         * doc/INSTALL.ISO: Likewise.
40064         * doc/INSTALL.UTF-8: Likewise.
40065
40066         pread: fix compilation on glibc
40067         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40068         Reported by Ralf Wildenhues.
40069
40070         dirent: fix test failure
40071         * lib/dirent.in.h (includes): Guarantee ino_t.
40072         Reported by Ralf Wildenhues.
40073
40074 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40075
40076         linkat, renameat: avoid bad free
40077         * lib/at-func2.c (at_func2): Fix typo.
40078         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40079
40080 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40081
40082         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40083         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40084         to avoid failure of symlink test later.
40085
40086 2010-01-06  Eric Blake  <ebb9@byu.net>
40087
40088         stdio, unistd: guarantee ssize_t
40089         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40090         2008 are exposed when needed.
40091         * lib/stdio.in.h (includes): Likewise.
40092         Reported by Ralf Wildenhues.
40093
40094 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40095
40096         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40097         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40098         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40099
40100 2010-01-06  Jim Meyering  <meyering@redhat.com>
40101
40102         readtokens: this module *does* require xalloc.h
40103         It uses only functions that were omitted by the old syntax-check rule.
40104         * lib/readtokens.c: Include "xalloc.h" once again.
40105         * modules/readtokens (Depends-on): Add xalloc.
40106         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40107
40108 2010-01-05  Eric Blake  <ebb9@byu.net>
40109
40110         maint: support 'make announcement' from a VPATH build
40111         * top/maint.mk (announcement): Look for correct NEWS file.
40112
40113 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40114
40115         utimens (fdutimens): ignore a negative FD, per contract
40116         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40117         when we have a valid file descriptor.  Otherwise, using a brand
40118         new glibc (with just-patched futimens that now fails with EBADF)
40119         would cause this function to fail with ENOSYS.
40120         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40121         See also http://bugzilla.redhat.com/552320.
40122
40123 2010-01-05  Eric Blake  <ebb9@byu.net>
40124
40125         strcase: document what it provides
40126         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40127         gnulib module.
40128         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40129         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40130
40131 2010-01-05  Jim Meyering  <meyering@redhat.com>
40132
40133         maint: remove useless inclusions of "xalloc.h"
40134         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40135         * lib/readtokens.c: Likewise.
40136         * lib/same.c: Likewise.
40137         * modules/getloadavg (Depends-on): Remove xalloc.
40138         * modules/readtokens: Likewise.
40139         * modules/same: Likewise.
40140
40141         maint.mk: include 4 more function names in alloca.h-checking regexp
40142         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40143         regexp.  Before, we would give a false-positive (saying alloca.h
40144         is included unnecessarily) when the only uses involved omitted symbols.
40145
40146         xalloc.h: use consistent formatting
40147         * lib/xalloc.h: Move declarations to start in the first column.
40148
40149 2010-01-05  Eric Blake  <ebb9@byu.net>
40150
40151         mkdir: avoid xalloc
40152         * lib/mkdir.c (includes): Drop unused header.
40153         Reported by John W. Eaton.
40154
40155 2010-01-04  Jim Meyering  <meyering@redhat.com>
40156
40157         nl_langinfo: avoid configure-time syntax error
40158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40159         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40160         the empty string.  Don't let that provoke a shell syntax error.
40161
40162         regcomp, regexec, fnmatch: avoid array bounds read error
40163         * lib/regcomp.c (build_equiv_class): From glibc:
40164         Use only the low 24 bits of a findidx return value as an index
40165         into the weights array.  Patch by Ulrich Drepper:
40166         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40167         * lib/regexec.c (check_node_accept_bytes): Likewise.
40168         * lib/fnmatch_loop.c (FCT): Likewise.
40169
40170         regcomp: skip collseq lookup when there are no rules
40171         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40172         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40173
40174         regcomp: recognize ill-formed { } expressions
40175         * lib/regcomp.c (parse_dup_op): From glibc:
40176         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40177
40178         regcomp: fix typo in comment
40179         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40180         s/satisfy/satisfies/.
40181
40182         regcomp: sync from glibc: remove dead store
40183         * lib/regcomp.c (duplicate_node_closure): Remove useless
40184         search_duplicated_node call and dead store.
40185
40186         regcomp: sync from glibc; always use nl_langinfo
40187         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40188         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40189         * modules/regex (Depends-on): Add nl_langinfo.
40190
40191 2010-01-04  Eric Blake  <ebb9@byu.net>
40192
40193         fdopendir: fix configure test
40194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40195
40196 2010-01-01  Bruno Haible  <bruno@clisp.org>
40197
40198         wchar: Remove unused configure check.
40199         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40200
40201 2010-01-01  Eric Blake  <ebb9@byu.net>
40202
40203         headers: make check of system header explicit
40204         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40205         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40206         ourselves.
40207         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40209         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40210         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40211         internals.
40212         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40213         missing.
40214         Suggested by Bruno Haible.
40215
40216 2010-01-01  Jim Meyering  <meyering@redhat.com>
40217
40218         ChangeLog: tweak to eliminate unnecessary copyright line
40219         * ChangeLog: Remove a copyright line that was mistakenly updated
40220         by today's update-copyright run.  Reported by Eric Blake.
40221
40222         test-update-copyright: don't let envvar setting cause test failure
40223         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40224
40225 2010-01-01  Bruno Haible  <bruno@clisp.org>
40226
40227         localename: Avoid gcc warning.
40228         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40229         function if it is not used.
40230
40231 2010-01-01  Jim Meyering  <meyering@redhat.com>
40232
40233         update nearly all FSF copyright year lists to include 2010
40234         Use the same procedure as for 2009, outlined in
40235         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40236
40237         version-etc: set COPYRIGHT_YEAR to 2010
40238         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40239
40240 2009-12-31  Eric Blake  <ebb9@byu.net>
40241
40242         doc: correct availability of cygwin 1.5.x getopt
40243         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40244         variables.
40245         * doc/posix-functions/opterr.texi (opterr): Likewise.
40246         * doc/posix-functions/optind.texi (optind): Likewise.
40247         * doc/posix-functions/optopt.texi (optopt): Likewise.
40248         * doc/posix-functions/tzname.texi (tzname): Likewise.
40249
40250         openat: update maintainer
40251         * modules/openat (Maintainer): Add myself.
40252
40253         utimens: avoid shadowing warning
40254         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40255         buffers into one, to avoid shadowing, as well as avoiding a
40256         redundant stat.
40257         Reported by Jim Meyering.
40258
40259         test-dup2: avoid compiler warning
40260         * tests/test-dup2.c (is_inheritable): Only define if used.
40261
40262 2010-01-01  Bruno Haible  <bruno@clisp.org>
40263
40264         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40265         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40266         defined, use wctomb instead of wcrtomb.
40267
40268 2010-01-01  Bruno Haible  <bruno@clisp.org>
40269
40270         iconv: Reject native Solaris iconv.
40271         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40272         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40273
40274 2009-12-31  Bruno Haible  <bruno@clisp.org>
40275
40276         * tests/test-signal.c (main): Remove test of 'SIG'.
40277
40278 2009-12-31  Bruno Haible  <bruno@clisp.org>
40279
40280         spawn: Fix incomplete fix.
40281         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40282         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40283         warnings for GNULIB_POSIXCHECK again.
40284         Reported by Eric Blake.
40285
40286 2009-12-31  Bruno Haible  <bruno@clisp.org>
40287
40288         Avoid namespace pollution on glibc systems.
40289         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40290         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40291         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40292         glibc systems.
40293
40294 2009-12-31  Bruno Haible  <bruno@clisp.org>
40295
40296         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40297         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40298         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40299         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40300         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40301         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40302         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40303
40304 2009-12-31  Bruno Haible  <bruno@clisp.org>
40305
40306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40307         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40308         afterwards.
40309
40310 2009-12-31  Bruno Haible  <bruno@clisp.org>
40311
40312         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40313         SYS_UTSNAME_H.
40314
40315 2009-12-31  Bruno Haible  <bruno@clisp.org>
40316
40317         spawn: Fix misapplied patch.
40318         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40319         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40320         warnings for GNULIB_POSIXCHECK.
40321
40322 2009-12-31  Bruno Haible  <bruno@clisp.org>
40323
40324         times: Update after sys_times changed.
40325         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40326         * modules/times (Files): Add it.
40327         (configure.ac): Invoke gl_FUNC_TIMES.
40328
40329 2009-12-31  Bruno Haible  <bruno@clisp.org>
40330
40331         Use AC_C_INLINE where necessary.
40332         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40333         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40335         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40336         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40337         * m4/mbiter.m4 (gl_MBITER): Likewise.
40338         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40339         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40340         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40341         * modules/u64 (configure.ac): Likewise.
40342
40343 2009-12-31  Bruno Haible  <bruno@clisp.org>
40344
40345         Use AC_C_INLINE instead of module 'inline' where possible.
40346         * modules/inline (Description): Clarify purpose.
40347         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40348         * modules/count-one-bits (Depends-on): Remove inline.
40349         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40350         * modules/openat (Depends-on): Remove inline.
40351         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40352         instead of depending on module 'inline'.
40353         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40354         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40355         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40356         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40357         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40358         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40359         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40360         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40361         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40362         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40363         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40364         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40365         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40366         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40367         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40368         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40369         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40370         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40371         Likewise.
40372         * modules/unictype/property-ascii-hex-digit (Depends-on,
40373         configure.ac): Likewise.
40374         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40375         configure.ac): Likewise.
40376         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40377         configure.ac): Likewise.
40378         * modules/unictype/property-bidi-block-separator (Depends-on,
40379         configure.ac): Likewise.
40380         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40381         configure.ac): Likewise.
40382         * modules/unictype/property-bidi-common-separator (Depends-on,
40383         configure.ac): Likewise.
40384         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40385         Likewise.
40386         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40387         configure.ac): Likewise.
40388         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40389         configure.ac): Likewise.
40390         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40391         configure.ac): Likewise.
40392         * modules/unictype/property-bidi-european-digit (Depends-on,
40393         configure.ac): Likewise.
40394         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40395         configure.ac): Likewise.
40396         * modules/unictype/property-bidi-left-to-right (Depends-on,
40397         configure.ac): Likewise.
40398         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40399         configure.ac): Likewise.
40400         * modules/unictype/property-bidi-other-neutral (Depends-on,
40401         configure.ac): Likewise.
40402         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40403         Likewise.
40404         * modules/unictype/property-bidi-segment-separator (Depends-on,
40405         configure.ac): Likewise.
40406         * modules/unictype/property-bidi-whitespace (Depends-on,
40407         configure.ac): Likewise.
40408         * modules/unictype/property-combining (Depends-on, configure.ac):
40409         Likewise.
40410         * modules/unictype/property-composite (Depends-on, configure.ac):
40411         Likewise.
40412         * modules/unictype/property-currency-symbol (Depends-on,
40413         configure.ac): Likewise.
40414         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40415         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40416         Likewise.
40417         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40418         configure.ac): Likewise.
40419         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40420         Likewise.
40421         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40422         Likewise.
40423         * modules/unictype/property-extender (Depends-on, configure.ac):
40424         Likewise.
40425         * modules/unictype/property-format-control (Depends-on, configure.ac):
40426         Likewise.
40427         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40428         Likewise.
40429         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40430         Likewise.
40431         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40432         Likewise.
40433         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40434         Likewise.
40435         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40436         Likewise.
40437         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40438         Likewise.
40439         * modules/unictype/property-id-start (Depends-on, configure.ac):
40440         Likewise.
40441         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40442         Likewise.
40443         * modules/unictype/property-ids-binary-operator (Depends-on,
40444         configure.ac): Likewise.
40445         * modules/unictype/property-ids-trinary-operator (Depends-on,
40446         configure.ac): Likewise.
40447         * modules/unictype/property-ignorable-control (Depends-on,
40448         configure.ac): Likewise.
40449         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40450         Likewise.
40451         * modules/unictype/property-join-control (Depends-on, configure.ac):
40452         Likewise.
40453         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40454         Likewise.
40455         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40456         Likewise.
40457         * modules/unictype/property-logical-order-exception (Depends-on,
40458         configure.ac): Likewise.
40459         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40460         Likewise.
40461         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40462         * modules/unictype/property-non-break (Depends-on, configure.ac):
40463         Likewise.
40464         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40465         Likewise.
40466         * modules/unictype/property-numeric (Depends-on, configure.ac):
40467         Likewise.
40468         * modules/unictype/property-other-alphabetic (Depends-on,
40469         configure.ac): Likewise.
40470         * modules/unictype/property-other-default-ignorable-code-point
40471         (Depends-on, configure.ac): Likewise.
40472         * modules/unictype/property-other-grapheme-extend (Depends-on,
40473         configure.ac): Likewise.
40474         * modules/unictype/property-other-id-continue (Depends-on,
40475         configure.ac): Likewise.
40476         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40477         Likewise.
40478         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40479         Likewise.
40480         * modules/unictype/property-other-math (Depends-on, configure.ac):
40481         Likewise.
40482         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40483         Likewise.
40484         * modules/unictype/property-paired-punctuation (Depends-on,
40485         configure.ac): Likewise.
40486         * modules/unictype/property-paragraph-separator (Depends-on,
40487         configure.ac): Likewise.
40488         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40489         Likewise.
40490         * modules/unictype/property-pattern-white-space (Depends-on,
40491         configure.ac): Likewise.
40492         * modules/unictype/property-private-use (Depends-on, configure.ac):
40493         Likewise.
40494         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40495         Likewise.
40496         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40497         Likewise.
40498         * modules/unictype/property-radical (Depends-on, configure.ac):
40499         Likewise.
40500         * modules/unictype/property-sentence-terminal (Depends-on,
40501         configure.ac): Likewise.
40502         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40503         Likewise.
40504         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40505         * modules/unictype/property-terminal-punctuation (Depends-on,
40506         configure.ac): Likewise.
40507         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40508         Likewise.
40509         * modules/unictype/property-unassigned-code-value (Depends-on,
40510         configure.ac): Likewise.
40511         * modules/unictype/property-unified-ideograph (Depends-on,
40512         configure.ac): Likewise.
40513         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40514         Likewise.
40515         * modules/unictype/property-variation-selector (Depends-on,
40516         configure.ac): Likewise.
40517         * modules/unictype/property-white-space (Depends-on, configure.ac):
40518         Likewise.
40519         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40520         Likewise.
40521         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40522         Likewise.
40523         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40524         Likewise.
40525         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40526         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40527         Likewise.
40528
40529 2009-12-31  Bruno Haible  <bruno@clisp.org>
40530
40531         Remove unnecessary AC_C_INLINE invocation.
40532         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40533         since 2009-08-21.
40534
40535 2009-12-31  Jim Meyering  <meyering@redhat.com>
40536
40537         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40538         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40539         With this change, we can all remove the gpg_key_ID = ... definition
40540         from our respective cfg.mk files.
40541
40542         maint.mk: create announcement template in ~/, not in /tmp
40543         * top/maint.mk (emit_upload_commands): Adjust.
40544         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40545         Remove temporary file, .ci-msg.
40546
40547 2009-12-31  Eric Blake  <ebb9@byu.net>
40548
40549         link-warning: always build headers with link warnings
40550         * modules/arpa_inet (Makefile.am): Always build replacement
40551         header.
40552         * modules/ctype (Makefile.am): Likewise.
40553         * modules/dirent (Makefile.am): Likewise.
40554         * modules/inttypes (Makefile.am): Likewise.
40555         * modules/langinfo (Makefile.am): Likewise.
40556         * modules/locale (Makefile.am): Likewise.
40557         * modules/spawn (Makefile.am): Likewise.
40558         * modules/sys_file (Makefile.am): Likewise.
40559         * modules/sys_ioctl (Makefile.am): Likewise.
40560         * modules/sys_select (Makefile.am): Likewise.
40561         * modules/sys_socket (Makefile.am): Likewise.
40562         * modules/sys_times (Makefile.am): Likewise.
40563         * modules/sys_utsname (Makefile.am): Likewise.
40564         * modules/sys_wait (Makefile.am): Likewise.
40565         * modules/wchar (Makefile.am): Likewise.
40566         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40567         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40568         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40569         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40570         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40571         Likewise.
40572         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40573         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40574         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40575         Likewise.
40576         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40577         Likewise.
40578         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40579         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40580         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40582         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40583         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40584         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40585         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40586         (gl_WCHAR_H_DEFAULTS): Likewise.
40587
40588 2009-12-31  Eric Blake  <ebb9@byu.net>
40589
40590         signal, spawn: use link warnings
40591         * lib/signal.in.h (sigset_t): Make unconditional.
40592         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40593         (sigpending, sigprocmask, sigaction): Add link warnings.
40594         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40595         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40596         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40597         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40598         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40599         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40600         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40601         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40602         (posix_spawn_file_actions_destroy)
40603         (posix_spawn_file_actions_addopen)
40604         (posix_spawn_file_actions_addclose)
40605         (posix_spawn_file_actions_adddup2): Likewise.
40606         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40607         * tests/test-signal.c (main): Enhance test.
40608
40609         spawn: improve wrapper support
40610         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40611         (gl_SPAWN_H_DEFAULTS): New defaults.
40612         * modules/spawn (Makefile.am): Substitute them.
40613         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40614         Only declare if missing or broken.
40615
40616         sys_times, sys_utsname: use include_next
40617         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40618         header.
40619         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40620         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40621         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40622         * modules/sys_times (Depends-on): Add include_next.
40623         (Makefile.am): Substitute additional values.
40624         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40625         * lib/sys_times.in.h (includes): Include native header, if
40626         available.
40627         * lib/sys_utsname.in.h (includes): Likewise.
40628         * tests/test-sys_times.c (main): Enhance test.
40629
40630         fdutimensat: revert prior patch
40631         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40632         utimens.h.
40633         Reported by Bruno Haible.
40634
40635 2009-12-30  Eric Blake  <ebb9@byu.net>
40636
40637         sys_wait: drop link-warning dependency
40638         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40639         link-warning efforts.
40640         * lib/sys_wait.in.h: Likewise.
40641
40642         fdutimensat: remove bogus dependency
40643         * modules/fdutimensat (Depends-on): Drop inline.
40644
40645         unistd: fix typo
40646         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40647
40648 2009-12-30  Bruno Haible  <bruno@clisp.org>
40649
40650         Fix compilation error with Solaris cc.
40651         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40652         * lib/unicase/u16-is-invariant.c: Likewise.
40653         * lib/unicase/u32-is-invariant.c: Likewise.
40654         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40655
40656 2009-12-30  Bruno Haible  <bruno@clisp.org>
40657
40658         Fix test crash.
40659         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40660         locales.
40661         Reported by Simon Josefsson <simon@josefsson.org>.
40662
40663 2009-12-30  Bruno Haible  <bruno@clisp.org>
40664
40665         Fix compilation error on most platforms.
40666         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40667         Reported by Simon Josefsson <simon@josefsson.org>
40668         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40669
40670 2009-12-30  Eric Blake  <ebb9@byu.net>
40671
40672         futimens, utimensat: work around ntfs-3g bug
40673         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40674         a ctime bug is present, and expand workaround to cover ntfs-3g.
40675         * lib/utimens.c (fdutimens, lutimens): Likewise.
40676         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40677         (validate_timespec): Adjust return value.
40678         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40679         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40680         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40681
40682 2009-12-29  Eric Blake  <ebb9@byu.net>
40683
40684         link-warning: make usage consistent
40685         * modules/ctype (Depends-on): Add link-warning.
40686         (Makefile.am): Update rules accordingly.
40687         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40688         * modules/locale (Depends-on, Makefile.am): Likewise.
40689         * modules/sys_file (Makefile.am): Likewise.
40690         * modules/getopt-posix (Makefile.am): Delete unused link warning
40691         efforts.
40692         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40693         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40694         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40695         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40696
40697         stdio: remove unused variables
40698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40699         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40700         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40701
40702         tests: test more substitute headers
40703         * modules/ctype-tests: New file.
40704         * modules/dirent-tests: Likewise.
40705         * modules/spawn-tests: Likewise.
40706         * modules/sys_file-tests: Likewise.
40707         * modules/sys_ioctl-tests: Likewise.
40708         * modules/sys_wait-tests: Likewise.
40709         * tests/test-ctype.c: Likewise.
40710         * tests/test-dirent.c: Likewise.
40711         * tests/test-spawn.c: Likewise.
40712         * tests/test-sys_file.c: Likewise.
40713         * tests/test-sys_ioctl.c: Likewise.
40714         * tests/test-sys_wait.c: Likewise.
40715         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40716         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40717         whether or not flock is in use.
40718
40719         tests: remove License section from module
40720         * modules/arpa_inet-tests: Remove unneeded section.
40721         * modules/byteswap-tests: Likewise.
40722         * modules/ceilf-tests: Likewise.
40723         * modules/ceill-tests: Likewise.
40724         * modules/crypto/des-tests: Likewise.
40725         * modules/crypto/gc-arcfour-tests: Likewise.
40726         * modules/crypto/gc-arctwo-tests: Likewise.
40727         * modules/crypto/gc-des-tests: Likewise.
40728         * modules/crypto/gc-hmac-md5-tests: Likewise.
40729         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40730         * modules/crypto/gc-md2-tests: Likewise.
40731         * modules/crypto/gc-md4-tests: Likewise.
40732         * modules/crypto/gc-md5-tests: Likewise.
40733         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40734         * modules/crypto/gc-rijndael-tests: Likewise.
40735         * modules/crypto/gc-sha1-tests: Likewise.
40736         * modules/crypto/gc-tests: Likewise.
40737         * modules/crypto/md2-tests: Likewise.
40738         * modules/crypto/md4-tests: Likewise.
40739         * modules/fcntl-h-tests: Likewise.
40740         * modules/floorf-tests: Likewise.
40741         * modules/floorl-tests: Likewise.
40742         * modules/frexp-nolibm-tests: Likewise.
40743         * modules/frexp-tests: Likewise.
40744         * modules/frexpl-nolibm-tests: Likewise.
40745         * modules/frexpl-tests: Likewise.
40746         * modules/getaddrinfo-tests: Likewise.
40747         * modules/inttypes-tests: Likewise.
40748         * modules/isfinite-tests: Likewise.
40749         * modules/isinf-tests: Likewise.
40750         * modules/ldexpl-tests: Likewise.
40751         * modules/locale-tests: Likewise.
40752         * modules/math-tests: Likewise.
40753         * modules/netdb-tests: Likewise.
40754         * modules/netinet_in-tests: Likewise.
40755         * modules/printf-frexp-tests: Likewise.
40756         * modules/printf-frexpl-tests: Likewise.
40757         * modules/priv-set-tests: Likewise.
40758         * modules/random_r-tests: Likewise.
40759         * modules/round-tests: Likewise.
40760         * modules/roundf-tests: Likewise.
40761         * modules/roundl-tests: Likewise.
40762         * modules/search-tests: Likewise.
40763         * modules/select-tests: Likewise.
40764         * modules/signal-tests: Likewise.
40765         * modules/stdbool-tests: Likewise.
40766         * modules/stddef-tests: Likewise.
40767         * modules/stdint-tests: Likewise.
40768         * modules/stdio-tests: Likewise.
40769         * modules/stdlib-tests: Likewise.
40770         * modules/string-tests: Likewise.
40771         * modules/strings-tests: Likewise.
40772         * modules/sys_select-tests: Likewise.
40773         * modules/sys_socket-tests: Likewise.
40774         * modules/sys_stat-tests: Likewise.
40775         * modules/sys_time-tests: Likewise.
40776         * modules/sys_utsname-tests: Likewise.
40777         * modules/sysexits-tests: Likewise.
40778         * modules/time-tests: Likewise.
40779         * modules/trunc-tests: Likewise.
40780         * modules/truncf-tests: Likewise.
40781         * modules/truncl-tests: Likewise.
40782         * modules/tsearch-tests: Likewise.
40783         * modules/unistd-tests: Likewise.
40784         * modules/wchar-tests: Likewise.
40785         * modules/wctype-tests: Likewise.
40786
40787         tests: fix license on several tests
40788         * tests/test-des.c: Update to GPLv3+.
40789         * tests/test-flock.c: Likewise.
40790         * tests/test-fsync.c: Likewise.
40791         * tests/test-futimens.h: Likewise.
40792         * tests/test-gc-arcfour.c: Likewise.
40793         * tests/test-gc-arctwo.c: Likewise.
40794         * tests/test-gc-des.c: Likewise.
40795         * tests/test-gc-hmac-md5.c: Likewise.
40796         * tests/test-gc-hmac-sha1.c: Likewise.
40797         * tests/test-gc-md2.c: Likewise.
40798         * tests/test-gc-md4.c: Likewise.
40799         * tests/test-gc-md5.c: Likewise.
40800         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40801         * tests/test-gc-rijndael.c: Likewise.
40802         * tests/test-gc-sha1.c: Likewise.
40803         * tests/test-gc.c: Likewise.
40804         * tests/test-getcwd.c: Likewise.
40805         * tests/test-link.c: Likewise.
40806         * tests/test-link.h: Likewise.
40807         * tests/test-lutimens.h: Likewise.
40808         * tests/test-md2.c: Likewise.
40809         * tests/test-md4.c: Likewise.
40810         * tests/test-mkdir.h: Likewise.
40811         * tests/test-rename.c: Likewise.
40812         * tests/test-rename.h: Likewise.
40813         * tests/test-safe-alloc.c: Likewise.
40814         * tests/test-utimens-common.h: Likewise.
40815         * tests/test-utimens.h: Likewise.
40816
40817         maint: sync license texts
40818         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40819         * doc/gpl-3.0.texi: Revert copyright year update.
40820         * doc/lgpl-3.0.texi: Likewise.
40821
40822 2009-12-29  Jim Meyering  <meyering@redhat.com>
40823
40824         update nearly all FSF copyright year lists to include 2009
40825         The files named by the following are exempted:
40826             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40827               test -f "$dst" && { echo "$dst"; continue; }
40828               test -d "$dst" || continue
40829               echo "$dst"/$(basename "$src")
40830             done > exempt
40831             git ls-files tests/unictype >> exempt
40832         In the remaining files, convert to all-interval notation if
40833         - there is already at least one year interval like 2000-2003
40834         - the file is maintained by me
40835         - the file is in lib/uni*/, where that style already prevails
40836         Otherwise, use update-copyright's default.
40837
40838 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40839         and Eric Blake  <ebb9@byu.net>
40840
40841         tests: don't require debug system() to pass
40842         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40843         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40844         * tests/test-unlink.h (test_unlink_func): Likewise.
40845         * tests/test-fstatat.c (main): ...into callers.
40846         * tests/test-lstat.c (main): Likewise.
40847         * tests/test-rmdir.c (main): Likewise.
40848         * tests/test-unlink.c (main): Likewise.
40849         * tests/test-unlinkat.c (main): Likewise.
40850         * tests/test-areadlink-with-size.c (main): Don't require a
40851         debug-only system call to pass, aiding cross-testing to mingw.
40852         * tests/test-areadlink.c (main): Likewise.
40853         * tests/test-areadlinkat-with-size.c (main): Likewise.
40854         * tests/test-areadlinkat.c (main): Likewise.
40855         * tests/test-canonicalize-lgpl.c (main): Likewise.
40856         * tests/test-canonicalize.c (main): Likewise.
40857         * tests/test-chown.c (main): Likewise.
40858         * tests/test-fchownat.c (main): Likewise.
40859         * tests/test-lchown.c (main): Likewise.
40860         * tests/test-fdutimensat.c (main): Likewise.
40861         * tests/test-futimens.c (main): Likewise.
40862         * tests/test-link.c (main): Likewise.
40863         * tests/test-linkat.c (main): Likewise.
40864         * tests/test-mkdir.c (main): Likewise.
40865         * tests/test-mkdirat.c (main): Likewise.
40866         * tests/test-mkfifo.c (main): Likewise.
40867         * tests/test-mkfifoat.c (main): Likewise.
40868         * tests/test-mknod.c (main): Likewise.
40869         * tests/test-readlink.c (main): Likewise.
40870         * tests/test-remove.c (main): Likewise.
40871         * tests/test-rename.c (main): Likewise.
40872         * tests/test-renameat.c (main): Likewise.
40873         * tests/test-symlink.c (main): Likewise.
40874         * tests/test-symlinkat.c (main): Likewise.
40875         * tests/test-utimens.c (main): Likewise.
40876         * tests/test-utimensat.c (main): Likewise.
40877
40878 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40879
40880         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40881         on $(UNUSED_PARAMETER_H) to avoid build failure.
40882
40883 2009-12-28  Jim Meyering  <meyering@redhat.com>
40884
40885         update-copyright: you may specify a max. line length other than 72
40886         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40887
40888         maint: use consistent FSF copyright line syntax
40889         * lib/posixtm.c: Add missing comma in FSF copyright line.
40890         * lib/posixtm.h: Likewise.
40891         * lib/getugroups.c: Add missing ", Inc.".
40892
40893         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40894         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40895         FSF copyright line.  Remove trailing blanks.
40896
40897 2009-12-28  Eric Blake  <ebb9@byu.net>
40898
40899         test-dup2: reduce dependencies
40900         * modules/cloexec (Configure.ac): Set witness.
40901         * modules/dup2-tests (Depends-on): Drop cloexec.
40902         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40903         not present.
40904         Suggested by Bruno Haible.
40905
40906 2009-12-26  Bruno Haible  <bruno@clisp.org>
40907
40908         Remove an unneeded dependency.
40909         * modules/fseterr (Depends-on): Remove dup2.
40910
40911 2009-12-26  Eric Blake  <ebb9@byu.net>
40912
40913         tests: use macros.h in more places
40914         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40915         (ASSERT_STREAM): Provide default of stderr.
40916         * tests/test-dirent-safer.c: Include macros.h, using alternate
40917         stream for assertions.
40918         * tests/test-dup-safer.c: Likewise.
40919         * tests/test-freopen-safer.c: Likewise.
40920         * tests/test-getopt.c: Likewise.
40921         * tests/test-openat-safer.c: Likewise.
40922         * tests/test-pipe.c: Likewise.
40923         * tests/test-popen-safer.c: Likewise.
40924         * modules/dirent-safer-tests (Files): Include macros.h.
40925         * modules/unistd-safer-tests (Files): Likewise.
40926         * modules/freopen-safer-tests (Files): Likewise.
40927         * modules/getopt-posix-tests (Files): Likewise.
40928         * modules/openat-safer-tests (Files): Likewise.
40929         * modules/pipe-tests (Files): Likewise.
40930
40931 2009-12-26  Bruno Haible  <bruno@clisp.org>
40932
40933         javacomp: Portability fix.
40934         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40935         that it also works on Solaris.
40936
40937 2009-12-26  Bruno Haible  <bruno@clisp.org>
40938
40939         localename: Fix storage allocation of gl_locale_name_thread's result.
40940         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40941         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40942         all platforms that have 'uselocale'.
40943         (gl_locale_name_thread_unsafe): New function, extracted from
40944         gl_locale_name_thread.
40945         (gl_locale_name_thread): Call struniq on all platforms that have
40946         'uselocale'.
40947         * tests/test-localename.c (test_locale_name_thread): Check that the
40948         resulting strings are permanently allocated.
40949         * modules/localename-tests (Depends-on): Add strdup.
40950
40951 2009-12-26  Bruno Haible  <bruno@clisp.org>
40952
40953         * tests/test-localename.c (categories): Fill in the strings.
40954
40955 2009-12-26  Jim Meyering  <meyering@redhat.com>
40956
40957         isdir: complete the removal of m4/isdir.m4
40958         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40959
40960         isdir: clean up, since at least grep still uses it
40961         * lib/isdir.c: Include "isdir.h".
40962         (S_ISDIR): Remove now-unneeded definition.
40963         * modules/isdir (Files): Add lib/isdir.h.
40964         * lib/isdir.h: New file, with declaration.
40965         * m4/isdir.m4: Remove file -- unneeded.
40966
40967 2009-12-25  Bruno Haible  <bruno@clisp.org>
40968
40969         selinux-h: Make generated .h files standalone.
40970         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40971         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40972         * lib/se-selinux.in.h: Likewise.
40973         * modules/selinux-h (Depends-on): Add unused-parameter.
40974         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40975         selinux/selinux.h and selinux/context.h.
40976         Suggested by Eric Blake.
40977
40978 2009-12-25  Bruno Haible  <bruno@clisp.org>
40979
40980         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40981         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40982         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40983         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40984         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40985
40986 2009-12-24  Bruno Haible  <bruno@clisp.org>
40987
40988         openat: Fix warning.
40989         * lib/openat-proc.c: Include <unistd.h>.
40990
40991 2009-12-24  Bruno Haible  <bruno@clisp.org>
40992
40993         New module 'unused-parameter'.
40994         * build-aux/unused-parameter.h: New file, extracted from earlier
40995         gnulib-common.m4.
40996         * modules/unused-parameter: New file.
40997         * lib/unistr.h: Include unused-parameter.h.
40998         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40999         _GL_UNUSED.
41000         * modules/unistr/base (Depends-on): Add unused-parameter.
41001
41002 2009-12-24  Bruno Haible  <bruno@clisp.org>
41003
41004         Add missing dependencies to 'extensions' module.
41005         * m4/extensions.m4: Add comment.
41006         * modules/accept4 (Depends-on): Add extensions.
41007         * modules/dup3 (Depends-on): Likewise.
41008         * modules/fcntl (Depends-on): Likewise.
41009         * modules/futimens (Depends-on): Likewise.
41010         * modules/mknod (Depends-on): Likewise.
41011         * modules/pipe2 (Depends-on): Likewise.
41012         * modules/stat-time (Depends-on): Likewise.
41013         * modules/strcasestr-simple (Depends-on): Likewise.
41014         * modules/strsignal (Depends-on): Likewise.
41015         * modules/utimensat (Depends-on): Likewise.
41016         * modules/localcharset (Depends-on): Likewise. Needed because of
41017         gl_FCNTL_O_FLAGS.
41018         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41019         AC_TYPE_MBSTATE_T.
41020         * modules/wcsnrtombs (Depends-on): Likewise.
41021         * modules/wcsrtombs (Depends-on): Likewise.
41022
41023 2009-12-24  Bruno Haible  <bruno@clisp.org>
41024
41025         binary-io: Avoid gcc warning due to SET_BINARY.
41026         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41027         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41028
41029 2009-12-24  Bruno Haible  <bruno@clisp.org>
41030
41031         Avoid future namespace pollution on glibc systems.
41032         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41033         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41034         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41035         glibc systems.
41036
41037 2009-12-24  Bruno Haible  <bruno@clisp.org>
41038
41039         Refactor common macros used in tests.
41040         * tests/macros.h: New file.
41041         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41042         and/or <stdlib.h>, if appropriate.
41043         (ASSERT, SIZEOF): Remove macros.
41044         * tests/test-areadlink-with-size.c: Likewise.
41045         * tests/test-areadlinkat.c: Likewise.
41046         * tests/test-areadlinkat-with-size.c: Likewise.
41047         * tests/test-argmatch.c: Likewise.
41048         * tests/test-argv-iter.c: Likewise.
41049         * tests/test-array-mergesort.c: Likewise.
41050         * tests/test-array_list.c: Likewise.
41051         * tests/test-array_oset.c: Likewise.
41052         * tests/test-avltree_list.c: Likewise.
41053         * tests/test-avltree_oset.c: Likewise.
41054         * tests/test-avltreehash_list.c: Likewise.
41055         * tests/test-base64.c: Likewise.
41056         * tests/test-binary-io.c: Likewise.
41057         * tests/test-bitrotate.c: Likewise.
41058         * tests/test-btowc.c: Likewise.
41059         * tests/test-byteswap.c: Likewise.
41060         * tests/test-c-ctype.c: Likewise.
41061         * tests/test-c-stack.c: Likewise.
41062         * tests/test-c-strcasecmp.c: Likewise.
41063         * tests/test-c-strcasestr.c: Likewise.
41064         * tests/test-c-strncasecmp.c: Likewise.
41065         * tests/test-c-strstr.c: Likewise.
41066         * tests/test-canonicalize-lgpl.c: Likewise.
41067         * tests/test-canonicalize.c: Likewise.
41068         * tests/test-carray_list.c: Likewise.
41069         * tests/test-ceilf1.c: Likewise.
41070         * tests/test-ceilf2.c: Likewise.
41071         * tests/test-ceill.c: Likewise.
41072         * tests/test-chown.c: Likewise.
41073         * tests/test-cloexec.c: Likewise.
41074         * tests/test-copy-acl.c: Likewise.
41075         * tests/test-copy-file.c: Likewise.
41076         * tests/test-count-one-bits.c: Likewise.
41077         * tests/test-dprintf-posix.c: Likewise.
41078         * tests/test-dup2.c: Likewise.
41079         * tests/test-dup3.c: Likewise.
41080         * tests/test-duplocale.c: Likewise.
41081         * tests/test-fbufmode.c: Likewise.
41082         * tests/test-fchdir.c: Likewise.
41083         * tests/test-fchownat.c: Likewise.
41084         * tests/test-fcntl-safer.c: Likewise.
41085         * tests/test-fcntl.c: Likewise.
41086         * tests/test-fdopendir.c: Likewise.
41087         * tests/test-fdutimensat.c: Likewise.
41088         * tests/test-fflush2.c: Likewise.
41089         * tests/test-file-has-acl.c: Likewise.
41090         * tests/test-filevercmp.c: Likewise.
41091         * tests/test-flock.c: Likewise.
41092         * tests/test-floorf1.c: Likewise.
41093         * tests/test-floorf2.c: Likewise.
41094         * tests/test-floorl.c: Likewise.
41095         * tests/test-fnmatch.c: Likewise.
41096         * tests/test-fopen.h: Likewise.
41097         * tests/test-fpending.c: Likewise.
41098         * tests/test-fprintf-posix.c: Likewise.
41099         * tests/test-fpurge.c: Likewise.
41100         * tests/test-freadable.c: Likewise.
41101         * tests/test-freadahead.c: Likewise.
41102         * tests/test-freading.c: Likewise.
41103         * tests/test-freadptr.c: Likewise.
41104         * tests/test-freadptr2.c: Likewise.
41105         * tests/test-freadseek.c: Likewise.
41106         * tests/test-freopen.c: Likewise.
41107         * tests/test-frexp.c: Likewise.
41108         * tests/test-frexpl.c: Likewise.
41109         * tests/test-fseek.c: Likewise.
41110         * tests/test-fseeko.c: Likewise.
41111         * tests/test-fstatat.c: Likewise.
41112         * tests/test-fstrcmp.c: Likewise.
41113         * tests/test-fsync.c: Likewise.
41114         * tests/test-ftell.c: Likewise.
41115         * tests/test-ftello.c: Likewise.
41116         * tests/test-func.c: Likewise.
41117         * tests/test-futimens.c: Likewise.
41118         * tests/test-fwritable.c: Likewise.
41119         * tests/test-fwriting.c: Likewise.
41120         * tests/test-getcwd.c: Likewise.
41121         * tests/test-getdate.c: Likewise.
41122         * tests/test-getdelim.c: Likewise.
41123         * tests/test-getdtablesize.c: Likewise.
41124         * tests/test-getgroups.c: Likewise.
41125         * tests/test-getline.c: Likewise.
41126         * tests/test-getndelim2.c: Likewise.
41127         * tests/test-glob.c: Likewise.
41128         * tests/test-hash.c: Likewise.
41129         * tests/test-i-ring.c: Likewise.
41130         * tests/test-iconv-utf.c: Likewise.
41131         * tests/test-iconv.c: Likewise.
41132         * tests/test-idpriv-drop.c: Likewise.
41133         * tests/test-idpriv-droptemp.c: Likewise.
41134         * tests/test-inet_ntop.c: Likewise.
41135         * tests/test-inet_pton.c: Likewise.
41136         * tests/test-isblank.c: Likewise.
41137         * tests/test-isfinite.c: Likewise.
41138         * tests/test-isinf.c: Likewise.
41139         * tests/test-isnan.c: Likewise.
41140         * tests/test-isnand.h: Likewise.
41141         * tests/test-isnanf.h: Likewise.
41142         * tests/test-isnanl.h: Likewise.
41143         * tests/test-lchown.c: Likewise.
41144         * tests/test-ldexpl.c: Likewise.
41145         * tests/test-link.c: Likewise.
41146         * tests/test-linkat.c: Likewise.
41147         * tests/test-linked_list.c: Likewise.
41148         * tests/test-linkedhash_list.c: Likewise.
41149         * tests/test-localename.c: Likewise.
41150         * tests/test-lseek.c: Likewise.
41151         * tests/test-lstat.c: Likewise.
41152         * tests/test-mbmemcasecmp.c: Likewise.
41153         * tests/test-mbmemcasecoll.c: Likewise.
41154         * tests/test-mbrtowc.c: Likewise.
41155         * tests/test-mbscasecmp.c: Likewise.
41156         * tests/test-mbscasestr1.c: Likewise.
41157         * tests/test-mbscasestr2.c: Likewise.
41158         * tests/test-mbscasestr3.c: Likewise.
41159         * tests/test-mbscasestr4.c: Likewise.
41160         * tests/test-mbschr.c: Likewise.
41161         * tests/test-mbscspn.c: Likewise.
41162         * tests/test-mbsinit.c: Likewise.
41163         * tests/test-mbsncasecmp.c: Likewise.
41164         * tests/test-mbsnrtowcs.c: Likewise.
41165         * tests/test-mbspbrk.c: Likewise.
41166         * tests/test-mbspcasecmp.c: Likewise.
41167         * tests/test-mbsrchr.c: Likewise.
41168         * tests/test-mbsrtowcs.c: Likewise.
41169         * tests/test-mbsspn.c: Likewise.
41170         * tests/test-mbsstr1.c: Likewise.
41171         * tests/test-mbsstr2.c: Likewise.
41172         * tests/test-mbsstr3.c: Likewise.
41173         * tests/test-memchr.c: Likewise.
41174         * tests/test-memchr2.c: Likewise.
41175         * tests/test-memcmp.c: Likewise.
41176         * tests/test-memmem.c: Likewise.
41177         * tests/test-memrchr.c: Likewise.
41178         * tests/test-mkdir.c: Likewise.
41179         * tests/test-mkdirat.c: Likewise.
41180         * tests/test-mkfifo.c: Likewise.
41181         * tests/test-mkfifoat.c: Likewise.
41182         * tests/test-mknod.c: Likewise.
41183         * tests/test-nanosleep.c: Likewise.
41184         * tests/test-nl_langinfo.c: Likewise.
41185         * tests/test-obstack-printf.c: Likewise.
41186         * tests/test-open.c: Likewise.
41187         * tests/test-openat.c: Likewise.
41188         * tests/test-pipe-filter-gi1.c: Likewise.
41189         * tests/test-pipe-filter-gi2-main.c: Likewise.
41190         * tests/test-pipe-filter-ii1.c: Likewise.
41191         * tests/test-pipe-filter-ii2-main.c: Likewise.
41192         * tests/test-pipe2.c: Likewise.
41193         * tests/test-popen.h: Likewise.
41194         * tests/test-posixtm.c: Likewise.
41195         * tests/test-pread.c: Likewise.
41196         * tests/test-printf-frexp.c: Likewise.
41197         * tests/test-printf-frexpl.c: Likewise.
41198         * tests/test-printf-posix.c: Likewise.
41199         * tests/test-priv-set.c: Likewise.
41200         * tests/test-quotearg.c: Likewise.
41201         * tests/test-random_r.c: Likewise.
41202         * tests/test-rawmemchr.c: Likewise.
41203         * tests/test-rbtree_list.c: Likewise.
41204         * tests/test-rbtree_oset.c: Likewise.
41205         * tests/test-rbtreehash_list.c: Likewise.
41206         * tests/test-readlink.c: Likewise.
41207         * tests/test-remove.c: Likewise.
41208         * tests/test-rename.c: Likewise.
41209         * tests/test-renameat.c: Likewise.
41210         * tests/test-rmdir.c: Likewise.
41211         * tests/test-round1.c: Likewise.
41212         * tests/test-roundf1.c: Likewise.
41213         * tests/test-roundl.c: Likewise.
41214         * tests/test-safe-alloc.c: Likewise.
41215         * tests/test-sameacls.c: Likewise.
41216         * tests/test-set-mode-acl.c: Likewise.
41217         * tests/test-setenv.c: Likewise.
41218         * tests/test-sigaction.c: Likewise.
41219         * tests/test-signbit.c: Likewise.
41220         * tests/test-sleep.c: Likewise.
41221         * tests/test-snprintf-posix.c: Likewise.
41222         * tests/test-snprintf.c: Likewise.
41223         * tests/test-sprintf-posix.c: Likewise.
41224         * tests/test-stat-time.c: Likewise.
41225         * tests/test-stat.c: Likewise.
41226         * tests/test-strcasestr.c: Likewise.
41227         * tests/test-strchrnul.c: Likewise.
41228         * tests/test-strerror.c: Likewise.
41229         * tests/test-striconv.c: Likewise.
41230         * tests/test-striconveh.c: Likewise.
41231         * tests/test-striconveha.c: Likewise.
41232         * tests/test-strsignal.c: Likewise.
41233         * tests/test-strstr.c: Likewise.
41234         * tests/test-strtod.c: Likewise.
41235         * tests/test-strverscmp.c: Likewise.
41236         * tests/test-symlink.c: Likewise.
41237         * tests/test-symlinkat.c: Likewise.
41238         * tests/test-trunc1.c: Likewise.
41239         * tests/test-trunc2.c: Likewise.
41240         * tests/test-truncf1.c: Likewise.
41241         * tests/test-truncf2.c: Likewise.
41242         * tests/test-truncl.c: Likewise.
41243         * tests/test-uname.c: Likewise.
41244         * tests/test-unlink.c: Likewise.
41245         * tests/test-unlinkat.c: Likewise.
41246         * tests/test-unsetenv.c: Likewise.
41247         * tests/test-usleep.c: Likewise.
41248         * tests/test-utimens.c: Likewise.
41249         * tests/test-utimensat.c: Likewise.
41250         * tests/test-vasnprintf-posix.c: Likewise.
41251         * tests/test-vasnprintf-posix2.c: Likewise.
41252         * tests/test-vasnprintf.c: Likewise.
41253         * tests/test-vasprintf-posix.c: Likewise.
41254         * tests/test-vasprintf.c: Likewise.
41255         * tests/test-vdprintf-posix.c: Likewise.
41256         * tests/test-vfprintf-posix.c: Likewise.
41257         * tests/test-vprintf-posix.c: Likewise.
41258         * tests/test-vsnprintf-posix.c: Likewise.
41259         * tests/test-vsnprintf.c: Likewise.
41260         * tests/test-vsprintf-posix.c: Likewise.
41261         * tests/test-wcrtomb.c: Likewise.
41262         * tests/test-wcsnrtombs.c: Likewise.
41263         * tests/test-wcsrtombs.c: Likewise.
41264         * tests/test-wctype.c: Likewise.
41265         * tests/test-wcwidth.c: Likewise.
41266         * tests/test-xfprintf-posix.c: Likewise.
41267         * tests/test-xmemdup0.c: Likewise.
41268         * tests/test-xprintf-posix.c: Likewise.
41269         * tests/test-xvasprintf.c: Likewise.
41270         * tests/unicase/test-locale-language.c: Likewise.
41271         * tests/unicase/test-mapping-part1.h: Likewise.
41272         * tests/unicase/test-predicate-part1.h: Likewise.
41273         * tests/unicase/test-u8-casecmp.c: Likewise.
41274         * tests/unicase/test-u8-casecoll.c: Likewise.
41275         * tests/unicase/test-u8-casefold.c: Likewise.
41276         * tests/unicase/test-u8-is-cased.c: Likewise.
41277         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41278         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41279         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41280         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41281         * tests/unicase/test-u8-tolower.c: Likewise.
41282         * tests/unicase/test-u8-totitle.c: Likewise.
41283         * tests/unicase/test-u8-toupper.c: Likewise.
41284         * tests/unicase/test-u16-casecmp.c: Likewise.
41285         * tests/unicase/test-u16-casecoll.c: Likewise.
41286         * tests/unicase/test-u16-casefold.c: Likewise.
41287         * tests/unicase/test-u16-is-cased.c: Likewise.
41288         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41289         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41290         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41291         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41292         * tests/unicase/test-u16-tolower.c: Likewise.
41293         * tests/unicase/test-u16-totitle.c: Likewise.
41294         * tests/unicase/test-u16-toupper.c: Likewise.
41295         * tests/unicase/test-u32-casecmp.c: Likewise.
41296         * tests/unicase/test-u32-casecoll.c: Likewise.
41297         * tests/unicase/test-u32-casefold.c: Likewise.
41298         * tests/unicase/test-u32-is-cased.c: Likewise.
41299         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41300         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41301         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41302         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41303         * tests/unicase/test-u32-tolower.c: Likewise.
41304         * tests/unicase/test-u32-totitle.c: Likewise.
41305         * tests/unicase/test-u32-toupper.c: Likewise.
41306         * tests/unicase/test-ulc-casecmp.c: Likewise.
41307         * tests/unicase/test-ulc-casecoll.c: Likewise.
41308         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41309         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41310         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41311         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41312         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41313         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41314         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41315         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41316         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41317         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41318         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41319         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41320         * tests/unictype/test-bidi_byname.c: Likewise.
41321         * tests/unictype/test-bidi_name.c: Likewise.
41322         * tests/unictype/test-bidi_of.c: Likewise.
41323         * tests/unictype/test-bidi_test.c: Likewise.
41324         * tests/unictype/test-block_list.c: Likewise.
41325         * tests/unictype/test-block_of.c: Likewise.
41326         * tests/unictype/test-block_test.c: Likewise.
41327         * tests/unictype/test-categ_and.c: Likewise.
41328         * tests/unictype/test-categ_and_not.c: Likewise.
41329         * tests/unictype/test-categ_byname.c: Likewise.
41330         * tests/unictype/test-categ_name.c: Likewise.
41331         * tests/unictype/test-categ_none.c: Likewise.
41332         * tests/unictype/test-categ_of.c: Likewise.
41333         * tests/unictype/test-categ_or.c: Likewise.
41334         * tests/unictype/test-categ_test_withtable.c: Likewise.
41335         * tests/unictype/test-combining.c: Likewise.
41336         * tests/unictype/test-decdigit.c: Likewise.
41337         * tests/unictype/test-digit.c: Likewise.
41338         * tests/unictype/test-mirror.c: Likewise.
41339         * tests/unictype/test-numeric.c: Likewise.
41340         * tests/unictype/test-pr_byname.c: Likewise.
41341         * tests/unictype/test-pr_test.c: Likewise.
41342         * tests/unictype/test-predicate-part1.h: Likewise.
41343         * tests/unictype/test-scripts.c: Likewise.
41344         * tests/unictype/test-sy_c_ident.c: Likewise.
41345         * tests/unictype/test-sy_java_ident.c: Likewise.
41346         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41347         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41348         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41349         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41350         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41351         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41352         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41353         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41354         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41355         * tests/uninorm/test-compat-decomposition.c: Likewise.
41356         * tests/uninorm/test-composition.c: Likewise.
41357         * tests/uninorm/test-decomposing-form.c: Likewise.
41358         * tests/uninorm/test-decomposition.c: Likewise.
41359         * tests/uninorm/test-u8-nfc.c: Likewise.
41360         * tests/uninorm/test-u8-nfd.c: Likewise.
41361         * tests/uninorm/test-u8-nfkc.c: Likewise.
41362         * tests/uninorm/test-u8-nfkd.c: Likewise.
41363         * tests/uninorm/test-u8-normcmp.c: Likewise.
41364         * tests/uninorm/test-u8-normcoll.c: Likewise.
41365         * tests/uninorm/test-u16-nfc.c: Likewise.
41366         * tests/uninorm/test-u16-nfd.c: Likewise.
41367         * tests/uninorm/test-u16-nfkc.c: Likewise.
41368         * tests/uninorm/test-u16-nfkd.c: Likewise.
41369         * tests/uninorm/test-u16-normcmp.c: Likewise.
41370         * tests/uninorm/test-u16-normcoll.c: Likewise.
41371         * tests/uninorm/test-u32-nfc.c: Likewise.
41372         * tests/uninorm/test-u32-nfd.c: Likewise.
41373         * tests/uninorm/test-u32-nfkc.c: Likewise.
41374         * tests/uninorm/test-u32-nfkd.c: Likewise.
41375         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41376         * tests/uninorm/test-u32-normcmp.c: Likewise.
41377         * tests/uninorm/test-u32-normcoll.c: Likewise.
41378         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41379         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41380         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41381         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41382         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41383         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41384         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41385         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41386         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41387         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41388         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41389         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41390         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41391         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41392         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41393         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41394         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41395         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41396         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41397         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41398         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41399         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41400         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41401         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41402         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41403         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41404         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41405         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41406         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41407         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41408         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41409         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41410         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41411         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41412         * tests/uniwidth/test-u8-width.c: Likewise.
41413         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41414         * tests/uniwidth/test-u16-width.c: Likewise.
41415         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41416         * tests/uniwidth/test-u32-width.c: Likewise.
41417         * tests/uniwidth/test-uc_width.c: Likewise.
41418         * tests/uniwidth/test-uc_width2.c: Likewise.
41419         * modules/acl-tests (Files): Add tests/macros.h.
41420         * modules/areadlink-tests (Files): Likewise.
41421         * modules/areadlink-with-size-tests (Files): Likewise.
41422         * modules/areadlinkat-tests (Files): Likewise.
41423         * modules/areadlinkat-with-size-tests (Files): Likewise.
41424         * modules/argmatch-tests (Files): Likewise.
41425         * modules/argv-iter-tests (Files): Likewise.
41426         * modules/array-list-tests (Files): Likewise.
41427         * modules/array-mergesort-tests (Files): Likewise.
41428         * modules/array-oset-tests (Files): Likewise.
41429         * modules/avltree-list-tests (Files): Likewise.
41430         * modules/avltree-oset-tests (Files): Likewise.
41431         * modules/avltreehash-list-tests (Files): Likewise.
41432         * modules/base64-tests (Files): Likewise.
41433         * modules/binary-io-tests (Files): Likewise.
41434         * modules/bitrotate-tests (Files): Likewise.
41435         * modules/btowc-tests (Files): Likewise.
41436         * modules/byteswap-tests (Files): Likewise.
41437         * modules/c-ctype-tests (Files): Likewise.
41438         * modules/c-stack-tests (Files): Likewise.
41439         * modules/c-strcase-tests (Files): Likewise.
41440         * modules/c-strcasestr-tests (Files): Likewise.
41441         * modules/c-strstr-tests (Files): Likewise.
41442         * modules/canonicalize-lgpl-tests (Files): Likewise.
41443         * modules/canonicalize-tests (Files): Likewise.
41444         * modules/carray-list-tests (Files): Likewise.
41445         * modules/ceilf-tests (Files): Likewise.
41446         * modules/ceill-tests (Files): Likewise.
41447         * modules/chown-tests (Files): Likewise.
41448         * modules/cloexec-tests (Files): Likewise.
41449         * modules/copy-file-tests (Files): Likewise.
41450         * modules/count-one-bits-tests (Files): Likewise.
41451         * modules/dprintf-posix-tests (Files): Likewise.
41452         * modules/dup2-tests (Files): Likewise.
41453         * modules/dup3-tests (Files): Likewise.
41454         * modules/duplocale-tests (Files): Likewise.
41455         * modules/fbufmode-tests (Files): Likewise.
41456         * modules/fchdir-tests (Files): Likewise.
41457         * modules/fcntl-safer-tests (Files): Likewise.
41458         * modules/fcntl-tests (Files): Likewise.
41459         * modules/fdopendir-tests (Files): Likewise.
41460         * modules/fdutimensat-tests (Files): Likewise.
41461         * modules/fflush-tests (Files): Likewise.
41462         * modules/filevercmp-tests (Files): Likewise.
41463         * modules/flock-tests (Files): Likewise.
41464         * modules/floorf-tests (Files): Likewise.
41465         * modules/floorl-tests (Files): Likewise.
41466         * modules/fnmatch-tests (Files): Likewise.
41467         * modules/fopen-safer-tests (Files): Likewise.
41468         * modules/fopen-tests (Files): Likewise.
41469         * modules/fpending-tests (Files): Likewise.
41470         * modules/fprintf-posix-tests (Files): Likewise.
41471         * modules/fpurge-tests (Files): Likewise.
41472         * modules/freadable-tests (Files): Likewise.
41473         * modules/freadahead-tests (Files): Likewise.
41474         * modules/freading-tests (Files): Likewise.
41475         * modules/freadptr-tests (Files): Likewise.
41476         * modules/freadseek-tests (Files): Likewise.
41477         * modules/freopen-tests (Files): Likewise.
41478         * modules/frexp-nolibm-tests (Files): Likewise.
41479         * modules/frexp-tests (Files): Likewise.
41480         * modules/frexpl-nolibm-tests (Files): Likewise.
41481         * modules/frexpl-tests (Files): Likewise.
41482         * modules/fseek-tests (Files): Likewise.
41483         * modules/fseeko-tests (Files): Likewise.
41484         * modules/fstrcmp-tests (Files): Likewise.
41485         * modules/fsync-tests (Files): Likewise.
41486         * modules/ftell-tests (Files): Likewise.
41487         * modules/ftello-tests (Files): Likewise.
41488         * modules/func-tests (Files): Likewise.
41489         * modules/futimens-tests (Files): Likewise.
41490         * modules/fwritable-tests (Files): Likewise.
41491         * modules/fwriting-tests (Files): Likewise.
41492         * modules/getcwd-tests (Files): Likewise.
41493         * modules/getdate-tests (Files): Likewise.
41494         * modules/getdelim-tests (Files): Likewise.
41495         * modules/getdtablesize-tests (Files): Likewise.
41496         * modules/getgroups-tests (Files): Likewise.
41497         * modules/getline-tests (Files): Likewise.
41498         * modules/getndelim2-tests (Files): Likewise.
41499         * modules/glob-tests (Files): Likewise.
41500         * modules/hash-tests (Files): Likewise.
41501         * modules/i-ring-tests (Files): Likewise.
41502         * modules/iconv-tests (Files): Likewise.
41503         * modules/iconv_open-utf-tests (Files): Likewise.
41504         * modules/idpriv-drop-tests (Files): Likewise.
41505         * modules/idpriv-droptemp-tests (Files): Likewise.
41506         * modules/inet_ntop-tests (Files): Likewise.
41507         * modules/inet_pton-tests (Files): Likewise.
41508         * modules/isblank-tests (Files): Likewise.
41509         * modules/isfinite-tests (Files): Likewise.
41510         * modules/isinf-tests (Files): Likewise.
41511         * modules/isnan-tests (Files): Likewise.
41512         * modules/isnand-nolibm-tests (Files): Likewise.
41513         * modules/isnand-tests (Files): Likewise.
41514         * modules/isnanf-nolibm-tests (Files): Likewise.
41515         * modules/isnanf-tests (Files): Likewise.
41516         * modules/isnanl-nolibm-tests (Files): Likewise.
41517         * modules/isnanl-tests (Files): Likewise.
41518         * modules/lchown-tests (Files): Likewise.
41519         * modules/ldexpl-tests (Files): Likewise.
41520         * modules/link-tests (Files): Likewise.
41521         * modules/linkat-tests (Files): Likewise.
41522         * modules/linked-list-tests (Files): Likewise.
41523         * modules/linkedhash-list-tests (Files): Likewise.
41524         * modules/localename-tests (Files): Likewise.
41525         * modules/lseek-tests (Files): Likewise.
41526         * modules/lstat-tests (Files): Likewise.
41527         * modules/mbmemcasecmp-tests (Files): Likewise.
41528         * modules/mbmemcasecoll-tests (Files): Likewise.
41529         * modules/mbrtowc-tests (Files): Likewise.
41530         * modules/mbscasecmp-tests (Files): Likewise.
41531         * modules/mbscasestr-tests (Files): Likewise.
41532         * modules/mbschr-tests (Files): Likewise.
41533         * modules/mbscspn-tests (Files): Likewise.
41534         * modules/mbsinit-tests (Files): Likewise.
41535         * modules/mbsncasecmp-tests (Files): Likewise.
41536         * modules/mbsnrtowcs-tests (Files): Likewise.
41537         * modules/mbspbrk-tests (Files): Likewise.
41538         * modules/mbspcasecmp-tests (Files): Likewise.
41539         * modules/mbsrchr-tests (Files): Likewise.
41540         * modules/mbsrtowcs-tests (Files): Likewise.
41541         * modules/mbsspn-tests (Files): Likewise.
41542         * modules/mbsstr-tests (Files): Likewise.
41543         * modules/memchr-tests (Files): Likewise.
41544         * modules/memchr2-tests (Files): Likewise.
41545         * modules/memcmp-tests (Files): Likewise.
41546         * modules/memmem-tests (Files): Likewise.
41547         * modules/memrchr-tests (Files): Likewise.
41548         * modules/mkdir-tests (Files): Likewise.
41549         * modules/mkfifo-tests (Files): Likewise.
41550         * modules/mkfifoat-tests (Files): Likewise.
41551         * modules/mknod-tests (Files): Likewise.
41552         * modules/nanosleep-tests (Files): Likewise.
41553         * modules/nl_langinfo-tests (Files): Likewise.
41554         * modules/obstack-printf-tests (Files): Likewise.
41555         * modules/open-tests (Files): Likewise.
41556         * modules/openat-tests (Files): Likewise.
41557         * modules/pipe-filter-gi-tests (Files): Likewise.
41558         * modules/pipe-filter-ii-tests (Files): Likewise.
41559         * modules/pipe2-tests (Files): Likewise.
41560         * modules/popen-safer-tests (Files): Likewise.
41561         * modules/popen-tests (Files): Likewise.
41562         * modules/posixtm-tests (Files): Likewise.
41563         * modules/pread-tests (Files): Likewise.
41564         * modules/printf-frexp-tests (Files): Likewise.
41565         * modules/printf-frexpl-tests (Files): Likewise.
41566         * modules/printf-posix-tests (Files): Likewise.
41567         * modules/priv-set-tests (Files): Likewise.
41568         * modules/quotearg-tests (Files): Likewise.
41569         * modules/random_r-tests (Files): Likewise.
41570         * modules/rawmemchr-tests (Files): Likewise.
41571         * modules/rbtree-list-tests (Files): Likewise.
41572         * modules/rbtree-oset-tests (Files): Likewise.
41573         * modules/rbtreehash-list-tests (Files): Likewise.
41574         * modules/readlink-tests (Files): Likewise.
41575         * modules/remove-tests (Files): Likewise.
41576         * modules/rename-tests (Files): Likewise.
41577         * modules/renameat-tests (Files): Likewise.
41578         * modules/rmdir-tests (Files): Likewise.
41579         * modules/round-tests (Files): Likewise.
41580         * modules/roundf-tests (Files): Likewise.
41581         * modules/roundl-tests (Files): Likewise.
41582         * modules/safe-alloc-tests (Files): Likewise.
41583         * modules/setenv-tests (Files): Likewise.
41584         * modules/sigaction-tests (Files): Likewise.
41585         * modules/signbit-tests (Files): Likewise.
41586         * modules/sleep-tests (Files): Likewise.
41587         * modules/snprintf-posix-tests (Files): Likewise.
41588         * modules/snprintf-tests (Files): Likewise.
41589         * modules/sprintf-posix-tests (Files): Likewise.
41590         * modules/stat-tests (Files): Likewise.
41591         * modules/stat-time-tests (Files): Likewise.
41592         * modules/strcasestr-tests (Files): Likewise.
41593         * modules/strchrnul-tests (Files): Likewise.
41594         * modules/strerror-tests (Files): Likewise.
41595         * modules/striconv-tests (Files): Likewise.
41596         * modules/striconveh-tests (Files): Likewise.
41597         * modules/striconveha-tests (Files): Likewise.
41598         * modules/strsignal-tests (Files): Likewise.
41599         * modules/strstr-tests (Files): Likewise.
41600         * modules/strtod-tests (Files): Likewise.
41601         * modules/strverscmp-tests (Files): Likewise.
41602         * modules/symlink-tests (Files): Likewise.
41603         * modules/symlinkat-tests (Files): Likewise.
41604         * modules/trunc-tests (Files): Likewise.
41605         * modules/truncf-tests (Files): Likewise.
41606         * modules/truncl-tests (Files): Likewise.
41607         * modules/uname-tests (Files): Likewise.
41608         * modules/unicase/cased-tests (Files): Likewise.
41609         * modules/unicase/ignorable-tests (Files): Likewise.
41610         * modules/unicase/locale-language-tests (Files): Likewise.
41611         * modules/unicase/tolower-tests (Files): Likewise.
41612         * modules/unicase/totitle-tests (Files): Likewise.
41613         * modules/unicase/toupper-tests (Files): Likewise.
41614         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41615         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41616         * modules/unicase/u8-casefold-tests (Files): Likewise.
41617         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41618         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41619         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41620         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41621         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41622         * modules/unicase/u8-tolower-tests (Files): Likewise.
41623         * modules/unicase/u8-totitle-tests (Files): Likewise.
41624         * modules/unicase/u8-toupper-tests (Files): Likewise.
41625         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41626         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41627         * modules/unicase/u16-casefold-tests (Files): Likewise.
41628         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41629         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41630         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41631         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41632         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41633         * modules/unicase/u16-tolower-tests (Files): Likewise.
41634         * modules/unicase/u16-totitle-tests (Files): Likewise.
41635         * modules/unicase/u16-toupper-tests (Files): Likewise.
41636         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41637         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41638         * modules/unicase/u32-casefold-tests (Files): Likewise.
41639         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41640         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41641         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41642         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41643         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41644         * modules/unicase/u32-tolower-tests (Files): Likewise.
41645         * modules/unicase/u32-totitle-tests (Files): Likewise.
41646         * modules/unicase/u32-toupper-tests (Files): Likewise.
41647         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41648         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41649         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41650         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41651         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41652         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41653         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41654         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41655         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41656         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41657         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41658         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41659         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41660         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41661         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41662         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41663         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41664         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41665         * modules/unictype/block-list-tests (Files): Likewise.
41666         * modules/unictype/block-of-tests (Files): Likewise.
41667         * modules/unictype/block-test-tests (Files): Likewise.
41668         * modules/unictype/category-C-tests (Files): Likewise.
41669         * modules/unictype/category-Cc-tests (Files): Likewise.
41670         * modules/unictype/category-Cf-tests (Files): Likewise.
41671         * modules/unictype/category-Cn-tests (Files): Likewise.
41672         * modules/unictype/category-Co-tests (Files): Likewise.
41673         * modules/unictype/category-Cs-tests (Files): Likewise.
41674         * modules/unictype/category-L-tests (Files): Likewise.
41675         * modules/unictype/category-Ll-tests (Files): Likewise.
41676         * modules/unictype/category-Lm-tests (Files): Likewise.
41677         * modules/unictype/category-Lo-tests (Files): Likewise.
41678         * modules/unictype/category-Lt-tests (Files): Likewise.
41679         * modules/unictype/category-Lu-tests (Files): Likewise.
41680         * modules/unictype/category-M-tests (Files): Likewise.
41681         * modules/unictype/category-Mc-tests (Files): Likewise.
41682         * modules/unictype/category-Me-tests (Files): Likewise.
41683         * modules/unictype/category-Mn-tests (Files): Likewise.
41684         * modules/unictype/category-N-tests (Files): Likewise.
41685         * modules/unictype/category-Nd-tests (Files): Likewise.
41686         * modules/unictype/category-Nl-tests (Files): Likewise.
41687         * modules/unictype/category-No-tests (Files): Likewise.
41688         * modules/unictype/category-P-tests (Files): Likewise.
41689         * modules/unictype/category-Pc-tests (Files): Likewise.
41690         * modules/unictype/category-Pd-tests (Files): Likewise.
41691         * modules/unictype/category-Pe-tests (Files): Likewise.
41692         * modules/unictype/category-Pf-tests (Files): Likewise.
41693         * modules/unictype/category-Pi-tests (Files): Likewise.
41694         * modules/unictype/category-Po-tests (Files): Likewise.
41695         * modules/unictype/category-Ps-tests (Files): Likewise.
41696         * modules/unictype/category-S-tests (Files): Likewise.
41697         * modules/unictype/category-Sc-tests (Files): Likewise.
41698         * modules/unictype/category-Sk-tests (Files): Likewise.
41699         * modules/unictype/category-Sm-tests (Files): Likewise.
41700         * modules/unictype/category-So-tests (Files): Likewise.
41701         * modules/unictype/category-Z-tests (Files): Likewise.
41702         * modules/unictype/category-Zl-tests (Files): Likewise.
41703         * modules/unictype/category-Zp-tests (Files): Likewise.
41704         * modules/unictype/category-Zs-tests (Files): Likewise.
41705         * modules/unictype/category-and-not-tests (Files): Likewise.
41706         * modules/unictype/category-and-tests (Files): Likewise.
41707         * modules/unictype/category-byname-tests (Files): Likewise.
41708         * modules/unictype/category-name-tests (Files): Likewise.
41709         * modules/unictype/category-none-tests (Files): Likewise.
41710         * modules/unictype/category-of-tests (Files): Likewise.
41711         * modules/unictype/category-or-tests (Files): Likewise.
41712         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41713         * modules/unictype/combining-class-tests (Files): Likewise.
41714         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41715         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41716         * modules/unictype/ctype-blank-tests (Files): Likewise.
41717         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41718         * modules/unictype/ctype-digit-tests (Files): Likewise.
41719         * modules/unictype/ctype-graph-tests (Files): Likewise.
41720         * modules/unictype/ctype-lower-tests (Files): Likewise.
41721         * modules/unictype/ctype-print-tests (Files): Likewise.
41722         * modules/unictype/ctype-punct-tests (Files): Likewise.
41723         * modules/unictype/ctype-space-tests (Files): Likewise.
41724         * modules/unictype/ctype-upper-tests (Files): Likewise.
41725         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41726         * modules/unictype/decimal-digit-tests (Files): Likewise.
41727         * modules/unictype/digit-tests (Files): Likewise.
41728         * modules/unictype/mirror-tests (Files): Likewise.
41729         * modules/unictype/numeric-tests (Files): Likewise.
41730         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41731         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41732         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41733         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41734         Likewise.
41735         * modules/unictype/property-bidi-block-separator-tests (Files):
41736         Likewise.
41737         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41738         Likewise.
41739         * modules/unictype/property-bidi-common-separator-tests (Files):
41740         Likewise.
41741         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41742         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41743         Likewise.
41744         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41745         Likewise.
41746         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41747         Likewise.
41748         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41749         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41750         Likewise.
41751         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41752         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41753         Likewise.
41754         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41755         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41756         * modules/unictype/property-bidi-segment-separator-tests (Files):
41757         Likewise.
41758         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41759         * modules/unictype/property-byname-tests (Files): Likewise.
41760         * modules/unictype/property-combining-tests (Files): Likewise.
41761         * modules/unictype/property-composite-tests (Files): Likewise.
41762         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41763         * modules/unictype/property-dash-tests (Files): Likewise.
41764         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41765         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41766         Likewise.
41767         * modules/unictype/property-deprecated-tests (Files): Likewise.
41768         * modules/unictype/property-diacritic-tests (Files): Likewise.
41769         * modules/unictype/property-extender-tests (Files): Likewise.
41770         * modules/unictype/property-format-control-tests (Files): Likewise.
41771         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41772         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41773         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41774         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41775         * modules/unictype/property-hyphen-tests (Files): Likewise.
41776         * modules/unictype/property-id-continue-tests (Files): Likewise.
41777         * modules/unictype/property-id-start-tests (Files): Likewise.
41778         * modules/unictype/property-ideographic-tests (Files): Likewise.
41779         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41780         * modules/unictype/property-ids-trinary-operator-tests (Files):
41781         Likewise.
41782         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41783         * modules/unictype/property-iso-control-tests (Files): Likewise.
41784         * modules/unictype/property-join-control-tests (Files): Likewise.
41785         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41786         * modules/unictype/property-line-separator-tests (Files): Likewise.
41787         * modules/unictype/property-logical-order-exception-tests (Files):
41788         Likewise.
41789         * modules/unictype/property-lowercase-tests (Files): Likewise.
41790         * modules/unictype/property-math-tests (Files): Likewise.
41791         * modules/unictype/property-non-break-tests (Files): Likewise.
41792         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41793         * modules/unictype/property-numeric-tests (Files): Likewise.
41794         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41795         * modules/unictype/property-other-default-ignorable-code-point-tests
41796         (Files): Likewise.
41797         * modules/unictype/property-other-grapheme-extend-tests (Files):
41798         Likewise.
41799         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41800         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41801         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41802         * modules/unictype/property-other-math-tests (Files): Likewise.
41803         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41804         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41805         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41806         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41807         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41808         * modules/unictype/property-private-use-tests (Files): Likewise.
41809         * modules/unictype/property-punctuation-tests (Files): Likewise.
41810         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41811         * modules/unictype/property-radical-tests (Files): Likewise.
41812         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41813         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41814         * modules/unictype/property-space-tests (Files): Likewise.
41815         * modules/unictype/property-terminal-punctuation-tests (Files):
41816         Likewise.
41817         * modules/unictype/property-test-tests (Files): Likewise.
41818         * modules/unictype/property-titlecase-tests (Files): Likewise.
41819         * modules/unictype/property-unassigned-code-value-tests (Files):
41820         Likewise.
41821         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41822         * modules/unictype/property-uppercase-tests (Files): Likewise.
41823         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41824         * modules/unictype/property-white-space-tests (Files): Likewise.
41825         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41826         * modules/unictype/property-xid-start-tests (Files): Likewise.
41827         * modules/unictype/property-zero-width-tests (Files): Likewise.
41828         * modules/unictype/scripts-tests (Files): Likewise.
41829         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41830         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41831         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41832         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41833         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41834         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41835         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41836         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41837         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41838         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41839         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41840         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41841         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41842         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41843         * modules/uninorm/composition-tests (Files): Likewise.
41844         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41845         * modules/uninorm/decomposition-tests (Files): Likewise.
41846         * modules/uninorm/filter-tests (Files): Likewise.
41847         * modules/uninorm/nfc-tests (Files): Likewise.
41848         * modules/uninorm/nfd-tests (Files): Likewise.
41849         * modules/uninorm/nfkc-tests (Files): Likewise.
41850         * modules/uninorm/nfkd-tests (Files): Likewise.
41851         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41852         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41853         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41854         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41855         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41856         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41857         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41858         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41859         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41860         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41861         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41862         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41863         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41864         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41865         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41866         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41867         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41868         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41869         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41870         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41871         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41872         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41873         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41874         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41875         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41876         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41877         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41878         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41879         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41880         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41881         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41882         * modules/uniwidth/u8-width-tests (Files): Likewise.
41883         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41884         * modules/uniwidth/u16-width-tests (Files): Likewise.
41885         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41886         * modules/uniwidth/u32-width-tests (Files): Likewise.
41887         * modules/uniwidth/width-tests (Files): Likewise.
41888         * modules/unlink-tests (Files): Likewise.
41889         * modules/unsetenv-tests (Files): Likewise.
41890         * modules/usleep-tests (Files): Likewise.
41891         * modules/utimens-tests (Files): Likewise.
41892         * modules/utimensat-tests (Files): Likewise.
41893         * modules/vasnprintf-posix-tests (Files): Likewise.
41894         * modules/vasnprintf-tests (Files): Likewise.
41895         * modules/vasprintf-posix-tests (Files): Likewise.
41896         * modules/vasprintf-tests (Files): Likewise.
41897         * modules/vdprintf-posix-tests (Files): Likewise.
41898         * modules/vfprintf-posix-tests (Files): Likewise.
41899         * modules/vprintf-posix-tests (Files): Likewise.
41900         * modules/vsnprintf-posix-tests (Files): Likewise.
41901         * modules/vsnprintf-tests (Files): Likewise.
41902         * modules/vsprintf-posix-tests (Files): Likewise.
41903         * modules/wcrtomb-tests (Files): Likewise.
41904         * modules/wcsnrtombs-tests (Files): Likewise.
41905         * modules/wcsrtombs-tests (Files): Likewise.
41906         * modules/wctype-tests (Files): Likewise.
41907         * modules/wcwidth-tests (Files): Likewise.
41908         * modules/xmemdup0-tests (Files): Likewise.
41909         * modules/xprintf-posix-tests (Files): Likewise.
41910         * modules/xvasprintf-tests (Files): Likewise.
41911
41912 2009-12-24  Eric Blake  <ebb9@byu.net>
41913
41914         test-nanosleep: fix typo
41915         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41916         patch.
41917         Reported by Bruno Haible.
41918
41919 2009-12-24  Bruno Haible  <bruno@clisp.org>
41920
41921         Reduce namespace pollution on glibc systems.
41922         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41923         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41924         systems.
41925         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41926         <getopt.h> on glibc systems.
41927         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41928         systems.
41929         * lib/fcntl.c: Include <unistd.h> here instead.
41930
41931 2009-12-24  Bruno Haible  <bruno@clisp.org>
41932
41933         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41934
41935 2009-12-24  Eric Blake  <ebb9@byu.net>
41936
41937         tests: add signature checks
41938         * tests/signature.h (SIGNATURE_CHECK): New file.
41939         * modules/atexit-tests (Files): Use it.
41940         * modules/btowc-tests (Files): Likewise.
41941         * modules/canonicalize-lgpl-tests (Files): Likewise.
41942         * modules/ceilf-tests (Files): Likewise.
41943         * modules/ceill-tests (Files): Likewise.
41944         * modules/chown-tests (Files): Likewise.
41945         * modules/dprintf-posix-tests (Files): Likewise.
41946         * modules/dup2-tests (Files): Likewise.
41947         * modules/dup3-tests (Files): Likewise.
41948         * modules/duplocale-tests (Files): Likewise.
41949         * modules/fchdir-tests (Files): Likewise.
41950         * modules/fcntl-tests (Files): Likewise.
41951         * modules/fdopendir-tests (Files): Likewise.
41952         * modules/fflush-tests (Files): Likewise.
41953         * modules/flock-tests (Files): Likewise.
41954         * modules/floorf-tests (Files): Likewise.
41955         * modules/floorl-tests (Files): Likewise.
41956         * modules/fnmatch-tests (Files): Likewise.
41957         * modules/fopen-tests (Files): Likewise.
41958         * modules/fprintf-posix-tests (Files): Likewise.
41959         * modules/freopen-tests (Files): Likewise.
41960         * modules/frexp-nolibm-tests (Files): Likewise.
41961         * modules/frexp-tests (Files): Likewise.
41962         * modules/frexpl-nolibm-tests (Files): Likewise.
41963         * modules/frexpl-tests (Files): Likewise.
41964         * modules/fseek-tests (Files): Likewise.
41965         * modules/fseeko-tests (Files): Likewise.
41966         * modules/fsync-tests (Files): Likewise.
41967         * modules/ftell-tests (Files): Likewise.
41968         * modules/ftello-tests (Files): Likewise.
41969         * modules/futimens-tests (Files): Likewise.
41970         * modules/getaddrinfo-tests (Files): Likewise.
41971         * modules/getcwd-tests (Files): Likewise.
41972         * modules/getdelim-tests (Files): Likewise.
41973         * modules/getdtablesize-tests (Files): Likewise.
41974         * modules/getgroups-tests (Files): Likewise.
41975         * modules/gethostname-tests (Files): Likewise.
41976         * modules/getline-tests (Files): Likewise.
41977         * modules/getopt-posix-tests (Files): Likewise.
41978         * modules/gettimeofday-tests (Files): Likewise.
41979         * modules/glob-tests (Files): Likewise.
41980         * modules/iconv-tests (Files): Likewise.
41981         * modules/inet_ntop-tests (Files): Likewise.
41982         * modules/inet_pton-tests (Files): Likewise.
41983         * modules/isblank-tests (Files): Likewise.
41984         * modules/lchown-tests (Files): Likewise.
41985         * modules/ldexpl-tests (Files): Likewise.
41986         * modules/link-tests (Files): Likewise.
41987         * modules/linkat-tests (Files): Likewise.
41988         * modules/lseek-tests (Files): Likewise.
41989         * modules/lstat-tests (Files): Likewise.
41990         * modules/mbrtowc-tests (Files): Likewise.
41991         * modules/mbsinit-tests (Files): Likewise.
41992         * modules/mbsnrtowcs-tests (Files): Likewise.
41993         * modules/mbsrtowcs-tests (Files): Likewise.
41994         * modules/memchr-tests (Files): Likewise.
41995         * modules/memcmp-tests (Files): Likewise.
41996         * modules/memmem-tests (Files): Likewise.
41997         * modules/memrchr-tests (Files): Likewise.
41998         * modules/mkdir-tests (Files): Likewise.
41999         * modules/mkfifo-tests (Files): Likewise.
42000         * modules/mkfifoat-tests (Files): Likewise.
42001         * modules/mknod-tests (Files): Likewise.
42002         * modules/nanosleep-tests (Files): Likewise.
42003         * modules/nl_langinfo-tests (Files): Likewise.
42004         * modules/obstack-printf-tests (Files): Likewise.
42005         * modules/open-tests (Files): Likewise.
42006         * modules/openat-tests (Files): Likewise.
42007         * modules/perror-tests (Files): Likewise.
42008         * modules/pipe2-tests (Files): Likewise.
42009         * modules/poll-tests (Files): Likewise.
42010         * modules/popen-tests (Files): Likewise.
42011         * modules/posix_spawn-tests (Files): Likewise.
42012         * modules/posix_spawnp-tests (Files): Likewise.
42013         * modules/pread-tests (Files): Likewise.
42014         * modules/printf-posix-tests (Files): Likewise.
42015         * modules/pty-tests (Files): Likewise.
42016         * modules/random_r-tests (Files): Likewise.
42017         * modules/rawmemchr-tests (Files): Likewise.
42018         * modules/readlink-tests (Files): Likewise.
42019         * modules/remove-tests (Files): Likewise.
42020         * modules/rename-tests (Files): Likewise.
42021         * modules/renameat-tests (Files): Likewise.
42022         * modules/rmdir-tests (Files): Likewise.
42023         * modules/round-tests (Files): Likewise.
42024         * modules/roundf-tests (Files): Likewise.
42025         * modules/roundl-tests (Files): Likewise.
42026         * modules/select-tests (Files): Likewise.
42027         * modules/setenv-tests (Files): Likewise.
42028         * modules/sigaction-tests (Files): Likewise.
42029         * modules/sleep-tests (Files): Likewise.
42030         * modules/snprintf-posix-tests (Files): Likewise.
42031         * modules/snprintf-tests (Files): Likewise.
42032         * modules/sprintf-posix-tests (Files): Likewise.
42033         * modules/stat-tests (Files): Likewise.
42034         * modules/strcasestr-tests (Files): Likewise.
42035         * modules/strchrnul-tests (Files): Likewise.
42036         * modules/strerror-tests (Files): Likewise.
42037         * modules/strsignal-tests (Files): Likewise.
42038         * modules/strstr-tests (Files): Likewise.
42039         * modules/strtod-tests (Files): Likewise.
42040         * modules/strverscmp-tests (Files): Likewise.
42041         * modules/symlink-tests (Files): Likewise.
42042         * modules/symlinkat-tests (Files): Likewise.
42043         * modules/times-tests (Files): Likewise.
42044         * modules/trunc-tests (Files): Likewise.
42045         * modules/truncf-tests (Files): Likewise.
42046         * modules/truncl-tests (Files): Likewise.
42047         * modules/tsearch-tests (Files): Likewise.
42048         * modules/uname-tests (Files): Likewise.
42049         * modules/unlink-tests (Files): Likewise.
42050         * modules/unsetenv-tests (Files): Likewise.
42051         * modules/usleep-tests (Files): Likewise.
42052         * modules/utimensat-tests (Files): Likewise.
42053         * modules/vasprintf-tests (Files): Likewise.
42054         * modules/vdprintf-posix-tests (Files): Likewise.
42055         * modules/vfprintf-posix-tests (Files): Likewise.
42056         * modules/vprintf-posix-tests (Files): Likewise.
42057         * modules/vsnprintf-posix-tests (Files): Likewise.
42058         * modules/vsnprintf-tests (Files): Likewise.
42059         * modules/vsprintf-posix-tests (Files): Likewise.
42060         * modules/wcrtomb-tests (Files): Likewise.
42061         * modules/wcsnrtombs-tests (Files): Likewise.
42062         * modules/wcsrtombs-tests (Files): Likewise.
42063         * modules/wcwidth-tests (Files): Likewise.
42064         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42065         * tests/test-isinf.c (isinf): Likewise.
42066         * tests/test-isnan.c (isnan): Likewise.
42067         * tests/test-signbit.c (signbit): Likewise.
42068         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42069         declaration, either as macro or with correct signature.
42070         (select): Ensure function under test is declared with correct
42071         signature in correct header.
42072         * tests/test-atexit.c (atexit): Likewise.
42073         * tests/test-btowc.c (btowc): Likewise.
42074         * tests/test-canonicalize-lgpl.c (realpath)
42075         (canonicalize_file_name): Likewise.
42076         * tests/test-ceilf1.c (ceilf): Likewise.
42077         * tests/test-ceill.c (ceill): Likewise.
42078         * tests/test-chown.c (chown): Likewise.
42079         * tests/test-dprintf-posix.c (dprintf): Likewise.
42080         * tests/test-dup2.c (dup2): Likewise.
42081         * tests/test-dup3.c (dup3): Likewise.
42082         * tests/test-duplocale.c (duplocale): Likewise.
42083         * tests/test-fchdir.c (fchdir): Likewise.
42084         * tests/test-fchownat.c (fchownat): Likewise.
42085         * tests/test-fcntl.c (fcntl): Likewise.
42086         * tests/test-fdopendir.c (fdopendir): Likewise.
42087         * tests/test-fflush.c (fflush): Likewise.
42088         * tests/test-flock.c (flock): Likewise.
42089         * tests/test-floorf1.c (floorf): Likewise.
42090         * tests/test-floorl.c (floorl): Likewise.
42091         * tests/test-fnmatch.c (fnmatch): Likewise.
42092         * tests/test-fopen.c (fopen): Likewise.
42093         * tests/test-fprintf-posix.c (fprintf): Likewise.
42094         * tests/test-freopen.c (freopen): Likewise.
42095         * tests/test-frexp.c (frexp): Likewise.
42096         * tests/test-frexpl.c (frexpl): Likewise.
42097         * tests/test-fseek.c (fseek): Likewise.
42098         * tests/test-fseeko.c (fseeko): Likewise.
42099         * tests/test-fstatat.c (fstatat): Likewise.
42100         * tests/test-fsync.c (fsync): Likewise.
42101         * tests/test-ftell.c (ftell): Likewise.
42102         * tests/test-ftello.c (ftello): Likewise.
42103         * tests/test-futimens.c (futimens): Likewise.
42104         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42105         (gai_strerror): Likewise.
42106         * tests/test-getcwd.c (getcwd): Likewise.
42107         * tests/test-getdelim.c (getdelim): Likewise.
42108         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42109         * tests/test-getgroups.c (getgroups): Likewise.
42110         * tests/test-gethostname.c (gethostname): Likewise.
42111         * tests/test-getline.c (getline): Likewise.
42112         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42113         Likewise.
42114         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42115         * tests/test-glob.c (glob, globfree): Likewise.
42116         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42117         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42118         * tests/test-inet_pton.c (inet_pton): Likewise.
42119         * tests/test-isblank.c (isblank): Likewise.
42120         * tests/test-lchown.c (lchown): Likewise.
42121         * tests/test-ldexpl.c (ldexpl): Likewise.
42122         * tests/test-link.c (link): Likewise.
42123         * tests/test-linkat.c (linkat): Likewise.
42124         * tests/test-lseek.c (lseek): Likewise.
42125         * tests/test-lstat.c (lstat): Likewise.
42126         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42127         * tests/test-mbsinit.c (mbsinit): Likewise.
42128         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42129         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42130         * tests/test-memchr.c (memchr): Likewise.
42131         * tests/test-memcmp.c (memcmp): Likewise.
42132         * tests/test-memmem.c (memmem): Likewise.
42133         * tests/test-memrchr.c (memrchr): Likewise.
42134         * tests/test-mkdir.c (mkdir): Likewise.
42135         * tests/test-mkdirat.c (mkdirat): Likewise.
42136         * tests/test-mkfifo.c (mkfifo): Likewise.
42137         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42138         * tests/test-mknod.c (mknod): Likewise.
42139         * tests/test-nanosleep.c (nanosleep): Likewise.
42140         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42141         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42142         Likewise.
42143         * tests/test-open.c (open): Likewise.
42144         * tests/test-openat.c (openat): Likewise.
42145         * tests/test-perror.c (perror): Likewise.
42146         * tests/test-pipe2.c (pipe2): Likewise.
42147         * tests/test-poll.c (poll): Likewise.
42148         * tests/test-popen.c (popen, pclose): Likewise.
42149         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42150         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42151         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42152         (posix_spawn_file_actions_destroy)
42153         (posix_spawn_file_actions_addclose)
42154         (posix_spawn_file_actions_addopen)
42155         (posix_spawn_file_actions_adddup2): Likewise.
42156         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42157         * tests/test-pread.c (pread): Likewise.
42158         * tests/test-printf-posix.c (printf): Likewise.
42159         * tests/test-pty.c (openpty, forkpty): Likewise.
42160         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42161         (random_r): Likewise.
42162         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42163         * tests/test-readlink.c (readlink): Likewise.
42164         * tests/test-remove.c (remove): Likewise.
42165         * tests/test-rename.c (rename): Likewise.
42166         * tests/test-renameat.c (renameat): Likewise.
42167         * tests/test-rmdir.c (rmdir): Likewise.
42168         * tests/test-round1.c (round): Likewise.
42169         * tests/test-roundf1.c (roundf): Likewise.
42170         * tests/test-roundl.c (roundl): Likewise.
42171         * tests/test-setenv.c (setenv): Likewise.
42172         * tests/test-sigaction.c (sigaction): Likewise.
42173         * tests/test-sleep.c (sleep): Likewise.
42174         * tests/test-snprintf.c (snprintf): Likewise.
42175         * tests/test-sprintf-posix.c (sprintf): Likewise.
42176         * tests/test-stat.c (stat): Likewise.
42177         * tests/test-stpncpy.c (stpncpy): Likewise.
42178         * tests/test-strcasestr.c (strcasestr): Likewise.
42179         * tests/test-strchrnul.c (strchrnul): Likewise.
42180         * tests/test-strerror.c (strerror): Likewise.
42181         * tests/test-strsignal.c (strsignal): Likewise.
42182         * tests/test-strstr.c (strstr): Likewise.
42183         * tests/test-strtod.c (strtod): Likewise.
42184         * tests/test-strverscmp.c (strverscmp): Likewise.
42185         * tests/test-symlink.c (symlink): Likewise.
42186         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42187         * tests/test-times.c (times): Likewise.
42188         * tests/test-trunc1.c (trunc): Likewise.
42189         * tests/test-truncf1.c (truncf): Likewise.
42190         * tests/test-truncl.c (truncl): Likewise.
42191         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42192         Likewise.
42193         * tests/test-uname.c (uname): Likewise.
42194         * tests/test-unlink.c (unlink): Likewise.
42195         * tests/test-unlinkat.c (unlinkat): Likewise.
42196         * tests/test-unsetenv.c (unsetenv): Likewise.
42197         * tests/test-usleep.c (usleep): Likewise.
42198         * tests/test-utimensat.c (utimensat): Likewise.
42199         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42200         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42201         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42202         * tests/test-vprintf-posix.c (vprintf): Likewise.
42203         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42204         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42205         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42206         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42207         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42208         * tests/test-wcwidth.c (wcwidth): Likewise.
42209
42210         build: pull in conditional headers during GNULIB_POSIXCHECK
42211         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42212         definitions from any conditionally-included headers.
42213         * lib/stdlib.in.h (includes): Likewise.
42214         * lib/unistd.in.h (includes): Likewise.
42215
42216 2009-12-24  Bruno Haible  <bruno@clisp.org>
42217
42218         * tests/test-argv-iter.c: Include header file being tested immediately
42219         after config.h.
42220         * tests/test-base64.c: Likewise.
42221         * tests/test-flock.c: Likewise.
42222         * tests/test-fsync.c: Likewise.
42223         * tests/test-getdate.c: Likewise.
42224         * tests/test-getndelim2.c: Likewise.
42225         * tests/test-isfinite.c: Likewise.
42226         * tests/test-isinf.c: Likewise.
42227         * tests/test-strerror.c: Likewise.
42228         * tests/test-strsignal.c: Likewise.
42229
42230 2009-12-23  Eric Blake  <ebb9@byu.net>
42231
42232         unistd: work around cygwin bug
42233         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42234         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42235         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42236
42237 2009-12-23  Bruno Haible  <bruno@clisp.org>
42238
42239         localename: More tests.
42240         * tests/test-localename.c (SIZEOF): New macro.
42241         (categories): New variable.
42242         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42243         test_locale_name_default): Add test w.r.t. thread locale.
42244         (test_locale_name_thread): New function.
42245         (main): Invoke it.
42246
42247         localename: Make aware of thread locale.
42248         * lib/localename.h (gl_locale_name_thread): New declaration.
42249         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42250         behaviour with respect to thread locale.
42251         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42252         <langinfo.h>, glthread/lock.h.
42253         (SIZE_BITS): New macro.
42254         (string_hash): New function.
42255         (struct hash_node): New type.
42256         (HASH_TABLE_SIZE): New macro.
42257         (struniq_hash_table, struniq_lock): New variables.
42258         (struniq): New function.
42259         (gl_locale_name_thread): New function.
42260         (gl_locale_name): Invoke it.
42261         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42262         * modules/localename (Depends-on): Add lock.
42263         Reported by Mike Gran <spk121@yahoo.com>.
42264
42265 2009-12-23  Eric Blake  <ebb9@byu.net>
42266
42267         va-args: new module
42268         * modules/va-args: New file.
42269         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42270         * MODULES.html.sh (Core language properties): Mention it.
42271
42272         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42273         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42274         named alias for __attribute__((__unused__)).
42275         * lib/chown.c: Update client.
42276         * lib/fchmodat.c: Likewise.
42277         * lib/fts.c: Likewise.
42278         * lib/getdate.y: Likewise.
42279         * lib/getgroups.c: Likewise.
42280         * lib/getopt.c: Likewise.
42281         * lib/getugroups.c: Likewise.
42282         * lib/mkdir.c: Likewise.
42283         * lib/mkfifo.c: Likewise.
42284         * lib/mkfifoat.c: Likewise.
42285         * lib/mknod.c: Likewise.
42286         * lib/mknodat.c: Likewise.
42287         * lib/readlink.c: Likewise.
42288         * lib/se-context.in.h: Likewise.
42289         * lib/se-selinux.in.h: Likewise.
42290         * lib/sockets.c: Likewise.
42291         * lib/symlink.c: Likewise.
42292         * lib/symlinkat.c: Likewise.
42293         * lib/unicodeio.c: Likewise.
42294         * lib/unistr.h: Likewise.
42295         * tests/test-areadlink.c: Likewise.
42296         * tests/test-areadlinkat.c: Likewise.
42297         * tests/test-filenamecat.c: Likewise.
42298         * tests/test-fseeko.c: Likewise.
42299         * tests/test-ftello.c: Likewise.
42300         * tests/test-getdate.c: Likewise.
42301         * tests/test-getgroups.c: Likewise.
42302         * tests/test-gethostname.c: Likewise.
42303         * tests/test-quotearg.c: Likewise.
42304         * tests/test-version-etc.c: Likewise.
42305         * tests/test-xalloc-die.c: Likewise.
42306         * tests/test-xfprintf-posix.c: Likewise.
42307         * tests/test-xprintf-posix.c: Likewise.
42308         * tests/test-xvasprintf.c: Likewise.
42309
42310         tests: avoid compiler warnings
42311         * tests/test-fcntl.c (main): Delete unused parameters.
42312         * tests/test-freopen-safer.c (main): Likewise.
42313         * tests/test-xalloc-die.c (main): Mark unused parameters.
42314         * tests/test-fseeko.c (main): Likewise.
42315         * tests/test-ftello.c (main): Likewise.
42316         * tests/test-nanosleep.c (main): Avoid declaration warning.
42317         * tests/test-sleep.c (main): Likewise.
42318         * tests/test-unsetenv.c (main): Silence warning about string
42319         literal.
42320         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42321
42322 2009-12-23  Bruno Haible  <bruno@clisp.org>
42323
42324         * tests/test-localename.c (test_locale_name): New function, extracted
42325         from main. Also test mixed situations.
42326         (test_locale_name_posix, test_locale_name_environ,
42327         test_locale_name_default): New functions.
42328         (main): Invoke them all.
42329         * modules/localename-tests (configure.ac): Test for newlocale.
42330
42331 2009-12-23  Bruno Haible  <bruno@clisp.org>
42332
42333         unistd: Ensure getcwd gets declared before being overridden.
42334         * lib/unistd.in.h: Conditionally include <io.h>.
42335
42336 2009-12-22  Bruno Haible  <bruno@clisp.org>
42337
42338         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42339         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42340         (gl_WCHAR_H): Invoke it.
42341         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42342         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42343         Reported by Karl Berry <karl@freefriends.org>.
42344
42345 2009-12-22  Eric Blake  <ebb9@byu.net>
42346
42347         math, unistd: avoid redundant includes
42348         * lib/math.in.h (isnan): No need to re-include <math.h>.
42349         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42350
42351         getsubopt: work around cygwin bug
42352         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42353         avoid conflicting with system getsubopt.
42354         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42355         bug.
42356
42357         getopt: synchronize from glibc
42358         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42359         parameter order.  Adjust all callers.
42360         (_getopt_internal_r, main): Adjust quoting in error messages.
42361         Drop considerations for outdated POSIX 1003.2 error message.
42362         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42363         callers.
42364         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42365
42366         test-getopt: test stderr behavior
42367         * modules/getopt-posix-tests (Depends-on): Add dup2.
42368         * tests/test-getopt.c (ASSERT): Avoid stderr.
42369         (main): Move stderr to a temporary file.
42370         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42371         Instead, add parameter to inform caller if output occurred.
42372         (test_getopt): Adjust all existing tests to expect silence, and
42373         add new tests of leading ":".
42374         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42375         glibc shortcomings with leading "-:" or "+:" in optstring.
42376         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42377         Likewise.
42378         * doc/posix-functions/getopt.texi (getopt): Likewise.
42379
42380         test-getopt: enhance test
42381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42382         supports optind=0.
42383         * tests/test-getopt.c (OPTIND_MIN): Move...
42384         * tests/test-getopt.h (OPTIND_MIN): ...here.
42385         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42386         Require that optind=0 works, since modern BSD supports it in
42387         addition to optreset, and since coreutils expects it.
42388         (test_getopt_long_only): New test.
42389         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42390         glibc shortcomings with 'W;', and enforcement of optind=0.
42391         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42392         Likewise.
42393
42394 2009-12-21  Bruno Haible  <bruno@clisp.org>
42395
42396         localename: Improvements for MacOS X and Cygwin.
42397         * lib/localename.h (gl_locale_name_environ): New declaration.
42398         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42399         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42400         (gl_locale_name_posix): Invoke it.
42401         (gl_locale_name_default): Add comments. Use Windows native API also on
42402         Cygwin.
42403
42404 2009-12-21  Bruno Haible  <bruno@clisp.org>
42405
42406         Update list of Win32 locale ids.
42407         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42408         (LANG_SAMI): Renamed from LANG_SAAMI.
42409         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42410         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42411         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42412         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42413         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42414         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42415         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42416         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42417         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42418         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42419         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42420         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42421         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42422         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42423         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42424         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42425         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42426         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42427         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42428         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42429         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42430         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42431         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42432         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42433         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42434         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42435         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42436         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42437         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42438         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42439         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42440         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42441         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42442         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42443         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42444         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42445         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42446         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42447         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42448         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42449         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42450         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42451         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42452         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42453         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42454         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42455         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42456         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42457         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42458         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42459         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42460         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42461         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42462         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42463         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42464         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42465         Add more languages and countries for Sami, Sorbian. Add more countries
42466         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42467         for Pashto. Change country for Syriac, Tswana.
42468
42469 2009-12-21  Eric Blake  <ebb9@byu.net>
42470
42471         test-utimens: avoid spurious failure
42472         * tests/test-chown.h (nap): Factor...
42473         * tests/nap.h: ...into new file.
42474         * tests/test-lchown.h (nap): Avoid duplication.
42475         * tests/test-utimens-common.h (nap): Use shared implementation,
42476         necessary on file systems with 1-second resolution.
42477         * modules/chown-tests (Files): Include new file.
42478         * modules/fdutimensat-tests (Files): Likewise.
42479         * modules/futimens-tests (Files): Likewise.
42480         * modules/lchown-tests (Files): Likewise.
42481         * modules/openat-tests (Files): Likewise.
42482         * modules/utimens-tests (Files): Likewise.
42483         * modules/utimensat-tests (Files): Likewise.
42484
42485 2009-12-19  Eric Blake  <ebb9@byu.net>
42486
42487         futimens, utimensat: work around Linux bug
42488         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42489         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42490         * lib/utimensat.c (rpl_utimensat): Work around it.
42491         * lib/futimens.c (rpl_futimens): Adjust comment.
42492
42493         utimens: work around Linux ctime bug
42494         * lib/utimens.c (detect_ctime_bug): New helper function.
42495         (update_timespec): Differentiate between workaround needed for
42496         this bug vs. what is needed for systems that lack utimensat.
42497         (fdutimens, lutimens): Work around bug.
42498
42499         utimens: check for ctime update
42500         * tests/test-utimens-common.h (check_ctime): Define.
42501         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42502         * tests/test-futimens.h (test_futimens): Likewise.
42503         * tests/test-lutimens.h (test_lutimens): Likewise.
42504         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42505         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42506
42507 2009-12-19  Bruno Haible  <bruno@clisp.org>
42508
42509         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42510         * tests/test-dprintf-posix2.sh: New file.
42511         * tests/test-dprintf-posix2.c: New file.
42512         * modules/dprintf-posix-tests (Files): Add them.
42513         (configure.ac): Check for getrlimit and setrlimit.
42514         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42515
42516 2009-12-19  Bruno Haible  <bruno@clisp.org>
42517
42518         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42519         * tests/test-fprintf-posix3.sh: New file.
42520         * tests/test-fprintf-posix3.c: New file.
42521         * modules/fprintf-posix-tests (Files): Add them.
42522         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42523
42524 2009-12-19  Eric Blake  <ebb9@byu.net>
42525
42526         dirfd: fix prototype
42527         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42528         * lib/dirfd.c (dirfd): Likewise.
42529
42530         canonicalize: reduce memory usage
42531         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42532         allocation to size.
42533         Reported by Solar Designer <solar@openwall.com>.
42534
42535 2009-12-19  Bruno Haible  <bruno@clisp.org>
42536
42537         New module attribute 'Applicability'.
42538         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42539         * gnulib-tool: New option --extract-applicability.
42540         (func_usage): Document it.
42541         (sed_extract_prog): Recognize it.
42542         (func_get_applicability): New function.
42543         (func_import): Generalize handling of 'link-warning' module.
42544         * modules/link-warning (Applicability): New section.
42545         * modules/arg-nonnull (Applicability): New section.
42546         Repoted by Simon Josefsson <simon@josefsson.org>.
42547
42548 2009-12-19  Bruno Haible  <bruno@clisp.org>
42549
42550         fflush: tweak
42551         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42552         * lib/fseeko.c (rpl_fseeko): Likewise.
42553
42554 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42555
42556         * lib/gl_list.h: Fix typo in comment.
42557
42558 2009-12-16  Eric Blake  <ebb9@byu.net>
42559
42560         fcntl: use to simplify other modules
42561         * modules/cloexec (Depends-on): Add fcntl.
42562         * modules/fchdir (Depends-on): Likewise.
42563         * modules/fd-safer-flag (Depends-on): Likewise.
42564         * modules/unistd-safer (Depends-on): Likewise.
42565         * modules/dup3 (configure.ac): Set module indicator.
42566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42567         missing.
42568         * lib/fchdir.c (_gl_register_dup): Fix comment.
42569         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42570         * lib/dup-safer.c (dup_safer): Likewise.
42571         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42572         * lib/dup3.c (dup3): Likewise.
42573         * tests/test-fchdir.c (main): Enhance test.
42574         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42575
42576         fcntl: port portions of fcntl to mingw
42577         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42578         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42579         replacement for mingw.
42580         * modules/fcntl (Description): Update.
42581         (Depends-on): Add dup2.
42582         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42583         * modules/fcntl-h (Makefile.am): Substitute it.
42584         * lib/fcntl.in.h (fcntl): Update declaration.
42585         (F_DUPFD, F_GETFD): New macros, when needed.
42586         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42587         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42588         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42589         we now guarantee.
42590
42591         fcntl: work around cygwin bug in F_DUPFD
42592         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42593         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42594         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42595         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42596         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42597
42598         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42599         * modules/fcntl (Files): List new files.
42600         (configure.ac): Run a test.
42601         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42602         * lib/fcntl.c (rpl_fcntl): Likewise.
42603         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42604         (gl_FCNTL_H): Always replace fcntl.h.
42605         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42606         * lib/fcntl.in.h (fcntl): Declare replacement.
42607         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42608         needed, plus a witness.
42609         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42610         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42611         * tests/test-fcntl.c: New file.
42612         * modules/fcntl-tests: Likewise.
42613
42614         binary-io: avoid potential compilation warning
42615         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42616         directives.
42617
42618         fflush: avoid compilation error on NetBSD
42619         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42620         between off_t and fpos_t, since the latter is sometimes a struct.
42621         * lib/fseeko.c (rpl_fseeko): Likewise.
42622         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42623
42624 2009-12-15  Eric Blake  <ebb9@byu.net>
42625
42626         fcntl-h, stdio, sys_ioctl: fix declarations
42627         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42628         function must not take arguments.
42629         * lib/sys_ioctl.in.h (ioctl): Likewise.
42630         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42631         (open): Add a link warning.
42632
42633 2009-12-15  Jim Meyering  <meyering@redhat.com>
42634
42635         areadlink, areadlink-with-size: relax license to LGPLv2+
42636         * modules/areadlink (License): Relax to LGPLv2+.
42637         * modules/areadlink-with-size (License): Likewise.
42638
42639 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42640             Bruno Haible  <bruno@clisp.org>
42641
42642         *printf: Fix memory leak.
42643         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42644         * lib/vfprintf.c (vfprintf): Likewise.
42645         * lib/dprintf.c (dprintf): Likewise.
42646         * lib/vdprintf.c (vdprintf): Likewise.
42647
42648 2009-12-14  Eric Blake  <ebb9@byu.net>
42649
42650         accept4: adjust module dependencies
42651         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42652
42653         utimens: one more try at avoiding compiler warning
42654         * lib/utimens.c (lutimens): Lower scope of result.
42655
42656 2009-12-13  Bruno Haible  <bruno@clisp.org>
42657
42658         Move the malloc checking from module 'list' to new module 'xlist'.
42659         * modules/xlist: New file.
42660         * lib/gl_xlist.h: New file.
42661         * lib/gl_xlist.c: New file.
42662         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42663         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42664         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42665         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42666         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42667         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42668         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42669         gl_sortedlist_nx_add): New declarations.
42670         (struct gl_list_implementation): Rename and change methods accordingly.
42671         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42672         (gl_list_nx_create): Renamed from gl_list_create.
42673         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42674         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42675         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42676         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42677         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42678         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42679         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42680         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42681         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42682         gl_list_create_empty.
42683         (gl_list_nx_create): Renamed from gl_list_create.
42684         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42685         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42686         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42687         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42688         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42689         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42690         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42691         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42692         * lib/gl_array_list.c: Don't include xalloc.h.
42693         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42694         NULL upon out-of-memory.
42695         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42696         out-of-memory.
42697         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42698         Change return type to 'int'.
42699         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42700         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42701         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42702         upon out-of-memory.
42703         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42704         upon out-of-memory.
42705         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42706         upon out-of-memory.
42707         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42708         upon out-of-memory.
42709         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42710         out-of-memory.
42711         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42712         Update.
42713         (gl_array_list_implementation): Update.
42714         * lib/gl_carray_list.c: Don't include xalloc.h.
42715         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42716         Return NULL upon out-of-memory.
42717         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42718         out-of-memory.
42719         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42720         Change return type to 'int'.
42721         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42722         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42723         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42724         upon out-of-memory.
42725         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42726         upon out-of-memory.
42727         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42728         out-of-memory.
42729         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42730         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42731         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42732         Update.
42733         (gl_carray_list_implementation): Update.
42734         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42735         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42736         gl_linked_create_empty. Return NULL upon out-of-memory.
42737         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42738         out-of-memory.
42739         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42740         Change return type to 'int'. Return -1 upon out-of-memory.
42741         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42742         out-of-memory.
42743         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42744         upon out-of-memory.
42745         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42746         upon out-of-memory.
42747         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42748         NULL upon out-of-memory.
42749         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42750         upon out-of-memory.
42751         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42752         out-of-memory.
42753         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42754         Update.
42755         * lib/gl_linked_list.c: Don't include xalloc.h.
42756         (gl_linked_list_implementation): Update.
42757         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42758         (add_to_bucket): Change return type to 'int'.
42759         (gl_linkedhash_list_implementation): Update.
42760         * lib/gl_anytree_list1.h (free_subtree): New function.
42761         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42762         gl_tree_create_empty. Return NULL upon out-of-memory.
42763         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42764         Change return type to 'int'. Return -1 upon out-of-memory.
42765         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42766         out-of-memory.
42767         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42768         (gl_tree_remove_node): New function, moved here from
42769         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42770         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42771         Update.
42772         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42773         malloc, not xmalloc. Return NULL upon out-of-memory.
42774         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42775         out-of-memory.
42776         (gl_tree_remove_node_from_tree): New function, extracted from
42777         gl_tree_remove_node.
42778         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42779         upon out-of-memory.
42780         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42781         out-of-memory.
42782         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42783         upon out-of-memory.
42784         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42785         upon out-of-memory.
42786         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42787         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42788         not xmalloc. Return NULL upon out-of-memory.
42789         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42790         out-of-memory.
42791         (gl_tree_remove_node_from_tree): New function, extracted from
42792         gl_tree_remove_node.
42793         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42794         upon out-of-memory.
42795         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42796         out-of-memory.
42797         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42798         upon out-of-memory.
42799         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42800         upon out-of-memory.
42801         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42802         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42803         gl_anytree_list1.h before gl_anyavltree_list2.h.
42804         (gl_avltree_list_implementation): Update.
42805         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42806         gl_anytree_list1.h before gl_anyavltree_list2.h.
42807         (gl_rbtree_list_implementation): Update.
42808         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42809         Change return type to 'int'. Return -1 upon out-of-memory. Use
42810         __builtin_expect.
42811         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42812         (gl_avltreehash_list_implementation): Update.
42813         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42814         (gl_rbtreehash_list_implementation): Update.
42815         * modules/array-list (Depends-on): Remove xalloc.
42816         * modules/carray-list (Depends-on): Likewise.
42817         * modules/linked-list (Depends-on): Likewise.
42818         * modules/linkedhash-list (Depends-on): Likewise.
42819         * modules/avltree-list (Depends-on): Likewise.
42820         * modules/rbtree-list (Depends-on): Likewise.
42821         * modules/avltreehash-list (Depends-on): Likewise.
42822         * modules/rbtreehash-list (Depends-on): Likewise.
42823
42824         * modules/xsublist: New file.
42825         * lib/gl_xsublist.h: New file.
42826         * lib/gl_xsublist.c: New file.
42827         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42828         (gl_sublist_nx_create): New declaration.
42829         * lib/gl_sublist.c: Don't include xalloc.h.
42830         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42831         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42832         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42833         Change return type to 'int'. Return -1 upon out-of-memory.
42834         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42835         upon out-of-memory.
42836         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42837         NULL upon out-of-memory.
42838         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42839         upon out-of-memory.
42840         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42841         NULL upon out-of-memory.
42842         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42843         NULL upon out-of-memory.
42844         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42845         upon out-of-memory.
42846         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42847         (gl_sublist_list_implementation): Update.
42848         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42849         upon out-of-memory.
42850         * modules/sublist (Depends-on): Remove xalloc.
42851
42852         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42853         * tests/test-carray_list.c: Likewise.
42854         * tests/test-linked_list.c: Likewise.
42855         * tests/test-linkedhash_list.c: Likewise.
42856         * tests/test-avltree_list.c: Likewise.
42857         * tests/test-rbtree_list.c: Likewise.
42858         * tests/test-avltreehash_list.c: Likewise.
42859         * tests/test-rbtreehash_list.c: Likewise.
42860         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42861         * modules/carray-list-tests (Makefile.am): Likewise.
42862         * modules/linked-list-tests (Makefile.am): Likewise.
42863         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42864         * modules/avltree-list-tests (Makefile.am): Likewise.
42865         * modules/rbtree-list-tests (Makefile.am): Likewise.
42866         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42867         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42868
42869         * NEWS: Mention the changes.
42870
42871         * lib/clean-temp.c: Include gl_xlist.h.
42872         * modules/clean-temp (Depends-on): Add xlist.
42873
42874         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42875         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42876
42877         * tests/test-array_oset.c: Include gl_xlist.h.
42878         * modules/array-oset-tests (Depends-on): Add xlist.
42879
42880         Reported by José E. Marchesi <jemarch@gnu.org>.
42881
42882 2009-12-13  Bruno Haible  <bruno@clisp.org>
42883
42884         Move the malloc checking from module 'oset' to new module 'xoset'.
42885         * modules/xoset: New file.
42886         * lib/gl_xoset.h: New file.
42887         * lib/gl_xoset.c: New file.
42888         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42889         declarations.
42890         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42891         (struct gl_oset_implementation): Rename and change methods accordingly.
42892         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42893         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42894         'int'. Mark as __warn_unused_result__.
42895         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42896         gl_oset_create_empty.
42897         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42898         'int'.
42899         * lib/gl_array_oset.c: Don't include xalloc.h.
42900         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42901         malloc, not xmalloc.
42902         (grow): Change return type to 'int'. Don't call xalloc_die.
42903         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42904         to 'int'.
42905         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42906         'int'.
42907         (gl_array_oset_implementation): Update.
42908         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42909         gl_tree_create_empty.
42910         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42911         'int'.
42912         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42913         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42914         xmalloc.
42915         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42916         not xmalloc.
42917         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42918         xmalloc.
42919         (gl_avltree_oset_implementation): Update.
42920         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42921         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42922         xmalloc.
42923         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42924         not xmalloc.
42925         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42926         xmalloc.
42927         (gl_rbtree_oset_implementation): Update.
42928         * modules/array-oset (Depends-on): Remove xalloc.
42929         * modules/avltree-oset (Depends-on): Likewise.
42930         * modules/rbtree-oset (Depends-on): Likewise.
42931         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42932         * tests/test-avltree_oset.c: Likewise.
42933         * tests/test-rbtree_oset.c: Likewise.
42934         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42935         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42936         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42937         * NEWS: Mention the change.
42938
42939 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42940
42941         maint.mk: allow a project to override release-prep commands
42942         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42943         commands into a new rule.
42944         (release-prep): New rule.
42945         (release-prep-hook): New overridable variable.
42946
42947 2009-12-13  Bruno Haible  <bruno@clisp.org>
42948
42949         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42950
42951 2009-12-13  Jim Meyering  <meyering@redhat.com>
42952
42953         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42954         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42955
42956 2009-12-12  Bruno Haible  <bruno@clisp.org>
42957
42958         duplocale: Tweak.
42959         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42960
42961 2009-12-12  Karl Berry  <karl@gnu.org>
42962
42963         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42964
42965 2009-12-12  Bruno Haible  <bruno@clisp.org>
42966
42967         * m4/po.m4: Undo incorrect untabification.
42968
42969 2009-12-12  Bruno Haible  <bruno@clisp.org>
42970
42971         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42972         * modules/c-strtod (Depends-on): Add locale.
42973         * modules/c-strtold (Depends-on): Likewise.
42974
42975 2009-12-12  Bruno Haible  <bruno@clisp.org>
42976
42977         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42978
42979 2009-12-11  Eric Blake  <ebb9@byu.net>
42980
42981         setenv: relax requirement in light of POSIX ruling
42982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42983         not NULL.
42984         * tests/test-setenv.c (main): Relax test.
42985         * tests/test-unsetenv.c (main): Likewise.
42986         * doc/posix-functions/setenv.texi (setenv): Document this.
42987         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42988
42989 2009-12-11  Bruno Haible  <bruno@clisp.org>
42990
42991         New module 'fd-safer-flag'.
42992         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42993         * lib/dup-safer.c (dup_safer_flag): Remove function.
42994         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42995         * lib/fd-safer.c (fd_safer_flag): Remove function.
42996         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42997         * modules/cloexec (configure.ac): Drop indicator macro.
42998         * modules/fd-safer-flag: New file.
42999         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43000         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43001         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43002
43003 2009-12-11  Bruno Haible  <bruno@clisp.org>
43004
43005         Tests for module 'nl_langinfo'.
43006         * modules/nl_langinfo-tests: New file.
43007         * tests/test-nl_langinfo.sh: New file.
43008         * tests/test-nl_langinfo.c: New file.
43009
43010         New module 'nl_langinfo'.
43011         * lib/nl_langinfo.c: New file.
43012         * m4/nl_langinfo.m4: New file.
43013         * modules/nl_langinfo: New file.
43014         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43015
43016 2009-12-11  Bruno Haible  <bruno@clisp.org>
43017
43018         Tests for module 'langinfo'.
43019         * modules/langinfo-tests: New file.
43020         * tests/test-langinfo.c: New file.
43021
43022         New module 'langinfo'.
43023         * lib/langinfo.in.h: New file.
43024         * m4/langinfo_h.m4: New file.
43025         * modules/langinfo: New file.
43026         * doc/posix-headers/langinfo.texi: Mention the new module.
43027
43028 2009-12-11  Bruno Haible  <bruno@clisp.org>
43029
43030         * lib/config.charset: Untabify.
43031
43032 2009-12-11  Bruno Haible  <bruno@clisp.org>
43033
43034         * modules/unistd-safer (configure.ac): Drop indicator macro.
43035
43036 2009-12-11  Bruno Haible  <bruno@clisp.org>
43037
43038         Move pipe2-safer code to its own file.
43039         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43040         * lib/pipe-safer.c (pipe2_safer): Remove function.
43041         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43042         (Makefile.am): Add it to lib_SOURCES.
43043
43044 2009-12-10  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43047
43048 2009-12-10  Bruno Haible  <bruno@clisp.org>
43049
43050         Declare which arguments expect non-NULL values, for GCC and clang.
43051         * build-aux/arg-nonnull.h: New file.
43052         * modules/arg-nonnull: New file.
43053         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43054         (inet_ntop, inet_pton): Use it.
43055         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43056         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43057         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43058         (open, openat): Use it.
43059         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43060         (fnmatch): Use it.
43061         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43062         (getopt, getopt_long, getopt_long_only): Use it.
43063         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43064         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43065         Use it.
43066         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43067         (iconv_open): Use it.
43068         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43069         (strtoimax, strtoumax): Use it.
43070         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43071         (duplocale): Use it.
43072         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43073         (frexp, frexpl): Use it.
43074         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43075         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43076         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43077         (tsearch, tfind, tdelete, twalk): Use it.
43078         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43079         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43080         sigpending): Use it.
43081         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43082         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43083         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43084         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43085         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43086         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43087         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43088         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43089         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43090         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43091         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43092         Use it.
43093         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43094         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43095         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43096         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43097         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43098         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43099         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43100         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43101         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43102         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43103         strtoull, unsetenv): Use it.
43104         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43105         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43106         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43107         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43108         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43109         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43110         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43111         (strcasecmp, strncasecmp): Use it.
43112         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43113         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43114         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43115         rpl_setsockopt): Use it.
43116         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43117         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43118         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43119         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43120         (gettimeofday): Use it.
43121         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43122         (times): Use it.
43123         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43124         (uname): Use it.
43125         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43126         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43127         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43128         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43129         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43130         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43131         unlinkat, write): Use it.
43132         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43133         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43134         * lib/argv-iter.h: Include arg-nonnull.h.
43135         (_ATTRIBUTE_NONNULL_): Remove macro.
43136         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43137         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43138         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43139         optimization.
43140         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43141         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43142         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43143         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43144         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43145         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43146         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43147         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43148         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43149         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43150         * modules/dirent (Depends-on): Add arg-nonnull.
43151         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43152         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43153         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43154         * modules/fnmatch (Depends-on): Add arg-nonnull.
43155         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43156         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43157         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43158         * modules/glob (Depends-on): Add arg-nonnull.
43159         (Makefile.am): Insert arg-nonnull.h into glob.h.
43160         * modules/iconv_open (Depends-on): Add arg-nonnull.
43161         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43162         * modules/inttypes (Depends-on): Add arg-nonnull.
43163         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43164         * modules/locale (Depends-on): Add arg-nonnull.
43165         (Makefile.am): Insert arg-nonnull.h into locale.h.
43166         * modules/math (Depends-on): Add arg-nonnull.
43167         (Makefile.am): Insert arg-nonnull.h into math.h.
43168         * modules/netdb (Depends-on): Add arg-nonnull.
43169         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43170         * modules/search (Depends-on): Add arg-nonnull.
43171         (Makefile.am): Insert arg-nonnull.h into search.h.
43172         * modules/signal (Depends-on): Add arg-nonnull.
43173         (Makefile.am): Insert arg-nonnull.h into signal.h.
43174         * modules/spawn (Depends-on): Add arg-nonnull.
43175         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43176         * modules/stdio (Depends-on): Add arg-nonnull.
43177         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43178         * modules/stdlib (Depends-on): Add arg-nonnull.
43179         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43180         * modules/string (Depends-on): Add arg-nonnull.
43181         (Makefile.am): Insert arg-nonnull.h into string.h.
43182         * modules/strings (Depends-on): Add arg-nonnull.
43183         (Makefile.am): Insert arg-nonnull.h into strings.h.
43184         * modules/sys_socket (Depends-on): Add arg-nonnull.
43185         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43186         * modules/sys_stat (Depends-on): Add arg-nonnull.
43187         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43188         * modules/sys_time (Depends-on): Add arg-nonnull.
43189         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43190         * modules/sys_times (Depends-on): Add arg-nonnull.
43191         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43192         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43193         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43194         * modules/time (Depends-on): Add arg-nonnull.
43195         (Makefile.am): Insert arg-nonnull.h into time.h.
43196         * modules/unistd (Depends-on): Add arg-nonnull.
43197         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43198         * modules/wchar (Depends-on): Add arg-nonnull.
43199         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43200         * modules/argv-iter (Depends-on): Add arg-nonnull.
43201         * tests/test-canonicalize.c (null_ptr): New function.
43202         (main): Use it.
43203         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43204         (main): Use it.
43205         * tests/test-memmem.c (null_ptr): New function.
43206         (main): Use it.
43207         Reported by Jim Meyering.
43208
43209 2009-12-10  Bruno Haible  <bruno@clisp.org>
43210
43211         Use spaces for indentation, not tabs.
43212         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43213         * m4/*.m4: Untabify.
43214         * build-aux/*.h: Untabify.
43215         * tests/**/*.[hc]: Untabify.
43216         * README: New section "Indent with spaces, not TABs", based on
43217         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43218         * NEWS: Mention the change.
43219
43220 2009-12-10  Bruno Haible  <bruno@clisp.org>
43221
43222         pty test: Fix link error.
43223         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43224         test_pty_LDADD.
43225
43226 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43227
43228         * modules/pty: New file.
43229         * modules/pty-tests: New file.
43230         * m4/pty.m4: New file.
43231         * tests/test-pty.c: New file.
43232         * doc/glibc-headers/pty.texi: Modified.
43233         * doc/glibc-functions/forkpty.texi: Modified.
43234         * doc/glibc-functions/openpty.texi: Modified.
43235
43236 2009-12-10  Bruno Haible  <bruno@clisp.org>
43237
43238         Avoid syntax error in C++ mode.
43239         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43240
43241 2009-12-10  Bruno Haible  <bruno@clisp.org>
43242
43243         Use sed with option -e.
43244         * gnulib-tool (func_version, func_emit_copyright_notice,
43245         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43246         option -e to sed.
43247         * modules/link-warning (Makefile.am): Likewise.
43248
43249 2009-12-10  Jim Meyering  <meyering@redhat.com>
43250
43251         mgetgroups: do not write bytes beyond end of malloc'd buffer
43252         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43253         username, we call getgroups with a one-element-shorter buffer,
43254         but still told it the length was original, max_n_groups.
43255
43256 2009-12-09  Eric Blake  <ebb9@byu.net>
43257
43258         cloexec: relax license
43259         * modules/cloexec (Maintainer): Add myself.
43260         (License): Use LGPL, not GPL.
43261
43262         link-warning: optimize generation
43263         * modules/link-warning (Makefile.am): Reduce process usage.
43264
43265 2009-12-09  Bruno Haible  <bruno@clisp.org>
43266
43267         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43268         workaround was added on 2009-11-17.
43269
43270 2009-12-09  Jim Meyering  <meyering@redhat.com>
43271             Bruno Haible  <bruno@clisp.org>
43272
43273         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43274         * modules/link-warning (Makefile.am): Make the comment-removing sed
43275         command more robust in the face of bootstrap-prepended comment lines.
43276
43277 2009-12-09  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43280         most one group.
43281
43282 2009-12-09  Simon Josefsson <simon@josefsson.org>
43283             Bruno Haible  <bruno@clisp.org>
43284
43285         * build-aux/link-warning.h: Add copyright notice.
43286         * modules/link-warning (Makefile.am): Generate link-warning.h from
43287         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43288         * NEWS: Mention change in link-warning module.
43289         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43290         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43291         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43292         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43293         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43294         * modules/math (Makefile.am): Add dependency to math.h.
43295         * modules/search (Makefile.am): Add dependency to search.h.
43296         * modules/signal (Makefile.am): Add dependency to signal.h.
43297         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43298         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43299         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43300         * modules/string (Makefile.am): Add dependency to string.h.
43301         * modules/strings (Makefile.am): Add dependency to strings.h.
43302         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43303         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43304         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43305         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43306         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43307         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43308         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43309         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43310         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43311
43312 2009-12-09  Bruno Haible  <bruno@clisp.org>
43313
43314         fchdir: Optimize away rpl_fstat when possible.
43315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43316         REPLACE_OPEN_DIRECTORY.
43317         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43318
43319 2009-12-09  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/fchdir.c: Update comment.
43322
43323 2009-12-09  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43326
43327 2009-12-08  Eric Blake  <ebb9@byu.net>
43328
43329         fchdir: avoid memory leak on re-registration.
43330         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43331
43332 2009-12-08  Jim Meyering  <meyering@redhat.com>
43333
43334         init.sh: avoid Solaris 10 /bin/sh portability problem
43335         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43336         sourced script:
43337           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43338           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43339           bar
43340         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43341         and two tests used that idiom.
43342         * tests/init.sh: Update suggested usage comments.
43343         (path_prepend_): New function, to be used in place
43344         of the --src-path=DIR option.
43345         (setup_): Move PATH-prepending code into path_prepend_.
43346         * tests/test-pread.sh: Adapt to new usage.
43347         * tests/test-xalloc-die.sh: Likewise.
43348
43349 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43350
43351         * doc/gnulib.texi (Glibc pty.h): Add.
43352         * doc/glibc-functions/forkpty.texi: Add.
43353         * doc/glibc-functions/openpty.texi: Add.
43354         Suggested by Bruno Haible.
43355
43356 2009-12-08  Eric Blake  <ebb9@byu.net>
43357
43358         fchdir: fix logic bugs
43359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43360         * tests/test-fchdir.c (main): Enhance test.
43361         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43362         is in use.
43363
43364         dup2: fix logic bugs
43365         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43366         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43367         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43368         exists.
43369         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43370
43371 2009-12-07  Eric Blake  <ebb9@byu.net>
43372
43373         unlink: fix m4 detection
43374         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43375
43376         unistd-safer: add unit test
43377         * modules/unistd-safer-tests: New file.
43378         * tests/test-dup-safer.c: Likewise.
43379         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43380         * tests/test-dup2.c (setmode): Likewise.
43381         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43382
43383         cloexec: preserve text vs. binary across dup_cloexec
43384         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43385         mode.
43386         * modules/dup2-tests (Depends-on): Add binary-io.
43387         * modules/cloexec-tests (Depends-on): Likewise.
43388         * tests/test-dup2.c (setmode, is_mode): New helpers.
43389         (main): Add tests that translation mode is preserved.
43390         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43391         Reported by Bruno Haible.
43392
43393         mgetgroups: reduce duplicate listings
43394         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43395         resulting array.
43396         * tests/test-chown.h (test_chown): Simplify client.
43397         * tests/test-lchown.h (test_lchown): Likewise.
43398
43399 2009-12-06  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43402         value.
43403
43404 2009-12-06  Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/progname.c: Include stdio.h, stdlib.h.
43407         (set_program_name): Reject a NULL argument.
43408
43409 2009-12-05  Eric Blake  <ebb9@byu.net>
43410
43411         pipe2-safer: new module
43412         * modules/pipe2-safer: New file.
43413         * lib/unistd-safer.h (pipe2_safer): New prototype.
43414         * lib/unistd--.h (pipe2): New wrapper.
43415         * lib/pipe-safer.c (pipe2_safer): New function.
43416         * modules/pipe (Depends-on): Add pipe2-safer.
43417         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43418
43419         stdlib-safer: preserve cloexec flag for mkostemp[s]
43420         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43421         fd_safer_flag.
43422
43423         unistd-safer: allow preservation of cloexec status via flag
43424         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43425         prototypes.
43426         * lib/dup-safer.c (dup_safer_flag): New function.
43427         * lib/fd-safer.c (fd_safer_flag): Likewise.
43428         * modules/cloexec (configure.ac): Set witness.
43429
43430         test-dup2: enhance test
43431         * modules/dup2-tests (Depends-on): Add cloexec.
43432         * tests/test-dup2.c (main): Enhance test.
43433
43434         cloexec: add dup_cloexec
43435         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43436         header and comments.
43437         * lib/cloexec.c (set_cloexec_flag): Add comments.
43438         (dup_cloexec): New function, with mingw implementation borrowed
43439         from...
43440         * lib/w32spawn.h (dup_noinherit): ...here.
43441         * modules/execute (Depends-on): Add cloexec.
43442         * modules/pipe (Depends-on): Likewise.
43443         * modules/cloexec (Depends-on): Add dup2.
43444         * modules/cloexec-tests (Files): New file.
43445         * tests/test-cloexec.c: Likewise.
43446
43447         test-xalloc-die: fix test for mingw
43448         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43449         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43450         directory and .exe suffix off argv[0] output.
43451
43452         test-fseeko: fix test for mingw
43453         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43454         than undefining fseek, so test will pass on mingw.
43455
43456 2009-12-05  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/progname.h (set_program_name): Clarify specification.
43459         * lib/progname.c (set_program_name): Likewise.
43460         Reported by Jim Meyering.
43461
43462 2009-12-05  Jim Meyering  <meyering@redhat.com>
43463
43464         maint.mk: backslash-escape parens in default regexp
43465         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43466         backslash-escape the literal parentheses.
43467
43468         maint.mk: news-date-check: use grep -E
43469         * top/maint.mk (today): Define a Make variable, not a...
43470         (news-date-check): ...shell variable.
43471         (news-date-regexp): Use the Make variable.
43472         Use grep's -E option.  Change the failing diagnostic to mention
43473         the variable, $(news-date-regexp).
43474
43475 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43476
43477         maintainer-makefile: allow customization of NEWS entry format
43478         * top/maint.mk (news-date-regexp): New overridable variable.
43479         (news-date-check): Use it.
43480
43481 2009-12-04  Eric Blake  <ebb9@byu.net>
43482
43483         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43484         * lib/mgetgroups.h (xgetgroups): New prototype.
43485         * lib/mgetgroups.c (xgetgroups): New wrapper.
43486         (mgetgroups): Handle ENOSYS.
43487         * modules/mgetgroups (Depends-on): Add realloc.
43488         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43489
43490         mgetgroups: avoid argument promotion issues with -1
43491         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43492         for invalid gid_t.
43493         * tests/test-chown.h (getegid, test_chown): Likewise.
43494         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43495
43496 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43497
43498         exclude: Fix header file problems.
43499         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43500
43501 2009-12-01  Jim Meyering  <meyering@redhat.com>
43502
43503         fts: fts_open: do not let an empty string cause immediate failure
43504         This is required in support of GNU rm, for which the command
43505         "rm A '' B" must process and remove both A and B, in spite of
43506         the empty string argument.
43507         * lib/fts.c (fts_open): Do not let the presence of an empty string
43508         cause fts_open to fail immediately.  Most fts-using tools must be
43509         able to process all arguments, in order, and can be expected to
43510         diagnose such arguments themselves.
43511
43512 2009-11-30  Eric Blake  <ebb9@byu.net>
43513
43514         utimens: fix compilation error
43515         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43516         Declare variable at right scope.
43517
43518 2009-11-29  Jim Meyering  <meyering@redhat.com>
43519
43520         bootstrap: handle perl-5.11's changed --version output
43521         * build-aux/bootstrap (get_version): Handle perl separately,
43522         since perl-5.11's --version output is different.
43523
43524 2009-11-28  Jim Meyering  <meyering@redhat.com>
43525
43526         userspec: depend on the inttostr module, too
43527         * modules/userspec (Depends-on): Add inttostr.
43528
43529         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43530         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43531         number of MAXUID when it evaluates to (uid_t) -1.
43532         Likewise for group ID.  Reported by Matt McCutchen in
43533         <http://savannah.gnu.org/bugs/?28113>
43534
43535         userspec: reformat to use spaces, not TABs
43536         * lib/userspec.c: Expand TABs to spaces.
43537         Add Emacs' "indent-tabs-mode: nil" hint.
43538
43539 2009-11-27  Eric Blake  <ebb9@byu.net>
43540
43541         getopt-gnu: flush out another BSD bug
43542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43543         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43544         flush out BSD bug.
43545         * tests/test-getopt.h (test_getopt): End lists with NULL.
43546         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43547         (test_getopt_long_posix): Enhance test.
43548         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43549         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43550         getopt-gnu.
43551         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43552         Likewise.
43553
43554 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43555
43556         * modules/idpriv-droptemp-tests (Notice): Fix text.
43557
43558 2009-11-27  Jim Meyering  <meyering@redhat.com>
43559
43560         test-xalloc-die: avoid spurious failure due to libtool argv difference
43561         In a libtool-enabled project, this test would fail due to a difference
43562         in the emitted program name, e.g.,
43563         -test-xalloc-die: memory exhausted
43564         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43565         Use program to avoid that.
43566         * modules/xalloc-die-tests (Depends-on): Add progname.
43567         * tests/test-xalloc-die.c: Include progname.h".
43568         (program_name): Remove decl.
43569         (main): Call set_program_name.
43570         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43571
43572 2009-11-26  Richard Jones  <rjones@redhat.com>
43573
43574         w32sock: leave win32 error in place.
43575         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43576
43577 2009-11-26  Eric Blake  <ebb9@byu.net>
43578
43579         init.sh: suggest to use skip_ and fail_ functions in comments
43580         * tests/init.sh: Add a sentence.
43581
43582 2009-11-25  Bruno Haible  <bruno@clisp.org>
43583
43584         init.sh: add documentation in comments
43585         * tests/init.sh: Add some developer and user documentation.
43586
43587 2009-11-26  Jim Meyering  <meyering@redhat.com>
43588
43589         init.sh: accommodate even those who specify bogus srcdir manually
43590         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43591         configure-time tests to be sanitized, so that there is no need to
43592         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43593         (with no double quotes) suffices.  However, since tests may be
43594         invoked manually, and since you may explicitly set srcdir to the
43595         name of a directory containing spaces, do quote its uses here.
43596         * tests/test-pread.sh: Likewise.
43597         Suggested by Bruno Haible.
43598
43599         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43600         * tests/test-pread.sh: Write no data into the pipe, because
43601         test-pread actually reads none.  This avoids a diagnostic,
43602         "bash: echo: write error: Broken pipe", that arises in the unusual
43603         event something is ignoring SIGPIPE, and might be interpreted
43604         as some sort of failure.  Reported by Bruno Haible.
43605
43606 2009-11-25  Jim Meyering  <meyering@redhat.com>
43607
43608         test-pread: cover failure with ESPIPE and EINVAL
43609         * tests/test-pread.c (main): Test for failure, too.
43610         * tests/test-pread.sh: Invoke with stdin on a pipe.
43611         Suggested by Eric Blake.
43612
43613         pread: improvement and fix
43614         * modules/pread (Depends-on): Depend on lseek, for portability to
43615         e.g., mingw.  Suggested by Eric Blake.
43616         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43617
43618         unistd.in.h: correct declaration of pread
43619         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43620         Reported by Richard W.M. Jones.
43621
43622         test-pread.sh: distribute the test script
43623         * modules/pread-tests (Files): Include test-pread.sh.
43624
43625         test-pread.sh: clean up
43626         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43627         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43628         That is unnecessary, since it's always ".".
43629         Suggestion from Eric Blake.
43630
43631         test-pread.sh: make executable
43632         * tests/test-pread.sh: Set executable bit.
43633         Reported by Eric Blake.
43634
43635         correct typo in test-pread.sh
43636         * tests/test-pread.sh: Add #! line.
43637
43638         test pread
43639         * tests/test-pread.c: New file.
43640         * tests/test-pread.sh: Likewise.
43641         * modules/pread-tests: Likewise.
43642
43643         pread: new module
43644         * modules/pread: New file.
43645         * lib/unistd.in.h (pread): Define/declare.
43646         * lib/pread.c (pread): New file.
43647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43648         * modules/unistd (Makefile.am): Substitute witnesses.
43649         * doc/posix-functions/pread.texi (pread): Update.
43650         * MODULES.html.sh: Add pread.
43651
43652 2009-11-25  Jim Meyering  <meyering@redhat.com>
43653
43654         tests/init.sh: new file to be used via most *.sh tests
43655         * tests/init.sh: New file.
43656
43657 2009-11-25  Eric Blake  <ebb9@byu.net>
43658
43659         utimens: work around older Linux failure with symlinks
43660         * lib/utimens.c (lutimensat_works_really): New variable.
43661         (fdutimens, lutimens): Use it to manage kernels that support
43662         nanosecond times on files, but not on symlinks.
43663         Reported by Ondřej Vašík.
43664
43665         utimes: fix configure grammar
43666         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43667
43668 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43669
43670         regex: Fix fastmap for multibyte character ranges.
43671         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43672         characters when a multibyte character range is included.
43673
43674 2009-11-22  Andy Wingo  <wingo@pobox.com>
43675
43676         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43677         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43678
43679 2009-11-24  Bruno Haible  <bruno@clisp.org>
43680
43681         doc: Most *_l functions exist in MacOS X 10.5.
43682         * doc/posix-functions/duplocale.texi: Update platforms list.
43683         * doc/posix-functions/freelocale.texi: Likewise.
43684         * doc/posix-functions/newlocale.texi: Likewise.
43685         * doc/posix-functions/uselocale.texi: Likewise.
43686         * doc/posix-functions/isalnum_l.texi: Likewise.
43687         * doc/posix-functions/isalpha_l.texi: Likewise.
43688         * doc/posix-functions/isblank_l.texi: Likewise.
43689         * doc/posix-functions/iscntrl_l.texi: Likewise.
43690         * doc/posix-functions/isdigit_l.texi: Likewise.
43691         * doc/posix-functions/isgraph_l.texi: Likewise.
43692         * doc/posix-functions/islower_l.texi: Likewise.
43693         * doc/posix-functions/isprint_l.texi: Likewise.
43694         * doc/posix-functions/ispunct_l.texi: Likewise.
43695         * doc/posix-functions/isspace_l.texi: Likewise.
43696         * doc/posix-functions/isupper_l.texi: Likewise.
43697         * doc/posix-functions/iswalnum_l.texi: Likewise.
43698         * doc/posix-functions/iswalpha_l.texi: Likewise.
43699         * doc/posix-functions/iswblank_l.texi: Likewise.
43700         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43701         * doc/posix-functions/iswctype_l.texi: Likewise.
43702         * doc/posix-functions/iswdigit_l.texi: Likewise.
43703         * doc/posix-functions/iswgraph_l.texi: Likewise.
43704         * doc/posix-functions/iswlower_l.texi: Likewise.
43705         * doc/posix-functions/iswprint_l.texi: Likewise.
43706         * doc/posix-functions/iswpunct_l.texi: Likewise.
43707         * doc/posix-functions/iswspace_l.texi: Likewise.
43708         * doc/posix-functions/iswupper_l.texi: Likewise.
43709         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43710         * doc/posix-functions/isxdigit_l.texi: Likewise.
43711         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43712         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43713         * doc/posix-functions/strcoll_l.texi: Likewise.
43714         * doc/posix-functions/strfmon_l.texi: Likewise.
43715         * doc/posix-functions/strftime_l.texi: Likewise.
43716         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43717         * doc/posix-functions/strxfrm_l.texi: Likewise.
43718         * doc/posix-functions/tolower_l.texi: Likewise.
43719         * doc/posix-functions/toupper_l.texi: Likewise.
43720         * doc/posix-functions/towctrans_l.texi: Likewise.
43721         * doc/posix-functions/towlower_l.texi: Likewise.
43722         * doc/posix-functions/towupper_l.texi: Likewise.
43723         * doc/posix-functions/wcscoll_l.texi: Likewise.
43724         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43725         * doc/posix-functions/wctrans_l.texi: Likewise.
43726         * doc/posix-functions/wctype_l.texi: Likewise.
43727         * doc/glibc-functions/strptime_l.texi: Likewise.
43728         * doc/glibc-functions/strtod_l.texi: Likewise.
43729         * doc/glibc-functions/strtof_l.texi: Likewise.
43730         * doc/glibc-functions/strtol_l.texi: Likewise.
43731         * doc/glibc-functions/strtold_l.texi: Likewise.
43732         * doc/glibc-functions/strtoll_l.texi: Likewise.
43733         * doc/glibc-functions/strtoul_l.texi: Likewise.
43734         * doc/glibc-functions/strtoull_l.texi: Likewise.
43735         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43736         * doc/glibc-functions/wcstod_l.texi: Likewise.
43737         * doc/glibc-functions/wcstof_l.texi: Likewise.
43738         * doc/glibc-functions/wcstol_l.texi: Likewise.
43739         * doc/glibc-functions/wcstold_l.texi: Likewise.
43740         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43741         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43742         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43743
43744 2009-11-24  Bruno Haible  <bruno@clisp.org>
43745
43746         duplocale: Fix logic bug.
43747         * lib/duplocale.c: Don't include <langinfo.h>.
43748         (_NL_LOCALE_NAME): Remove macro.
43749         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43750         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43751
43752 2009-11-23  Jim Meyering  <meyering@redhat.com>
43753
43754         test-update-copyright: don't hard-code /usr/bin/perl
43755         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43756         perl to print the current year.  Gilles Espinasse reported that
43757         the replaced use of perl was hard-coded as /usr/bin/perl.
43758
43759 2009-11-23  Bruno Haible  <bruno@clisp.org>
43760
43761         duplocale: Add support for glibc 2.3.x.
43762         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43763
43764 2009-11-22  Bruno Haible  <bruno@clisp.org>
43765
43766         vasnprintf: Tiny optimization.
43767         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43768         MacOS X.
43769
43770 2009-11-22  Bruno Haible  <bruno@clisp.org>
43771
43772         Tests for module 'duplocale'.
43773         * modules/duplocale-tests: New file.
43774         * tests/test-duplocale.c: New file.
43775
43776         New module 'duplocale'.
43777         * m4/duplocale.m4: New file.
43778         * lib/locale.in.h (duplocale): New declaration.
43779         * lib/duplocale.c: New file.
43780         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43781         gl_LOCALE_H_DEFAULTS): New macros.
43782         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43783         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43784         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43785         REPLACE_DUPLOCALE.
43786         * modules/duplocale: New file.
43787         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43788
43789 2009-11-22  Bruno Haible  <bruno@clisp.org>
43790
43791         * modules/locale-tests (configure.ac): Test for newlocale function.
43792         * tests/test-locale.c: When the system has extended locale functions,
43793         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43794
43795         locale: Make locale_t available when possible.
43796         * lib/locale.in.h: Include <xlocale.h> when it exists.
43797         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43798         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43799         * modules/locale (Depends-on): Add extensions.
43800         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43801         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43802
43803 2009-11-22  Bruno Haible  <bruno@clisp.org>
43804
43805         Add comments.
43806         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43807         invocation.
43808         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43809         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43810         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43811
43812 2009-11-22  Bruno Haible  <bruno@clisp.org>
43813
43814         error: account for the possibility of freopen (stdout).
43815         * lib/error.c: Include <unistd.h>.
43816         (flush_stdout): New function, extracted from error and error_at_line.
43817         Determine stdout's fd dynamically.
43818         (error, error_at_line): Invoke flush_stdout.
43819         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43820         * modules/error (Depends-on): Add unistd.
43821
43822 2009-11-22  Bruno Haible  <bruno@clisp.org>
43823
43824         diffseq: Add comment.
43825         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43826
43827 2009-11-22  Jim Meyering  <meyering@redhat.com>
43828
43829         c-stack: avoid defining an unused static function
43830         * lib/c-stack.c (find_stack_direction): Do not define this function
43831         when it will not be used.
43832
43833         diffseq: avoid spurious gcc warnings
43834         * lib/diffseq.h (IF_LINT2): Define.
43835         (compareseq): Use it to initialize two members of "part".
43836         This avoids two used-uninitialized warnings.
43837
43838 2009-11-21  Jim Meyering  <meyering@redhat.com>
43839
43840         c-stack: avoid "ignoring return value of `write'" warning
43841         * lib/c-stack.c: Include "ignore-value.h".
43842         (die): Explicitly ignore each write return value.
43843         * modules/c-stack (Depends-on): Add ignore-value.
43844
43845 2009-11-21  Bruno Haible  <bruno@clisp.org>
43846
43847         diffseq: reduce scope of variable 'best'.
43848         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43849         variable, earlier used for two different purposes.
43850
43851 2009-11-21  Jim Meyering  <meyering@redhat.com>
43852
43853         diffseq: remove useless assignment to "best"
43854         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43855         assignment.  At that point "best" is already guaranteed to be zero.
43856
43857 2009-11-20  Eric Blake  <ebb9@byu.net>
43858
43859         build: mention ftp redirector in release announcements
43860         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43861         values that used to come from cfg.mk; mention FTP redirect URL.
43862         * build-aux/announce-gen: Mention the mirror list.
43863         Suggested by Karl Berry.
43864
43865         nanosleep: improve port to mingw
43866         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43868         LIB_NANOSLEEP, but only when needed.
43869         * modules/select (Link): Document LIBSOCKET.
43870         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43871         enough.
43872
43873         nanosleep: work around cygwin bug
43874         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43875         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43876         bug.
43877         (getnow): Delete, not needed.
43878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43879         LIB_CLOCK_GETTIME.
43880         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43881         clock-time, gettime.
43882         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43883         bug.
43884         * modules/nanosleep-tests: New test.
43885         * tests/test-nanosleep.c: New file.
43886
43887         sleep: work around cygwin bug
43888         * lib/sleep.c (rpl_sleep): Work around the bug.
43889         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43890         (gl_PREREQ_SLEEP): Delete unused macro.
43891         * modules/sleep (Depends-on): Add verify.
43892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43893         * modules/unistd (Makefile.am): Substitute witness.
43894         * lib/unistd.in.h (sleep): Update prototype.
43895         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43896         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43897         * modules/sleep-tests (Depends-on): Check for alarm.
43898
43899 2009-11-20  Jim Meyering  <meyering@redhat.com>
43900
43901         maint.mk: improve sc_prohibit_magic_number_exit
43902         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43903         so it does not match uses like System.exit(1).
43904         Add comments showing how to correct all offenders.
43905
43906 2009-11-19  Eric Blake  <ebb9@byu.net>
43907
43908         xalloc-die-tests: add missing library
43909         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43910
43911         test-xvasprintf: silence compiler warnings
43912         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43913         empty string from gcc.
43914
43915 2009-11-19  Jim Meyering  <meyering@redhat.com>
43916
43917         xfreopen: new module, from coreutils
43918         * modules/xfreopen: New module.
43919         * lib/xfreopen.c: New file.
43920         * lib/xfreopen.h: New file.
43921         * MODULES.html.sh (File stream based Input/Output"): Add it.
43922
43923 2009-11-19  Eric Blake  <ebb9@byu.net>
43924
43925         manywarnings: depend on warnings
43926         * modules/manywarnings (Depends-on): Add warnings.
43927
43928         build: avoid compiler warnings
43929         * lib/select.c (rpl_select): Delete unused variable.
43930         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43931
43932 2009-11-18  Eric Blake  <ebb9@byu.net>
43933
43934         tests: avoid false negative with --with-packager
43935         * tests/test-version-etc.sh: Discard packager information.
43936         * tests/test-argp-version-etc-1.sh: Likewise.
43937         Reported by Mike Frysinger.
43938
43939         utimens: fix regression on Solaris
43940         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43941         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43942         can only change fd timestamps via futimesat.  Instead, use an
43943         additional witness macro to avoid BSD bug.
43944         Reported by Jim Meyering.
43945
43946 2009-11-17  Eric Blake  <ebb9@byu.net>
43947
43948         usleep: use it to simplify tests
43949         * modules/stat-time-tests (Depends-on): Add usleep.
43950         (configure.ac): Drop usleep check.
43951         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43952         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43953         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43954         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43955         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43956         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43957         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43958         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43959         Likewise.
43960         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43961         * tests/test-lchown.h (nap): Likewise.
43962         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43963         * tests/test-stat-time.c (nap): Likewise.
43964         * tests/test-utimens-common.h (nap): Update comments.
43965
43966         usleep: new module
43967         * modules/usleep: New file.
43968         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43969         * lib/usleep.c (usleep): Likewise.
43970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43971         * modules/unistd (Makefile.am): Substitute witnesses.
43972         * lib/unistd.in.h (usleep): Add declaration.
43973         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43974         * MODULES.html.sh (Date and time): Likewise.
43975         * modules/usleep-tests (Depends-on): New test.
43976         * tests/test-usleep.c: New file.
43977
43978         chown: work around OpenBSD bug
43979         * lib/chown.c (rpl_chown): Work around the bug.
43980         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43981         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43982         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43983         * modules/chown (Depends-on): Add stdbool.
43984         * modules/lchown (Depends-on): Likewise.
43985         * doc/posix-functions/chown.texi (chown): Document the bug.
43986         * doc/posix-functions/lchown.texi (lchown): Likewise.
43987         * tests/test-lchown.h (test_chown): Relax test.
43988
43989         mkstemp: avoid conflict with C++ keyword template
43990         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43991         * lib/mkostemp.c (mkostemp): Likewise.
43992         * lib/mkostemps.c (mkostemps): Likewise.
43993         * lib/mkstemp.c (mkstemp): Likewise.
43994         * lib/mkstemps.c (mkstemps): Likewise.
43995
43996         xalloc-die-tests: optimize
43997         * tests/test-xalloc-die.sh: Reduce number of processes.
43998
43999 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44000
44001         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44002         patch from ludo@gnu.org (Ludovic Courtès).
44003
44004 2009-11-17  Jim Meyering  <meyering@redhat.com>
44005
44006         version-etc: use proper license string
44007         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44008         * modules/version-etc-fsf: Likewise.
44009
44010 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44011
44012         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44013         printed to stdout.  Deal with EOL differences.
44014
44015 2009-11-17  Eric Blake  <ebb9@byu.net>
44016
44017         unsetenv: work around Solaris bug
44018         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44019         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44020         Reported by Jim Meyering.
44021
44022         vasnprintf: avoid compiler warnings
44023         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44024         variables.
44025         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44026
44027 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44028
44029         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44030         settings since xalloc-die is no longer the self test,
44031         xalloc-die.sh is.
44032
44033 2009-11-17  Jim Meyering  <meyering@redhat.com>
44034
44035         test-xalloc-die.sh: make the code agree with the commit log
44036         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44037         at the end, just in case you happen to have a test-xalloc-die
44038         program in some other PATH directory.
44039
44040         test-xalloc-die.sh: fix a portability bug
44041         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44042         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44043         Otherwise, argv[0] (as often seen in diagnostics) would be too
44044         system-dependent, sometimes with, and sometimes without the leading "./".
44045
44046         version-etc-fsf: relax license to LGPLv3+
44047         * modules/version-etc-fsf (License): Relax license.
44048
44049 2009-11-16  Eric Blake  <ebb9@byu.net>
44050
44051         xalloc-die-tests: avoid printing null pointer
44052         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44053         shell script.
44054         * tests/test-xalloc-die.c (program_name): Declare.
44055         * tests/test-xalloc-die.sh (tmpfiles): New file.
44056
44057         setenv, unsetenv: work around various bugs
44058         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44059         (setenv) [HAVE_SETENV]: Work around bugs.
44060         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44061         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44062         for bugs.
44063         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44064         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44066         * modules/stdlib (Makefile.am): Update substitutions.
44067         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44068         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44069         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44070         * modules/setenv-tests: New test.
44071         * modules/unsetenv-tests: Likewise.
44072         * tests/test-setenv.c: New file.
44073         * tests/test-unsetenv.c: Likewise.
44074
44075 2009-11-16  Jim Meyering  <meyering@redhat.com>
44076
44077         version-etc: relax license to LGPLv3+
44078         * modules/version-etc (License): Relax license.
44079
44080         better AC_REQUIRE expanded-before-required-warning avoidance
44081         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44082         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44083         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44084         which is no longer needed.
44085
44086 2009-11-16  Eric Blake  <ebb9@byu.net>
44087
44088         test-freading: clean up temporary file
44089         * tests/test-freading.c (main): Remove file on success, and use
44090         ASSERT more liberally.
44091         Reported by Jim Meyering.
44092
44093 2009-11-16  Jim Meyering  <meyering@redhat.com>
44094
44095         avoid new AC_REQUIRE expanded-before-required warnings
44096         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44097         merely using it.
44098         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44099         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44100
44101 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44102
44103         * tests/test-xalloc-die.c: New file.
44104         * modules/xalloc-die-tests: New file.
44105         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44106         XFAIL_TESTS so it can be appended by modules.
44107
44108 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44109
44110         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44111         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44112
44113 2009-11-14  Eric Blake  <ebb9@byu.net>
44114
44115         fnmatch: avoid compiler warning
44116         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44117         to silence compiler warning about mismatch signedness in ?:.
44118         Reported by Robert Millan.
44119
44120         intprops: add double-inclusion guard
44121         * lib/intprops.h: Allow idempotent includes.
44122         Suggested by Bruce Korb.
44123
44124         openat: detect Solaris fchownat bug
44125         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44126         penalizing glibc chownat when only lchownat is broken.
44127         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44128         trailing slash bugs.
44129         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44130         * modules/openat-tests (Files): Include more files.
44131         (Depends-on): Add mgetgroups, sleep, stat-time.
44132         (configure.ac): Add additional checks.
44133         (Makefile.am): Build new test.
44134         * tests/test-fchownat.c: New file.
44135
44136         lchown: detect Solaris and FreeBSD bug
44137         * lib/lchown.c (rpl_lchown): Work around bug.
44138         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44140         * modules/unistd (Makefile.am): Populate it.
44141         * lib/unistd.in.h (lchown): Update declaration.
44142         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44143         * modules/lchown-tests: New file.
44144         * tests/test-lchown.h (test_lchown): Likewise.
44145         * tests/test-lchown.c (main): Likewise.
44146
44147         chown: detect Solaris and FreeBSD bug
44148         * lib/chown.c (rpl_chown): Work around bug.
44149         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44150         (gl_PREREQ_CHOWN): Delete.
44151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44152         * modules/unistd (Makefile.am): Populate it.
44153         * lib/unistd.in.h (chown): Update declaration.
44154         * lib/lchown.c (chown): Update client.
44155         * modules/lchown (Depends-on): Add lstat.
44156         * doc/posix-functions/chown.texi (chown): Document the bug.
44157         * doc/posix-functions/getgroups.texi (getgroups): Document
44158         getgroups pitfall.
44159         * modules/chown-tests: New file.
44160         * tests/test-chown.h (test_chown): Likewise.
44161         * tests/test-chown.c (main): Likewise.
44162
44163 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44164
44165         gnulib-tool: correctly detect absence of m4 directories
44166         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44167
44168 2009-11-14  Jim Meyering  <meyering@redhat.com>
44169
44170         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44171         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44172
44173 2009-11-14  John W. Eaton  <jwe@gnu.org>
44174
44175         strftime.h: wrap function declaration in extern "C" block
44176         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44177
44178 2009-11-13  Eric Blake  <ebb9@byu.net>
44179
44180         getgroups: avoid compiler warning
44181         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44182
44183         getgroups: work around FreeBSD bug
44184         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44185         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44186         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44187         * tests/test-getgroups.c (main): Fix buffer overrun.
44188
44189         getgroups: avoid compilation failure
44190         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44191         * modules/getgroups (Depends-on): Add stdint.
44192
44193 2009-11-13  Jim Meyering  <meyering@redhat.com>
44194
44195         test-getgroups: avoid compilation failure
44196         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44197
44198 2009-11-13  Eric Blake  <ebb9@byu.net>
44199
44200         mgetgroups: new module, taken from coreutils
44201         * modules/mgetgroups: New file.
44202         * lib/mgetgroups.h: Likewise.
44203         * lib/mgetgroups.c (mgetgroups): Likewise.
44204         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44205         * MODULES.html.sh (Users and groups): Mention it.
44206
44207         getgroups: don't expose GETGROUPS_T to user
44208         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44209         an element at a time if GETGROUPS_T is wrong size.
44210         * lib/getugroups.h (getugroups): Change signature.
44211         * lib/unistd.in.h (getgroups): Likewise.
44212         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44213         signature needs fixing.
44214         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44215         AC_TYPE_GETGROUPS.
44216         * modules/group-member (Depends-on): Add getgroups.
44217         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44218         (group_member): Rely on getgroups replacement.
44219         * lib/getugroups.c (getugroups): Use gid_t.
44220         * tests/test-getgroups.c (main): Likewise.
44221         * NEWS: Mention the signature change.
44222         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44223         problem with signature.
44224         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44225         GETGROUPS_T is still useful for setgroups.
44226
44227         getgroups, getugroups: provide stubs for mingw
44228         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44229         * lib/getugroups.c (getugroups): Likewise.
44230         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44231         function.  Modernize replacement scheme.
44232         (gl_PREREQ_GETGROUPS): Delete.
44233         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44234         * modules/getgroups (configure.ac): Declare witness.
44235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44236         * modules/unistd (Depends-on): Substitute witness.
44237         * lib/unistd.in.h (getgroups): Declare replacement.
44238
44239         getgroups: avoid calling exit
44240         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44241         drop xalloc.
44242         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44243         dependencies.
44244         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44245         exiting, in the rare case of malloc failure.
44246
44247         getgroups: fix logic error
44248         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44249         has more than 20 groups.
44250         * modules/getgroups-tests: New test.
44251         * tests/test-getgroups.c: New file.
44252
44253 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44254
44255         * tests/test-base64.c: Improve.
44256
44257 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44258
44259         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44260         Blake <ebb9@byu.net>.
44261
44262 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44263
44264         * tests/test-xvasprintf.c: Add %s%s related checks.
44265
44266 2009-11-12  Eric Blake  <ebb9@byu.net>
44267
44268         version-etc: match standards.texi style
44269         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44270         and use <> only for URLs.
44271
44272 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44273
44274         fts: do not fail on a submount during traversal
44275         * lib/fts.c (fts_build): Read the stat info again after opening
44276         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44277         Original report at http://bugzilla.redhat.com/501848.
44278
44279 2009-11-12  Jim Meyering  <meyering@redhat.com>
44280
44281         bootstrap: sync from coreutils
44282         * build-aux/bootstrap (bootstrap_epilogue): New function.
44283         Use git_modules_config in one more place.  This make bootstrap's
44284         --gnulib-srcdir option more useful for testing.
44285
44286         bootstrap: generalize autoheader check
44287         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44288         AC_CONFIG_HEADERS.
44289
44290 2009-11-11  Eric Blake  <ebb9@byu.net>
44291
44292         mkfifoat: use new modules for Solaris and BSD bugs
44293         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44294         * lib/mkfifoat.c (mknodat): Split...
44295         * lib/mknodat.c (mknodat): ...into new file.
44296         * modules/mkfifoat (Files): Ship new file.
44297         (Depends-on): Add mkfifo, mknod.
44298         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44299         (Depends-on): Add symlink.
44300         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44301         redundant with test_mkfifo.h.
44302         (do_mkfifoat, do_mknodat): New helpers.
44303
44304         mknod: new module
44305         * modules/mknod: New file.
44306         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44307         * lib/mknod.c (mknod): Likewise.
44308         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44309         defaults.
44310         * modules/sys_stat (Makefile.am): Substitute them.
44311         * lib/sys_stat.in.h (mknod): Declare replacement.
44312         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44313         Document it.
44314         * doc/posix-functions/mknod.texi (mknod): Likewise.
44315         * modules/mknod-tests: New test.
44316         * tests/test-mknod.c: Likewise.
44317
44318         mkfifo: new module
44319         * modules/mkfifo: New file.
44320         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44321         * lib/mkfifo.c (mkfifo): Likewise.
44322         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44323         defaults.
44324         * modules/sys_stat (Makefile.am): Substitute them.
44325         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44326         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44327         Document it.
44328         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44329         * modules/mkfifo-tests: New test.
44330         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44331         from test-mkfifoat.c.
44332         * tests/test-mkfifo.c: New file.
44333
44334         readlink: detect FreeBSD bug
44335         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44336         slash on symlink.
44337         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44338         * tests/test-readlink.h (test_readlink): Enhance test.
44339
44340         symlink: detect FreeBSD bug
44341         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44342         slash on symlink.
44343         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44344         * tests/test-symlink.h (test_symlink): Enhance test.
44345
44346 2009-11-10  Eric Blake  <ebb9@byu.net>
44347
44348         link: detect FreeBSD bug
44349         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44350         symlink.
44351         * doc/posix-functions/link.texi (link): Document the bug.
44352         * tests/test-link.h (test_link): Enhance test.
44353         * tests/test-linkat.c (main): Update caller.
44354
44355         unlink, remove: detect FreeBSD bug
44356         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44357         slash on symlink.
44358         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44359         * doc/posix-functions/remove.texi (remove): Likewise.
44360         * tests/test-unlink.h (test_unlink): Enhance test.
44361         * tests/test-remove.c (main): Likewise.
44362
44363 2009-11-09  Eric Blake  <ebb9@byu.net>
44364
44365         rename: detect FreeBSD bug
44366         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44367         slash on symlink.
44368         * modules/renameat-tests (Depends-on): Add filenamecat.
44369         * tests/test-rename.h (test_rename): Allow one more errno.
44370         * tests/test-renameat.c (main): Likewise.
44371         * doc/posix-functions/rename.texi (rename): Document the bug.
44372
44373         open: detect FreeBSD bug
44374         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44375         symlink.
44376         * doc/posix-functions/open.texi (open): Document the bug.
44377         * doc/posix-functions/utimes.texi (utimes): Likewise.
44378         * tests/test-open.h (test_open): Add parameters, and test symlink
44379         handling.
44380         * tests/test-open.c (main): Adjust caller.
44381         * tests/test-fcntl-safer.c (main): Likewise.
44382         * modules/open-tests (Depends-on): Add stdbool, symlink.
44383         * modules/fcntl-safer-tests (Depends-on): Likewise.
44384         * tests/test-openat.c (main): Add test-open tests.
44385
44386         stat: detect FreeBSD bug
44387         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44388         symlink.
44389         * doc/posix-functions/stat.texi (stat): Document the bug.
44390         * tests/test-stat.h (test_stat_func): Add argument.
44391         * tests/test-stat.c (main): Adjust caller.
44392         * tests/test-fstatat.c (main): Likewise.
44393         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44394         Reported by Jim Meyering.
44395
44396 2009-11-09  James Youngman  <jay@gnu.org>
44397
44398         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44399         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44400
44401 2009-11-08  Jim Meyering  <meyering@redhat.com>
44402
44403         utimens: remove invalid futimesat call
44404         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44405         It used the file descriptor of the target file as the DIR_FD
44406         parameter and NULL as the file name.  That caused failure with
44407         errno == EFAULT on FreeBSD-8.0-rc2
44408
44409 2009-11-07  Eric Blake  <ebb9@byu.net>
44410
44411         fflush, freadseek: use fseeko, not fseek
44412         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44413         (clear_ungetc_buffer): Avoid potential problems on large files.
44414         * lib/freadseek.c (freadseek): Likewise.
44415         * modules/freadseek (Depends-on): Add fseeko.
44416         * modules/fseek (configure.ac): Set a witness.
44417         * tests/test-fflush.c (main): Use fseeko.
44418         * tests/test-fpurge.c (fseek): Disable link warning.
44419         * tests/test-freadable.c (fseek): Likewise.
44420         * tests/test-freading.c (fseek): Likewise.
44421         * tests/test-fseeko.c (fseek): Likewise.
44422         * tests/test-ftell.c (fseek): Likewise.
44423         * tests/test-ftello.c (fseek): Likewise.
44424         * tests/test-fwritable.c (fseek): Likewise.
44425         * tests/test-fwriting.c (fseek): Likewise.
44426
44427 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44428
44429         * modules/memchr (Depends-on): Drop getpagesize dependency.
44430
44431 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44432
44433         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44434         Reported by Ludovic Courtès.
44435         * build-aux/pmccabe2html: Improve example usage.
44436         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44437
44438 2009-11-06  Jim Meyering  <meyering@redhat.com>
44439
44440         do-release-commit-and-tag: New module.
44441         Automate the release-commit and tag process.
44442         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44443         * modules/do-release-commit-and-tag: New file.
44444         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44445
44446 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44447
44448         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44449         because test-select.c uses inet_pton.
44450
44451 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44452
44453         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44454         GETADDRINFO_LIB.  Bump serial number.
44455         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44456         Suggested by Eric Blake <ebb9@byu.net>.
44457
44458 2009-11-05  Eric Blake  <ebb9@byu.net>
44459
44460         strtod: detect darwin bug
44461         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44462         Reported by Leo Davis.
44463
44464         freopen-safer: new module
44465         * modules/freopen-safer: New module.
44466         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44467         * lib/freopen-safer.c (freopen_safer): New file.
44468         * lib/stdio-safer.h (freopen_safer): New declaration.
44469         * lib/stdio--.h (freopen): New override.
44470         * MODULES.html.sh (File stream based Input/Output): Mention it.
44471         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44472         freopen-safer module.
44473         * doc/posix-functions/stderr.texi (stderr): Likewise.
44474         * doc/posix-functions/stdin.texi (stdin): Likewise.
44475         * doc/posix-functions/stdout.texi (stdout): Likewise.
44476         * modules/freopen-safer-tests: New test.
44477         * tests/test-reopen-safer.c: New file.
44478
44479 2009-11-05  Jim Meyering  <meyering@redhat.com>
44480
44481         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44482         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44483
44484 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44485
44486         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44487
44488 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44489
44490         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44491
44492 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44493
44494         Fix link error.
44495         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44496         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44497
44498 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44499
44500         * tests/test-func.c: Also test value of __func__.
44501
44502 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44503
44504         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44505         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44506
44507 2009-11-05  Bruno Haible  <bruno@clisp.org>
44508
44509         Fix link error.
44510         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44511         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44512         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44513
44514 2009-11-05  Bruno Haible  <bruno@clisp.org>
44515
44516         Tests for module 'inet_pton'.
44517         * modules/inet_pton-tests: New file.
44518         * tests/test-inet_pton.c: New file.
44519
44520 2009-11-05  Bruno Haible  <bruno@clisp.org>
44521
44522         Tests for module 'inet_ntop'.
44523         * modules/inet_ntop-tests: New file.
44524         * tests/test-inet_ntop.c: New file.
44525
44526 2009-11-04  Eric Blake  <ebb9@byu.net>
44527
44528         stdlib-safer: wrap all mkstemp variants
44529         * modules/mkostemp (configure.ac): Set witness.
44530         * modules/mkostemps (configure.ac): Likewise.
44531         * modules/mkstemps (configure.ac): Likewise.
44532         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44533         (mkstemps_safer): Wrap more functions.
44534         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44535         wrapping.
44536         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44537         (mkstemps_safer): Implement the wrappers.
44538
44539         mkstemps, mkostemps: new modules
44540         * modules/mkostemps: New module.
44541         * modules/mkstemps: Likewise.
44542         * lib/mkostemps.c (mkostemps): New file.
44543         * lib/mkstemps.c (mkstemps): Likewise.
44544         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44545         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44547         * modules/stdlib (Makefile.am): Substitute them.
44548         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44549         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44550         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44551         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44552         * MODULES.html.sh (File system functions): Mention them.
44553
44554         tempname: resync from glibc
44555         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44556         same values for __GT_FILE as glibc.  Abort even when assertions
44557         are disabled.
44558         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44559         match its value otherwise.  Allow idempotent inclusion.
44560         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44561         * lib/mkostemp.c (mkostemp): Likewise.
44562         * lib/mkstemp.c (mkstemp): Likewise.
44563         * lib/tmpfile.c (tmpfile): Likewise.
44564         * NEWS: Document this.
44565
44566         utimens: fix use of futimens on older Linux
44567         * lib/utimens.c (fdutimens): Use updated, rather than original,
44568         timespec to avoid bug in older Linux kernel.
44569         Reported by Simon Josefsson.
44570
44571 2009-11-04  Bruno Haible  <bruno@clisp.org>
44572
44573         Make num_processors more flexible and consistent.
44574         * lib/nproc.h (enum nproc_query): New type.
44575         (num_processors): Add a 'query' argument.
44576         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44577         (num_processors): Add a 'query' argument. Test the value of the
44578         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44579         mingw, count the number of CPUs available for the current process.
44580         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44581         Check for sched_getaffinity and sched_getaffinity_np.
44582         * modules/nproc (Depends-on): Add c-ctype, extensions.
44583         * NEWS: Mention the change.
44584
44585 2009-11-03  Bruno Haible  <bruno@clisp.org>
44586
44587         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44588
44589 2009-11-03  Jim Meyering  <meyering@redhat.com>
44590
44591         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44592         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44593         if it is defined.
44594
44595 2009-11-02  Eric Blake  <ebb9@byu.net>
44596
44597         mktime, timegm: share common declaration
44598         * lib/mktime-internal.h: New file.
44599         * lib/mktime.c: Use it rather than open-coding a declaration.
44600         * lib/timegm.c: Likewise.
44601         * modules/mktime (Files): Ship it.
44602         * modules/timegm (Files): Likewise.
44603         Suggested by Bruno Haible.
44604
44605         test-update-copyright: update test to match script changes
44606         * tests/test-update-copyright.sh: Avoid hard-coding perl
44607         location.  Don't update *.bak created by earlier runs.
44608
44609 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44610             Simon Josefsson  <simon@josefsson.org>
44611             Bruno Haible  <bruno@clisp.org>
44612
44613         Fix link error on Solaris 8.
44614         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44615         also in libnsl. Define also INET_PTON_LIB.
44616         * modules/inet_pton (Link): New section.
44617
44618 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44619             Bruno Haible  <bruno@clisp.org>
44620
44621         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44622         * modules/inet_ntop (Link): New section.
44623         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44624
44625 2009-11-02  Eric Blake  <ebb9@byu.net>
44626
44627         maint: avoid compiler warnings in m4 macros
44628         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44630
44631 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44632
44633         * m4/pmccabe2html.m4: Remove file.
44634         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44635         function.  Change maintainer.
44636         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44637         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44638         Courtès).
44639
44640 2009-10-31  Eric Blake  <ebb9@byu.net>
44641
44642         fseeko: fix m4 regression
44643         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44644         regression from 2009-10-27.
44645         Reported by Ralf Wildenhues.
44646
44647 2009-10-31  Jim Meyering  <meyering@redhat.com>
44648
44649         inttostr: aesthetics and improved (compile-time) safety
44650         Define inttype_is_signed rather than inttype_is_unsigned,
44651         since the sole use is via "#if inttype_is_signed".
44652         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44653         inttype_is_unsigned.
44654         * lib/offtostr.c (inttype_is_signed): Likewise.
44655         * lib/uinttostr.c (inttype_is_signed): Likewise.
44656         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44657         * lib/inttostr.c (inttostr): Use verify to cross-check the
44658         inttype_is_signed value and the signedness of the actual type.
44659         * modules/inttostr (Depends-on): Add verify.
44660
44661 2009-10-30  Eric Blake  <ebb9@byu.net>
44662
44663         build: avoid compiler warnings
44664         * lib/fchmodat.c (lchmod): Mark unused variables.
44665         * lib/getopt.c (_getopt_initialize): Likewise.
44666         * lib/mktime.c (__mktime_internal): Provide prototype.
44667         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44668         older gcc that do not understand #pragma GCC diagnostic.
44669         * lib/uinttostr.c (inttype_is_unsigned): Define.
44670         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44671
44672 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44673
44674         stat: fix compilation on AIX
44675         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44676         only see struct stat64.
44677
44678 2009-10-30  Eric Blake  <ebb9@byu.net>
44679
44680         exclude: make more robust
44681         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44682         rather than masking a coding bug.
44683         Suggested by Bruno Haible.
44684
44685 2009-10-30  Jim Meyering  <meyering@redhat.com>
44686
44687         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44688         Rather than putting #!/usr/bin/perl on the first line,
44689         start with a variant of what's recommended by "man perlrun" that
44690         invokes the first "perl" program from your shell's search path.
44691         * build-aux/gitlog-to-changelog: Replace #!... as above.
44692         Add a "Local Variables" perl mode setting.
44693         Prompted by a patch from Ludovic Courtès.
44694         Improved by Eric Blake.
44695         * build-aux/useless-if-before-free: Likewise.
44696         * build-aux/announce-gen: Likewise.
44697         * build-aux/update-copyright: Likewise.
44698
44699 2009-10-29  Eric Blake  <ebb9@byu.net>
44700
44701         filenamecat-lgpl: adjust clients
44702         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44703         filenamecat.
44704         * modules/renameat (Depends-on): Likewise.
44705
44706         filenamecat: split into filenamecat-lgpl
44707         * modules/filenamecat-lgpl: New module.
44708         * modules/filenamecat (Files): Move library-safe files into
44709         filenamecat-lgpl.
44710         (Depends-on): Add filenamecat-lgpl.
44711         (configure.ac): Declare witness.
44712         * lib/filenamecat.h (file_name_concat): Only declare when using
44713         GPL module.
44714         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44715         Move...
44716         * lib/filenamecat-lgpl.c: ...into new file.
44717         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44718         (gl_FILE_NAME_CONCAT): Use it.
44719         * MODULES.html.sh (File system functions): Mention new module.
44720
44721         argp: avoid memory leak
44722         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44723         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44724         base_name, since the latter malloc()s and can call exit().
44725         Leak introduced 2006-07-03.
44726
44727         dirname-lgpl: adjust clients that don't need full dirname
44728         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44729         * modules/filenamecat (Depends-on): Likewise.
44730         * modules/linkat (Depends-on): Likewise.
44731         * modules/mkancesdirs (Depends-on): Likewise.
44732         * modules/mkdir (Depends-on): Likewise.
44733         * modules/openat (Depends-on): Likewise.
44734         * modules/savewd (Depends-on): Likewise.
44735         * modules/rename (Depends-on): Likewise.
44736         (License): Relax license.
44737         * modules/mkdir-tests (Depends-on): Drop progname.
44738         (Makefile.am): Delete unneeded LDADD.
44739         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44740
44741         dirname: split into dirname-lgpl
44742         * modules/dirname-lgpl: New module.
44743         * modules/dirname (Files): Move library-safe files into
44744         dirname-lgpl.
44745         (Depends-on): Add dirname-lgpl.
44746         (configure.ac): Declare witness.
44747         * modules/double-slash-root (License): Relax license.
44748         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44749         module.
44750         * lib/dirname.c (dir_len, mdir_name): Move...
44751         * lib/dirname-lgpl.c: ...into new file.
44752         * lib/basename.c (last_component, base_len): Move...
44753         * lib/basename-lgpl.c: ...into new file.
44754         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44755         (gl_DIRNAME): Use it.
44756         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44757         Mention new module.
44758         * modules/dirname-tests (Depends-on): Add progname.
44759         * tests/test-dirname.c (program_name): Delete.
44760
44761         mkdir: make safe for libraries
44762         * modules/mkdir (Depends-on): Drop xalloc.
44763         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44764         exit.
44765
44766         tests: avoid some compiler warnings
44767         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44768         literals.
44769         * tests/test-memchr.c (main): Avoid type mismatch.
44770         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44771         * tests/test-base64.c (main): Likewise.
44772         * tests/test-getdelim.c (main): Likewise.
44773         * tests/test-gethostname.c (main): Likewise.
44774         * tests/test-getline.c (main): Likewise.
44775         * tests/test-netinet_in.c (main): Likewise.
44776         * tests/test-select.c (open_server_socket, main): Likewise.
44777         * tests/test-select-stdin.c (main): Likewise.
44778         * tests/test-sockets.c (main): Likewise.
44779         * tests/test-strsignal.c (main): Likewise.
44780         * tests/test-sys_select.c (main): Likewise.
44781         * tests/test-sys_socket.c (main): Likewise.
44782         * tests/test-u64.c (main): Likewise.
44783         * tests/test-xfprintf-posix.c (main): Likewise.
44784         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44785
44786         sockets: avoid compiler warning
44787         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44788
44789         maint: detect usage(1) and other suspicious exits
44790         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44791
44792 2009-10-29  Jim Meyering  <meyering@redhat.com>
44793
44794         timespec: long-to-int truncation could make timespec_cmp malfunction
44795         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44796         a multiple of 2^32 nanoseconds as no difference.
44797
44798 2009-10-28  Jim Meyering  <meyering@redhat.com>
44799
44800         fprintftime: wrap macro code argument in "do {...} while(0)"
44801         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44802         cpy macro must be a statement that can be followed by a semicolon.
44803         Now that the else clause contains a comment and is hence longer
44804         than one line, I require curly braces.  That in turn requires
44805         that we wrap this code block in the standard do...while(0).
44806
44807         fprintftime: remove stray semicolon from previous change
44808         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44809
44810         fprintftime: avoid a warning about ignored fwrite return value
44811         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44812         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44813         that is unsafe.
44814         * modules/fprintftime (Depends-on): Add ignore-value.
44815
44816         exclude: avoid an unwarranted warning
44817         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44818
44819 2009-10-27  Eric Blake  <ebb9@byu.net>
44820
44821         fseek: avoid compilation failure when fflush is replaced
44822         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44823         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44824         module is in use.
44825         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44826         module is not in use; since REPLACE_FSEEK worked otherwise.
44827         (GNULIB_FTELLO): Likewise for ftell.
44828         Reported by Ian Beckwith and others.
44829
44830 2009-10-27  Bruno Haible  <bruno@clisp.org>
44831
44832         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44833         Reported by Jim Meyering.
44834
44835 2009-10-27  Jim Meyering  <jim@meyering.net>
44836             Bruno Haible  <bruno@clisp.org>
44837
44838         Avoid warning despite dropping the return value of fwrite.
44839         * lib/unicodeio.c: Include ignore-value.h.
44840         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44841         * modules/unicodeio (Depends-on): Add ignore-value.
44842
44843 2009-10-26  Eric Blake  <ebb9@byu.net>
44844
44845         areadlinkat: fix fallback path
44846         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44847         pointer and zero.
44848
44849 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44850
44851         Use a better IO block size for modern systems
44852         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44853         * lib/md2.c: Likewise.
44854         * lib/md4.c: Likewise.
44855         * lib/md5.c: Likewise.
44856         * lib/sha1.c: Likewise.
44857         * lib/sha256.c: Likewise.
44858         * lib/sha512.c: Likewise.
44859
44860 2009-10-22  Eric Blake  <ebb9@byu.net>
44861
44862         tests: avoid several compiler warnings
44863         * tests/test-getcwd.c (main): Avoid buffer underflow.
44864         * tests/test-getdate.c (main): String literals are not safe with
44865         putenv, so use setenv.  Declare unused argument.
44866         * modules/getdate-tests (Depends-on): Add setenv.
44867         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44868         problems with string literals in char *.
44869         * tests/test-hash.c (main): Avoid shadowing declaration.
44870         (insert_new): Treat string literals as char const *.
44871         * tests/test-getopt.h (test_getopt): Likewise.
44872         (getopt_loop): Alter types to minimize casting elsewhere.
44873         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44874         (test_getopt_long_posix): Likewise.
44875         (do_getopt_long): Add wrapper to minimize casting.
44876         * tests/test-atexit.c (clear_temp_file): Use void.
44877         * tests/test-areadlink-with-size.c (main): Declare unused
44878         arguments.
44879         * tests/test-areadlink.c (main): Likewise.
44880         * tests/test-areadlinkat-with-size.c (main): Likewise.
44881         * tests/test-areadlinkat.c (main): Likewise.
44882         * tests/test-canonicalize-lgpl.c (main): Likewise.
44883         * tests/test-canonicalize.c (main): Likewise.
44884         * tests/test-dirent-safer.c (main): Likewise.
44885         * tests/test-dirname.c (main): Likewise.
44886         * tests/test-dup2.c (main): Likewise.
44887         * tests/test-fchdir.c (main): Likewise.
44888         * tests/test-fcntl-h.c (main): Likewise.
44889         * tests/test-fcntl-safer.c (main): Likewise.
44890         * tests/test-fdopendir.c (main): Likewise.
44891         * tests/test-fdutimensat.c (main): Likewise.
44892         * tests/test-fflush.c (main): Likewise.
44893         * tests/test-filenamecat.c (main): Likewise.
44894         * tests/test-filevercmp.c (main): Likewise.
44895         * tests/test-fopen-safer.c (main): Likewise.
44896         * tests/test-fopen.c (main): Likewise.
44897         * tests/test-fpending.c (main): Likewise.
44898         * tests/test-fpurge.c (main): Likewise.
44899         * tests/test-freading.c (main): Likewise.
44900         * tests/test-fstatat.c (main): Likewise.
44901         * tests/test-fsync.c (main): Likewise.
44902         * tests/test-futimens.c (main): Likewise.
44903         * tests/test-getndelim2.c (main): Likewise.
44904         * tests/test-gettimeofday.c (main): Likewise.
44905         * tests/test-getopt.c (main): Likewise.
44906         * tests/test-i-ring.c (main): Likewise.
44907         * tests/test-inttypes.c (main): Likewise.
44908         * tests/test-link.c (main): Likewise.
44909         * tests/test-lstat.c (main): Likewise.
44910         * tests/test-math.c (main): Likewise.
44911         * tests/test-md5.c (main): Likewise.
44912         * tests/test-memchr2.c (main): Likewise.
44913         * tests/test-memrchr.c (main): Likewise.
44914         * tests/test-mkdir.c (main): Likewise.
44915         * tests/test-mkdirat.c (main): Likewise.
44916         * tests/test-mkfifoat.c (main): Likewise.
44917         * tests/test-open.c (main): Likewise.
44918         * tests/test-openat-safer.c (main): Likewise.
44919         * tests/test-openat.c (main): Likewise.
44920         * tests/test-quotearg.c (main): Likewise.
44921         * tests/test-rawmemchr.c (main): Likewise.
44922         * tests/test-readlink.c (main): Likewise.
44923         * tests/test-remove.c (main): Likewise.
44924         * tests/test-rename.c (main): Likewise.
44925         * tests/test-renameat.c (main): Likewise.
44926         * tests/test-rmdir.c (main): Likewise.
44927         * tests/test-sha1.c (main): Likewise.
44928         * tests/test-signal.c (main): Likewise.
44929         * tests/test-sigaction.c (main): Likewise.
44930         * tests/test-stat.c (main): Likewise.
44931         * tests/test-stat-time.c (main): Likewise.
44932         * tests/test-stddef.c (main): Likewise.
44933         * tests/test-stdint.c (main): Likewise.
44934         * tests/test-stdio.c (main): Likewise.
44935         * tests/test-stdlib.c (main): Likewise.
44936         * tests/test-strchrnul.c (main): Likewise.
44937         * tests/test-strerror.c (main): Likewise.
44938         * tests/test-string.c (main): Likewise.
44939         * tests/test-strtod.c (main): Likewise.
44940         * tests/test-strverscmp.c (main): Likewise.
44941         * tests/test-symlink.c (main): Likewise.
44942         * tests/test-symlinkat.c (main): Likewise.
44943         * tests/test-sys_stat.c (main): Likewise.
44944         * tests/test-sys_time.c (main): Likewise.
44945         * tests/test-time.c (main): Likewise.
44946         * tests/test-unistd.c (main): Likewise.
44947         * tests/test-unlink.c (main): Likewise.
44948         * tests/test-unlinkat.c (main): Likewise.
44949         * tests/test-utimens.c (main): Likewise.
44950         * tests/test-utimensat.c (main): Likewise.
44951         * tests/test-version-etc.c (main): Likewise.
44952         * tests/test-wchar.c (main): Likewise.
44953         * tests/test-wctype.c (main): Likewise.
44954         * tests/test-xprintf-posix.c (main): Likewise.
44955         * tests/test-posixtm.c (main): Likewise.
44956         (STREQ): Delete unused macro.
44957         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44958         shadowed variables.
44959         * tests/test-memchr.c (main): Likewise.
44960
44961 2009-10-21  Eric Blake  <ebb9@byu.net>
44962
44963         areadlinkat: avoid failure on older glibc
44964         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44965         rather than mis-comparing 0 against FUNC_RESULT of char*.
44966
44967 2009-10-21  Bruno Haible  <bruno@clisp.org>
44968
44969         * modules/stpncpy (License): Relicense under LGPLv2+.
44970         Reported by David Lutterkort <lutter@redhat.com>.
44971
44972 2009-10-20  Eric Blake  <ebb9@byu.net>
44973
44974         utimensat: work around Solaris 9 bug
44975         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44976         has trailing slash bugs.
44977         * tests/test-lutimens.h (test_lutimens): Enhance test.
44978         * tests/test-utimens.h (test_utimens): Likewise.
44979         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44980         * doc/posix-functions/utimes.texi (utimes): Likewise.
44981         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44982         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44983         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44984         * doc/posix-functions/futimens.texi (futimens): Likewise.
44985
44986         fdutimensat: new module
44987         * modules/fdutimensat: New file.
44988         * lib/fdutimensat.c (fdutimensat): Likewise.
44989         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44990         * MODULES.html.sh (File system functions): Mention module.
44991         * modules/fdutimensat-tests: New test.
44992         * tests/test-fdutimensat.c: Likewise.
44993
44994         doc: regenerate INSTALL
44995         * doc/INSTALL: Reflect recent autoconf update.
44996         * doc/INSTALL.ISO: Likewise.
44997         * doc/INSTALL.UTF-8: Likewise.
44998
44999 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45000
45001         acl: warn if ACL support is not detected
45002         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45003
45004 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45005
45006         * lib/nproc.h: Add extern "C" block for C++.
45007
45008 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45009             Bruno Haible  <bruno@clisp.org>
45010
45011         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45012         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45013         * doc/posix-functions/isalpha.texi: Likewise.
45014         * doc/posix-functions/isblank.texi: Likewise.
45015         * doc/posix-functions/iscntrl.texi: Likewise.
45016         * doc/posix-functions/isdigit.texi: Likewise.
45017         * doc/posix-functions/isgraph.texi: Likewise.
45018         * doc/posix-functions/islower.texi: Likewise.
45019         * doc/posix-functions/isprint.texi: Likewise.
45020         * doc/posix-functions/ispunct.texi: Likewise.
45021         * doc/posix-functions/isspace.texi: Likewise.
45022         * doc/posix-functions/isupper.texi: Likewise.
45023         * doc/posix-functions/isxdigit.texi: Likewise.
45024
45025 2009-10-18  Bruno Haible  <bruno@clisp.org>
45026
45027         Tests for module 'isblank'.
45028         * modules/isblank-tests: New file.
45029         * tests/test-isblank.c: New file.
45030
45031         New module 'isblank'.
45032         * lib/isblank.c: New file.
45033         * m4/isblank.m4: New file.
45034         * modules/isblank: New file.
45035         * doc/posix-functions/isblank.texi: Mention the new module.
45036
45037 2009-10-18  Bruno Haible  <bruno@clisp.org>
45038
45039         New module 'ctype'.
45040         * lib/ctype.in.h: New file.
45041         * m4/ctype.m4: New file.
45042         * modules/ctype: New file.
45043         * doc/posix-headers/ctype.texi: Mention the new module.
45044
45045 2009-10-18  Jim Meyering  <meyering@redhat.com>
45046
45047         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45048         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45049         right after its initialization, rather than farther down.
45050         Keeping these in close proximity makes it easier to ensure
45051         that each such variable is initialized.  E.g.,
45052
45053             LIB_CLOCK_GETTIME=
45054             AC_SUBST([LIB_CLOCK_GETTIME])
45055
45056         This change also increments these serial numbers.
45057         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45058         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45060
45061 2009-10-18  Bruno Haible  <bruno@clisp.org>
45062
45063         Don't let environment variables perturb build.
45064         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45065         (gl_PREREQ_GETHRXTIME): ... not here.
45066
45067 2009-10-18  Bruno Haible  <bruno@clisp.org>
45068
45069         Avoid symlink attack in localcharset module.
45070         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45071         (O_NOFOLLOW): Define fallback.
45072         (get_charset_aliases): Don't open the file if it is a symbolic link.
45073         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45074         gl_FCNTL_H.
45075         (gl_FCNTL_H): Require it.
45076         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45077         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45078         Reported by Fergal Glynn <fglynn@veracode.com>.
45079
45080 2009-10-18  Bruno Haible  <bruno@clisp.org>
45081
45082         Implement nproc for mingw.
45083         * lib/nproc.c: Include <windows.h>
45084         (num_processors): On native Windows platforms, try GetSystemInfo.
45085
45086 2009-10-18  Bruno Haible  <bruno@clisp.org>
45087
45088         Implement nproc for IRIX.
45089         * lib/nproc.c: Include <sys/sysmp.h>.
45090         (num_processors): On IRIX systems, try sysmp.
45091         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45092
45093 2009-10-18  Bruno Haible  <bruno@clisp.org>
45094
45095         Implement nproc for HP-UX.
45096         * lib/nproc.c: Include <sys/pstat.h>
45097         (num_processors): On HP-UX systems, try pstat_getdynamic.
45098         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45099         pstat_getdynamic.
45100
45101 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45102             Bruno Haible  <bruno@clisp.org>
45103
45104         Implement nproc for NetBSD, OpenBSD.
45105         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45106         (ARRAY_SIZE): New macro.
45107         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45108         * m4/nproc.m4: New file.
45109         * modules/nproc (Files): Add m4/nproc.m4.
45110         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45111         (Makefile.am): Instead, augment lib_SOURCES.
45112
45113 2009-10-18  Bruno Haible  <bruno@clisp.org>
45114
45115         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45116         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45117         sys/param.h.
45118
45119 2009-10-16  Eric Blake  <ebb9@byu.net>
45120
45121         utimensat: new module
45122         * modules/utimensat: New file.
45123         * lib/utimensat.c (utimensat): Likewise.
45124         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45125         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45126         so we can work around Linux bugs.
45127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45128         * modules/sys_stat (Makefile.am): Substitute them.
45129         * lib/sys_stat.in.h (utimensat): Declare it.
45130         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45131         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45132         * modules/utimensat-tests: New test.
45133         * tests/test-utimensat.c: Likewise.
45134
45135         utimens: let lutimens work on non-symlinks
45136         * lib/utimens.c (lutimens): Fall back to utimens rather than
45137         failing with ENOSYS, when file is not a symlink.
45138         (utimens): Reduce redirection.
45139         * tests/test-lutimens.h (test_lutimens): Update test to cover
45140         non-symlinks.
45141         * tests/test-utimens.h (test_utimens): Update test to cover
45142         symlinks.
45143         * tests/test-utimens.c (main): Update caller.
45144
45145         utimens: cache whether utimensat syscall works
45146         * lib/utimens.c (utimensat_works_really): New cache variable.
45147         (fdutimens, lutimens): Use it to avoid failing syscall.
45148
45149         test-stat-time, test-utimens: improve portability
45150         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45151         ext4 on alpha, and for cygwin.
45152         * tests/test-utimens-common.h: New file.
45153         (nap): Factor delays into single function.
45154         * tests/test-lutimens.h (test_lutimens): Use new header.
45155         * tests/test-futimens.h (test_futimens): Likewise.
45156         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45157         timestamps to occur from same machine, as was done previously for
45158         test_utimens.
45159         * modules/utimens-tests (Files): Ship new file.
45160         * modules/futimens-tests (Files): Likewise.
45161         Reported in part by Jim Meyering.
45162
45163         sys_stat: sort replacement declarations
45164         * lib/sys_stat.in.h: Sort declarations.
45165         * lib/futimens.c (futimens): Fix typo.
45166
45167 2009-10-15  Jim Meyering  <meyering@redhat.com>
45168
45169         don't let environment settings perturb build
45170         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45171         could cause a configure-time and/or build-time malfunction.
45172         Typically, a configure-time function-in-library test is performed
45173         via code like this:
45174
45175           LIB_VAR=
45176           AC_SUBST([LIB_VAR])
45177           prefix_saved_LIBS=$LIBS
45178             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45179                        [test "$ac_cv_search_FUNC" = "none required" ||
45180                         LIB_VAR=$ac_cv_search_FUNC])
45181           LIBS=$prefix_saved_LIBS
45182
45183         However, in each of the files affected by this change, the LIB_VAR=
45184         initialization was omitted.  Thus, when set in the environment, its
45185         value would propagate into generated Makefiles when FUNC is not found
45186         in LIB_NAME.
45187         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45188         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45190
45191 2009-10-14  Eric Blake  <ebb9@byu.net>
45192
45193         fchdir: avoid infinite recursion in mingw
45194         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45195         recursing.
45196
45197         test-stat-time: port to mingw
45198         * tests/test-stat-time.c (force_unlink): Return a value.
45199         (test_ctime) [W32]: Fix compilation error.
45200         (nap): Don't call usleep with too large an argument.  Use
45201         force_unlink.
45202         * doc/pastposix-functions/usleep.texi (usleep): Document the
45203         portability issue.
45204
45205 2009-10-13  Jim Meyering  <meyering@redhat.com>
45206
45207         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45208         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45209         * modules/pipe-filter-ii: Likewise.
45210         * modules/sys_socket-tests: Likewise.
45211         * modules/tsearch-tests: Likewise.
45212         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45213         (check): Depend on it.
45214
45215 2009-10-12  Eric Blake  <ebb9@byu.net>
45216
45217         utimens-tests: port to NFS file systems
45218         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45219         comparisons to avoid spurious failures from timestamp drift
45220         between NFS machines.
45221
45222 2009-10-12  Eric Blake  <ebb9@byu.net>
45223
45224         stat-time-tests: minor cleanups
45225         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45226         * tests/test-stat-time.c (nap): Separate assignment from call.
45227         Suggested by Paolo Bonzini and Bruno Haible.
45228
45229         sys_stat: guarantee struct timespec
45230         * lib/sys_stat.in.h (includes): Always include <time.h>
45231         * modules/sys_stat (Depends-on): Add time.
45232         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45233         mode_t permission values.
45234         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45235         get at subsecond timestamps.
45236
45237 2009-10-10  Eric Blake  <ebb9@byu.net>
45238
45239         futimens: new module
45240         * modules/futimens: New file.
45241         * lib/futimens.c (futimens): Likewise.
45242         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45243         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45244         we can work around Linux bugs.
45245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45246         * modules/sys_stat (Makefile.am): Substitute them.
45247         * lib/sys_stat.in.h (futimens): Declare it.
45248         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45249         * doc/posix-functions/futimens.texi (futimens): Likewise.
45250         * modules/futimens-tests: New test.
45251         * tests/test-futimens.c: Likewise.
45252
45253         utimens: introduce fdutimens
45254         * lib/utimens.h (fdutimens): New prototype.
45255         * lib/utimens.c (gl_futimens): Move guts...
45256         (fdutimens): ...to new interface.
45257         * tests/test-utimens.c (do_fdutimens): Use it.
45258
45259         utimens: add UTIME_NOW and UTIME_OMIT support
45260         * lib/utimens.c (validate_timespec, update_timespec): New helper
45261         functions.
45262         (gl_futimens, lutimens): Use them.
45263         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45264         stdbool, sys_stat.
45265         (Link): Mention resulting library dependency.
45266         * modules/utimecmp (Link): Likewise.
45267         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45268         (Makefile.am): Pick up library dependency.
45269         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45270         definition.
45271         * tests/test-sys_stat.c: Test the definitions.
45272         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45273         * NEWS: Document library dependency.
45274
45275         utimecmp: support symlink timestamps
45276         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45277         hashing when possible.  Use pathconf when available.
45278         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45279         * modules/utimecmp (Depends-on): Add lstat.
45280
45281         utimens: add lutimens interface
45282         * lib/utimens.c (lutimens): New function.
45283         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45284         * lib/utimens.h (lutimens): Declare new interface.
45285         * tests/test-utimens.c (main): Enhance test.
45286         * tests/test-lutimens.h (test_lutimens): New file.
45287         * modules/utimens-tests (Files): Distribute it.
45288         (Depends-on): Add symlink.
45289         (configure.ac): Check for usleep.
45290
45291         utimens: validate futimens usage
45292         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45293         fewer syscalls on failure later on.  Avoid compiler warning on
45294         mingw.
45295         * modules/utimens (Depends-on): Add dup2.
45296
45297         utimens: add test
45298         * modules/utimens-tests: New test.
45299         * tests/test-utimens.h: New file.
45300         * tests/test-futimens.h: Likewise.
45301         * tests/test-utimens.c: Likewise.
45302
45303         doc: mention timestamp portability issues
45304         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45305         instead.
45306         * doc/posix-functions/utime.texi (utime): Likewise.
45307         * doc/posix-functions/utimes.texi (utimes): Likewise.
45308         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45309         instead.
45310         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45311         module.
45312         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45313         Mention weakness with symlink timestamps.
45314         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45315         to utimensat/futimens instead.
45316         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45317
45318         test-dup2: enhance test
45319         * tests/test-dup2.c (main): Also check AT_FDCWD.
45320
45321         test-stat-time: avoid more spurious failures
45322         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45323         xfs; and avoid race if the two timestamps cross quantization edge.
45324
45325         relocatable: prefer 'file system' over 'filesystem'
45326         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45327         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45328         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45329         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45330         * lib/relocatable.c (compute_curr_prefix): Likewise.
45331
45332 2009-10-10  Jim Meyering  <meyering@redhat.com>
45333
45334         stat-time-tests: check for the usleep function
45335         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45336
45337 2009-10-10  Bruno Haible  <bruno@clisp.org>
45338
45339         * modules/xnanosleep: Put the Link section after the Include section.
45340
45341 2009-10-09  Eric Blake  <ebb9@byu.net>
45342
45343         dup2: work around FreeBSD 6.1 bug
45344         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45345         * doc/posix-functions/dup2.texi (dup2): Document it.
45346         Reported by Nelson H. F. Beebe and Jim Meyering.
45347
45348         test-stat-time: port to buggy NFS clients
45349         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45350         (test_ctime): Also skip test if mtime and ctime are skewed.
45351
45352         maint: prefer 'file system' over 'filesystem'
45353         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45354         * doc/posix-functions/lstat.texi (lstat): Likewise.
45355         * lib/file-has-acl.c (file_has_acl): Likewise.
45356         * lib/fwriteerror.c [TEST]: Likewise.
45357         * tests/test-areadlink.h (test_areadlink): Likewise.
45358         * tests/test-areadlinkat-with-size.c (main): Likewise.
45359         * tests/test-areadlinkat.c (main): Likewise.
45360         * tests/test-canonicalize-lgpl.c (main): Likewise.
45361         * tests/test-canonicalize.c (main): Likewise.
45362         * tests/test-fstatat.c (main): Likewise.
45363         * tests/test-linkat.c (main): Likewise.
45364         * tests/test-lstat.h (test_lstat_func): Likewise.
45365         * tests/test-mkdir.h (test_mkdir): Likewise.
45366         * tests/test-readlink.h (test_readlink): Likewise.
45367         * tests/test-remove.c (main): Likewise.
45368         * tests/test-rename.h (test_rename): Likewise.
45369         * tests/test-renameat.c (main): Likewise.
45370         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45371         * tests/test-symlink.h (test_symlink): Likewise.
45372         * tests/test-symlinkat.c (main): Likewise.
45373         * tests/test-unlink.h (test_unlink_func): Likewise.
45374         * tests/test-unlinkat.c (main): Likewise.
45375
45376         maint: make realtime library usage explicit
45377         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45378         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45379         * modules/settime (Link): Likewise.
45380         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45381
45382         test-stat-time: speed up execution
45383         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45384         warning on mingw.
45385         (nap): New helper function.
45386         (prepare_test): Use it to reduce sleep time.
45387         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45388         execution.
45389         * modules/stat-time-tests (configure.ac): Check for usleep.
45390
45391 2009-10-09  Jim Meyering  <meyering@redhat.com>
45392
45393         selinux-h: always use getfilecon wrappers
45394         * lib/getfilecon.c: New file.
45395         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45396         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45397         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45398         (fgetfilecon): Provide a stub.
45399         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45400         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45401         file unconditionally.
45402         When <selinux/selinux.h> is found, arrange to use wrappers.
45403         * modules/selinux-h (Files): Add getfilecon.c.
45404         (Makefile.am): Substitute include-next-related bits
45405         into the now-always-generated selinux/selinux.h file.
45406         * doc/glibc-functions/lgetfilecon.texi: New file.
45407         * doc/glibc-functions/fgetfilecon.texi: New file.
45408         * doc/glibc-functions/getfilecon.texi: New file.
45409         * doc/glibc-functions/getfilecon-desc.texi: New file.
45410         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45411         which to pull in the new files.
45412         * MODULES.html.sh (Misc): Add selinux-h.
45413
45414 2009-10-08  Jim Meyering  <meyering@redhat.com>
45415
45416         unistd: fix comment typo
45417         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45418
45419 2009-10-08  Eric Blake  <ebb9@byu.net>
45420
45421         areadlink: use SIZE_MAX consistently
45422         * modules/areadlink (Depends-on): Add stdint.
45423         * modules/areadlink-with-size (Depends-on): Likewise.
45424         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45425         gives NULL; drop sys/types, since unistd gives size_t; and add
45426         stdint for SIZE_MAX.
45427         (SIZE_MAX): Rely on headers.
45428         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45429         and add stdint.
45430         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45431         (SIZE_MAX): Likewise.
45432         (INITIAL_BUF_SIZE): Turn into enum.
45433         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45434
45435 2009-10-08  Jim Meyering  <meyering@redhat.com>
45436
45437         areadlinkat: avoid compilation failure
45438         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45439         Fix typo in comment.
45440
45441 2009-10-07  Eric Blake  <ebb9@byu.net>
45442
45443         areadlinkat-with-size: new module
45444         * modules/areadlinkat-with-size: New module.
45445         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45446         * lib/areadlink.h (areadlinkat): Declare it.
45447         * MODULES.html.sh (File system functions): Mention it.
45448         * modules/areadlinkat-with-size-tests: New test.
45449         * tests/test-areadlinkat-with-size.c: New file.
45450
45451         xreadlinkat: new module
45452         * modules/xreadlinkat: New module.
45453         * lib/xreadlinkat.c (xreadlinkat): New file.
45454         * lib/xreadlink.h (xreadlinkat): Declare it.
45455         * MODULES.html.sh (File system functions): Mention it.
45456
45457         areadlinkat: new module
45458         * lib/at-func.c (FUNC_FAIL): New define.
45459         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45460         * modules/areadlinkat: New module.
45461         * lib/linkat.c (areadlinkat): Move...
45462         * lib/areadlinkat.c (areadlinkat): ...to new file.
45463         * lib/areadlink.h (areadlinkat): Declare it.
45464         * modules/linkat (Depends-on): Add areadlinkat.
45465         * MODULES.html.sh (File system functions): Mention it.
45466         * modules/areadlinkat-tests: New test.
45467         * tests/test-areadlinkat.c: New file.
45468
45469         areadlink, areadlink-with-size: add tests
45470         * modules/areadlink-tests: New test.
45471         * modules/areadlink-with-size-tests: Likewise.
45472         * tests/test-areadlink.h: New file.
45473         * tests/test-areadlink.c: Likewise.
45474         * tests/test-areadlink-with-size.c: Likewise.
45475
45476         maint: minor cleanups
45477         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45478         _UNUSED_PARAMETER_ instead.
45479         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45480         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45481         * modules/linkat-tests (Files): Distribute test-link.h.
45482
45483         openat, utimens: whitespace cleanup
45484         * lib/openat.c: Prefer space throughout, rather than mix of 8
45485         spaces vs. tabs.
45486         * lib/at-func.c: Likewise.
45487         * lib/utimens.c: Likewise.
45488
45489         openat: avoid using wrong fd
45490         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45491         working directory chooses same fd.
45492         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45493
45494         mkdir, mkdirat: fix cygwin 1.5.x bug
45495         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45496         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45497         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45498         bug.
45499         (gl_PREREQ_MKDIR): Delete unused macro.
45500         * modules/mkdir (Files): Track file rename.
45501         (configure.ac): Update macro name.
45502         * modules/openat (Depends-on): Add mkdir.
45503         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45504
45505         mkdir, mkdirat: add tests
45506         * modules/mkdir-tests: New test.
45507         * tests/test-mkdir.h: New file.
45508         * tests/test-mkdir.c: Likewise.
45509         * tests/test-mkdirat.c: Likewise.
45510         * modules/openat-tests (Files): Add new files.
45511         (Makefile.am): Run new test.
45512
45513 2009-10-06  Eric Blake  <ebb9@byu.net>
45514
45515         doc: tweak *at function documentation
45516         * doc/posix-functions/faccessat.texi (faccessat): Mention
45517         known issue with replacement.
45518         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45519         * doc/posix-functions/linkat.texi (linkat): Likewise.
45520         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45521         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45522         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45523         * doc/posix-functions/renameat.texi (renameat): Likewise.
45524         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45525
45526         openat: fix GNU/Hurd bug in unlinkat
45527         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45528         broken.
45529         * doc/posix-functions/unlink.texi (unlink): Document this.
45530         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45531
45532         fdopendir: fix GNU/Hurd bug
45533         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45534         allowing non-directory fds.
45535         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45536         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45537         * modules/dirent (Makefile.am): Substitute it.
45538         * lib/dirent.in.h (fdopendir): Declare replacement.
45539         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45540         * tests/test-fdopendir.c (main): Test something other than
45541         /dev/null, since on Hurd that behaves like a directory.
45542
45543         test-symlink: port to GNU/Hurd
45544         * tests/test-symlink.h (test_symlink): Relax expected errno.
45545
45546         doc: tweak more cygwin information
45547         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45548         now compatible with glibc.
45549         * doc/posix-functions/getopt.texi (getopt): Likewise.
45550
45551         getopt-gnu: add another test
45552         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45553         guarantee behavior relied on by m4.
45554         * tests/test-getopt.c (main): Use it.
45555         * modules/getopt-posix-tests (Depends-on): Add setenv.
45556         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45557
45558         getopt: fix compilation on darwin
45559         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45560         include.
45561         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45562         Reported by Ludovic Courtès.
45563
45564 2009-10-06  Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/size_max (Description): Discourage its use.
45567         Reported by Simon Josefsson.
45568
45569 2009-10-06  Jim Meyering  <meyering@redhat.com>
45570
45571         linkat: avoid compilation failure
45572         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45573
45574 2009-10-05  Eric Blake  <ebb9@byu.net>
45575
45576         linkat: support Linux 2.6.17
45577         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45578         linkat on Linux, but allow cache variable override.
45579         * lib/linkat.c (rpl_linkat): Define override.
45580         * modules/linkat (Depends-on): Add symlinkat.
45581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45582         * modules/unistd (Makefile.am): Substitute it.
45583         * lib/unistd.in.h (linkat): Declare replacement.
45584         Reported by Pádraig Brady.
45585
45586         quotearg: port test to systems with C.UTF-8 locale
45587         * tests/test-quotearg.c (struct result_strings): Add another
45588         member, differentiating between C.ASCII and C.UTF-8 handling.
45589         (compare_strings): Add parameter.
45590         (main): Adjust all callers.
45591
45592         getopt: avoid clash with FreeBSD _getopt_internal
45593         * lib/getopt.in.h (_getopt_internal): Override the name.
45594         * lib/getopt_int.h (includes): Pick up any overrides.
45595         Reported by Reuben Thomas.
45596
45597         hash: allow C89 compilation
45598         * lib/hash.c (check_tuning): Move declaration before statement.
45599         Reported by Reuben Thomas.
45600
45601 2009-10-05  Karl Berry  <karl@gnu.org>
45602
45603         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45604
45605 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45606             Bruno Haible  <bruno@clisp.org>
45607
45608         * lib/uname.c (uname): Use a table-driven algorithm to compute
45609         Windows NT versions.
45610
45611 2009-10-04  Bruno Haible  <bruno@clisp.org>
45612
45613         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45614         program_invocation_short_name.
45615         * modules/progname (configure.ac): Test for presence of
45616         program_invocation_short_name.
45617         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45618
45619 2009-10-04  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/progname.c (set_program_name): Fix comment.
45622         Reported by Jim Meyering.
45623
45624 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45625             Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/uname.c: Include <string.h>.
45628         (uname): Do only one call to GetVersionEx in the common case.
45629
45630 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45631             Bruno Haible  <bruno@clisp.org>
45632
45633         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45634         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45635         (uname): Add support for Windows CE and various non-x86 CPU types.
45636
45637 2009-10-03  Bruno Haible  <bruno@clisp.org>
45638
45639         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45640         invocation to tests/configure.ac.
45641         Reported by Ian Beckwith <ianb@erislabs.net>.
45642
45643 2009-10-02  Eric Blake  <ebb9@byu.net>
45644
45645         fchdir: avoid compiler warning
45646         * lib/fchdir.c (canonicalize_file_name)
45647         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45648
45649         test-open: support mingw errno values
45650         * tests/test-open.h (test_open): Relax test.
45651         * tests/test-fopen.h (test_fopen): Likewise.
45652         * tests/test-openat-safer.c (main): Likewise.
45653
45654         open: fix opening directory on mingw
45655         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45656
45657         test-open: on GNU/Hurd, /dev/null is a directory
45658         * tests/test-fopen.h (main): Rename...
45659         (test_fopen): ...to this.  Use a guaranteed non-directory when
45660         confirming open behavior on trailing slash.
45661         * tests/test-openat-safer.c (main): Likewise.
45662         * tests/test-open.h (main): Likewise....
45663         (test_open): ...to this.
45664         * tests/test-fopen.c (main): Adjust caller.
45665         * tests/test-fopen-safer.c (main): Likewise.
45666         * tests/test-open.c (main): Likewise.
45667         * tests/test-fcntl-safer.c (main): Likewise.
45668         Reported by Samuel Thibault.
45669
45670         rename, fchdir: don't ignore chdir failure
45671         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45672         * lib/rename.c (rpl_rename) [W32]: Likewise.
45673         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45674         an empty destination directory if source cannot be renamed,
45675         although there is still possibility for failure.
45676         * doc/posix-functions/rename.texi (rename): Document the race.
45677         Reported by Jim Meyering.
45678
45679         maint: cleanup whitespace in recent commits
45680         * lib/rename.c (rpl_rename): Remove tabs.
45681         * tests/test-link.h (test_link): Likewise.
45682         * lib/fchdir.c (get_name): Likewise.
45683         Reported by Jim Meyering.
45684
45685 2009-10-02  Ben Pfaff  <blp@gnu.org>
45686
45687         relocatable-prog-wrapper: Add missing dependency on
45688         double-slash-root.
45689         * modules/relocatable-prog-wrapper: Add dependency.
45690         Reported by Ian Beckwith <ianb@erislabs.net>.
45691
45692 2009-10-02  Eric Blake  <ebb9@byu.net>
45693
45694         renameat: fix Solaris bugs
45695         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45696         needed fixing.
45697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45698         * modules/stdio (Makefile.am): Substitute it.
45699         * lib/stdio.in.h (renameat): Declare replacement.
45700         * lib/renameat.c (rpl_renameat): Implement fix.
45701
45702         renameat: new module
45703         * modules/renameat: New file.
45704         * lib/renameat.c (renameat): Likewise.
45705         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45707         * modules/stdio (Makefile.am): Substitute them.
45708         * lib/stdio.in.h (renameat): Declare it.
45709         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45710         * doc/posix-functions/renameat.texi (renameat): Likewise.
45711         * modules/renameat-tests: New test.
45712         * tests/test-renameat.c: Likewise.
45713
45714         rename: fix mingw bugs
45715         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45716         directory overwrite bugs.
45717
45718         rename: fix another cygwin 1.5 bug
45719         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45720         checks.
45721         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45722         unnecessary cygwin workarounds.  Also work around bug with moving
45723         full directory onto an empty one.
45724         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45725
45726         rename-dest-slash: merge into rename module
45727         * modules/rename-dest-slash (Status): Mark obsolete.
45728         (Depends-on): Add rename.
45729         (Files): Let rename do it all.
45730         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45731         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45732         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45733         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45734         * lib/rename.c (rpl_rename): Update comments.
45735
45736         rename: fix cygwin 1.5.x bugs
45737         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45738         * lib/rename.c (rpl_rename): Work around them.
45739         * modules/rename (Depends-on): Add same-inode.
45740
45741         rename: fix Solaris 10 bug
45742         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45743         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45744         was the only bug.
45745
45746         rename: fix Solaris 9 bug
45747         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45748         on non-directory.  Avoid calling exit.
45749         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45750         strdup.
45751         * modules/rename-tests (Depends-on): Drop lstat.
45752         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45753         (gl_PREREQ_RENAME): Delete unused macro.
45754
45755         rename-dest-slash: fix NetBSD bug
45756         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45757         links.
45758         * modules/rename-dest-slash (Depends-on): Add same-inode.
45759
45760         rename-tests: new test, exposes several platform bugs
45761         * modules/rename-tests: New file.
45762         * tests/test-rename.h: Likewise.
45763         * tests/test-rename.c: Likewise.
45764         * doc/posix-functions/rename.texi (rename): Improve documentation,
45765         including bugs that will eventually be fixed in gnulib.
45766
45767 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45768
45769         * lib/uname.c: Include <stdlib.h>
45770         (uname): Assume version info is available.
45771
45772 2009-10-02  Jim Meyering  <meyering@redhat.com>
45773
45774         gnu-web-doc-update: correct --help output
45775         * build-aux/gnu-web-doc-update: Make --help output relevant.
45776
45777         gnu-web-doc-update: add standard options
45778         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45779
45780         gnu-web-doc-update: New module.
45781         Use this script to automatically update the on-line web documentation
45782         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45783         * modules/gnu-web-doc-update: New file, from coreutils.
45784         * build-aux/gnu-web-doc-update: New script.
45785
45786 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45787
45788         link: LoadLibrary is not needed.
45789         * lib/link.c: Use GetModuleHandle.
45790
45791 2009-10-01  Eric Blake  <ebb9@byu.net>
45792
45793         getopt: bump serial number
45794         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45795         change.
45796
45797         tests: tighten link, rmdir, and remove tests
45798         * tests/test-link.h (includes): No need to use <config.h> here.
45799         Clean up if directory hard link was created, otherwise test for
45800         trailing '.'.
45801         * tests/test-linkat.c (main): Simplify.
45802         * tests/test-remove.c (main): Enhance test for trailing '.'.
45803         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45804
45805 2009-10-01  Jim Meyering  <meyering@redhat.com>
45806
45807         maint.mk: requiring "make major" was annoying, for a "minor" release.
45808         What is intended is "stable", to contrast with alpha and beta,
45809         so require "make stable", not "make major".
45810         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45811         (get_tool_versions): Likewise.
45812         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45813
45814 2009-09-30  Ben Pfaff  <blp@gnu.org>
45815
45816         Fix broken build of replacement for Windows tmpfile().
45817         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45818         flags argument added along with the 'mkostemp' module.
45819
45820 2009-09-28  Bruno Haible  <bruno@clisp.org>
45821
45822         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45823         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45824         to 'remove_elt'.
45825         (gl_list_remove): Update.
45826         * lib/gl_list.c (gl_list_remove): Update.
45827         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45828         to 'remove_elt'.
45829         (gl_oset_remove): Update.
45830         * lib/gl_list.c (gl_oset_remove): Update.
45831         Reported by Eric Blake.
45832
45833 2009-09-28  Eric Blake  <ebb9@byu.net>
45834
45835         doc: mention yet more cygwin 1.7 status
45836         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45837         cygwin.
45838         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45839         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45840
45841         argp: fix test failure
45842         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45843         that are not upper-case.  Pass correct range to tolower.
45844
45845 2009-09-27  Jim Meyering  <meyering@redhat.com>
45846
45847         test-yesno: work around sparc-dash here-document infelicity
45848         Without this change, the literal \177 byte in a here document
45849         would make dash 0.5.5.1-3 access uninitialized memory.
45850         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45851         Instead, use a marker, "@", and filter through tr to create the desired
45852         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45853
45854 2009-09-27  Bruno Haible  <bruno@clisp.org>
45855
45856         Disable untested support for new flavours of ACLs on AIX.
45857         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45858         progress.
45859         * lib/set-mode-acl.c (qset_acl): Likewise.
45860
45861 2008-12-07  Bruno Haible  <bruno@clisp.org>
45862
45863         Add support for new flavours of ACLs on AIX. (Untested.)
45864         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45865         (file_has_acl): Add support for newer AIX.
45866         * lib/set-mode-acl.c (qset_acl): Likewise.
45867         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45868         Rainer Tammer <tammer@tammer.net>.
45869
45870 2009-09-26  Eric Blake  <ebb9@byu.net>
45871
45872         argp: fix compilation of getopt
45873         * lib/getopt.in.h (includes): Use different guard than glibc.
45874         Reported by Sergey Poznyakoff.
45875
45876         doc: mention more cygwin 1.7 status
45877         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45878         bug.
45879         * doc/posix-functions/execl.texi (execl): Likewise.
45880         * doc/posix-functions/execle.texi (execle): Likewise.
45881         * doc/posix-functions/execlp.texi (execlp): Likewise.
45882         * doc/posix-functions/execv.texi (execv): Likewise.
45883         * doc/posix-functions/execve.texi (execve): Likewise.
45884         * doc/posix-functions/execvp.texi (execvp): Likewise.
45885         * doc/glibc-functions/canonicalize_file_name.texi
45886         (canonicalize_file_name): Cygwin 1.7 now provides this.
45887         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45888         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45889         on AT_SYMLINK_NOFOLLOW.
45890
45891 2009-09-24  Eric Blake  <ebb9@byu.net>
45892
45893         test-linkat: make test more robust
45894         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45895
45896         getopt: fix inclusion guards for cygwin
45897         * modules/getopt-posix (Depends-on): Add include-next.
45898         (Makefile.am): Substitute more items in replacement header.
45899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45900         <getopt.h>.
45901         * lib/getopt.in.h (includes): Use split inclusion guard, and
45902         prefer <getopt.h> over include <unistd.h> when one is present.
45903         (option): Also override name of 'struct option'.
45904
45905         same-inode: revert prior change; it is not yet ready
45906         * NEWS: Undo mention of this change.
45907         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45908         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45909         * lib/cycle-check.c (cycle_check): Likewise.
45910         * lib/same.c (same_name): Likewise.
45911         * lib/at-func2.c (at_func2): Likewise.
45912
45913 2009-09-23  Eric Blake  <ebb9@byu.net>
45914
45915         linkat: new module
45916         * modules/linkat: New file.
45917         * lib/at-func2.c (at_func2): Likewise.
45918         * lib/linkat.c (linkat): Likewise.
45919         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45920         * lib/openat-priv.h (at_func2): Add declaration.
45921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45922         * modules/unistd (Makefile.am): Substitute them.
45923         * lib/unistd.in.h (linkat): Declare it.
45924         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45925         * doc/posix-functions/linkat.texi (linkat): Likewise.
45926         * doc/posix-functions/link.texi (link): Tweak wording.
45927         * tests/test-link.c (main): Move guts...
45928         * tests/test-link.h (test_link): ...into new file.
45929         * modules/linkat-tests: New test.
45930         * tests/test-linkat.c: Likewise.
45931         * modules/link-tests (Files): Ship new file.
45932         (Depends-on): Add stdbool.
45933
45934         dirname: add library-safe mdir_name
45935         * lib/dirname.h (mdir_name): New prototype.
45936         * lib/dirname.c (dir_name): Move guts...
45937         (mdir_name): ...to new function that avoids xalloc_die.
45938
45939         fchdir: another mingw fix
45940         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45941         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45942         on mingw (where it has not yet been ported), and make it optional
45943         elsewhere.
45944         (_gl_register_fd): Use it.
45945
45946         same-inode: make SAME_INODE tri-state, to port to mingw
45947         * NEWS: Mention this change.
45948         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45949         st_ino always being 0.
45950         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45951         * lib/cycle-check.c (cycle_check): Likewise.
45952         * lib/same.c (same_name): Likewise.
45953
45954         lstat: avoid mingw compilation error
45955         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45956         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45957         lstat ourselves.
45958         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45959         was adequate.
45960         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45961         the checks for lstat.
45962         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45963
45964         link: fix test failure on Solaris 9
45965         * lib/link.c (rpl_link): Don't assume link will catch bogus
45966         trailing slash on source.
45967
45968         test-symlinkat: enhance test
45969         * tests/test-readlink.c (main): Move guts...
45970         * tests/test-readlink.h (test_readlink): ...into new file.
45971         * tests/test-symlink.c (main): Move guts...
45972         * tests/test-symlink.h (test_symlink): ...into new file.
45973         * tests/test-symlinkat.c (main): Use new files for further
45974         coverage.
45975         (do_symlink, do_readlink): New helper functions.
45976         * modules/symlink-tests (Files): Ship new file.
45977         (Depends-on): Add stdbool.
45978         * modules/readlink-tests (Files): Ship new file.
45979         (Depends-on): Add stdbool.
45980         * modules/symlinkat-tests (Files): Use new files.
45981
45982 2009-09-23  Eric Blake  <ebb9@byu.net>
45983
45984         readlink: document portability issue with symlink length
45985         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45986         systems have bogus st_size on symlinks, and mention the
45987         areadlink-with-size module.
45988         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45989         * doc/posix-functions/readlink.texi (readlink): Mention the
45990         areadlink module, and ERANGE failure.
45991         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45992         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45993
45994         readlink: fix Solaris 9 bug with trailing slash
45995         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45996         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45997         * doc/posix-functions/readlink.texi (readlink): Document this.
45998         * modules/readlink-tests: New test.
45999         * tests/test-readlink.c: Likewise.
46000
46001         readlink: fix cygwin 1.5.x bug with return type
46002         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46003         * lib/unistd.in.h (readlink): Use ssize_t.
46004         * lib/readlink.c (readlink): Likewise.
46005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46006         * modules/unistd (Makefile.am): Substitute it.
46007         * lib/unistd.in.h (readlink): Declare replacement.
46008         * doc/posix-functions/readlink.texi (readlink): Document this.
46009
46010         symlink: use throughout gnulib
46011         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46012         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46013         symlink is not used.
46014         * modules/symlinkat (Depends-on): Add symlink.
46015         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46016         * modules/canonicalize-tests (Depends-on): Likewise.
46017         * modules/lstat-tests (Depends-on): Likewise.
46018         * modules/openat-tests (Depends-on): Likewise.
46019         * modules/remove-tests (Depends-on): Likewise.
46020         * modules/rmdir-tests (Depends-on): Likewise.
46021         * modules/unlink-tests (Depends-on): Likewise.
46022         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46023         * tests/test-canonicalize.c (symlink): Likewise.
46024         * tests/test-fstatat.c (symlink): Likewise.
46025         * tests/test-lstat.c (symlink): Likewise.
46026         * tests/test-remove.c (symlink): Likewise.
46027         * tests/test-rmdir.c (symlink): Likewise.
46028         * tests/test-unlink.c (symlink): Likewise.
46029         * tests/test-unlinkat.c (symlink): Likewise.
46030
46031         symlink: new module, for Solaris 9 bug
46032         * modules/symlink: New file.
46033         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46034         * lib/symlink.c: Likewise.
46035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46036         * modules/unistd (Makefile.am): Substitute them.
46037         * lib/unistd.in.h (symlink): Declare replacement.
46038         * MODULES.html.sh (File system functions): Mention it.
46039         * doc/posix-functions/symlink.texi (symlink): Likewise.
46040         * modules/symlink-tests: New test.
46041         * tests/test-symlink.c: Likewise.
46042
46043 2009-09-23  Bruno Haible  <bruno@clisp.org>
46044
46045         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46046         when needed.
46047         Test case: gnulib-tool --import --with-tests atexit inttypes.
46048         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46049
46050 2009-09-23  Bruno Haible  <bruno@clisp.org>
46051
46052         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46053         subcommand, not in a subshell.
46054
46055 2009-09-22  Eric Blake  <ebb9@byu.net>
46056
46057         unistd: sort replacement declarations
46058         * lib/unistd.in.h: Sort declarations.
46059
46060         open, openat: minor optimization
46061         * lib/open.c (open): If open succeeded, len is non-zero.
46062         * lib/openat.c (rpl_openat): Likewise.
46063
46064         link-follow: ensure correct result
46065         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46066         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46067         distinguish between possible failures.
46068
46069 2009-09-21  Eric Blake  <ebb9@byu.net>
46070
46071         fts: avoid compiler warning
46072         * lib/fts.c (dirent_inode_sort_may_be_useful)
46073         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46074
46075 2009-09-19  Bruno Haible  <bruno@clisp.org>
46076
46077         * lib/progreloc.c (canonicalize_file_name): New declaration.
46078
46079 2009-09-19  Eric Blake  <ebb9@byu.net>
46080
46081         link: fix quoting
46082         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46083
46084         openat: fix openat bugs on Solaris 9
46085         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46086         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46087         * modules/openat (Depends-on): Add open.
46088         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46089         * modules/fcntl-h (Makefile.am): Substitute it.
46090         * lib/fcntl.in.h (openat): Declare replacement.
46091         * doc/posix-functions/openat.texi (openat): Document this.
46092
46093         openat: move fstatat and unlinkat into correct files
46094         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46095         compiled.
46096         * lib/openat.c (fstatat, unlinkat): Move...
46097         * lib/fstatat.c (fstatat): ...into correct files.
46098         * lib/unlinkat.c (unlinkat): Likewise.
46099
46100         openat: fix unlinkat bugs on Solaris 9
46101         * lib/unlinkat.c (unlinkat): New file.
46102         * modules/openat (Depends-on): Add unlink.
46103         (Files): Distribute it.
46104         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46105         trailing slash behavior is broken.
46106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46107         * modules/unistd (Makefile.am): Substitute it.
46108         * lib/unistd.in.h (unlinkat): Declare replacement.
46109         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46110
46111         openat: fix fstatat bugs on Solaris 9
46112         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46113         stat.
46114         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46115
46116         test-unlinkat: enhance test, to expose Solaris 9 bug
46117         * tests/test-unlink.c (main): Factor guts...
46118         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46119         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46120         * tests/test-rmdir.c (main): Adjust caller.
46121         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46122         (unlinker): New helper function.
46123         (rmdirat): Enhance check.
46124         * modules/rmdir-tests (Depends-on): Add stdbool.
46125         * modules/unlink-tests (Depends-on): Likewise.
46126         (Files): Add test-unlink.h.
46127         * modules/openat-tests (Files): Likewise.
46128         (Depends-on): Add unlinkdir.
46129
46130         test-fstatat: new test, to expose Solaris 9 bugs
46131         * tests/test-stat.c (main): Factor guts...
46132         * tests/test-stat.h (test_stat_func): ...into new file.
46133         * tests/test-lstat.c (main): Factor guts...
46134         * tests/test-lstat.h (test_lstat_func): ...into new file.
46135         * tests/test-fstatat.c: New file.
46136         * modules/stat-tests (Files): Add test-stat.h.
46137         * modules/lstat-tests (Files): Add test-lstat.h.
46138         (Depends-on): Add stdbool.
46139         * modules/openat-tests (Depends-on): Add pathmax.
46140         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46141         (Makefile.am): Run new test.
46142
46143         remove: new module, for mingw and Solaris 9 bugs
46144         * modules/remove: New file.
46145         * lib/remove.c: Likewise.
46146         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46148         * modules/stdio (Makefile.am): Use them.
46149         * lib/stdio.in.h (remove): Declare replacement.
46150         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46151         * doc/posix-functions/remove.texi (remove): Likewise.
46152         * modules/remove-tests: New test.
46153         * tests/test-remove.c: Likewise.
46154
46155         unlink: new module, for Solaris 9 bug
46156         * modules/unlink: New file.
46157         * lib/unlink.c: Likewise.
46158         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46160         * modules/unistd (Makefile.am): Use them.
46161         * lib/unistd.in.h (stat): Declare replacement.
46162         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46163         * doc/posix-functions/unlink.texi (unlink): Likewise.
46164         * modules/unlink-tests: New test.
46165         * tests/test-unlink.c: Likewise.
46166
46167         lstat: fix Solaris 9 bug
46168         * lib/lstat.c (lstat): Also check for trailing slash on
46169         non-symlink, non-directories.  Use stat module to simplify logic.
46170         * doc/posix-functions/lstat.texi (lstat): Document it.
46171         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46172         (configure.ac): Check for symlink.
46173         * tests/test-lstat.c (main): Add more tests.
46174
46175         stat: add as dependency to other modules
46176         * modules/chown (Depends-on): Add stat.
46177         * modules/euidaccess (Depends-on): Likewise.
46178         * modules/fchdir (Depends-on): Likewise.
46179         * modules/isdir (Depends-on): Likewise.
46180         * modules/link (Depends-on): Likewise.
46181         * modules/lstat (Depends-on): Likewise.
46182         * modules/mkdir-p (Depends-on): Likewise.
46183         * modules/modechange (Depends-on): Likewise.
46184         * modules/open (Depends-on): Likewise.
46185         * modules/readlink (Depends-on): Likewise.
46186         * modules/same (Depends-on): Likewise.
46187
46188         stat: fix Solaris 9 bug
46189         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46190         slash.
46191         * lib/stat.c (rpl_stat): Work around it.
46192         * doc/posix-functions/stat.texi (stat): Update documentation.
46193
46194         stat: new module, for mingw bug
46195         * modules/stat: New file.
46196         * lib/stat.c: Likewise.
46197         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46199         * modules/sys_stat (Makefile.am): Use them.
46200         * lib/sys_stat.in.h (stat): Declare replacement.
46201         * lib/openat.c (fstatat): Deal with lstat and stat being function
46202         macros.
46203         * modules/openat (Depends-on): Add inline.
46204         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46205         * doc/posix-functions/stat.texi (stat): Likewise.
46206         * modules/stat-tests: New test.
46207         * tests/test-stat.c: Likewise.
46208
46209 2009-09-19  Jim Meyering  <meyering@redhat.com>
46210
46211         syntax-check: detect unnecessary inclusion of canonicalize.h
46212         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46213
46214 2009-09-19  Eric Blake  <ebb9@byu.net>
46215
46216         canonicalize-lgpl: adjust clients to use correct header
46217         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46218         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46219         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46220         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46221         * lib/progreloc.c (includes): Likewise.
46222
46223 2009-09-19  Jim Meyering  <meyering@redhat.com>
46224
46225         test-posixtm.c: correct a comment
46226         * tests/test-posixtm.c: Correct first-line comment.
46227         Spotted by Eric Blake.
46228
46229 2009-09-16  Jim Meyering  <meyering@redhat.com>
46230
46231         posixtm-tests: make T const-correct; add a test case
46232         * tests/test-posixtm.c (T): Declare const.
46233         Add a test for -(2^31+1).
46234         Remove useless can-succeed-only-in-2002 test.
46235
46236         posixtm-tests: adjust the sole failing test
46237         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46238         expected output matches what mktime now produces.  Cross-checked via
46239         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46240
46241         posixtm: move #ifdef'd tests into a new module
46242         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46243         * tests/test-posixtm.c: ... this new file.
46244         * modules/posixtm-tests: New module.
46245
46246 2009-09-19  Eric Blake  <ebb9@byu.net>
46247
46248         openat: simplify use of at-func.c
46249         * lib/at-func.c (includes): Include prerequisites here, to
46250         simplify requirements on client files.
46251         * lib/openat-priv.h: Add double-inclusion guard.
46252         * lib/faccessat.c (includes): Simplify.
46253         * lib/fchmodat.c (includes): Likewise.
46254         * lib/fchownat.c (includes): Likewise.
46255         * lib/mkdirat.c (includes): Likewise.
46256         * lib/mkfifoat.c (includes): Likewise.
46257         * lib/symlinkat.c (includes): Likewise.
46258
46259         openat: allow return of fd 0
46260         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46261         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46262         unistd-safer.
46263         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46264         <fcntl.h>; this module does not leak fds.
46265         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46266         must be allowed to return 0, leaving openat_safer to add the
46267         safety.
46268         (openat_permissive): Avoid writing to just-opened fd 2 if
46269         restoring the current directory fails.
46270         * lib/openat-die.c (openat_restore_fail): Add comment.
46271         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46272         (save_cwd): Guarantee safe fd, but without use of open_safer.
46273         * tests/test-openat.c: New test.
46274         * modules/openat-tests (Files, Makefile.am): Distribute and build
46275         new file.
46276
46277         relocatable-prog-wrapper: fix build
46278         * modules/relocatable-prog-wrapper (Files): Update name of
46279         canonicalize m4 file, broken on 2009-09-17.
46280         Reported by emad hajjar <aleppos@hotmail.com>.
46281
46282 2009-09-19  Bruno Haible  <bruno@clisp.org>
46283
46284         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46285         * lib/safe-alloc.c: Likewise.
46286         Reported by Ian Beckwith <ianb@erislabs.net>.
46287
46288 2009-09-18  Bruno Haible  <bruno@clisp.org>
46289
46290         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46291         Reported by <erobles@sensacd.com.mx>.
46292
46293 2009-09-17  Eric Blake  <ebb9@byu.net>
46294
46295         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46296         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46297         slashes when checking if last component is missing.
46298         * tests/test-canonicalize.c (main): Test this.
46299
46300         canonicalize, canonicalize-lgpl: honor // if distinct from /
46301         * modules/canonicalize (Files): Add double-slash-root.m4.
46302         * modules/canonicalize-lgpl (Files): Likewise.
46303         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46304         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46305         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46306         fallback definition.
46307         (canonicalize_filename_mode): Use it to protect //.
46308         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46309         (__realpath): Likewise.
46310         * tests/test-canonicalize.c (main): Test this.
46311         * tests/test-canonicalize-lgpl.c (main): Likewise.
46312         * modules/canonicalize-tests (Depends-on): Add same-inode.
46313         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46314
46315         canonicalize-lgpl: fix glibc bug with trailing slash
46316         * m4/canonicalize-lgpl.m4: Move contents...
46317         * m4/canonicalize.m4: ...here.
46318         (gl_CANONICALIZE_LGPL): Factor realpath check...
46319         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46320         glibc 2.3.5 bug, fixed 2005-04-27.
46321         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46322         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46323         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46324         * modules/canonicalize-lgpl (Files): Manage file rename.
46325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46326         * modules/stdlib (Makefile.am): Substitute witness.
46327         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46328         is needed.
46329         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46330         replacement is required.
46331         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46332         * doc/glibc-functions/canonicalize_file_name.texi
46333         (canonicalize_file_name): Document this.
46334         * doc/posix-functions/realpath.texi (realpath): Likewise.
46335
46336         canonicalize-lgpl: reject non-directory with trailing slash
46337         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46338         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46339         catches failures in glibc 2.3.5.
46340         * tests/test-canonicalize.c (main): Likewise.
46341
46342         canonicalize-lgpl: use native realpath if it works
46343         * lib/canonicalize-lgpl.c (realpath): Guard with
46344         FUNC_REALPATH_WORKS.
46345         * lib/stdlib.in.h (realpath): Make declaration optional based on
46346         HAVE_REALPATH.
46347         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46348         native realpath works.
46349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46350         * modules/stdlib (Makefile.am): Substitute witness.
46351
46352         canonicalize, canonicalize-lgpl: use <stdlib.h>
46353         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46354         (Include): Mention <stdlib.h>.
46355         (configure.ac): Mention functions we provide.
46356         * modules/canonicalize (configure.ac): Likewise.
46357         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46358         realpath if canonicalize_file_name is missing.
46359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46360         * modules/stdlib (Makefile.am): Substitute witnesses.
46361         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46362         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46363         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46364         * NEWS: Document this.
46365         * doc/glibc-functions/canonicalize_file_name.texi
46366         (canonicalize_file_name): Likewise.
46367         * doc/posix-functions/realpath.texi (realpath): Likewise.
46368         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46369
46370         test-canonicalize: consolidate into single C program
46371         * tests/test-canonicalize.sh: Delete; move setup into...
46372         * tests/test-canonicalize.c (main): ...the program, making it
46373         easier to run in debugger.  Add some tests.
46374         * modules/canonicalize-tests (Files): Remove unused file.
46375         (Depends-on): Add progname.
46376         (configure.ac, Makefile.am): Simplify.
46377
46378         test-canonicalize-lgpl: consolidate into single C program
46379         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46380         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46381         easier to run in debugger.  Add some tests.
46382         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46383         (configure.ac, Makefile.am): Simplify.
46384
46385         canonicalize: avoid resolvepath
46386         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46387         unnecessary checks.
46388         * lib/canonicalize.c (includes): Simplify.
46389         (canonicalize_file_name): Drop resolvepath implementation.
46390         * modules/canonicalize (Depends-on): Drop filenamecat.
46391
46392         canonicalize: don't lose errno
46393         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46394         over calls to free.
46395
46396         canonicalize: simplify errno handling
46397         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46398         assignment.
46399
46400         canonicalize, canonicalize-lgpl: update module dependencies
46401         * modules/canonicalize (Depends-on): Add extensions, lstat,
46402         pathmax, stdlib.
46403         (Files): Drop pathmax.h.
46404         (configure.ac): Adjust macro name.
46405         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46406         lstat, stdlib, sys_stat.
46407         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46408         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46409         extensions.
46410         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46411         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46412         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46413         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46414         declaration, if available.
46415         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46416         we can rely on the readlink module.
46417         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46418         (includes): Use <unistd.h> unconditionally.
46419
46420 2009-09-17  Eric Blake  <ebb9@byu.net>
46421
46422         maint: make Include sections of modules consistent
46423         * modules/alloca: Use only header name; no need to list #include.
46424         * modules/alloca-opt: Likewise.
46425         * modules/arpa_inet: Likewise.
46426         * modules/canon-host: Likewise.
46427         * modules/configmake: Likewise.
46428         * modules/dirent: Likewise.
46429         * modules/eealloc: Likewise.
46430         * modules/environ: Likewise.
46431         * modules/fchdir: Likewise.
46432         * modules/fcntl: Likewise.
46433         * modules/fcntl-h: Likewise.
46434         * modules/gethrxtime: Likewise.
46435         * modules/gettime: Likewise.
46436         * modules/ignore-value: Likewise.
46437         * modules/inet_ntop: Likewise.
46438         * modules/inet_pton: Likewise.
46439         * modules/inttypes: Likewise.
46440         * modules/isnand-nolibm: Likewise.
46441         * modules/isnanf-nolibm: Likewise.
46442         * modules/mbchar: Likewise.
46443         * modules/mbfile: Likewise.
46444         * modules/mbiter: Likewise.
46445         * modules/mbuiter: Likewise.
46446         * modules/netdb: Likewise.
46447         * modules/netinet_in: Likewise.
46448         * modules/nproc: Likewise.
46449         * modules/pagealign_alloc: Likewise.
46450         * modules/poll: Likewise.
46451         * modules/printf-frexp: Likewise.
46452         * modules/pthread: Likewise.
46453         * modules/putenv: Likewise.
46454         * modules/random_r: Likewise.
46455         * modules/relocatable-prog: Likewise.
46456         * modules/search: Likewise.
46457         * modules/select: Likewise.
46458         * modules/selinux-h: Likewise.
46459         * modules/settime: Likewise.
46460         * modules/signal: Likewise.
46461         * modules/size_max: Likewise.
46462         * modules/socklen: Likewise.
46463         * modules/ssize_t: Likewise.
46464         * modules/stdarg: Likewise.
46465         * modules/stdbool: Likewise.
46466         * modules/stddef: Likewise.
46467         * modules/stdint: Likewise.
46468         * modules/stdio: Likewise.
46469         * modules/stdlib: Likewise.
46470         * modules/string: Likewise.
46471         * modules/strings: Likewise.
46472         * modules/sys_file: Likewise.
46473         * modules/sys_ioctl: Likewise.
46474         * modules/sys_select: Likewise.
46475         * modules/sys_socket: Likewise.
46476         * modules/sys_stat: Likewise.
46477         * modules/sys_time: Likewise.
46478         * modules/sys_times: Likewise.
46479         * modules/sys_utsname: Likewise.
46480         * modules/sys_wait: Likewise.
46481         * modules/sysexits: Likewise.
46482         * modules/time: Likewise.
46483         * modules/times: Likewise.
46484         * modules/tmpfile: Likewise.
46485         * modules/trim: Likewise.
46486         * modules/unistd: Likewise.
46487         * modules/wchar: Likewise.
46488         * modules/wctype: Likewise.
46489
46490 2009-09-17  Bruno Haible  <bruno@clisp.org>
46491
46492         Make getdate.y compile on QNX and NetBSD 5 / i386.
46493         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46494         TIME_T_FITS_IN_LONG_INT.
46495         * lib/getdate.y (long_time_t): New type.
46496         (relative_time): Change type of 'seconds' field to long_time_t.
46497         (get_date): Update types of local variables. Check against overflow
46498         during conversion from long_time_t to time_t.
46499         Reported by Matt Kraai <kraai@ftbfs.org>
46500         and Hasso Tepper <hasso@netbsd.org>.
46501
46502 2009-09-17  Bruno Haible  <bruno@clisp.org>
46503
46504         * modules/COPYING: Update copyright years.
46505         * modules/README: Likeiwse.
46506         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46507         Reported by Ian Beckwith <ianb@erislabs.net>.
46508
46509 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46510
46511         * users.txt: Update references for gnuit package.
46512
46513 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46514
46515         * m4/getdelim.m4: Fix typo in copyright line.
46516
46517 2009-09-17  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/atoll.c: Use the standard header with GPL copyright.
46520         * lib/argz.in.h: Likewise.
46521         * lib/glob.c: Likewise.
46522         * lib/glob-libc.h: Likewise.
46523         * lib/random_r.c: Likewise.
46524         * lib/siglist.h: Likewise.
46525         * lib/strsignal.c: Likewise.
46526         Reported by Ian Beckwith <ianb@erislabs.net>.
46527
46528 2009-09-17  Eric Blake  <ebb9@byu.net>
46529
46530         rmdir: ensure correct dependency order
46531         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46532
46533 2009-09-17  Bruno Haible  <bruno@clisp.org>
46534
46535         Disable assertion that fails on NetBSD 5 / i386.
46536         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46537         Reported by Sam Steingold <sds@gnu.org>
46538         and Hasso Tepper <hasso@netbsd.org>.
46539
46540 2009-09-16  Eric Blake  <ebb9@byu.net>
46541
46542         unlinkdir: port to mingw
46543         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46544         on which no one can unlink a directory.
46545
46546         stdlib: sort witness names
46547         * modules/stdlib (Makefile.am): Sort replacements.
46548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46549         * lib/stdlib.in.h: Likewise.
46550
46551         parse-duration-tests: avoid link failure
46552         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46553         LIBINTL.
46554         Reported by Tom G. Christensen.
46555
46556         openat-tests: ensure unlinkat behaves like rmdir
46557         * tests/test-rmdir.c (main): Factor guts...
46558         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46559         * modules/rmdir-tests (Files): Ship new file.
46560         * modules/openat-tests: New test.
46561         * tests/test-unlinkat.c: Likewise.
46562
46563         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46564         * modules/rmdir-errno (Status, Notice): Now obsolete.
46565
46566         rmdir: work around cygwin 1.5.x and mingw bugs
46567         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46568         * lib/rmdir.c (rmdir): Work around it.
46569         * modules/rmdir (Status, Notice): No longer obsolete.
46570         (Files): Add dos.m4.
46571         (Depends-on): Add unistd.
46572         (configure.ac): Set witnesses.
46573         (License): Relax to LGPLv2+.
46574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46575         * modules/unistd (Makefile.am): Substitute witnesses.
46576         * lib/unistd.in.h (rmdir): Declare replacement.
46577         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46578         * modules/rmdir-tests: New tests.
46579         * tests/test-rmdir.c: Likewise.
46580
46581 2009-09-15  Eric Blake  <ebb9@byu.net>
46582
46583         fchdir: improve use of replacement functions
46584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46585         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46586         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46587         REPLACE_CLOSEDIR.
46588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46589         * modules/sys_stat (Makefile.am): Substitute correct witness.
46590         * modules/dirent (Makefile.am): Likewise.
46591         * modules/unistd (Makefile.am): Likewise.
46592         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46593         * lib/unistd.in.h (dup): Likewise.
46594         * lib/sys_stat.in.h (fstat): Likewise.
46595
46596         maint: ignore gnulib-tool temp files
46597         * .gitignore: Ignore files created during gnulib-tool --test.
46598
46599 2009-09-13  Jim Meyering  <meyering@redhat.com>
46600
46601         posixtm: don't reject a time that specify "60" as the number of seconds
46602         * lib/posixtm.c (posixtime): The code to reject invalid dates
46603         would also reject a time specified with the .60 suffix.
46604         But POSIX allows that, in order to accommodate leap seconds.
46605         So don't reject it.
46606         (main): Adjust tests accordingly.
46607         * modules/posixtm (Depends-on): Add stpcpy.
46608
46609 2009-09-11  Jim Meyering  <meyering@redhat.com>
46610
46611         announce-gen: include [$release_type] in emitted Subject:
46612         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46613         e.g., [stable] in the emitted Subject: line.
46614
46615 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46616
46617         Remove obsolete macros from several modules.
46618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46619         obsolete Autoconf macros with their modern counterparts.
46620         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46621         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46623         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46624         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46625         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46627         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46628         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46629         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46630         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46632         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46633         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46634         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46635         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46636         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46637         * m4/time_r.m4 (gl_TIME_R): Likewise.
46638         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46639         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46640         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46641
46642         Fix copyright header in build-aux scripts.
46643         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46644         recommendation.
46645         * build-aux/ncftpput-ftp: Likewise.
46646         * build-aux/update-copyright: Likewise.
46647
46648 2009-09-09  Eric Blake  <ebb9@byu.net>
46649
46650         test-link: allow Linux choice of errno
46651         * tests/test-link.c (main): Relax test for alternate error.
46652
46653         strndup: fix improper m4 caching
46654         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46655         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46656         (gl_PREREQ_STRNDUP): Delete.
46657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46658         * modules/string (Makefile.am): Substitute it.
46659         * lib/string.in.h (strndup): Modernize prototype.
46660
46661         getcwd: port to mingw
46662         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46663         different from the POSIX assumptions made throughout the getcwd
46664         module; fortunately, the mingw getcwd does not need replacement.
46665         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46666         * modules/getcwd-tests: New test.
46667         * tests/test-getcwd.c: Likewise.
46668
46669         link: fix platform bugs
46670         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46671         * lib/link.c (link): Work around them.  Fix related mingw bug.
46672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46673         * modules/unistd (Makefile.am): Substitute it.
46674         * lib/unistd.in.h (link): Declare replacement.
46675         * doc/posix-functions/link.texi (link): Document this.
46676         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46677
46678         test-link: consolidate into single C program, test more cases
46679         * tests/test-link.sh: Delete.
46680         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46681         at least Cygwin and Solaris.
46682         * modules/link-tests (Files): Remove unused file.
46683         (Depends-on): Add errno, sys_stat.
46684         (Makefile.am): Simplify.
46685
46686 2009-09-08  Bruno Haible  <bruno@clisp.org>
46687
46688         Work around towlower, towupper bug on mingw.
46689         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46690         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46691         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46692         * doc/posix-functions/towupper.texi: Likewise.
46693         Reported by Eric Blake.
46694
46695 2009-09-08  Jim Meyering  <meyering@redhat.com>
46696
46697         build: don't try to run autoheader if we don't use it
46698         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46699         is not used in configure.ac.
46700
46701 2009-09-08  Eric Blake  <ebb9@byu.net>
46702
46703         euidaccess: fix compilation error
46704         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46705
46706         rawmemchr: relax license
46707         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46708         okay.
46709         Reported by Jim Meyering.
46710
46711         mkfifoat: new module
46712         * modules/mkfifoat: New file.
46713         * lib/mkfifoat.c: Likewise.
46714         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46716         * modules/sys_stat (Makefile.am): Use them.
46717         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46718         * MODULES.html.sh (File system functions): Mention module.
46719         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46720         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46721         * modules/mkfifoat-tests: New test.
46722         * tests/test-mkfifoat.c: Likewise.
46723
46724         strchrnul: relax license
46725         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46726         okay.
46727         Reported by Jim Meyering.
46728
46729 2009-09-08  Eric Blake  <ebb9@byu.net>
46730
46731         fstatat: fix compilation on Solaris
46732         * lib/fstatat.c (includes): Add fcntl.h.
46733         Reported by Pádraig Brady.
46734
46735 2009-09-07  Eric Blake  <ebb9@byu.net>
46736
46737         rename: modernize replacement
46738         * modules/rename (Depends-on): Add stdio.
46739         (configure.ac): Declare witness.
46740         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46741         stdio take care of replacement.
46742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46743         * modules/stdio (Makefile.am): Substitute them.
46744         * lib/stdio.in.h (rename): Declare replacement.
46745         * lib/rename.c (includes): Allow cross-compilation to non-windows
46746         machines.
46747         * doc/posix-functions/rename.texi (rename): Improve
46748         documentation.
46749
46750         stdio: sort witness names
46751         * modules/stdio (Makefile.am): Sort replacements.
46752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46753         * lib/stdio.in.h: Likewise.
46754
46755         getcwd: minor cleanups
46756         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46757         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46758
46759         openat: provide more convenience names
46760         * modules/faccessat (configure.ac): Add C witness.
46761         * lib/unistd.in.h (readlinkat): Fix typo.
46762         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46763         convenience wrappers.
46764         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46765         wrappers in syntax checks.
46766
46767 2009-09-06  Eric Blake  <ebb9@byu.net>
46768
46769         doc: fix comments in recent patches
46770         * lib/faccessat.c: Mention correct function.
46771         * lib/fchmodat.c: Likewise.
46772         * lib/fchownat.c: Likewise.
46773         * lib/symlinkat.c: Likewise.
46774         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46775         constants.
46776
46777         faccessat, symlinkat: continue cleanup of previous patch
46778         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46779         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46780         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46782         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46783         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46784         set.
46785
46786 2009-09-06  Bruno Haible  <bruno@clisp.org>
46787
46788         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46789         (fstatat): Declare if GNULIB_FSTATAT is set.
46790         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46791         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46792         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46793         * modules/fcntl-h (Files): Remove m4/openat.m4.
46794         * modules/sys_stat (Files): Remove m4/openat.m4.
46795         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46796         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46797         * modules/unistd (Files): Remove m4/openat.m4.
46798         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46799         GNULIB_OPENAT.
46800         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46801         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46803         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46804         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46805         gl_OPENAT_DEFAULTS.
46806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46807         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46808         Don't require gl_OPENAT_DEFAULTS.
46809         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46810         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46811         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46812         (gl_OPENAT_DEFAULTS): Remove macro.
46813
46814 2009-09-06  Bruno Haible  <bruno@clisp.org>
46815
46816         * modules/openat (configure.ac): Remove unneeded witness.
46817
46818 2009-09-06  Bruno Haible  <bruno@clisp.org>
46819
46820         Set errno to ENOSYS when a function is entirely unsupported.
46821         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46822         EOPNOTSUPP.
46823         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46824         * modules/chown (Depends-on): Remove errno.
46825
46826 2009-09-06  Bruno Haible  <bruno@clisp.org>
46827
46828         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46829
46830 2009-09-06  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46833
46834 2009-09-06  Ben Pfaff  <blp@gnu.org>
46835             Bruno Haible  <bruno@clisp.org>
46836
46837         Work around a glibc bug in strtok_r.
46838         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46839         Undefine if UNDEFINE_STRTOK_R is set.
46840         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46842         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46843         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46844         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46845         UNDEFINE_STRTOK_R.
46846         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46847
46848 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46849
46850         exclude: minor fix
46851         * lib/exclude.c: Include wctype.h
46852
46853 2009-09-06  Akim Demaille  <demaille@gostai.com>
46854
46855         bootstrap: improve error message
46856         * build-aux/bootstrap (find_tool): Upon failure, report the list
46857         of candidates.
46858         Honor the initial value of the envvar.
46859
46860 2009-09-05  Eric Blake  <ebb9@byu.net>
46861
46862         symlinkat: new module
46863         * modules/symlinkat: New file.
46864         * lib/symlinkat.c: Likewise.
46865         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46867         * modules/unistd (Makefile.am): Use them.
46868         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46869         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46870         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46871         * MODULES.html.sh (File system functions): Mention module.
46872         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46873         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46874         * modules/symlinkat-tests: New test.
46875         * tests/test-symlinkat.c: Likewise.
46876
46877         test-openat-safer: add more checks
46878         * tests/test-openat-safer.c (main): Check more code paths.
46879
46880 2009-09-05  Jim Meyering  <meyering@redhat.com>
46881
46882         syntax-check: detect unnecessary inclusion of openat.h
46883         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46884
46885 2009-09-05  Bruno Haible  <bruno@clisp.org>
46886
46887         Support towlower, towupper.
46888         * doc/posix-functions/towlower.texi: Mention module wctype.
46889         * doc/posix-functions/towupper.texi: Likewise.
46890         * lib/wctype.in.h (towlower, towupper): New functions.
46891         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46892         (ASSERT): New macro.
46893         (e): New variable.
46894         (main): Test also towlower, towupper. Test WEOF argument.
46895         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46896
46897 2009-09-05  Bruno Haible  <bruno@clisp.org>
46898
46899         Fix conversion behaviour when the input is invalid.
46900         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46901         mark occurring in first pass of indirect conversion.
46902         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46903         input.
46904         Found by clang's static analyzer.
46905
46906 2009-09-05  Bruno Haible  <bruno@clisp.org>
46907
46908         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46909         where direct conversion is possible.
46910
46911 2009-09-04  Eric Blake  <ebb9@byu.net>
46912
46913         openat: fail with ENOENT on empty name
46914         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46915         buffer.
46916
46917         link-follow: fix logic bug in prior patch
46918         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46919         reversed sense of yes and no in prior patch.  Avoid confusing
46920         compilation failure with desired semantics.
46921
46922         link-follow: accommodate mingw and cross-compilation
46923         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46924         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46925         cross-compilation results to -1, to make linkat easier to
46926         implement when cross-compiling.  Trivially support mingw.
46927         * modules/link-follow (configure.ac): Call new name.
46928         * NEWS: Mention this.
46929
46930 2009-09-03  Eric Blake  <ebb9@byu.net>
46931
46932         faccessat: compile replacement
46933         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46934         needed.
46935
46936         fts: fix compilation error
46937         * lib/fts.c (includes): Re-add "openat.h", for
46938         openat_needs_fchdir.
46939
46940         faccessat: new module
46941         * modules/faccessat: New file.
46942         * lib/faccessat.c: Likewise.
46943         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46945         * modules/unistd (Makefile.am): Use it.
46946         * lib/unistd.in.h (faccessat): Declare it.
46947         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46948         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46949         * MODULES.html.sh (File system functions): Mention it.
46950         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46951         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46952
46953         euidaccess: prefer POSIX over non-standard implementation
46954         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46955         * lib/euidaccess.c (euidaccess): Use it if available.
46956
46957         openat: make template easier to use
46958         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46959         AT_FUNC_F2 to be undefined.
46960         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46961         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46962         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46963         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46964         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46965         Likewise.
46966         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46967         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46968         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46969         Likewise.
46970
46971         openat: declare in POSIX headers
46972         * NEWS: Mention this.
46973         * modules/openat (configure.ac): Declare witnesses.
46974         (Depends-on): Add fcntl-h, sys_stat, unistd.
46975         (Include): Mention correct headers.
46976         * modules/fcntl-h (Depends-on): Add link-warning.
46977         (Files): Add openat.m4.
46978         (Makefile.am): Substitute witnesses.
46979         * modules/sys_stat (Files, Makefile.am): Likewise.
46980         * modules/unistd (Files, Makefile.am): Likewise.
46981         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46982         (gl_OPENAT_DEFAULTS): New macro.
46983         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46986         (SYS_STAT_H): Remove unused variable.
46987         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46988         * lib/fcntl--.h (includes): Remove unneeded header.
46989         * lib/openat-safer.c (includes): Likewise.
46990         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46991         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46992         appropriate headers.
46993         (__OPENAT_PREFIX): Delete.
46994         * lib/fcntl.in.h (openat): Provide declaration.
46995         (AT_FDCWD): Fix Solaris bug.
46996         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46997         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46998         * lib/fchmodat.c (includes):  Adjust to find declaration.
46999         * lib/fchownat.c (includes): Likewise.
47000         * lib/mkdirat.c (includes): Likewise.
47001         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47002         still visible.
47003
47004 2009-09-02  Eric Blake  <ebb9@byu.net>
47005
47006         errno: use consistently
47007         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47008         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47009         * lib/canonicalize.c (ELOOP): Likewise.
47010         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47011         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47012         * lib/lchown.c (EOPNOTSUPP): Likewise.
47013         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47014         * lib/savewd.c (ESTALE): Likewise.
47015         * lib/settime.c (ENOSYS): Likewise.
47016         * lib/utimens.c (ENOSYS): Likewise.
47017         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47018         * lib/chdir-safer.c (ELOOP): Likewise.
47019         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47020         * modules/c-stack (Depends-on): Add errno.
47021         * modules/canonicalize (Depends-on): Likewise.
47022         * modules/chdir-safer (Depends-on): Likewise.
47023         * modules/fdopendir (Depends-on): Likewise.
47024         * modules/inet_ntop (Depends-on): Likewise.
47025         * modules/inet_pton (Depends-on): Likewise.
47026         * modules/lchown (Depends-on): Likewise.
47027         * modules/openat (Depends-on): Likewise.
47028         * modules/savewd (Depends-on): Likewise.
47029         * modules/settime (Depends-on): Likewise.
47030         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47031
47032         fts: avoid leaking fds
47033         * modules/fts (Depends-on): Add cloexec.
47034         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47035         flag.
47036
47037         fts: make directory fds more robust
47038         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47039         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47040
47041         backupfile, chdir-long, fts, savedir: make safer
47042         * lib/backupfile.c (includes): Use "dirent--.h", since
47043         numbered_backup can write to stderr during readdir.
47044         * lib/savedir.c (includes): Likewise.
47045         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47046         emulation can write to stderr on failure.
47047         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47048         * lib/getcwd.c: Document why opendir_safer is unused.
47049         * lib/glob.c: Likewise.
47050         * lib/scandir.c: Likewise.
47051         * lib/openat-proc.c: Likewise, for open_safer.
47052         * modules/backupfile (Depends-on): Add dirent-safer.
47053         * modules/savedir (Depends-on): Likewise.
47054         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47055         * modules/chdir-long (Depends-on): Add openat-safer.
47056
47057         openat-safer: new module
47058         * modules/openat-safer: New file.
47059         * lib/openat-safer.c: Likewise.
47060         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47061         * lib/fcntl-safer.h (openat_safer): Declare.
47062         * lib/fcntl--.h (openat): Override.
47063         * MODULES.html.sh (File descriptor based I/O): Mention it.
47064         * lib/openat.h: Add double-inclusion guards.
47065         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47066         "fcntl--.h", so we can implement openat.
47067         * modules/openat-safer-tests: New test.
47068         * tests/test-openat-safer.c: New file.
47069
47070         dirent-safer: new module
47071         * modules/dirent-safer: New file.
47072         * lib/dirent--.h: Likewise.
47073         * lib/dirent-safer.h: Likewise.
47074         * lib/opendir-safer.c: Likewise.
47075         * m4/dirent-safer.m4: Likewise.
47076         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47077         * modules/dirent-safer-tests: New test.
47078         * tests/test-dirent-safer.c: New file.
47079         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47080
47081         fdopendir: optimize on mingw
47082         * lib/unistd.in.h (_gl_directory_name): New prototype.
47083         * lib/fchdir.c (_gl_directory_name): Implement it.
47084         (fchdir): Use it to simplify implementation.
47085         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47086         fchdir, when available, to avoid calling [f]chdir().
47087
47088         fdopendir: split into its own module
47089         * lib/openat.c (fdopendir): Move...
47090         * lib/fdopendir.c: ...into new file.
47091         * modules/fdopendir: New module.
47092         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47093         * modules/openat (Depends-on): Add fdopendir.
47094         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47095         fdopendir here.
47096         * modules/savedir (Depends-on): Only need fdopendir, not full
47097         openat.
47098         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47099         * lib/openat.h (fdopendir): Drop prototype.
47100         * lib/dirent.in.h (fdopendir): Provide prototype.
47101         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47102         * modules/dirent (Makefile.am): Substitute them.
47103         * MODULES.html.sh (File system functions): Mention it.
47104         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47105         * modules/fdopendir-tests: New file.
47106         * tests/test-fdopendir.c: Likewise.
47107
47108         fchdir: use more consistent macro convention
47109         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47110         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47111         REPLACE_FCHDIR, rather than relying on config.h macros.
47112         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47113         inside a single make-time REPLACE_FCHDIR block, rather than using
47114         the config.h FCHDIR_REPLACEMENT.
47115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47116         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47117         Manage fstat replacement.
47118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47119         REPLACE_FCHDIR.
47120         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47121         (Makefile.am): Substitute REPLACE_FCHDIR.
47122         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47123         FCHDIR_REPLACEMENT.
47124         * lib/dup-safer.c (dup_safer): Likewise.
47125         * lib/dup2.c (rpl_dup2): Likewise.
47126         * lib/dup3.c (rpl_dup3): Likewise.
47127         * lib/open.c (rpl_open): Likewise.
47128
47129         fchdir: simplify error handling, and support dup3
47130         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47131         stdbool, malloc-posix, realloc-posix.
47132         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47133         (ensure_dirs_slot): Return false on allocation failure.
47134         (rpl_dup2): Delete.
47135         (_gl_register_dup): New function.
47136         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47137         (_gl_register_fd): Close fd on allocation failure.
47138         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47139         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47140         prototype.
47141         (rpl_dup2_fchdir): Delete prototype.
47142         * lib/open.c (open): Update caller.
47143         * lib/dup2.c (dup2): Track fchdir metadata.
47144         * lib/dup3.c (dup3): Likewise.
47145         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47147
47148 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47149
47150         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47151         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47152         don't pass arguments to AC_OUTPUT.
47153
47154 2009-09-02  Bruno Haible  <bruno@clisp.org>
47155
47156         * modules/mkdtemp (License): Relicense under LGPLv2+.
47157         Reported by Paolo Bonzini.
47158
47159 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47160
47161         Replace uses of obsolete autoconf macros in Jim's modules.
47162         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47163         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47164         can evoke a warning from autoconf when run with -Wobsolete
47165         enabled.  They were declared obsolete for good reasons (see
47166         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47167         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47168         should not continue using the deprecated macros.
47169         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47170         obsolete Autoconf macros with modern counterparts.
47171         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47172         * m4/dos.m4 (gl_AC_DOS): Likewise.
47173         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47174         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47175         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47176         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47177         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47178         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47179         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47180         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47181         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47182         Likewise.
47183         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47184         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47185         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47186         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47187         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47188         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47189
47190 2009-09-01  Eric Blake  <ebb9@byu.net>
47191
47192         fchdir: fix off-by-one bug in previous patch
47193         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47194         (_gl_unregister_fd): Delete useless if.
47195
47196 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47197
47198         maint.mk: sort the list of syntax-check rules
47199         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47200         easier to get a sense of progress when the rules are run sequentially
47201         and take a long time.
47202
47203 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47204
47205         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47206         * modules/netinet_in: Likewise.
47207         * modules/sys_file: Likewise.
47208         * modules/sys_ioctl: Likewise.
47209         * modules/sys_select: Likewise.
47210         * modules/sys_socket: Likewise.
47211         * modules/sys_stat: Likewise.
47212         * modules/sys_time: Likewise.
47213         * modules/sys_times: Likewise.
47214         * modules/sys_utsname: Likewise.
47215         * modules/sys_wait: Likewise.
47216
47217 2009-09-01  Jim Meyering  <meyering@redhat.com>
47218
47219         fts: help ensure that return values are not ignored
47220         * lib/fts_.h (__GNUC_PREREQ): Define.
47221         (__attribute_warn_unused_result__): Define.
47222         (fts_children, fts_close, fts_open, fts_read): Declare with
47223         __attribute_warn_unused_result__.
47224
47225         fts: fts_close now fails also when closing a dir file descriptor fails
47226         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47227         and propagate to caller, along with errno.
47228
47229         announce-gen: correct formatting in --help output
47230         * build-aux/announce-gen (usage): Move the one-line description in
47231         --help output "up", to where it belongs, just after Usage:.
47232
47233 2009-08-31  Eric Blake  <ebb9@byu.net>
47234
47235         fchdir: port to mingw
47236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47237         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47238         opened, then use a substitute.
47239         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47240         replacement.
47241         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47242         (_gl_register_fd): No need to check stat if open already filters
47243         all directories.
47244         (fchdir): Fix error condition to match POSIX.
47245         * modules/fchdir (Depends-on): Add sys_stat.
47246         * doc/posix-functions/open.texi (open): Document the limitation.
47247         * modules/fchdir-tests: New file.
47248         * tests/test-fchdir.c: Likewise.
47249
47250         canonicalize: allow cross-testing from cygwin to mingw
47251         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47252         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47253         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47254         Likewise.
47255         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47256         target does not support symlinks.
47257         * tests/test-canonicalize-lgpl.sh: Likewise.
47258
47259         chown: avoid compilation warning on mingw
47260         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47261         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47262         mingw.
47263         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47264         * modules/chown (Depends-on): Add errno.
47265
47266 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47267
47268         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47269         command.
47270
47271 2009-08-31  Jim Meyering  <meyering@redhat.com>
47272
47273         canonicalize: remove useless initialization
47274         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47275         initialization of local, "end".
47276
47277 2009-08-30  Bruno Haible  <bruno@clisp.org>
47278
47279         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47280         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47281         ENOSYS.
47282
47283 2009-08-30  Bruno Haible  <bruno@clisp.org>
47284
47285         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47286         /usr/xpg4/bin/tr when it exists.
47287         * tests/test-pipe-filter-gi1.sh: Likewise.
47288
47289 2009-08-30  Bruno Haible  <bruno@clisp.org>
47290
47291         Work around deficient /usr/bin/id program on Solaris.
47292         * tests/test-file-has-acl.sh (ID): New variable.
47293         * tests/test-set-mode-acl.sh (ID): Likewise.
47294         * tests/test-copy-acl.sh (ID): Likewise.
47295         * tests/test-copy-file.sh (ID): Likewise.
47296
47297 2009-08-30  Bruno Haible  <bruno@clisp.org>
47298
47299         New module 'xstriconveh'.
47300         * lib/xstriconveh.h: New file.
47301         * lib/xstriconveh.c: New file.
47302         * modules/xstriconveh: New file.
47303
47304 2009-08-30  Bruno Haible  <bruno@clisp.org>
47305
47306         Make it easier to use mem_cd_iconveh.
47307         * lib/striconveh.h (iconveh_t): New type.
47308         (iconveh_open, iconveh_close): New declarations.
47309         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47310         with a single 'const iconveh_t *' argument.
47311         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47312         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47313         with a single 'const iconveh_t *' argument.
47314         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47315         * tests/test-striconveh.c (main): Update.
47316         * NEWS: Mention the change.
47317
47318 2009-08-30  Bruno Haible  <bruno@clisp.org>
47319
47320         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47321         problem.
47322
47323 2009-08-30  Bruno Haible  <bruno@clisp.org>
47324
47325         Work around iconv_open problem on Solaris.
47326         * lib/iconv_open-solaris.gperf: New file.
47327         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47329         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47330         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47331         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47332         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47333
47334 2009-08-29  Jim Meyering  <meyering@redhat.com>
47335
47336         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47337         * top/maint.mk (cvs-check): Remove target; it was just an alias
47338         to the better-named vc-diff-check.
47339         (maintainer-distcheck): Remove rule.  It was used only from
47340         the (alpha/beta/major) target, and all of its commands but one
47341         were coreutils-specific.
47342         (vc-dist): Remove rule.
47343         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47344         Run vc-diff-check, not vc-dist.
47345         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47346
47347 2009-08-27  Bruno Haible  <bruno@clisp.org>
47348
47349         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47350         of 0.
47351
47352 2009-08-27  Bruno Haible  <bruno@clisp.org>
47353
47354         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47355         compilers.
47356         * doc/func.texi: Document the SunPRO C bug.
47357
47358 2009-08-27  Bruno Haible  <bruno@clisp.org>
47359
47360         Fix link error on Solaris.
47361         * tests/test-parse-duration.c (xstrdup): Remove function.
47362
47363 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47364
47365         ignore-value: handle pointer types, too
47366         * lib/ignore-value.h (__attribute__): Remove definition.
47367         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47368         of a more concise and more-often effective "(void) i" statement.
47369         (ignore_ptr): New function to suppress warnings from functions that
47370         return pointers, and to make it explicit that one function doesn't
47371         handle all cases.
47372
47373 2009-08-25  Bruno Haible  <bruno@clisp.org>
47374
47375         dup2: work around a Linux bug.
47376         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47377         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47378         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47379         Reported by Simon Josefsson.
47380
47381 2009-08-25  Jim Meyering  <meyering@redhat.com>
47382
47383         libguestfs uses gnulib
47384         * users.txt: Add libguestfs.
47385
47386 2009-08-24  Eric Blake  <ebb9@byu.net>
47387
47388         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47389         * lib/pipe2.c (includes): Add binary-io.h.
47390         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47391
47392 2009-08-24  Bruno Haible  <bruno@clisp.org>
47393
47394         Tolerate declared but missing accept4 syscall.
47395         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47396         available.
47397         * lib/sys_socket.in.h (accept4): If the function is already present,
47398         override it.
47399         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47400         * modules/accept4 (Makefile.am): Compile accept4.c always.
47401         Reported by Paolo Bonzini and Eric Blake.
47402
47403 2009-08-23  Bruno Haible  <bruno@clisp.org>
47404
47405         New module 'accept4'.
47406         * lib/sys_socket.in.h (accept4): New declaration.
47407         * lib/accept4.c: New file.
47408         * m4/accept4.m4: New file.
47409         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47410         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47411         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47412         HAVE_ACCEPT4.
47413         * modules/accept4: New file.
47414         * doc/glibc-functions/accept4.texi: Mention the new module.
47415
47416 2009-08-24  Jim Meyering  <meyering@redhat.com>
47417
47418         progname: also set global program_invocation_name, when possible
47419         Before this change, a libtool-enabled program that calls glibc's
47420         error function would report the program name as
47421         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47422         * modules/progname (configure.ac): Check for a declaration of
47423         program_invocation_name.
47424         * lib/progname.c:  Include <errno.h>.
47425         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47426         Set program_invocation_name.
47427
47428 2009-08-23  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/dup3.c: Include <string.h>.
47431
47432 2009-08-23  Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47435         * lib/pipe2.c (pipe2): Likewise.
47436         Suggested by Eric Blake.
47437
47438 2009-08-23  Bruno Haible  <bruno@clisp.org>
47439
47440         Tolerate declared but missing dup3 syscall.
47441         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47442         * lib/unistd.in.h (dup3): If the function is already present,
47443         override it.
47444         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47445         * modules/dup3 (Makefile.am): Compile dup3.c always.
47446         Reported by Paolo Bonzini.
47447
47448 2009-08-23  Bruno Haible  <bruno@clisp.org>
47449
47450         Tolerate declared but missing pipe2 syscall.
47451         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47452         available.
47453         * lib/unistd.in.h (pipe2): If the function is already present,
47454         override it.
47455         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47456         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47457         Reported by Paolo Bonzini.
47458
47459 2009-08-23  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/pipe2.c (pipe2): Move #ifs inside function.
47462
47463 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47464
47465         quotearg: document limitations of quote_these_too
47466         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47467         those limitations are created.
47468         * lib/quotearg.h (set_char_quoting): Document that digits and
47469         letters that are special after backslash are not permitted.
47470         (quotearg_char): Cross-reference set_char_quoting documentation.
47471
47472 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47473
47474         quotearg: implement custom_quoting_style
47475         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47476         right_quote fields.
47477         (set_custom_quoting): New public function.
47478         (quotearg_buffer_restyled): Add left_quote and right_quote
47479         arguments, handle them very much like locale quoting, and update
47480         all uses.
47481         (quotearg_n_custom): New public function.
47482         (quotearg_n_custom_mem): New public function.
47483         (quotearg_custom): New public function.
47484         (quotearg_custom_mem): New public function.
47485         * lib/quotearg.h: Prototype and document new public functions.
47486         (enum quoting_style): For escape_quoting_style and
47487         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47488         ignored even though they're otherwise like c_quoting_style.
47489         Add custom_quoting_style member and document with comparison to
47490         clocale_quoting_style.
47491         * tests/test-quotearg.c (custom_quotes): New array.
47492         (custom_results): New array.
47493         (main): Extend to test custom quoting.
47494
47495 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47496
47497         quotearg: fix right quote escaping when it's in quote_these_too
47498         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47499         quote, be sure to prepend only one backslash.
47500         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47501         (main): Test it.
47502
47503 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47504
47505         quotearg-tests: test escaping of embedded locale quotes
47506         * tests/test-quotearg.c (struct result_strings): Add member for
47507         new input.
47508         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47509         (inputs): Add new input.
47510         (results_g): Add expected results.
47511         (flag_results): Likewise.
47512         (locale_results): Likewise.
47513         (compare_strings): Check those.
47514
47515 2009-08-23  Bruno Haible  <bruno@clisp.org>
47516
47517         Tests for module 'dup3'.
47518         * modules/dup3-tests: New file.
47519         * tests/test-dup3.c: New file.
47520
47521         New module 'dup3'.
47522         * lib/unistd.in.h (dup3): New declaration.
47523         * lib/dup3.c: New file.
47524         * m4/dup3.m4: New file.
47525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47526         HAVE_DUP3.
47527         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47528         * modules/dup3: New file.
47529         * doc/glibc-functions/dup3.texi: Mention the new module.
47530
47531 2009-08-23  Bruno Haible  <bruno@clisp.org>
47532
47533         Tweak the dup2 test.
47534         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47535         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47536         the test file is still empty. Fix argument order of lseek.
47537
47538 2009-08-23  Bruno Haible  <bruno@clisp.org>
47539
47540         Avoid test link errors when the modules getopt-gnu, gettext are used.
47541         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47543
47544 2009-08-23  Bruno Haible  <bruno@clisp.org>
47545
47546         Fix getdtablesize() on mingw.
47547         * lib/getdtablesize.c (getdtablesize): Implement differently.
47548         * lib/unistd.in.h (getdtablesize): Improve comment.
47549
47550 2009-08-23  Bruno Haible  <bruno@clisp.org>
47551
47552         New module 'mkostemp'.
47553         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47554         * lib/stdlib.in.h (mksotemp): New declaration.
47555         * lib/mkostemp.c: New file, from glibc with modifications.
47556         * lib/tempname.h (GT_FILE): Remove outdated comment.
47557         (gen_tempname): Add flags argument.
47558         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47559         (__GT_FILE): Map to 1.
47560         (small_open, large_open): Remove macros.
47561         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47562         * lib/mkstemp.c (mkstemp): Update.
47563         * lib/mkdtemp.c (mkdtemp): Likewise.
47564         * m4/mkostemp.m4: New file.
47565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47566         HAVE_MKOSTEMP.
47567         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47568         HAVE_MKOSTEMP.
47569         * modules/mkostemp: New file, based on modules/mkstemp.
47570         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47571         * NEWS: Mention the change.
47572
47573 2009-08-23  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47576         Reported by Eric Blake.
47577
47578 2009-08-23  Bruno Haible  <bruno@clisp.org>
47579
47580         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47581         Reported by Eric Blake.
47582
47583 2009-08-23  Bruno Haible  <bruno@clisp.org>
47584
47585         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47586         * modules/pipe2 (Depends-on): Likewise.
47587
47588 2009-08-23  Eric Blake  <ebb9@byu.net>
47589
47590         fcntl-h: add O_TTY_INIT support
47591         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47592         * tests/test-fcntl-h.c (o): Test it.
47593         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47594
47595         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47596         * modules/fcntl: Move <fcntl.h> header replacement...
47597         * modules/fcntl-h: ...to new name, so as not to collide with
47598         like-named function.
47599         * tests/test-fcntl.c: Rename...
47600         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47601         * modules/fcntl-tests: Rename...
47602         * modules/fcntl-h-tests: ...to this.  Update test file name.
47603         * modules/chdir-long (Depends-on): Update clients.
47604         * modules/chdir-safer (Depends-on): Likewise.
47605         * modules/fcntl-safer (Depends-on): Likewise.
47606         * modules/fts (Depends-on): Likewise.
47607         * modules/mkancesdirs (Depends-on): Likewise.
47608         * modules/mkdir-p (Depends-on): Likewise.
47609         * modules/open (Depends-on): Likewise.
47610         * modules/savewd (Depends-on): Likewise.
47611         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47612         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47613
47614 2009-08-22  Bruno Haible  <bruno@clisp.org>
47615
47616         * modules/binary-io (License): Relicense under LGPL.
47617         * modules/pipe2 (License): Likewise.
47618
47619 2009-08-22  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47622         return value.
47623         * lib/pipe-filter-gi.c (filter_init): Likewise.
47624         Reported by Eric Blake.
47625
47626 2009-08-22  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47629         * modules/pipe (Depends-on): Add pipe2.
47630
47631 2009-08-22  Bruno Haible  <bruno@clisp.org>
47632
47633         Tests for module 'pipe2'.
47634         * modules/pipe2-tests: New file.
47635         * tests/test-pipe2.c: New file.
47636
47637         New module 'pipe2'.
47638         * lib/unistd.in.h (pipe2): New declaration.
47639         * lib/pipe2.c: New file.
47640         * m4/pipe2.m4: New file.
47641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47642         HAVE_PIPE2.
47643         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47644         * modules/pipe2: New file.
47645         * doc/glibc-functions/pipe2.texi: Mention the new module.
47646
47647 2009-08-22  Bruno Haible  <bruno@clisp.org>
47648
47649         Reference some new glibc functions.
47650         * doc/glibc-functions/accept4.texi: New file.
47651         * doc/glibc-functions/dup3.texi: New file.
47652         * doc/glibc-functions/mkostemp.texi: New file.
47653         * doc/glibc-functions/pipe2.texi: New file.
47654         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47655         (Glibc sys/socket.h): Refer to accept4.
47656         (Glibc unistd.h): Refer to dup3, pipe2.
47657         Reported by Eric Blake.
47658
47659 2009-08-22  Jim Meyering  <meyering@redhat.com>
47660             Bruno Haible  <bruno@clisp.org>
47661
47662         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47663         This makes it so packages using automake-1.11's silent-rules option
47664         can print e.g., a single "GEN    configmake.h" line, rather than
47665         the 30+ statements that perform the job.  If you want to see the
47666         actual commands, you can still run "make V=1".
47667         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47668         so that make output is abbreviated when those variables are defined
47669         appropriately.
47670         * modules/argz: Likewise.
47671         * modules/arpa_inet: Likewise.
47672         * modules/byteswap: Likewise.
47673         * modules/configmake: Likewise.
47674         * modules/dirent: Likewise.
47675         * modules/errno: Likewise.
47676         * modules/fcntl: Likewise.
47677         * modules/float: Likewise.
47678         * modules/fnmatch: Likewise.
47679         * modules/getopt-posix: Likewise.
47680         * modules/glob: Likewise.
47681         * modules/iconv_open: Likewise.
47682         * modules/inttypes: Likewise.
47683         * modules/localcharset: Likewise.
47684         * modules/locale: Likewise.
47685         * modules/math: Likewise.
47686         * modules/netdb: Likewise.
47687         * modules/netinet_in: Likewise.
47688         * modules/poll: Likewise.
47689         * modules/posix_spawnp-tests: Likewise.
47690         * modules/sched: Likewise.
47691         * modules/search: Likewise.
47692         * modules/selinux-h: Likewise.
47693         * modules/signal: Likewise.
47694         * modules/spawn: Likewise.
47695         * modules/stdarg: Likewise.
47696         * modules/stdbool: Likewise.
47697         * modules/stddef: Likewise.
47698         * modules/stdint: Likewise.
47699         * modules/stdio: Likewise.
47700         * modules/stdlib: Likewise.
47701         * modules/string: Likewise.
47702         * modules/strings: Likewise.
47703         * modules/sys_file: Likewise.
47704         * modules/sys_ioctl: Likewise.
47705         * modules/sys_select: Likewise.
47706         * modules/sys_socket: Likewise.
47707         * modules/sys_stat: Likewise.
47708         * modules/sys_time: Likewise.
47709         * modules/sys_times: Likewise.
47710         * modules/sys_utsname: Likewise.
47711         * modules/sys_wait: Likewise.
47712         * modules/sysexits: Likewise.
47713         * modules/time: Likewise.
47714         * modules/unistd: Likewise.
47715         * modules/wchar: Likewise.
47716         * modules/wctype: Likewise.
47717
47718 2009-08-22  Jim Meyering  <meyering@redhat.com>
47719
47720         announce-gen: detect write failure
47721         * build-aux/announce-gen: Add Coda at end.
47722         Remove equivalent-but-more-verbose block at top.
47723
47724 2009-08-19  Akim Demaille  <demaille@gostai.com>
47725
47726         bootstrap: --help to stdout.
47727         * bootstrap (usage): Don't send --help to stderr.
47728         Use a here doc instead of a long string.
47729
47730 2009-08-21  Eric Blake  <ebb9@byu.net>
47731
47732         test-popen-safer: split from test-popen
47733         * tests/test-popen.c (main): Move...
47734         * tests/test-popen.h: ...into new file.
47735         * tests/test-popen-safer2.c: New file.
47736         * modules/popen-tests (Files): Add test-popen.h.
47737         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47738         Suggested by Bruno Haible.
47739
47740         test-fcntl-safer: split from test-open
47741         * tests/test-open.c (main): Move...
47742         * tests/test-open.h: ...into new file.
47743         * tests/test-fcntl-safer.c: New file.
47744         * modules/open-tests (Files): Add test-open.h.
47745         * modules/fcntl-safer-tests: New file.
47746         Suggested by Bruno Haible.
47747
47748         test-fopen-safer: split from test-fopen
47749         * tests/test-fopen.c (main): Move...
47750         * tests/test-fopen.h: ...into new file.
47751         * tests/test-fopen-safer.c: New file.
47752         * modules/fopen-tests (Files): Add test-fopen.h.
47753         * modules/fopen-safer-tests: New file.
47754         Suggested by Bruno Haible.
47755
47756 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47757
47758         popen-safer: test O_CLOEXEC at run-time.
47759         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47760
47761 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47762
47763         fcntl: move more flags to the header
47764         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47765         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47766         * lib/fcntl.in.h: Do both things here.
47767
47768 2009-08-21  Jim Meyering  <meyering@redhat.com>
47769
47770         consistently remove $@-t before redirecting to it
47771         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47772         * modules/alloca-opt: Likewise.
47773         * modules/byteswap: Likewise.
47774         * modules/fnmatch: Likewise.
47775         * modules/getopt-posix: Likewise.
47776         * modules/glob: Likewise.
47777         * modules/poll: Likewise.
47778         * modules/posix_spawnp-tests: Likewise.
47779         * modules/sys_socket: Likewise.
47780         * modules/sysexits: Likewise.
47781
47782 2009-08-21  Eric Blake  <ebb9@byu.net>
47783
47784         popen: simplify access to original popen
47785         * lib/popen.c (rpl_popen): No need to worry about popen being a
47786         macro.
47787         Reported by Bruno Haible.
47788
47789 2009-08-20  Eric Blake  <ebb9@byu.net>
47790
47791         build: avoid some compiler warnings
47792         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47793         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47794         type.
47795         (new_exclude_segment, excluded_file_pattern_p)
47796         (excluded_file_name_p): Reduce scope.
47797         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47798         old-style declaration.
47799
47800 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47801
47802         * tests/test-exclude1.sh: Handle Windows EOL.
47803         * tests/test-exclude2.sh: Likewise.
47804         * tests/test-exclude3.sh: Likewise.
47805         * tests/test-exclude4.sh: Likewise.
47806         * tests/test-exclude5.sh: Likewise.
47807         * tests/test-exclude6.sh: Likewise.
47808         * tests/test-exclude7.sh: Likewise.
47809
47810 2009-08-19  Akim Demaille  <demaille@gostai.com>
47811
47812         bootstrap: find sha1sum when named gsha1sum.
47813         * bootstrap (find_tool): New.
47814         ($SHA1SUM): New.
47815         Use it.
47816
47817 2009-08-20  Jim Meyering  <meyering@redhat.com>
47818
47819         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47820         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47821         expression that converts "." in a file name to "\." in the resulting
47822         regexp.  Start with a dummy statement, so that prior shell variable
47823         definitions are expanded portably.  Reported by Simon Josefsson.
47824
47825 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47826
47827         Fix polling for writeability of a screen buffer.
47828         * lib/poll.c: Distinguish input and screen buffers for the
47829         Win32 implementation.
47830         * lib/select.c: Likewise.
47831
47832 2009-08-19  Eric Blake  <ebb9@byu.net>
47833
47834         popen-safer: prevent popen from clobbering std descriptors
47835         * modules/popen-safer: New file.
47836         * lib/popen-safer.c: Likewise.
47837         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47838         * lib/stdio--.h (popen): Provide override.
47839         * lib/stdio-safer.h (popen_safer): Provide declaration.
47840         * tests/test-popen.c (includes): Partially test this.
47841         * modules/popen-safer-tests: New file, for more tests.
47842         * tests/test-popen-safer.c: Likewise.
47843         * MODULES.html.sh (file stream based Input/Output): Mention it.
47844
47845         tests: test some of the *-safer modules
47846         * modules/fopen-safer (Depends-on): Add fopen.
47847         * modules/fcntl-safer (Depends-on): Add fcntl.
47848         * modules/stdlib-safer (Depends-on): Add stdlib.
47849         (configure.ac): Set indicator.
47850         * modules/unistd-safer (configure.ac): Likewise.
47851         * modules/tmpfile-safer (configure.ac): Likewise.
47852         (Depends-on): Add tmpfile.
47853         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47854         active.
47855         * tests/test-fopen.c (includes): Test safer versions when they are
47856         in use.
47857         * tests/test-open.c (includes): Likewise.
47858
47859         popen: fix cygwin 1.5 bug when stdin closed
47860         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47861         * modules/popen: New file.
47862         * modules/popen-tests: Likewise.
47863         * tests/test-popen.c: Likewise.
47864         * m4/popen.m4: Likewise.
47865         * lib/popen.c: Likewise.
47866         * lib/stdio.in.h (popen): New declaration.
47867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47868         * modules/stdio (Makefile.am): Likewise.
47869         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47870
47871 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47872
47873         maint.mk: give full control over update-copyright exclusions
47874         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47875         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47876         (update-copyright): Don't force inclusion of top-level
47877         ChangeLog.  Don't force exclusion of all COPYING files, but make
47878         them the default exclusion instead.
47879
47880 2009-08-16  Bruno Haible  <bruno@clisp.org>
47881
47882         Fix test failures on Solaris 10.
47883         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47884         tests when Solaris iconv() is used.
47885         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47886         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47887         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47888         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47889         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47890
47891 2009-08-16  Bruno Haible  <bruno@clisp.org>
47892
47893         Fix test failures on Solaris 10.
47894         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47895         'tr' program and pass it as first argument.
47896         * tests/test-pipe-filter-gi1.sh: Likewise.
47897         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47898         program as first argument.
47899         * tests/test-pipe-filter-gi1.c (main): Likewise.
47900
47901 2009-08-16  Eric Blake  <ebb9@byu.net>
47902
47903         fpurge: fix previous commits
47904         * modules/fpurge (Makefile.am): Make replacement conditional,
47905         partially reverting 2007-04-29 change; missed in previous
47906         attempt.
47907         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47908         is missing.
47909
47910 2009-08-16  Bruno Haible  <bruno@clisp.org>
47911
47912         Clarify fpurge's effect on the file position.
47913         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47914         * tests/test-fpurge.c (main): Make a second pass for checking the file
47915         position.
47916
47917 2009-08-16  Bruno Haible  <bruno@clisp.org>
47918
47919         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47920         declaration of fpurge is missing.
47921         * tests/test-fpurge.c (main): Check that the file has not more contents
47922         than expected. Close the file before removing it.
47923
47924 2009-08-15  Eric Blake  <ebb9@byu.net>
47925
47926         fpurge: don't wrap working cygwin implementation
47927         * lib/fpurge.c (fpurge): Fix comment typo.
47928         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47929         1.7 to avoid replacement.
47930         * tests/test-fpurge.c (main): Enhance test.
47931
47932 2009-08-15  Eric Blake  <ebb9@byu.net>
47933         and Jim Meyering  <meyering@redhat.com>
47934
47935         test-update-copyright: skip if perl is insufficient
47936         * tests/test-update-copyright.sh: Failure to run maintainer tool
47937         should not cause testsuite failure on cygwin 1.5.
47938
47939 2009-08-14  Eric Blake  <ebb9@byu.net>
47940
47941         doc: mention more functions added in cygwin 1.7.0
47942         * doc/posix-headers/limits.texi (limits.h): Update for recent
47943         cygwin additions.
47944         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47945         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47946         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47947         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47948         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47949
47950 2009-08-14  Eric Blake  <ebb9@byu.net>
47951
47952         maint.mk: simplify update-copyright rule
47953         * top/maint.mk (update-copyright-local): Delete, and document how
47954         to do it in cfg.mk instead.
47955         (update-copyright-exclude-regexp): Delete, and document how to do
47956         it in .x-update-copyright instead.
47957         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47958         exclude ChangeLog.
47959
47960 2009-08-14  Bruno Haible  <bruno@clisp.org>
47961
47962         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47963
47964 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47965
47966         maint.mk: support update-copyright-env
47967         * top/maint.mk (update-copyright-env): Define place-holder.
47968         (update-copyright): Expand $(update-copyright-env) before
47969         invoking update-copyright.
47970
47971 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47972
47973         update-copyright: implement forced reformatting
47974         * build-aux/update-copyright: Implement and document
47975         UPDATE_COPYRIGHT_FORCE.
47976         * tests/test-update-copyright.sh: Test it.
47977
47978 2009-08-14  Eric Blake  <ebb9@byu.net>
47979         and Bruno Haible  <bruno@clisp.org>
47980
47981         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47982         * tests/test-locale.c: Revert previous patch related to NULL.
47983         * tests/test-stdio.c: Likewise.
47984         * tests/test-stdlib.c: Likewise.
47985         * tests/test-string.c: Likewise.
47986         * tests/test-unistd.c: Likewise.
47987         * modules/time-tests (Depends-on): Add verify.
47988         * modules/wchar-tests (Depends-on): Likewise.
47989         * tests/test-time.c: Test for NULL compliance.
47990         * tests/test-wchar.c: Likewise.
47991         * modules/locale (Depends-on): Add stddef.
47992         * modules/stdio (Depends-on): Likewise.
47993         * modules/stdlib (Depends-on): Likewise.
47994         * modules/string (Depends-on): Likewise.
47995         * modules/time (Depends-on): Likewise.
47996         * modules/unistd (Depends-on): Likewise.
47997         * modules/wchar (Depends-on): Likewise.
47998         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47999         * lib/stdlib.in.h (includes): Likewise.
48000         * lib/string.in.h (includes): Likewise.
48001         * lib/time.in.h (includes): Likewise.
48002         * lib/unistd.in.h (includes): Likewise.
48003         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48004         replaced.
48005         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48006         * m4/stddef_h.m4: New file.
48007         * modules/stddef: Likewise.
48008         * lib/stddef.in.h: Likewise.
48009         * modules/stddef-tests: Likewise.
48010         * tests/test-stddef.c: Likewise.
48011         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48012         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48013         * doc/posix-headers/locale.texi (locale.h): Likewise.
48014         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48015         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48016         * doc/posix-headers/string.texi (string.h): Likewise.
48017         * doc/posix-headers/time.texi (time.h): Likewise.
48018         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48019         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48020
48021 2009-08-14  Eric Blake  <ebb9@byu.net>
48022
48023         doc: improve git diff of texinfo files
48024         * .gitattributes: Add rule for *.texi files, with hint on how to
48025         use it.
48026         Copied from m4, and based on a report by Bruno Haible.
48027
48028 2009-08-14  Bruno Haible  <bruno@clisp.org>
48029
48030         Disable multithread support by default on Cygwin 1.5.x for real.
48031         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48032
48033 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48034
48035         update-copyright: much ado about intervals
48036         * build-aux/update-copyright: Implement and document
48037         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48038         of copyright year intervals.
48039         Also, document UPDATE_COPYRIGHT_YEAR.
48040         * tests/test-update-copyright.sh: Test it.
48041
48042         update-copyright: convert 2-digit to 4-digit years
48043         * build-aux/update-copyright: Implement and document.
48044         * tests/test-update-copyright.sh: Update.
48045
48046 2009-08-14  Jim Meyering  <meyering@redhat.com>
48047
48048         test-exclude: avoid coreutils "make check" failure
48049         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48050         just as in test-argmatch.c.
48051
48052 2009-08-13  Eric Blake  <ebb9@byu.net>
48053
48054         test-dup2: fix bad assumption
48055         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48056         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48057
48058         test-version-etc: fix CRLF portability issue
48059         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48060         recognize \r.
48061         * tests/test-argp-version-etc-1.sh: Likewise.
48062
48063         getopt: update client modules
48064         * modules/argp (Depends-on): Use getopt-gnu.
48065         * modules/git-merge-changelog (Depends-on): Likewise.
48066         * modules/long-options (Depends-on): Likewise.
48067         * modules/xstrtol (Depends-on): Likewise.
48068
48069 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48070
48071         * tests/test-version-etc.sh: Don't fail on different
48072         project/version.  Don't fail on CRLF differences.  Rewrite to use
48073         multiple -e instead of multiple sed forks, suggested by Eric Blake
48074         <ebb9@byu.net>.
48075         * tests/test-argp-version-etc-1.sh: Likewise.
48076
48077 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48078
48079         * tests/test-version-etc.sh: Don't fail on different
48080         project/version.
48081
48082 2009-08-12  Bruno Haible  <bruno@clisp.org>
48083
48084         Tests for modules 'getopt-posix', 'getopt-gnu'.
48085         * modules/getopt-posix-tests: New file.
48086         * tests/test-getopt.c: New file.
48087         * tests/test-getopt.h: New file.
48088         * tests/test-getopt_long.h: New file.
48089
48090         New modules 'getopt-posix', 'getopt-gnu'.
48091         * modules/getopt-gnu: New file, renamed from modules/getopt.
48092         * modules/getopt-posix: New file.
48093         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48094         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48095         (gl_GETOPT): Remove macro.
48096         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48097         Disable the test against BSD systems that declare optreset. Test
48098         against mingw bug. Test against lack of support of optional arguments
48099         on many platforms.
48100         * doc/glibc-headers/getopt.texi: Update module name and list of
48101         relevant platforms.
48102         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48103         'getopt-gnu' and more portability problems.
48104         * NEWS: Mention the changes.
48105
48106 2009-08-12  Bruno Haible  <bruno@clisp.org>
48107
48108         Ensure that optarg etc. get declared by <unistd.h>.
48109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48110         AC_USE_SYSTEM_EXTENSIONS.
48111         * modules/getopt (Depends-on): Add 'extensions'.
48112
48113 2009-08-12  Bruno Haible  <bruno@clisp.org>
48114
48115         Avoid test link errors.
48116         * modules/pipe-filter-ii-tests (Makefile.am): Define
48117         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48118         * modules/pipe-filter-gi-tests (Makefile.am): Define
48119         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48121
48122 2009-08-12  Bruno Haible  <bruno@clisp.org>
48123
48124         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48125         gl_GETOPT_SUBSTITUTE before.
48126         (gl_GETOPT): Use it.
48127         * m4/argp.m4 (gl_ARGP): Update.
48128         Reported by Sergey Poznyakoff.
48129
48130         * m4/getopt.m4: Reorder macros.
48131         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48132         (gl_GETOPT_SUBSTITUTE): Remove macro.
48133
48134 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48135
48136         Minor improvement in gitlog-to-changelog
48137
48138         * build-aux/gitlog-to-changelog: New option `--format' makes
48139         output format string configurable.
48140
48141 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48142
48143         Optimize exclude: use hash tables for non-wildcard patterns.
48144
48145         * lib/exclude.c: Include hash.h and mbuiter.h
48146         (struct exclude_pattern, exclude_segment): New data types.
48147         (struct exclude): Rewrite.
48148         (fnmatch_pattern_has_wildcards): New function.
48149         (new_exclude_segment, free_exclude_segment): New functions.
48150         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48151         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48152         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48153         * modules/exclude: Depend on hash and mbuiter.
48154
48155         * modules/exclude-tests: New file.
48156         * tests/test-exclude.c: New file.
48157         * tests/test-exclude1.sh: New file.
48158         * tests/test-exclude2.sh: New file.
48159         * tests/test-exclude3.sh: New file.
48160         * tests/test-exclude4.sh: New file.
48161         * tests/test-exclude5.sh: New file.
48162         * tests/test-exclude6.sh: New file.
48163         * tests/test-exclude7.sh: New file.
48164
48165 2009-08-12  Bruno Haible  <bruno@clisp.org>
48166
48167         Ensure that getopt() gets declared by <unistd.h>.
48168         * lib/unistd.in.h: Conditionally include getopt.h.
48169         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48170         Set GNULIB_UNISTD_H_GETOPT.
48171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48172         GNULIB_UNISTD_H_GETOPT.
48173         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48174
48175 2009-08-12  Bruno Haible  <bruno@clisp.org>
48176
48177         Clarify logic.
48178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48179         gl_replace_getopt instead of GETOPT_H.
48180
48181 2009-08-12  Bruno Haible  <bruno@clisp.org>
48182
48183         * m4/getopt.m4: Add comments.
48184
48185 2009-08-12  Bruno Haible  <bruno@clisp.org>
48186
48187         Disable multithread support by default on Cygwin 1.5.x.
48188         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48189         set gl_use_threads=no if not specified otherwise.
48190
48191 2009-08-11  Bruno Haible  <bruno@clisp.org>
48192
48193         Avoid compilation error on NetBSD 5.0.
48194         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48195         * tests/test-stdio.c: Likewise.
48196         * tests/test-stdlib.c: Likewise.
48197         * tests/test-string.c: Likewise.
48198         * tests/test-unistd.c: Likewise.
48199         Reported by Greg Troxel <gdt@ir.bbn.com>
48200         at <https://savannah.gnu.org/support/?106973>.
48201
48202 2009-08-11  Bruno Haible  <bruno@clisp.org>
48203
48204         * modules/dup2-tests (Depends-on): Remove close.
48205
48206         Undo 2009-07-19 commit.
48207         * modules/acl-tests (Depends-on): Remove close.
48208         * modules/binary-io-tests (Depends-on): Likewise.
48209         * modules/closein-tests (Depends-on): Likewise.
48210         * modules/flock-tests (Depends-on): Likewise.
48211         * modules/fsync-tests (Depends-on): Likewise.
48212         * modules/lseek-tests (Depends-on): Likewise.
48213         * modules/pipe-tests (Depends-on): Likewise.
48214         * modules/posix_spawn-tests (Depends-on): Likewise.
48215         * modules/posix_spawnp-tests (Depends-on): Likewise.
48216         * modules/stat-time-tests (Depends-on): Likewise.
48217         * modules/yesno-tests (Depends-on): Likewise.
48218
48219 2009-08-10  Bruno Haible  <bruno@clisp.org>
48220
48221         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48222
48223 2009-08-10  Bruno Haible  <bruno@clisp.org>
48224
48225         Fix a gcc warning.
48226         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48227
48228 2009-08-10  Bruno Haible  <bruno@clisp.org>
48229
48230         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48231         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48232         not only the first time.
48233         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48234         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48235         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48236         is 1, not only the the first time.
48237
48238 2009-08-10  Bruno Haible  <bruno@clisp.org>
48239
48240         Make it possible to use module 'gethostname' without module 'close'.
48241         * lib/unistd.in.h (close): Evoke a link error only if
48242         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48244         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48245         * modules/unistd (Makefile.am): Substitute
48246         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48247         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48248         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48249         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48250         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48251         * modules/sys_ioctl (Makefile.am): Substitute
48252         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48253         * modules/socket (configure.ac): On native Windows, set
48254         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48255         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48256         Reported by Sam Steingold <sds@gnu.org>.
48257
48258 2009-08-10  Bruno Haible  <bruno@clisp.org>
48259
48260         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48261         * modules/ioctl (configure.ac): Likewise.
48262
48263 2009-08-10  Bruno Haible  <bruno@clisp.org>
48264
48265         Avoid collision between gnulib wrapper and libintl wrapper.
48266         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48267         already defined in intl/printf.c.
48268         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48269         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48270
48271 2009-08-09  Bruno Haible  <bruno@clisp.org>
48272
48273         Make <sys/select.h> really self-contained, also on Solaris 10.
48274         * lib/sys_select.in.h: Include <string.h>.
48275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48276         Solaris 10 problem.
48277         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48278         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48279         Reported by Jim Meyering.
48280
48281 2009-08-09  Bruno Haible  <bruno@clisp.org>
48282
48283         Avoid warnings from 'aclocal' that are due to a use of macro name
48284         AM_XGETTEXT_OPTION that is not defined in automake.
48285         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48286         automake.
48287         * modules/error (configure.ac): Likewise.
48288         * modules/propername (configure.ac): Likewise.
48289         * modules/vasprintf (configure.ac): Likewise.
48290         * modules/verror (configure.ac): Likewise.
48291         * modules/xprintf (configure.ac): Likewise.
48292         * modules/xvasprintf (configure.ac): Likewise.
48293
48294 2009-08-08  Bruno Haible  <bruno@clisp.org>
48295
48296         Avoid compilation error in C++ mode.
48297         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48298         Reported by Sam Steingold <sds@gnu.org>.
48299
48300 2009-08-08  Bruno Haible  <bruno@clisp.org>
48301
48302         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48303         for the various Unix platforms.
48304         * doc/posix-headers/limits.texi: Update platforms list regarding
48305         HOST_NAME_MAX.
48306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48307
48308 2009-08-07  Jim Meyering  <meyering@redhat.com>
48309
48310         selinux-at: fix typo in a comment
48311         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48312         Spotted by Paolo Bonzini.
48313
48314         selinux-at: remove redundant m4 code, add documentation
48315         * modules/selinux-at (configure.ac): Remove redundant code.
48316         LIB_SELINUX is already set via the dependent module, selinux-h.
48317         (Include): Add quotes around selinux-at.h.
48318         * lib/selinux-at.h: Add documentation.
48319         Reported by Bruno Haible in
48320         http://marc.info/?l=gnulib-bug&m=124958988300749
48321
48322 2009-08-07  Bruno Haible  <bruno@clisp.org>
48323
48324         Avoid link error on MacOS X 10.3 and 10.4.
48325         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48326         on non-ELF systems.
48327         * lib/argp-pv.c (argp_program_version): Likewise.
48328         Reported by Simon Josefsson.
48329
48330 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48331
48332         * tests/test-version-etc.sh: Use $EXEEXT.
48333
48334 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48335
48336         update-copyright: update documentation to point to maint.mk
48337         * build-aux/update-copyright: Here.
48338
48339 2009-08-06  Jim Meyering  <meyering@redhat.com>
48340
48341         maint.mk: support update-copyright-local
48342         * top/maint.mk (update-copyright-local): Define place-holder.
48343         (update-copyright): Depend on $(update-copyright-local).
48344
48345 2009-08-06  Jim Meyering  <meyering@redhat.com>
48346
48347         selinux-at: new module
48348         Initially written for coreutils, this module will soon be
48349         used by findutils, too.
48350         * MODULES.html.sh [Misc]: Add selinux-at.
48351         * lib/selinux-at.h: New file, from coreutils.
48352         * lib/selinux-at.c: Likewise.
48353         * modules/selinux-at: Likewise.
48354         (License): Change from LGPL to GPL, since it depends
48355         on the GPL'd openat module.
48356
48357         doc: update README
48358         * README: Remove references to cogito.
48359         Remove cvs-repo-updating instructions from 2007.
48360         Don't imply that CVS is better if you have limited disk space.
48361
48362 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48363
48364         update-copyright: support C-style comments
48365         * build-aux/update-copyright: Implement and document.
48366         * tests/test-update-copyright.sh: Test.
48367
48368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48369
48370         update-copyright: support omitted "(C)"
48371         * build-aux/update-copyright: Implement and document.  Also,
48372         allow variable whitespace before "(C)".
48373         * tests/test-update-copyright.sh: Test.
48374
48375 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48376
48377         update-copyright: don't trip on non-FSF copyright statements
48378         * build-aux/update-copyright: Fix so that the first correctly
48379         formatted FSF copyright statement is recognized no matter what
48380         appears before it.  Update documentation.
48381         * tests/test-update-copyright.sh: Test that.
48382
48383 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48384
48385         update-copyright: clean up code a little
48386         * build-aux/update-copyright: Append "_re" to the name of any
48387         variable holding a regular expression.
48388         Replace "old" and "new" with "stmt" in variable names.
48389         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48390         handled correctly.
48391         Format code more consistently.
48392
48393 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48394
48395         update-copyright-tests: improve portability
48396         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48397         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48398
48399 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48400
48401         update-copyright: support @copyright{} and &copy;
48402         * build-aux/update-copyright: Implement and document.
48403         * tests/test-update-copyright.sh: Test.
48404
48405 2009-08-04  Jim Meyering  <meyering@redhat.com>
48406
48407         update-copyright-tests: correctly test EOL=\r\n handling
48408         * tests/test-update-copyright.sh: Put \r at the end of some lines
48409         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48410
48411         maint.mk: make update-copyright exclusion list more configurable
48412         * top/maint.mk (update-copyright): Default to excluding COPYING,
48413         but allow an override, in case someone does want to update that file.
48414
48415         maint.mk: don't update copyright date in COPYING
48416         * top/maint.mk (update-copyright): Exclude COPYING.
48417
48418         maint.mk: add a copyright-updating rule
48419         * top/maint.mk (update-copyright): New rule.
48420         Derived from coreutils/Makefile.am.
48421
48422         update-copyright: rename some variables
48423         * build-aux/update-copyright: Rename a few variables for clarity.
48424         Tweak syntax.  List Joel E. Denny as coauthor.
48425
48426 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48427
48428         update-copyright: fix bug for 2-digit last year and add tests
48429         * build-aux/update-copyright: Fix bug.
48430         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48431         specified.
48432         * modules/update-copyright-tests: New
48433         * tests/test-update-copyright.sh: New.
48434
48435 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48436
48437         update-copyright: handle leading tabs in line prefix
48438         * build-aux/update-copyright: Count leading tabs as 8 spaces
48439         when computing margin.  This helps with the formatting of
48440         ChangeLogs, for example.
48441         Fix documentation a little.
48442
48443 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48444
48445         update-copyright: support EOL=\r\n
48446         * build-aux/update-copyright: Implement that.
48447
48448 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48449
48450         update-copyright: automatically format copyright statements
48451         * build-aux/update-copyright: Implement that.
48452         Also, be a little more predictable and safer by always failing
48453         when the full copyright format is not perfectly recognized as an
48454         unbroken whole.  Discussed at
48455         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48456         Rewrite documentation.
48457
48458 2009-08-03  Bruno Haible  <bruno@clisp.org>
48459
48460         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48461
48462 2009-08-02  Bruno Haible  <bruno@clisp.org>
48463
48464         Tests for module 'uname'.
48465         * modules/uname-tests: New file.
48466         * tests/test-uname.c: New file.
48467
48468         New module 'uname'.
48469         * lib/uname.c: New file.
48470         * m4/uname.m4: New file.
48471         * modules/uname: New file.
48472         * doc/posix-functions/uname.texi: Mention the new module.
48473
48474 2009-08-02  Bruno Haible  <bruno@clisp.org>
48475
48476         Tests for module 'sys_utsname'.
48477         * modules/sys_utsname-tests: New file.
48478         * tests/test-sys_utsname.c: New file.
48479
48480         New module 'sys_utsname'.
48481         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48482         * m4/sys_utsname_h.m4: New file.
48483         * modules/sys_utsname: New file.
48484         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48485
48486 2009-08-02  Bruno Haible  <bruno@clisp.org>
48487
48488         Implicitly initialize the sockets library.
48489         * lib/gethostname.c: Include sockets.h.
48490         (rpl_gethostname): Invoke gl_sockets_startup.
48491         * lib/socket.c: Include sockets.h.
48492         (rpl_socket): Invoke gl_sockets_startup.
48493         * modules/gethostname (Depends-on): Add sockets.
48494         * modules/socket (Depends-on): Likewise.
48495         * tests/test-poll.c: Don't include sockets.h.
48496         (main): Don't invoke gl_sockets_startup.
48497         * tests/test-select.c: Don't include sockets.h.
48498         (main): Don't invoke gl_sockets_startup.
48499
48500 2009-08-02  Bruno Haible  <bruno@clisp.org>
48501
48502         Allow multiple calls to gl_sockets_startup.
48503         * lib/sockets.c (initialized_sockets_version): New variable.
48504         (gl_sockets_startup): Do nothing if already called for this or a higher
48505         version.
48506         (gl_sockets_cleanup): Reset initialized_sockets_version.
48507
48508 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48509
48510         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48511         different project/version.
48512
48513 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48514             Bruno Haible  <bruno@clisp.org>
48515
48516         Tests for module 'pipe-filter-gi'.
48517         * modules/pipe-filter-gi-tests: New file.
48518         * tests/test-pipe-filter-gi1.sh: New file.
48519         * tests/test-pipe-filter-gi1.c: New file.
48520         * tests/test-pipe-filter-gi2.sh: New file.
48521         * tests/test-pipe-filter-gi2-main.c: New file.
48522         * tests/test-pipe-filter-gi2-child.c: New file.
48523
48524         New module 'pipe-filter-gi'.
48525         * lib/pipe-filter-gi.c: New file.
48526         * modules/pipe-filter-gi: New file.
48527
48528 2009-08-02  Bruno Haible  <bruno@clisp.org>
48529             Paolo Bonzini  <bonzini@gnu.org>
48530
48531         Tests for module 'pipe-filter-ii'.
48532         * modules/pipe-filter-ii-tests: New file.
48533         * tests/test-pipe-filter-ii1.sh: New file.
48534         * tests/test-pipe-filter-ii1.c: New file.
48535         * tests/test-pipe-filter-ii2.sh: New file.
48536         * tests/test-pipe-filter-ii2-main.c: New file.
48537         * tests/test-pipe-filter-ii2-child.c: New file.
48538
48539         New module 'pipe-filter-ii'.
48540         * lib/pipe-filter.h: New file.
48541         * lib/pipe-filter-ii.c: New file.
48542         * lib/pipe-filter-aux.h: New file.
48543         * modules/pipe-filter-ii: New file.
48544
48545 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48546
48547         * lib/gc-libgcrypt.c: Change copyright to FSF.
48548         * lib/gc-gnulib.c: Likewise.
48549
48550 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48551
48552         * lib/gethostname.c: Include limits.h.
48553
48554 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48555             Bruno Haible  <bruno@clisp.org>
48556
48557         Ensure HOST_NAME_MAX as part of the gethostname module.
48558         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48559         define also HOST_NAME_MAX.
48560         * tests/test-gethostname.c: Include <limits.h>.
48561         (main): Check also HOST_NAME_MAX.
48562         * doc/posix-headers/limits.texi: Document the mingw problem.
48563
48564 2009-08-02  Bruno Haible  <bruno@clisp.org>
48565
48566         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48567         Add comments.
48568
48569 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48570
48571         * lib/gethostname.c: Add Windows wrapper.
48572         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48573         * modules/gethostname: Depend on sys_socket & errno, for also
48574         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48575         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48576
48577 2009-07-31  Jim Meyering  <meyering@redhat.com>
48578
48579         getloadavg: fix symbol name in comment
48580         * lib/getloadavg.c: Correct a typo I introduced when adding
48581         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48582         Matt Kraai spotted the problem.
48583
48584 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48585
48586         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48587         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48588         code also if ! defined N_NAME_POINTER.
48589         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48590         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48591         but the n_name member is a 12-byte array.
48592
48593 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48594
48595         update-copyright: generalize comment handling
48596         * build-aux/update-copyright: Handle copyright statements
48597         within more comment styles.
48598         Document usage.
48599         Report any file with an external copyright holder or parse failure.
48600
48601 2009-07-29  Jim Meyering  <meyering@redhat.com>
48602
48603         mktime: correct setting of REPLACE_MKTIME
48604         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48605
48606         update-copyright: new module
48607         * modules/update-copyright: New file.
48608         * build-aux/update-copyright: New file.
48609         * MODULES.html.sh (maint+release support): Add update-copyright.
48610
48611 2009-07-27  Bruno Haible  <bruno@clisp.org>
48612
48613         Fix compilation error when <ctime> is used and mktime is replaced.
48614         * lib/time.in.h (mktime): New declaration.
48615         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48616         REPLACE_MKTIME instead of defining mktime in config.h.
48617         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48618         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48619         Reported by Ross McFarland <rwmcfa1@neces.com>.
48620
48621 2009-07-27  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48624         Reported by Matt Kraai <mkraai@beckman.com>.
48625
48626 2009-07-25  Jim Meyering  <meyering@redhat.com>
48627
48628         maint.mk: avoid warnings about missing files
48629         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48630         diagnostic when .prev-version does not exist.
48631         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48632         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48633         nonexistent cfg.mk.
48634         Suggestions from Simon Josefsson.
48635
48636 2009-07-25  Bruno Haible  <bruno@clisp.org>
48637
48638         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48639         defined as macros. Needed on QNX 6.4.1.
48640         Reported by Matt Kraai <mkraai@beckman.com>.
48641
48642 2009-07-23  Jim Meyering  <meyering@redhat.com>
48643
48644         maint.mk: invoke "make dist" with a working value of XZ_OPT
48645         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48646
48647 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48648
48649         Make fseeko.c compile on QNX.
48650         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48651
48652 2009-07-22  Peter Simons  <simons@cryp.to>
48653
48654         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48655         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48656         * lib/md4.h: Likewise.
48657         * lib/md5.h: Likewise.
48658         * lib/sha1.h: Likewise.
48659         * lib/sha256.h: Likewise.
48660         * lib/sha512.h: Likewise.
48661
48662         tests-sha1: don't assign literal string to 'char *' variable
48663         * tests/test-sha1.c (main): Declare locals with "const" to match
48664         attributes of the right hand side.
48665
48666 2009-07-21  Eric Blake  <ebb9@byu.net>
48667
48668         dup2: fix more mingw problems
48669         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48670         fd to itself.
48671         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48672         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48673         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48674         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48675         care of mingw bugs.
48676
48677 2009-07-21  Jim Meyering  <meyering@redhat.com>
48678
48679         vc-list-files: avoid failure when /bin/sh is dash
48680         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48681         On some Debian based systems, /bin/sh is a symlink to dash, and running
48682         this command would omit the "/" following each 'tests' prefix:
48683           dash -x build-aux/vc-list-files -C . tests
48684         That is because bash and dash work differently:
48685           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48686           bash ok
48687           dash odd
48688
48689 2009-07-21  Eric Blake  <ebb9@byu.net>
48690
48691         dup2-tests: test previous patch
48692         * modules/dup2-tests: New file.
48693         * tests/test-dup2.c: Likewise.
48694         * tests/test-open.c (main): Avoid unspecified behavior.
48695         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48696         test.
48697
48698         dup2: work around mingw and cygwin 1.5 bug
48699         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48701         * modules/unistd (Makefile.am): Substitute it.
48702         * lib/unistd.in.h (dup2): Declare the replacement.
48703         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48704         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48705         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48706         * modules/execute (Depends-on): Add dup2.
48707         * modules/fseterr (Depends-on): Likewise.
48708         * modules/pipe (Depends-on): Likewise.
48709         * modules/posix_spawn-internal (Depends-on): Likewise.
48710
48711 2009-07-21  Bruno Haible  <bruno@clisp.org>
48712
48713         * modules/.gitattributes: New file.
48714
48715 2009-07-20  Bruno Haible  <bruno@clisp.org>
48716
48717         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48718         (main): Use it.
48719
48720 2009-07-20  Eric Blake  <ebb9@byu.net>
48721
48722         test-pipe: make a bit more robust.
48723         * tests/test-pipe.c (myerr): Allow error messages regardless of
48724         what we do to stderr.
48725         (test_pipe): Rearrange to avoid deadlock.
48726         (child_main): Try a larger read, to ensure we avoided deadlock.
48727         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48728         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48729         if misused.
48730
48731 2009-07-19  Jim Meyering  <meyering@redhat.com>
48732
48733         fts: avoid false-positive cycle-detection
48734         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48735         for each new command line argument.
48736
48737 2009-07-19  Bruno Haible  <bruno@clisp.org>
48738
48739         Fix build error on mingw with the modules sys_select and unistd.
48740         * modules/acl-tests (Depends-on): Add close.
48741         * modules/binary-io-tests (Depends-on): Likewise.
48742         * modules/closein-tests (Depends-on): Likewise.
48743         * modules/flock-tests (Depends-on): Likewise.
48744         * modules/fsync-tests (Depends-on): Likewise.
48745         * modules/lseek-tests (Depends-on): Likewise.
48746         * modules/pipe-tests (Depends-on): Likewise.
48747         * modules/posix_spawn-tests (Depends-on): Likewise.
48748         * modules/posix_spawnp-tests (Depends-on): Likewise.
48749         * modules/stat-time-tests (Depends-on): Likewise.
48750         * modules/yesno-tests (Depends-on): Likewise.
48751
48752 2009-07-19  Bruno Haible  <bruno@clisp.org>
48753
48754         Unify conditionals.
48755         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48756         macros, not at the compiler macros.
48757         * lib/pipe.c: Likewise.
48758         * lib/execute.c: Likewise.
48759         * lib/spawni.c: Likewise.
48760
48761 2009-07-19  Bruno Haible  <bruno@clisp.org>
48762
48763         Fix handling of closed stdin/stdout/stderr on mingw.
48764         * lib/w32spawn.h: Include unistd.h.
48765         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48766         file descriptor with O_NOINHERIT flag.
48767         (fd_safer_noinherit): New function, based on fd-safer.c.
48768         (dup_safer_noinherit): New function, based on dup-safer.c.
48769         (undup_safer_noinherit): New function.
48770         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48771         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48772         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48773         instead of fd_safer.
48774         * tests/test-pipe.c: Include <windows.h>.
48775         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48776         result.
48777
48778         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48779         from main.
48780         (test_pipe): Pass an extra argument for disambiguation.
48781         (main): Invoke parent_main or child_main.
48782
48783         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48784         consistently.
48785
48786 2009-07-18  Eric Blake  <ebb9@byu.net>
48787
48788         test-pipe: fix mingw build
48789         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48790
48791 2009-07-18  Bruno Haible  <bruno@clisp.org>
48792
48793         * modules/pipe-tests (Makefile.am): Fix typo.
48794
48795 2009-07-18  Eric Blake  <ebb9@byu.net>
48796
48797         error: fix mingw build
48798         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48799         Reported by Bruno Haible.
48800
48801         error: avoid undefined use of stdout
48802         * lib/error.c (error, error_at_line): Check that fd 1 is open
48803         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48804         is handling faults and the close_stdout module wants to report the
48805         detection of closed stdout as an error.
48806
48807 2009-07-17  Eric Blake  <ebb9@byu.net>
48808
48809         pipe: be robust in face of closed fds
48810         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48811         should cause child to misbehave.
48812         * modules/pipe-tests: New module.
48813         * tests/test-pipe.c: New file.
48814         * tests/test-pipe.sh: New file.
48815         Reported by Akim Demaille.
48816
48817 2009-07-14  Bruno Haible  <bruno@clisp.org>
48818
48819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48820         Reported by anonymous kc.
48821
48822 2009-07-07  Jim Meyering  <meyering@redhat.com>
48823
48824         maint.mk: don't look for translatable strings in *.m4 or *.mk
48825         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48826         when searching for translatable strings.
48827
48828 2009-07-05  Jim Meyering  <meyering@redhat.com>
48829
48830         remove superfluous parentheses in STREQ definition
48831         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48832         * lib/getugroups.c (STREQ): Likewise.
48833         * lib/fnmatch.c (STREQ): Likewise.
48834         Spotted by Bruno Haible.
48835
48836 2009-07-04  Jim Meyering  <meyering@redhat.com>
48837
48838         argv-iter: new module
48839         * MODULES.html.sh: Add argv-iter.
48840         * lib/argv-iter.c, lib/argv-iter.h: New files.
48841         * modules/argv-iter: New file.
48842         * modules/argv-iter-tests: New file.
48843         * tests/test-argv-iter.c: Test it.
48844
48845 2009-07-04  Bruno Haible  <bruno@clisp.org>
48846
48847         Fix assertion.
48848         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48849         contains more exact copies of a given entry than file2, leave the extra
48850         copies unpaired rather than aborting.
48851         Reported by Eric Blake.
48852
48853 2009-07-02  Bruno Haible  <bruno@clisp.org>
48854
48855         Speedup git-merge-changelog for git cherry-pick.
48856         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48857         (entries_mapping_get): New function, extracted from compute_mapping.
48858         (entries_mapping_reverse_get): New function.
48859         (compute_mapping): Add a 'full' argument. Return the result in a
48860         'struct entries_mapping'.
48861         (main): Update. Access the mappings through entries_mapping_get.
48862         Reported by Eric Blake.
48863
48864 2009-07-02  Bruno Haible  <bruno@clisp.org>
48865
48866         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48867         best_i.
48868
48869 2009-07-02  Bruno Haible  <bruno@clisp.org>
48870
48871         Speed up approximate search for matching ChangeLog entries.
48872         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48873         argument. Call fstrcmp_bounded instead of fstrcmp.
48874         (compute_mapping, try_split_merged_entry, main): Update callers.
48875
48876 2009-07-02  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48879
48880 2009-06-30  Bruno Haible  <bruno@clisp.org>
48881
48882         Reduce the number of uc_is_cased calls.
48883         * lib/unicase.h (casing_suffix_context_t): Add
48884         'first_char_except_ignorable' field.
48885         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48886         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48887         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48888         Update initializer.
48889         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48890         case-ignorable characters.
48891         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48892         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48893         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48894         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48895         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48896
48897 2009-06-30  Bruno Haible  <bruno@clisp.org>
48898
48899         Tests for module 'unicase/ignorable'.
48900         * modules/unicase/ignorable-tests: New file.
48901         * tests/unicase/test-ignorable.c: New file, generated by
48902         gen-uni-tables.
48903
48904         Tests for module 'unicase/cased'.
48905         * modules/unicase/cased-tests: New file.
48906         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48907         * tests/unicase/test-predicate-part1.h: New file, derived from
48908         tests/unictype/test-predicate-part1.h.
48909         * tests/unicase/test-predicate-part2.h: New file, same as
48910         tests/unictype/test-predicate-part2.h.
48911
48912         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48913         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48914         (output_casing_properties): New function.
48915         (main): Call it.
48916         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48917         * lib/unicase/cased.c: Include unictype/bitmap.h.
48918         (uc_is_cased): Define through a bitmap lookup.
48919         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48920         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48921         (uc_is_case_ignorable): Define through a bitmap lookup.
48922         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48923         lib/unictype/bitmap.h.
48924         (Depends-on): Add inline. Clean up.
48925         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48926         lib/unictype/bitmap.h.
48927         (Depends-on): Add inline. Clean up.
48928         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48929         recognition.
48930         * tests/unicase/test-u16-tolower.c (main): Likewise.
48931         * tests/unicase/test-u32-tolower.c (main): Likewise.
48932
48933 2009-06-30  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48936         * lib/unicase/u16-casemap.c: Likewise.
48937         * lib/unicase/u32-casemap.c: Likewise.
48938
48939 2009-06-29  Bruno Haible  <bruno@clisp.org>
48940
48941         Define u32_casefold as a wrapper around u32_ct_casefold.
48942         * lib/unicase/u32-casefold.c: Update.
48943         * modules/unicase/u32-casefold (Depends-on): Add
48944         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48945         unicase/empty-suffix-context. Clean up.
48946
48947         Define u16_casefold as a wrapper around u16_ct_casefold.
48948         * lib/unicase/u16-casefold.c: Update.
48949         * modules/unicase/u16-casefold (Depends-on): Add
48950         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48951         unicase/empty-suffix-context. Clean up.
48952
48953         Define u8_casefold as a wrapper around u8_ct_casefold.
48954         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48955         * lib/unicase/u8-casefold.c: Update.
48956         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48957         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48958
48959         Define u32_totitle as a wrapper around u32_ct_totitle.
48960         * lib/unicase/u32-totitle.c: Update.
48961         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48962         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48963
48964         Define u16_totitle as a wrapper around u16_ct_totitle.
48965         * lib/unicase/u16-totitle.c: Update.
48966         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48967         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48968
48969         Define u8_totitle as a wrapper around u8_ct_totitle.
48970         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48971         functions.
48972         (FUNC): Delegate to U_CT_TOTITLE.
48973         * lib/unicase/u8-totitle.c: Update.
48974         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48975         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48976
48977         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48978         invocation.
48979         * modules/unicase/u32-tolower (Depends-on): Add
48980         unicase/empty-prefix-context, unicase/empty-suffix-context.
48981
48982         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48983         invocation.
48984         * modules/unicase/u16-tolower (Depends-on): Add
48985         unicase/empty-prefix-context, unicase/empty-suffix-context.
48986
48987         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48988         * modules/unicase/u8-tolower (Depends-on): Add
48989         unicase/empty-prefix-context, unicase/empty-suffix-context.
48990
48991         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48992         invocation.
48993         * modules/unicase/u32-toupper (Depends-on): Add
48994         unicase/empty-prefix-context, unicase/empty-suffix-context.
48995
48996         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48997         invocation.
48998         * modules/unicase/u16-toupper (Depends-on): Add
48999         unicase/empty-prefix-context, unicase/empty-suffix-context.
49000
49001         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49002         * modules/unicase/u8-toupper (Depends-on): Add
49003         unicase/empty-prefix-context, unicase/empty-suffix-context.
49004
49005         New module 'unicase/u32-ct-casefold'.
49006         * lib/unicase/u32-ct-casefold.c: New file.
49007         * modules/unicase/u32-ct-casefold: New file.
49008
49009         New module 'unicase/u16-ct-casefold'.
49010         * lib/unicase/u16-ct-casefold.c: New file.
49011         * modules/unicase/u16-ct-casefold: New file.
49012
49013         New module 'unicase/u8-ct-casefold'.
49014         * lib/unicase/u8-ct-casefold.c: New file.
49015         * lib/unicase/u-ct-casefold.h: New file, derived from
49016         lib/unicase/u-casefold.h.
49017         * modules/unicase/u8-ct-casefold: New file.
49018
49019         New module 'unicase/u32-ct-totitle'.
49020         * lib/unicase/u32-ct-totitle.c: New file.
49021         * modules/unicase/u32-ct-totitle: New file.
49022
49023         New module 'unicase/u16-ct-totitle'.
49024         * lib/unicase/u16-ct-totitle.c: New file.
49025         * modules/unicase/u16-ct-totitle: New file.
49026
49027         New module 'unicase/u8-ct-totitle'.
49028         * lib/unicase/u8-ct-totitle.c: New file.
49029         * lib/unicase/u-ct-totitle.h: New file, derived from
49030         lib/unicase/u-totitle.h.
49031         * modules/unicase/u8-ct-totitle: New file.
49032
49033         New module 'unicase/u32-ct-tolower'.
49034         * lib/unicase/u32-ct-tolower.c: New file.
49035         * modules/unicase/u32-ct-tolower: New file.
49036
49037         New module 'unicase/u16-ct-tolower'.
49038         * lib/unicase/u16-ct-tolower.c: New file.
49039         * modules/unicase/u16-ct-tolower: New file.
49040
49041         New module 'unicase/u8-ct-tolower'.
49042         * lib/unicase/u8-ct-tolower.c: New file.
49043         * modules/unicase/u8-ct-tolower: New file.
49044
49045         New module 'unicase/u32-ct-toupper'.
49046         * lib/unicase/u32-ct-toupper.c: New file.
49047         * modules/unicase/u32-ct-toupper: New file.
49048
49049         New module 'unicase/u16-ct-toupper'.
49050         * lib/unicase/u16-ct-toupper.c: New file.
49051         * modules/unicase/u16-ct-toupper: New file.
49052
49053         New module 'unicase/u8-ct-toupper'.
49054         * lib/unicase/u8-ct-toupper.c: New file.
49055         * modules/unicase/u8-ct-toupper: New file.
49056
49057         Add context arguments to u*_casemap functions.
49058         * lib/unicase/unicasemap.h: Include unicase.h.
49059         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49060         suffix_context arguments.
49061         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49062         functions.
49063         (FUNC): Add prefix_context and suffix_context arguments. Use
49064         uc_is_cased and uc_is_case_ignorable.
49065         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49066         * lib/unicase/u16-casemap.c: Likewise.
49067         * lib/unicase/u32-casemap.c: Likewise.
49068         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49069         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49070         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49071         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49072         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49073         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49074
49075         New module 'unicase/u32-suffix-context'.
49076         * lib/unicase/u32-suffix-context.c: New file.
49077         * modules/unicase/u32-suffix-context: New file.
49078
49079         New module 'unicase/u16-suffix-context'.
49080         * lib/unicase/u16-suffix-context.c: New file.
49081         * modules/unicase/u16-suffix-context: New file.
49082
49083         New module 'unicase/u8-suffix-context'.
49084         * lib/unicase/u8-suffix-context.c: New file.
49085         * lib/unicase/u-suffix-context.h: New file.
49086         * modules/unicase/u8-suffix-context: New file.
49087
49088         New module 'unicase/empty-suffix-context'.
49089         * lib/unicase/empty-suffix-context.c: New file.
49090         * modules/unicase/empty-suffix-context: New file.
49091
49092         New module 'unicase/u32-prefix-context'.
49093         * lib/unicase/u32-prefix-context.c: New file.
49094         * modules/unicase/u32-prefix-context: New file.
49095
49096         New module 'unicase/u16-prefix-context'.
49097         * lib/unicase/u16-prefix-context.c: New file.
49098         * modules/unicase/u16-prefix-context: New file.
49099
49100         New module 'unicase/u8-prefix-context'.
49101         * lib/unicase/u8-prefix-context.c: New file.
49102         * lib/unicase/u-prefix-context.h: New file.
49103         * lib/unicase/context.h: New file.
49104         * modules/unicase/u8-prefix-context: New file.
49105
49106         New module 'unicase/empty-prefix-context'.
49107         * lib/unicase/empty-prefix-context.c: New file.
49108         * modules/unicase/empty-prefix-context: New file.
49109
49110         New module 'unicase/ignorable'.
49111         * lib/unicase/ignorable.c: New file.
49112         * modules/unicase/ignorable: New file.
49113
49114         New module 'unicase/cased'.
49115         * lib/unicase/caseprop.h: New file.
49116         * lib/unicase/cased.c: New file.
49117         * modules/unicase/cased: New file.
49118
49119         New functions for case mapping of substrings.
49120         * lib/unicase.h (casing_prefix_context_t): New type.
49121         (unicase_empty_prefix_context): New variable.
49122         (u8_casing_prefix_context, u16_casing_prefix_context,
49123         u32_casing_prefix_context, u8_casing_prefixes_context,
49124         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49125         declarations.
49126         (casing_suffix_context_t): New type.
49127         (unicase_empty_suffix_context): New variable.
49128         (u8_casing_suffix_context, u16_casing_suffix_context,
49129         u32_casing_suffix_context, u8_casing_suffixes_context,
49130         u16_casing_suffixes_context, u32_casing_suffixes_context,
49131         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49132         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49133         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49134         declarations.
49135
49136 2009-06-28  Jim Meyering  <meyering@redhat.com>
49137
49138         boostrap: indent only with spaces
49139         * build-aux/bootstrap: Indent only with spaces, never TABs.
49140
49141         bootstrap: split long lines
49142         * build-aux/bootstrap: Keep line length < 80.
49143
49144         bootstrap: sync from coreutils
49145         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49146         just as autoreconf does.  Verify a list of prerequisite
49147         package-name,version-number pairs if defined in bootstrap.conf.
49148         Refer to README-prereq, if prerequisites are not satisfied.
49149
49150 2009-06-27  Eric Blake  <ebb9@byu.net>
49151
49152         tests: add test for bogus NULL definition
49153         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49154         * tests/test-stdlib.c: Likewise.
49155         * tests/test-string.c: Likewise.
49156         * tests/test-locale.c: Likewise.
49157         * tests/test-unistd.c: Likewise.
49158         * modules/stdio-tests (Depends-on): Add verify.
49159         * modules/stdlib-tests (Depends-on): Likewise.
49160         * modules/string-tests (Depends-on): Likewise.
49161         * modules/locale-tests (Depends-on): Likewise.
49162         * modules/unistd-tests (Depends-on): Likewise.
49163
49164 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49165
49166         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49167         self-explaining comment.
49168         * m4/selinux-selinux-h: Update serial.
49169         (gl_LIBSELINUX): New macro, adding a warning for missing development
49170         packages to code extracted from...
49171         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49172         Add warning for missing development packages here, too.
49173
49174 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49175
49176         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49177
49178 2009-06-25  Eric Blake  <ebb9@byu.net>
49179
49180         version-etc: fix regression
49181         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49182         gcc.
49183         (version_etc): Use it, to catch bugs with trailing NULL.
49184         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49185         (version_etc_va): Fix logic bug.
49186         * modules/version-etc-tests: Add test.
49187         * tests/test-version-etc.c: New file.
49188         * tests/test-version-etc.sh: Likewise.
49189
49190 2009-06-25  Sam Steingold  <sds@gnu.org>
49191
49192         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49193         mbtowc declaration.
49194
49195 2009-06-25  Eric Blake  <ebb9@byu.net>
49196
49197         fpurge: migrate into <stdio.h>
49198         * lib/fpurge.h: Delete...
49199         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49200         * lib/fpurge.c (fpurge): Change declaring header.
49201         * modules/fpurge (Files): Drop deleted file.
49202         (Depends-on): Add stdio.
49203         (configure.ac): Set witness.
49204         * modules/stdio (Makefile.am): Support fpurge macros.
49205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49206         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49207         * lib/fflush.c: Update client.
49208         * tests/test-fpurge.c: Likewise.
49209         * NEWS: Mention the change.
49210
49211 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49212
49213         * lib/argp-version-etc.c (program_authors): Add const
49214         qualifier.
49215         * lib/version-etc.c: Fix typos in the comments.
49216         * modules/argp-version-etc: Depends on version-etc.
49217
49218 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49219
49220         argp-version-etc: new module.
49221
49222         * lib/argp-version-etc.c: New file.
49223         * lib/argp-version-etc.h: New file.
49224         * modules/argp-version-etc: New file.
49225         * modules/argp-version-etc-tests: New file.
49226         * tests/test-argp-version-etc.c: New test.
49227         * tests/test-argp-version-etc-1.sh: New test.
49228
49229 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49230
49231         Provide additional interfaces and documentation for version-etc
49232         module.
49233
49234         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49235         interfaces.
49236         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49237         prototypes.
49238
49239 2009-06-24  Bruno Haible  <bruno@clisp.org>
49240
49241         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49242         HAVE_LIB${NAME} macro.
49243         Reported by Sam Steingold <sds@gnu.org>.
49244
49245 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49246
49247         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49248         needed.
49249
49250 2009-06-21  Bruno Haible  <bruno@clisp.org>
49251
49252         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49253         work.
49254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49255         together with LIB${NAME}, LTLIB${NAME}.
49256         Reported by Sam Steingold <sds@gnu.org>.
49257
49258 2009-06-20  Jim Meyering  <meyering@redhat.com>
49259
49260         tests: make sc_require_test_exit_idiom more generic
49261         * top/maint.mk (Exit_witness_file): New overridable variable.
49262         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49263         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49264
49265 2009-06-19  Jim Meyering  <meyering@redhat.com>
49266
49267         hash: reverse order of src/dst parameters in an internal interface
49268         * lib/hash.c (transfer_entries): Reverse order of parameters to
49269         put DST before SRC.  Adjust callers.
49270
49271         tests: test-hash: avoid wholesale duplication
49272         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49273         Instead, use a loop and add a single conditional.
49274
49275         tests: test-hash: allow seed selection via a command line argument
49276         * tests/test-hash.c (get_seed): New function.
49277         (main): Use it.
49278
49279 2009-06-19  Eric Blake  <ebb9@byu.net>
49280
49281         hash: avoid memory leak on allocation failure
49282         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49283         failure.  Factor repeated algorithm...
49284         (transfer_entries): ...into new helper routine.
49285         (hash_delete): React to hash_rehash return value.
49286
49287         hash: reduce memory pressure in hash_rehash no-op case
49288         * lib/hash.c (next_prime): Avoid overflow.
49289         (hash_initialize): Factor bucket size computation...
49290         (compute_bucket_size): ...into new helper function.
49291         (hash_rehash): Use new function and open coding to reduce memory
49292         pressure, and avoid a memory leak in USE_OBSTACK code.
49293         Reported by Jim Meyering.
49294
49295 2009-06-18  Eric Blake  <ebb9@byu.net>
49296
49297         hash: make rotation more obvious
49298         * modules/hash (Depends-on): Add bitrotate and stdint.
49299         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49300         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49301         (SIZE_MAX): Rely on headers for definition.
49302         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49303         (raw_hasher): Use rotr_sz.
49304         Suggested by Jim Meyering.
49305
49306         hash: fix memory leak in last patch
49307         * lib/hash.c (hash_rehash): Avoid memory leak.
49308
49309         hash: avoid no-op rehashing
49310         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49311
49312         hash: provide default callback functions
49313         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49314         (hash_initialize): Use them as defaults.
49315         * tests/test-hash.c (main): Test this.
49316
49317         hash: minor optimization
49318         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49319         when possible.
49320         (hash_initialize): Document this promise.
49321         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49322         * tests/test-hash.c (hash_compare_strings): Test this.
49323
49324 2009-06-18  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49327         going to be replaced anyway.
49328
49329 2009-06-18  Bruno Haible  <bruno@clisp.org>
49330
49331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49332         in one place.
49333         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49334         be replaced anyway.
49335
49336 2009-06-18  Eric Blake  <ebb9@byu.net>
49337
49338         hash: check for resize before insertion
49339         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49340         threshold before insertion, so that a pathological hash_rehash
49341         that fills every bucket can still trigger another rehash.
49342
49343 2009-06-18  Jim Meyering  <meyering@redhat.com>
49344
49345         hash-tests: add a loop around the small tests
49346         * tests/test-hash.c (main): Repeat small tests with selected
49347         small initial table sizes.
49348
49349 2009-06-17  Eric Blake  <ebb9@byu.net>
49350
49351         hash: minor cleanups
49352         * lib/hash.h (hash_entry): Make opaque, by moving...
49353         * lib/hash.c (hash_entry): ...here.
49354         (hash_insert): Clarify restrictions on what can be inserted.
49355         (hash_get_next): Clarify when it is safe to remove an element
49356         during traversal.
49357         (check_tuning): Skip verification when tuning is known safe.
49358         (hash_initialize): Clarify restrictions on tuning.
49359
49360 2009-06-17  Jim Meyering  <jim@meyering.net>
49361         and Eric Blake  <ebb9@byu.net>
49362
49363         hash-tests: new module
49364         * modules/hash-tests: New file.
49365         * tests/test-hash.c: New file.
49366
49367 2009-06-17  Eric Blake  <ebb9@byu.net>
49368
49369         strstr-simple: document new module
49370         * MODULES.html.sh: Document new module.
49371
49372         strstr, strcasestr: replace on platforms with broken memchr
49373         * modules/strstr: Split into...
49374         * modules/strstr-simple: ...new module that does not care about
49375         performance, but does care about glibc bug.
49376         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49377         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49378         if platform memchr is broken, per Debian bug 521737.
49379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49380         memchr.
49381         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49382         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49383         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49384         * modules/mountlist (Depends-on): Add strstr-simple.
49385         * modules/gen-uni-tables (Depends-on): Likewise.
49386         * modules/argz (Depends-on): Add strstr.
49387
49388 2009-06-17  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/posix_spawn-internal (Depends-on): Add errno.
49391
49392 2009-06-17  Bruno Haible  <bruno@clisp.org>
49393
49394         Define missing ESTALE on Interix 3.5.
49395         * lib/errno.in.h (ESTALE): Assign a value if missing.
49396         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49397         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49398         missing.
49399         * doc/posix-headers/errno.texi: Mention the Interix bug.
49400         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49401
49402 2009-06-15  Eric Blake  <ebb9@byu.net>
49403
49404         memchr, memchr2: add valgrind exception
49405         * lib/memchr.valgrind: New file.
49406         * lib/memchr2.valgrind: New file.
49407         * modules/memchr (Files): Distribute valgrind file.
49408         * modules/memchr2 (Files): Likewise.
49409
49410         docs: memchr is no longer obsolete
49411         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49412         * lib/string.in.h (memchr): Simplify logic.
49413
49414 2009-06-14  Jim Meyering  <meyering@redhat.com>
49415
49416         link-follow: fix the "checking..." message to not mention trailing slash
49417         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49418         never considered trailing slashes.
49419
49420 2009-06-14  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/memchr.m4: Mention also the bug on IA-64.
49423         * doc/posix-functions/memchr.texi: Likewise.
49424
49425 2009-06-12  Eric Blake  <ebb9@byu.net>
49426
49427         memchr: detect broken x86_64 and alpha implementations
49428         * modules/memchr-tests (Depends-on): Move mmap detection...
49429         * modules/memchr (Depends-on): ...here.
49430         (configure.ac): Set indicator.
49431         * lib/string.in.h (memchr): Declare replacement.
49432         * modules/string (Makefile.am): Trigger replacement.
49433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49434         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49435         bugs.
49436         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49437         * modules/getpagesize (License): Relax license.
49438
49439 2009-06-11  Bruno Haible  <bruno@clisp.org>
49440
49441         * lib/idpriv.h: Add more references.
49442
49443 2009-06-08  Bruno Haible  <bruno@clisp.org>
49444
49445         Tests for module 'idpriv-droptemp'.
49446         * modules/idpriv-droptemp-tests: New file.
49447         * tests/test-idpriv-droptemp.sh: New file.
49448         * tests/test-idpriv-droptemp.su.sh: New file.
49449         * tests/test-idpriv-droptemp.c: New file.
49450
49451         New module 'idpriv-droptemp'.
49452         * lib/idpriv-droptemp.c: New file.
49453         * modules/idpriv-droptemp: New file.
49454
49455 2009-06-08  Bruno Haible  <bruno@clisp.org>
49456
49457         Tests for module 'idpriv-drop'.
49458         * modules/idpriv-drop-tests: New file.
49459         * tests/test-idpriv-drop.sh: New file.
49460         * tests/test-idpriv-drop.su.sh: New file.
49461         * tests/test-idpriv-drop.c: New file.
49462
49463         New module 'idpriv-drop'.
49464         * lib/idpriv.h: New file.
49465         * lib-idpriv-drop.c: New file.
49466         * m4/idpriv.m4: New file.
49467         * modules/idpriv-drop: New file.
49468
49469 2009-06-08  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49473         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49474         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49475         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49476         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49477         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49478
49479 2009-06-08  Eric Blake  <ebb9@byu.net>
49480
49481         test-strstr: use memory fence, when possible
49482         * tests/test-strstr.c (main): Use memory fence, in order to be
49483         more likely to trigger Debian bug 521737.
49484         * modules/strstr-tests (Files): Pull in additional files.
49485
49486         memchr: no longer obsolete, for wider field testing
49487         * modules/memchr (Status, Notice): Delete, this module is no
49488         longer obsolete.
49489         * modules/vasnprintf (Depends-on): Add memchr.
49490
49491 2009-06-07  Jim Meyering  <meyering@redhat.com>
49492
49493         hash: declare some functions with the warn_unused_result attribute
49494         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49495
49496 2009-06-07  Bruno Haible  <bruno@clisp.org>
49497
49498         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49499         Reported by Eric Blake.
49500
49501 2009-06-06  Eric Blake  <ebb9@byu.net>
49502
49503         test-alignof: fix typo with long double
49504         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49505         compiler error.
49506
49507 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49508
49509         Escape non-texinfo { and }s.
49510         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49511         markup error.
49512
49513 2009-06-04  Jim Meyering  <meyering@redhat.com>
49514
49515         gitlog-to-changelog: don't infloop on an empty commit log
49516         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49517         Reported by Boris Petersen <transacid@centerim.org>.
49518
49519 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49520
49521         version-etc: extend for packagers
49522         Add three new configure options, intended for packagers:
49523           --with-packager="packager name"
49524           --with-packager-version="packager-specific version"
49525           --with-packager-bug-reports="packager bug reporting"
49526         An example with coreutils:
49527           $ ./configure \
49528             --with-packager=Gentoo \
49529             --with-packager-bug-report=http://bugs.gentoo.org/ \
49530             --with-packager-version="patchset 1.6"
49531           $ ./src/ls --version | head -n2
49532           ls (GNU coreutils) 7.1-dirty
49533           Packaged by Gentoo (patchset 1.6)
49534         Note that the bug reporting info via --help doesn't show up because
49535         coreutils uses its own custom emit_bug_reporting_address() implementation
49536         in src/system.h.  If it didn't, it'd look like:
49537           $ ./src/ls --help | tail -n4
49538           Report bugs to <bug-coreutils@gnu.org>.
49539           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49540           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49541           General help using GNU software: <http://www.gnu.org/gethelp/>.
49542         * lib/version-etc.c: Print new information, if provided.
49543         * m4/version-etc.m4: New file.
49544         * modules/version-etc (Files): Add m4/version-etc.m4.
49545         (configure.ac): Add gl_VERSION_ETC.
49546
49547 2009-05-31  Bruno Haible  <bruno@clisp.org>
49548
49549         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49550         and 'int64_t'.
49551         * modules/alignof-tests (Dependencies): Add stdint.
49552         Reported by Eric Blake.
49553
49554 2009-05-31  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49557         restriction due to compiler bugs.
49558         Reported by Eric Blake.
49559
49560 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49561             Bruno Haible  <bruno@clisp.org>
49562
49563         Fix test-alignof failure.
49564         * lib/alignof.h (alignof_slot): New macro.
49565         (alignof_type): New macro, with the same semantics as the previous
49566         'alignof'.
49567         (alignof): Alias to alignof_slot.
49568         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49569         check that the results are usable as constant expressions.
49570
49571 2009-05-31  Bruno Haible  <bruno@clisp.org>
49572
49573         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49574         * tests/test-memchr.c (main): Check that memchr does not read past the
49575         first occurrence of the byte.
49576         * tests/test-strstr.c (main): Update comment.
49577         Suggested by Eric Blake.
49578
49579 2009-05-30  Bruno Haible  <bruno@clisp.org>
49580
49581         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49582         detail how to use dumpbin.
49583         Reported by David Byron <dbyron@dbyron.com>.
49584
49585 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49586
49587         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49588
49589 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49590
49591         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49592
49593 2009-05-28  Bruno Haible  <bruno@clisp.org>
49594
49595         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49596         build-aux/ files.
49597
49598 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49599
49600         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49601
49602 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49603
49604         * gnulib-tool (sed_transform_main_lib_file)
49605         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49606         regexps.
49607
49608 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49609
49610         * tests/test-strstr.c: Add another self-test.
49611         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49612         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49613
49614 2009-05-23  Bruno Haible  <bruno@clisp.org>
49615
49616         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49617         change.
49618
49619 2009-05-21  Bruno Haible  <bruno@clisp.org>
49620
49621         Simplify use of mode_t varargs.
49622         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49623         uses 'mode_t' or 'int'.
49624         * lib/openat.c (openat): Likewise.
49625         * lib/open-safer.c (open_safer): Likewise.
49626         * m4/mode_t.m4: New file.
49627         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49628         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49629         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49630         * modules/open (Files): Add m4/mode_t.m4.
49631         * modules/openat (Files): Likewise.
49632         * modules/fcntl-safer (Files): Likewise.
49633         Suggested by Eric Blake.
49634
49635 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49636
49637         * doc/glibc-functions/fallocate.texi: New file.
49638         * doc/gnulib.texi: Include it.
49639
49640 2009-05-21  Eric Blake  <ebb9@byu.net>
49641             Bruno Haible  <bruno@clisp.org>
49642
49643         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49644         invocations.
49645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49646
49647 2009-05-21  Eric Blake  <ebb9@byu.net>
49648             Bruno Haible  <bruno@clisp.org>
49649
49650         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49651         include_next. Fix of 2008-11-20 commit.
49652         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49653         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49654         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49655         NEXT_MATH_H.
49656         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49657         instead of NEXT_MATH_H.
49658
49659 2009-05-21  Bruno Haible  <bruno@clisp.org>
49660
49661         Avoid redefinition warnings for SIZE_MAX.
49662         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49663         Reported by Simon Josefsson.
49664
49665 2009-05-21  Bruno Haible  <bruno@clisp.org>
49666
49667         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49668         AC_CACHE_VAL.
49669
49670 2009-05-20  Bruno Haible  <bruno@clisp.org>
49671
49672         Make zeroptr.h work on mingw.
49673         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49674         mprotect.
49675         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49676         * modules/memchr2-tests (configure.ac): Likewise.
49677         * modules/memcmp-tests (configure.ac): Likewise.
49678         * modules/memmem-tests (configure.ac): Likewise.
49679         * modules/memrchr-tests (configure.ac): Likewise.
49680         Reported by Simon Josefsson.
49681
49682 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49683
49684         * tests/test-glob.c: Include string.h for strcmp prototype.
49685
49686 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49687
49688         * modules/getdelim (Depends-on): Add explicit stdint, although it
49689         was implicitly already pulled in via realloc-posix.
49690         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49691
49692 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49693
49694         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49695         G. Christensen" <tgc@jupiterrise.com>.
49696         * m4/sys_socket_h.m4: Check for sa_family_t.
49697         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49698         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49699         * tests/test-sys_socket.c: Check that sa_family_t works.
49700
49701 2009-05-18  Eric Blake  <ebb9@byu.net>
49702
49703         maint.mk: allow gnulib_dir in VPATH build
49704         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49705
49706 2009-05-15  Jim Meyering  <meyering@redhat.com>
49707
49708         maint.mk: Give gnulib_dir a default definition.
49709         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49710         Thus, most packages no longer need to specify this variable in cfg.mk
49711
49712 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49713
49714         rename.m4: fix typos that would make non-mingw cross-configure fail
49715         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49716
49717 2009-05-13  Eric Blake  <ebb9@byu.net>
49718
49719         mmap-anon: avoid out-of-order autoconf expansion
49720         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49721         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49722         * modules/memchr-tests (Depends-on): Add extensions.
49723         * modules/memchr2-tests (Depends-on): Add extensions.
49724         * modules/memcmp-tests (Depends-on): Add extensions.
49725         * modules/memmem-tests (Depends-on): Add extensions.
49726         * modules/memrchr-tests (Depends-on): Add extensions.
49727
49728 2009-05-13  Bruno Haible  <bruno@clisp.org>
49729
49730         Make some tests ISO C 99 compliant.
49731         * tests/zerosize-ptr.h: New file.
49732         * tests/test-memchr.c: Include zerosize-ptr.h.
49733         (main): Use a zero-size object pointer instead of NULL.
49734         * tests/test-memchr2.c: Include zerosize-ptr.h.
49735         (main): Use a zero-size object pointer instead of NULL.
49736         * tests/test-memcmp.c: Include zerosize-ptr.h.
49737         (main): Use a zero-size object pointer instead of NULL.
49738         * tests/test-memmem.c: Include zerosize-ptr.h.
49739         (main): Use a zero-size object pointer instead of NULL.
49740         * tests/test-memrchr.c: Include zerosize-ptr.h.
49741         (main): Use a zero-size object pointer instead of NULL.
49742         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49743         m4/mmap-anon.m4.
49744         (Depends-on): Add getpagesize.
49745         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49746         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49747         m4/mmap-anon.m4.
49748         (Depends-on): Add getpagesize.
49749         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49750         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49751         m4/mmap-anon.m4.
49752         (Depends-on): Add getpagesize.
49753         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49754         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49755         m4/mmap-anon.m4.
49756         (Depends-on): Add getpagesize.
49757         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49758         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49759         m4/mmap-anon.m4.
49760         (Depends-on): Add getpagesize.
49761         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49762
49763 2009-05-12  Bruno Haible  <bruno@clisp.org>
49764
49765         Tests for module 'alignof'.
49766         * modules/alignof-tests: New file.
49767         * tests/test-alignof.c: New file.
49768
49769 2009-05-12  Bruno Haible  <bruno@clisp.org>
49770
49771         Fix alignof macro.
49772         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49773         vendor compilers that are always correct.
49774
49775 2009-05-12  Bruno Haible  <bruno@clisp.org>
49776
49777         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49779         not whether its fully works.
49780
49781 2009-05-12  Bruno Haible  <bruno@clisp.org>
49782
49783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49784
49785 2009-05-12  Jim Meyering  <meyering@redhat.com>
49786
49787         * top/maint.mk: Adjust backslash alignment.
49788
49789 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49790
49791         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49792
49793 2009-05-11  Eric Blake  <ebb9@byu.net>
49794
49795         argp: avoid undefined behavior
49796         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49797         macros.
49798
49799 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49800
49801         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49802         user.name to prevent git commit from complaining.
49803
49804 2009-05-10  Bruno Haible  <bruno@clisp.org>
49805
49806         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49807         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49808         it rewrites every file name only once.
49809         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49810
49811 2009-05-08  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49814         instead of 'max'.
49815
49816 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49817
49818         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49819         sockaddr_storage test.
49820
49821 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49822
49823         * modules/sys_socket (Makefile.am): Substitute
49824         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49825         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49826         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49827         * tests/test-sys_socket.c: Check sockaddr_storage.
49828
49829 2009-05-08  Bruno Haible  <bruno@clisp.org>
49830
49831         New module 'alignof'.
49832         * lib/alignof.h: New file.
49833         * modules/alignof: New file.
49834
49835 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49836             Bruno Haible  <bruno@clisp.org>
49837
49838         Fix test-file-has-acl on FreeBSD.
49839         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49840         mask is implicitly added.
49841         * tests/test-file-has-acl.c: Include <signal.h>.
49842         (main): Terminate the test after 5 seconds.
49843         * modules/acl-tests (configure.ac): Check for alarm function.
49844
49845 2009-05-04  Bruno Haible  <bruno@clisp.org>
49846
49847         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49849         * modules/errno (configure.ac): Drop AC_REQUIRE.
49850         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49851         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49852
49853 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49854
49855         * modules/glob-tests: New module.
49856         * tests/test-glob.c: Add.
49857
49858 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49859
49860         * modules/fnmatch-tests: New module.
49861         * tests/test-fnmatch.c: Add.
49862
49863 2009-05-04  Eric Blake  <ebb9@byu.net>
49864
49865         maint: make the new no-submodule-changes rule VPATH-safe
49866         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49867
49868 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49869             Bruno Haible  <bruno@clisp.org>
49870
49871         acl: Fix infinite loop on FreeBSD.
49872         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49873         of return value from acl_get_entry.
49874         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49875         Likewise.
49876
49877 2009-05-03  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/acl-internal.h (acl_entries): Clarify return value.
49880         * lib/acl_entries.c (acl_entries): Likewise.
49881
49882 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49883
49884         Bug fix in acl module.
49885         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49886
49887 2009-05-03  Bruno Haible  <bruno@clisp.org>
49888
49889         Create gperf-generated file in the source dir, not in the build dir.
49890         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49891         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49892         * modules/unicase/locale-language (unicase/locale-languages.h):
49893         Likewise.
49894         * modules/unicase/special-casing (unicase/special-casing-table.h):
49895         Likewise.
49896         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49897         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49898         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49899         Reported by Ralf Wildenhues.
49900
49901 2009-05-03  Bruno Haible  <bruno@clisp.org>
49902
49903         * modules/fnmatch (Description, configure.ac): Taken from
49904         fnmatch-posix.
49905         * modules/fnmatch-posix: Turn into a symbolic reference to the
49906         'fnmatch' module, and deprecate.
49907         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49908
49909 2009-05-03  Bruno Haible  <bruno@clisp.org>
49910
49911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49912         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49913         Reported by Ralf Wildenhues.
49914
49915 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49916
49917         * m4/fnmatch.m4: Fix fnmatch re-define.
49918
49919 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49920
49921         priv-set: new module and tests; adapt write-any-file
49922         * lib/priv-set.c: New file.
49923         * lib/priv-set.h: New file.
49924         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49925         * lib/write-any-file.c: Simplify by using priv-set module.
49926         * m4/priv-set.m4: New file.
49927         * modules/priv-set: New file.
49928         * modules/unlinkdir: Add dependency on priv-set module.
49929         * modules/write-any-file: Likewise.
49930
49931         Tests for module 'priv-set'.
49932         * modules/priv-set-tests: New file.
49933         * tests/test-priv-set.c: New file.
49934
49935 2009-05-03  Jim Meyering  <meyering@redhat.com>
49936             Bruno Haible  <bruno@clisp.org>
49937
49938         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49939         use the converted UTF-8 variant of the name instead.
49940
49941 2009-05-03  Jim Meyering  <meyering@redhat.com>
49942
49943         tests: tighten some getdate tests
49944         * tests/test-getdate.c (main): Tighten tests: require equality,
49945         not just greater than.  Set TZ envvar to UTC0.
49946
49947 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49948
49949         getdate: correctly interpret "next monday" when run on a Monday
49950         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49951         that e.g., "next tues" (when run on a tuesday) results in a date
49952         that is one week in the future, and not today's date.
49953         I.e., add a week when the wday is the same as the current one.
49954         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49955         and earlier by Martin Bernreuther and Jan Minář.
49956         * tests/test-getdate.c (main): Check that "next DAY" is always in
49957         the future and that "last DAY" is always in the past.
49958
49959 2009-05-02  Jim Meyering  <meyering@redhat.com>
49960
49961         build: ensure that a release build fails when a submodule is unclean
49962         * top/maint.mk (no-submodule-changes): New rule.
49963         (alpha beta major): Depend on it.
49964
49965 2009-05-02  Bruno Haible  <bruno@clisp.org>
49966
49967         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49968         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49969         shell variable gl_fnmatch_required to detect which variant is
49970         requested.
49971         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49972         gl_FUNC_FNMATCH_POSIX.
49973         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49974         exclude fnmatch-posix.
49975
49976 2009-05-02  Bruno Haible  <bruno@clisp.org>
49977
49978         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49979         * modules/mbsrtowcs (License): Change to LGPLv2+.
49980         * modules/strnlen1 (License): Likewise.
49981         Reported by Simon Josefsson.
49982
49983 2009-05-02  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49986         "cross".
49987         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49988         gnulib-tool was called with option --source-base=lib.
49989
49990 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49991
49992         Use automake *-local hooks without commands, for extensibility.
49993         * modules/localcharset (Makefile.am): Rename install-exec-local
49994         rule to install-exec-localcharset, and make it a prerequisite of
49995         install-exec-local.  Likewise, rename the uninstall-local rule to
49996         uninstall-localcharset, and make it a prerequisite of the former.
49997
49998 2009-05-01  Bruno Haible  <bruno@clisp.org>
49999
50000         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50001         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50002         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50004         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50005         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50006         m4/locale-zh.m4, m4/codeset.m4.
50007
50008         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50009         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50010         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50011         m4/locale-zh.m4.
50012
50013         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50014         REPLACE_WCRTOMB if mbstate_t must be replaced.
50015         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50016         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50017
50018 2009-05-01  Bruno Haible  <bruno@clisp.org>
50019
50020         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50021         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50022         dngettext, dcngettext, textdomain, bindtextdomain,
50023         bind_textdomain_codeset): Undefine before redefining.
50024
50025 2009-04-30  Bruno Haible  <bruno@clisp.org>
50026
50027         Fix bug introduced on 2009-04-25.
50028         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50029         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50030         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50031         is defined.
50032         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50033         is defined.
50034         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50035         is defined.
50036         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50037
50038 2009-04-28  Bruno Haible  <bruno@clisp.org>
50039
50040         Comment tweaks.
50041         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50042         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50043         * lib/unicase.h (u*_casexfrm): Likewise.
50044         Reported by Paolo Bonzini.
50045
50046 2009-04-28  Bruno Haible  <bruno@clisp.org>
50047
50048         Fix a compilation error.
50049         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50050         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50051         Reported by Jim Meyering.
50052
50053 2009-04-27  Bruno Haible  <bruno@clisp.org>
50054
50055         New module 'libunistring'.
50056         * modules/libunistring: New file.
50057         * m4/libunistring.m4: New file.
50058         * MODULES.html.sh (Unicode string functions): Add it.
50059
50060 2009-04-27  Eric Blake  <ebb9@byu.net>
50061
50062         maint.mk: allow package-specific header to provide <config.h>
50063         * top/maint.mk (sc_require_config_h): New variable.
50064         (sc_require_config_h, sc_require_config_h_first): Use it.
50065
50066 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50067
50068         * top/maint.mk (sc_avoid_if_before_free): Except
50069         useless-if-before-free script.
50070
50071 2009-04-27  Eric Blake  <ebb9@byu.net>
50072
50073         maintainer-makefile: depend on all required helper scripts
50074         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50075         useless-if-before-free.
50076         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50077         version, rather than assuming gnulib checkout is available.
50078         Reported by Simen Josefsson.
50079
50080 2009-04-26  Bruno Haible  <bruno@clisp.org>
50081
50082         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50083         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50084         "../" or "..".
50085
50086 2009-04-26  Bruno Haible  <bruno@clisp.org>
50087
50088         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50089         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50090         AC_LIB_HAVE_LINKFLAGS.
50091
50092 2009-04-26  Bruno Haible  <bruno@clisp.org>
50093
50094         Simplify calling convention of u*_conv_from_encoding.
50095         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50096         u32_conv_from_encoding): Expect a resultbuf argument and return the
50097         result directly as a pointer.
50098         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50099         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50100         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50101         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50102         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50103         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50104         Update.
50105         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50106         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50107         * lib/vasnprintf.c (VASNPRINTF): Update.
50108         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50109         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50110         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50111         * NEWS: Mention the change.
50112
50113 2009-04-26  Bruno Haible  <bruno@clisp.org>
50114
50115         Simplify calling convention of u*_conv_to_encoding.
50116         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50117         u32_conv_to_encoding): Expect a resultbuf argument and return the
50118         result directly as a pointer.
50119         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50120         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50121         freeing scaled_offsets if mem_iconveha failed.
50122         * lib/unicase/u-casexfrm.h (FUNC): Update.
50123         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50124         * lib/vasnprintf.c (VASNPRINTF): Update.
50125         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50126         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50127         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50128         * NEWS: Mention the change.
50129
50130 2009-04-26  Bruno Haible  <bruno@clisp.org>
50131
50132         Avoid test failures on AIX and OSF/1.
50133         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50134         malloc(0).
50135         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50136         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50137         Likewise.
50138         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50139         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50140         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50141         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50142         * doc/posix-functions/malloc.texi: Document the portability problem
50143         related to malloc(0).
50144
50145 2009-04-26  Bruno Haible  <bruno@clisp.org>
50146
50147         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50148         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50149         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50150
50151 2009-04-25  Bruno Haible  <bruno@clisp.org>
50152
50153         Avoid link error when creating a namespace clean library.
50154         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50155         as macro with arguments if already defined as an alias.
50156         * lib/signbitf.c (gl_signbitf): Don't undefine.
50157         * lib/signbitd.c (gl_signbitd): Don't undefine.
50158         * lib/signbitl.c (gl_signbitl): Don't undefine.
50159
50160 2009-04-25  Jim Meyering  <meyering@redhat.com>
50161
50162         vc-list-files: fix another quoting bug
50163         * build-aux/vc-list-files: Avoid sed backslash expansion
50164         of pathological directory names.
50165
50166 2009-04-25  Eric Blake  <ebb9@byu.net>
50167
50168         vc-list-files: fix shell quoting error
50169         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50170         timestamp.
50171
50172 2009-04-25  Jim Meyering  <meyering@redhat.com>
50173
50174         vc-list-files: restore lost functionality with subdir argument
50175         * build-aux/vc-list-files: When given a non-"." sub-directory
50176         argument, substitute the $dir/ prefix back onto each resulting name.
50177         Otherwise, coreutils' root_tests check would fail.
50178
50179 2009-04-24  Eric Blake  <ebb9@byu.net>
50180
50181         vc-list-files: ignore git symlinks
50182         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50183         than ls-files, to ignore git symlinks.
50184
50185         maint.mk: import improvements from m4
50186         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50187         (move_if_change): Delete unused macro.
50188         (news-date-check, vc-diff-check): Support VPATH builds.
50189         (announcement): Likewise.  Split --bootstrap-tools list...
50190         (boostrap-tools): ...into separate list, which can be overridden
50191         in cfg.mk.
50192         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50193         requiring dependency on useless-if-before-free module.
50194         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50195         Support VPATH builds.
50196
50197 2009-04-24  Jim Meyering  <meyering@redhat.com>
50198
50199         maint.mk: remove coreutils-specific rules and variables
50200         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50201         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50202         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50203
50204         maint.mk: remove obsolete rule
50205         * top/maint.mk (rel-check): Remove rule.
50206         (WGET, WGETFLAGS): Remove now-unused variables.
50207
50208 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50209
50210         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50211         consistency.
50212
50213         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50214         '$(PATH_SEPARATOR)' instead of ':'.
50215
50216 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50217
50218         * lib/getopt1.c (main): Use 'const' for static array.
50219
50220 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50221
50222         * top/maint.mk: Sync with coreutils.
50223         * NEWS: Explain incompatibilities.
50224
50225 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50226             Bruno Haible  <bruno@clisp.org>
50227
50228         Fix cross-compilation results.
50229         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50230         statement, as third argument of AC_TRY_RUN.
50231         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50232         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50233         Likewise.
50234         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50235         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50236         Likewise.
50237         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50238         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50239         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50240
50241 2009-04-20  Bruno Haible  <bruno@clisp.org>
50242
50243         Avoid test failure on mingw.
50244         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50245
50246 2009-04-20  Bruno Haible  <bruno@clisp.org>
50247
50248         Avoid compilation error on mingw.
50249         * modules/localename-tests (Depends-on): Add locale.
50250
50251 2009-04-19  Bruno Haible  <bruno@clisp.org>
50252
50253         Support for building a shared library on Windows platforms.
50254         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50255         (main): Test the presence of UNINORM_NFC here.
50256         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50257         (main): Test the presence of UNINORM_NFD here.
50258         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50259         (main): Test the presence of UNINORM_NFKC here.
50260         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50261         (main): Test the presence of UNINORM_NFKD here.
50262
50263 2009-04-19  Bruno Haible  <bruno@clisp.org>
50264
50265         Avoid a compiler warning.
50266         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50267         Change type of variable 'sequence'.
50268
50269 2009-04-19  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/configmake (Makefile.am): When the contents of configmake.h
50272         does not change, arrange to preserve its modification time.
50273
50274 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50275
50276         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50277         gettext domain.
50278
50279 2009-04-16  Jim Meyering  <meyering@redhat.com>
50280
50281         useless-if-before-free: improve conversion code
50282         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50283         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50284
50285 2009-04-14  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/fcntl (Depends-on): Add extensions.
50288         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50289
50290 2009-04-12  Ben Pfaff  <blp@gnu.org>
50291
50292         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50293         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50294
50295 2009-03-20  Ben Pfaff  <blp@gnu.org>
50296
50297         Make rename replace existing destinations on Windows.
50298         * m4/rename.m4: Add test for Mingw.
50299         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50300         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50301         * doc/posix-functions/rename.texi: Document.
50302
50303 2009-04-10  Bruno Haible  <bruno@clisp.org>
50304
50305         New include file "iconveh.h".
50306         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50307         * lib/striconveh.h: Include it.
50308         (enum iconv_ilseq_handler): Remove definition.
50309         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50310         striconveh.h.
50311         * lib/striconveha.c: Include striconveh.h.
50312         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50313         * modules/striconveh (Files): Add lib/iconveh.h.
50314         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50315         lib/striconveh.h.
50316
50317 2009-04-10  Bruno Haible  <bruno@clisp.org>
50318
50319         * lib/uniconv.h: Update comment.
50320
50321 2009-04-10  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50324         always.
50325         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50326         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50327         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50328         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50329         "unistring-notinline.h", so that the function gets defined always.
50330         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50331         * lib/unistr/u8-uctomb.c: Likewise.
50332         * lib/unistr/u16-mbtouc.c: Likewise.
50333         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50334         * lib/unistr/u16-uctomb.c: Likewise.
50335         * lib/unistr/u32-mbtouc.c: Likewise.
50336         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50337         * lib/unistr/u32-uctomb.c: Likewise.
50338
50339 2009-04-10  Bruno Haible  <bruno@clisp.org>
50340
50341         Mark 'utime' obsolete.
50342         * modules/utime (Status, Notice): New sections.
50343         Suggested by Jim Meyering.
50344
50345         Fix cross-compile guess for utime test.
50346         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50347         autoconf.
50348         * doc/posix-functions/utime.texi: Give more precisions.
50349         Reported by Jan <ipif@ymail.com>.
50350
50351 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50352
50353         filevercmp: correct today's change
50354         * lib/filevercmp.c: Also handle coreutils' test inputs.
50355         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50356
50357         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50358         for reporting it.
50359         * lib/filevercmp.c: Special handle for "", "." and "..".
50360         * tests/test-filevercmp.c: Enlarge the set suite.
50361
50362 2009-04-07  Jim Meyering  <meyering@redhat.com>
50363
50364         useless-if-before-free: show how to remove braced useless free, too
50365         * build-aux/useless-if-before-free: still only in a comment, though.
50366
50367 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50368
50369         maint.mk: import changes to syntax-check macros from coreutils
50370         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50371         Use them in the relevant macros.
50372
50373 2009-04-06  Bruno Haible  <bruno@clisp.org>
50374
50375         Fix unportable use of bit-fields.
50376         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50377         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50378         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50379
50380 2009-04-06  Bruno Haible  <bruno@clisp.org>
50381
50382         Avoid test failures on AIX and OSF/1.
50383         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50384         that malloc(0) = NULL.
50385         * tests/unicase/test-u8-tolower.c (check): Likewise.
50386         * tests/unicase/test-u8-totitle.c (check): Likewise.
50387         * tests/unicase/test-u8-toupper.c (check): Likewise.
50388         * tests/unicase/test-u16-casefold.c (check): Likewise.
50389         * tests/unicase/test-u16-tolower.c (check): Likewise.
50390         * tests/unicase/test-u16-totitle.c (check): Likewise.
50391         * tests/unicase/test-u16-toupper.c (check): Likewise.
50392         * tests/unicase/test-u32-casefold.c (check): Likewise.
50393         * tests/unicase/test-u32-tolower.c (check): Likewise.
50394         * tests/unicase/test-u32-totitle.c (check): Likewise.
50395         * tests/unicase/test-u32-toupper.c (check): Likewise.
50396         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50397         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50398         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50399         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50400         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50401         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50402         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50403         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50404         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50405         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50406         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50407         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50408
50409 2009-04-05  Bruno Haible  <bruno@clisp.org>
50410
50411         Work around an autoconf limitation.
50412         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50413         comment line if it would be longer than 3 KB.
50414
50415 2009-04-05  Bruno Haible  <bruno@clisp.org>
50416
50417         Avoid test failure with libiconv-1.13.
50418         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50419         of the expected test results.
50420
50421 2009-04-05  Bruno Haible  <bruno@clisp.org>
50422
50423         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50424         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50425         that it should be installed.
50426
50427 2009-04-05  Bruno Haible  <bruno@clisp.org>
50428
50429         * gnulib-tool: New option --copy-file.
50430         (func_usage): Document it.
50431         (func_dest_tmpfilename): Moved out of func_import.
50432         (func_add_file, func_update_file): New functions, extracted from
50433         func_import.
50434         (func_import): Update.
50435
50436 2009-04-05  Karl Berry  <karl@gnu.org>
50437
50438         * README: prominently mention gnulib-tool.
50439         Rearrange sections so getting the code is near the top.
50440
50441 2009-04-05  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/unicase.h: Mention u*_cmp2.
50444         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50445         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50446         * lib/unicase/ulc-casecmp.c: Likewise.
50447         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50448         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50449         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50450         unistr/u8-cmp.
50451         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50452         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50453         unistr/u16-cmp.
50454         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50455         unistr/u32-cmp.
50456
50457         * lib/uninorm.h: Mention u*_cmp2.
50458         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50459         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50460         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50461         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50462         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50463         unistr/u8-cmp.
50464         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50465         unistr/u16-cmp.
50466         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50467         unistr/u32-cmp.
50468
50469         New module 'unistr/u32-cmp2'.
50470         * lib/unistr/u32-cmp2.c: New file.
50471         * modules/unistr/u32-cmp2: New file.
50472
50473         New module 'unistr/u16-cmp2'.
50474         * lib/unistr/u16-cmp2.c: New file.
50475         * modules/unistr/u16-cmp2: New file.
50476
50477         New module 'unistr/u8-cmp2'.
50478         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50479         * lib/unistr/u8-cmp2.c: New file.
50480         * lib/unistr/u-cmp2.h: New file.
50481         * modules/unistr/u8-cmp2: New file.
50482
50483 2009-04-05  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/unictype.h (uc_property_is_valid): New macro.
50486         * tests/unictype/test-pr_byname.c (main): Use it.
50487
50488         * lib/unistr.h: Doc fixes.
50489         * lib/uniconv.h: Doc fixes.
50490         * lib/unictype.h: Doc fixes.
50491
50492 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         Port coreutils 7.2 to Solaris 8.
50495
50496         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50497         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50498         for Solaris 8.  This is a bit of a hack, as it means it's the
50499         caller's responsibility to add -lnsl if needed, but most likely it
50500         won't be needed since only getaddrinfo uses this and getaddrinfo
50501         isn't needed on Solaris 8.
50502
50503         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50504         problem to Solaris 8 encountered with coreutils 7.2, which
50505         resulted in a message "fnmatch.c:292: warning: passing argument 4
50506         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50507         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50508
50509 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50510
50511         * m4/ld-version-script.m4: Add FIXME comment.
50512
50513 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50514
50515         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50516         SOVERSION variable.
50517
50518 2009-04-02  Bruno Haible  <bruno@clisp.org>
50519
50520         * Makefile (info, html, dvi, pdf): Combine the rules.
50521         Suggested by Jim Meyering.
50522
50523 2009-04-01  Bruno Haible  <bruno@clisp.org>
50524
50525         * Makefile (info, html, dvi, pdf): New targets.
50526         Reported by Reuben Thomas <rrt@sc3d.org>.
50527
50528 2009-04-01  Bruno Haible  <bruno@clisp.org>
50529
50530         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50531         can be put into PATH.
50532         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50533
50534 2009-04-01  Bruno Haible  <bruno@clisp.org>
50535
50536         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50537
50538 2009-04-01  Bruno Haible  <bruno@clisp.org>
50539
50540         Rename module 'visibility'.
50541         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50542         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50543         * doc/gnulib.texi: Update.
50544         * MODULES.html.sh (Misc): Update.
50545         * NEWS: Mention the change.
50546
50547 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50548
50549         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50550         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50551         Eric Blake <ebb9@byu.net> for review.
50552         * MODULES.html.sh: Add lib-msvc-compat.
50553         * doc/gnulib.texi: Link to new section.
50554         * m4/ld-output-def.m4: New file.
50555         * doc/ld-output-def.texi: New file.
50556
50557 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50558
50559         Rename ld-version-script to lib-symbol-versions.  Suggested by
50560         Bruno Haible <bruno@clisp.org>.
50561         * modules/ld-version-script: Renamed to lib-symbol-versions.
50562         * doc/ld-version-script.texi: Fix module name.
50563         * MODULES.html.sh: Add lib-symbol-versions.
50564
50565 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50566
50567         * modules/u64-tests: New file.
50568         * tests/test-u64.c: New file.
50569
50570 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50571
50572         * MODULES.html.sh: Mention u64.
50573         * modules/u64: New module.
50574         * modules/crypto/sha512: Depend on u64 module instead of providing
50575         u64.h.
50576
50577 2009-03-27  Eric Blake  <ebb9@byu.net>
50578
50579         test-strerror: make debugging EAI_SYSTEM easier
50580         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50581         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50582         failure was EAI_SYSTEM.
50583
50584 2009-03-25  Bruno Haible  <bruno@clisp.org>
50585
50586         Fix a problem with --enable-relocatable on Solaris 7.
50587         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50588         since 2008-02-24.
50589
50590 2009-03-25  Eric Blake  <ebb9@byu.net>
50591
50592         test-sockets: avoid gcc warning
50593         * tests/test-sockets.c (main): Silence compiler warning.
50594
50595 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         New modules nproc, pthread, contributed by Glen Lenker.
50598
50599         * MODULES.html.sh: Add pthread, nproc.
50600         * lib/nproc.c: New file.
50601         * lib/nproc.h: New file.
50602         * lib/pthread.in.h: New file.
50603         * m4/pthread.m4: New file.
50604         * modules/nproc: New file.
50605         * modules/pthread: New file.
50606
50607 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50608
50609         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50610         New variable.
50611
50612 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50613
50614         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50615         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50616         * tests/test-filevercmp.c: Add tests for backup suffixes.
50617
50618 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50619
50620         * modules/stdlib (Depends-on): Add stdint, needed when defining
50621         struct random_data on, for example, HP-UX 10.20.  Reported by
50622         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50623
50624 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50625
50626         * lib/readline.c (readline): Call fflush on stdout after printing
50627         prompt.
50628
50629 2009-03-20  Bruno Haible  <bruno@clisp.org>
50630
50631         Remove dependency from 'close' module to -lws2_32 on native Windows.
50632         * lib/close-hook.h: New file.
50633         * lib/close-hook.c: New file.
50634         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50635         w32sock.h.
50636         (_gl_close_fd_maybe_socket): Remove function.
50637         (rpl_close): Invoke execute_all_close_hooks instead of
50638         _gl_close_fd_maybe_socket.
50639         * lib/sockets.c: Include close-hook.h, w32sock.h.
50640         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50641         (close_sockets_hook): New variable.
50642         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50643         (gl_sockets_cleanup): Unregister it.
50644         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50645         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50646         * modules/close-hook: New file.
50647         * modules/close (Files): Remove lib/w32sock.h.
50648         (Depends-on): Add close-hook.
50649         (Link): Remove section.
50650         * modules/sockets (Files): Add lib/w32sock.h.
50651         (Depends-on): Add close-hook.
50652         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50653         invocation.
50654         * NEWS: Mention that LIB_CLOSE is gone.
50655
50656 2009-03-23  Eric Blake  <ebb9@byu.net>
50657
50658         signal-tests: test previous patch
50659         * tests/test-signal.c: New file.
50660         * modules/signal-tests: Likewise.
50661
50662         signal.h: always support 'volatile sig_atomic_t'
50663         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50664         (gl_SIGNAL_H_DEFAULTS): Add a default.
50665         * modules/signal (Makefile.am): Substitute if needed.
50666         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50667         users can blindly add volatile.
50668         * doc/posix-headers/signal.texi (signal.h): Document it.
50669         Reported by Matthew Woehlke.
50670
50671 2009-03-23  Jim Meyering  <meyering@redhat.com>
50672
50673         pathmax: PATH_MAX: use pathconf only when available
50674         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50675         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50676         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50677         This avoids a link failure in a PSP cross-compilation environment
50678         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50679
50680         * lib/vasnprintf.c (divide): Fix typo in comment.
50681
50682 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50683
50684         * gnulib-tool (func_filter_filelist): Fix comment.
50685
50686 2009-03-20  Bruno Haible  <bruno@clisp.org>
50687
50688         Make sockets.h self-contained.
50689         * lib/sockets.c: Include sockets.h first.
50690         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50691
50692 2009-03-19  Eric Blake  <ebb9@byu.net>
50693
50694         doc: mention more functions added in cygwin 1.7.0
50695         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50696         addition.
50697         * doc/posix-functions/log2f.texi: Likewise.
50698
50699 2009-03-19  Jim Meyering  <meyering@redhat.com>
50700
50701         fsusage: avoid syntax error due to statement-before-declaration
50702         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50703         after all declarations.  Reported by Matthew Woehlke in
50704         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50705
50706 2009-03-18  Eric Blake  <ebb9@byu.net>
50707
50708         build-aux/compile: sync from automake
50709         * build-aux/compile: New file, from automake.
50710         * config/srclist.txt: Mention build-aux/compile.
50711
50712 2009-03-17  Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/git-merge-changelog.c: Fix typo in comment.
50715         Reported by Reuben Thomas <rrt@sc3d.org>.
50716
50717 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50718
50719         * m4/regex.m4: update and improve help for
50720         --without-included-regex.
50721
50722 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50723
50724         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50725         failure on missing include files.
50726
50727 2009-03-17  Eric Blake  <ebb9@byu.net>
50728
50729         doc: mention more functions added in cygwin 1.7.0
50730         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50731         addition.
50732         * doc/posix-functions/fwscanf.texi: Likewise.
50733         * doc/posix-functions/swprintf.texi: Likewise.
50734         * doc/posix-functions/swscanf.texi: Likewise.
50735         * doc/posix-functions/vfwprintf.texi: Likewise.
50736         * doc/posix-functions/vfwscanf.texi: Likewise.
50737         * doc/posix-functions/vswprintf.texi: Likewise.
50738         * doc/posix-functions/vswscanf.texi: Likewise.
50739         * doc/posix-functions/vwprintf.texi: Likewise.
50740         * doc/posix-functions/vwscanf.texi: Likewise.
50741         * doc/posix-functions/wcscasecmp.texi: Likewise.
50742         * doc/posix-functions/wcsdup.texi: Likewise.
50743         * doc/posix-functions/wcsftime.texi: Likewise.
50744         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50745         * doc/posix-functions/wprintf.texi: Likewise.
50746         * doc/posix-functions/wscanf.texi: Likewise.
50747         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50748
50749 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50750
50751         maint.mk: really add $(AM_MAKEFLAGS)
50752         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50753         was inadvertently omitted in the last commit.
50754         Spotted by Bruno Haible.
50755
50756         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50757         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50758         $(AM_MAKEFLAGS)' rather than plain `make'.
50759
50760         gnulib-tool: execute $MAKE not make
50761         * gnulib-tool: Default $MAKE to 'make'.
50762         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50763         than make.  Initialize $MAKE in the do-autobuild script.
50764
50765         gnulib-tool: use $MAKE not make in generated files
50766         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50767         make, in generated files.  Initialize $MAKE in the do-autobuild
50768         script.
50769
50770         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50771
50772         GNUmakefile: disable parallelism only for multiple, recursive targets
50773         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50774         additions in the Makefile.
50775         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50776         by Automake.
50777         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50778         are listed on the command line and at least one of them is
50779         listed in $(ALL_RECURSIVE_TARGETS).
50780
50781 2009-03-14  Bruno Haible  <bruno@clisp.org>
50782
50783         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50784         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50785         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50786         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50787         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50788         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50789         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50790         unistr/u8-uctomb.
50791         * modules/unistr/u8-strchr (Depends-on): Likewise.
50792         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50793         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50794         unistr/u16-uctomb.
50795         * modules/unistr/u16-strchr (Depends-on): Likewise.
50796         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50797
50798 2009-03-12  Bruno Haible  <bruno@clisp.org>
50799
50800         Work around select() bug on Interix 3.5.
50801         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50802         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50803         * m4/select.m4: New file.
50804         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50805         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50806         * modules/select (Files): Add m4/select.m4.
50807         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50808         * modules/nanosleep (Depends-on): Add select.
50809         * modules/poll (Depends-on): Likewise.
50810         * doc/posix-functions/select.texi: Mention the Interix bug.
50811         Reported by Markus Duft <mduft@gentoo.org>.
50812
50813         * lib/select.c: Renamed from lib/winsock-select.c.
50814         * modules/select (Files): Add lib/select.c, remove
50815         lib/winsock-select.c.
50816         (configure.ac): Update.
50817
50818 2009-03-12  Jim Meyering  <meyering@redhat.com>
50819
50820         avoid gcc warnings about unused macro definitions
50821         * lib/readtokens.c (STREQ): Remove unused definition.
50822         * lib/xmalloc.c (SIZE_MAX): Likewise.
50823         * lib/openat-die.c (N_): Likewise.
50824         * lib/mountlist.c (SIZE_MAX): Remove definition.
50825         Instead, include <stdint.h>.
50826         * lib/readutmp.c: Likewise.
50827         * modules/readutmp (Depends-on): Add stdint.
50828         * modules/mountlist (Depends-on): Add stdint.
50829         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50830
50831 2009-03-10  Bruno Haible  <bruno@clisp.org>
50832
50833         Tests for module 'mbmemcasecoll'.
50834         * modules/mbmemcasecoll-tests: New file.
50835         * tests/test-mbmemcasecoll1.sh: New file.
50836         * tests/test-mbmemcasecoll2.sh: New file.
50837         * tests/test-mbmemcasecoll3.sh: New file.
50838         * tests/test-mbmemcasecoll.c: New file.
50839
50840         New module 'mbmemcasecoll'.
50841         * lib/mbmemcasecoll.h: New file.
50842         * lib/mbmemcasecoll.c: New file.
50843         * modules/mbmemcasecoll: New file.
50844
50845         * tests/test-mbmemcasecmp.h: New file, extracted from
50846         tests/test-mbmemcasecmp.c.
50847         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50848         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50849         (main): Update.
50850         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50851
50852 2009-03-09  Bruno Haible  <bruno@clisp.org>
50853
50854         Tests for module 'mbmemcasecmp'.
50855         * modules/mbmemcasecmp-tests: New file.
50856         * tests/test-mbmemcasecmp1.sh: New file.
50857         * tests/test-mbmemcasecmp2.sh: New file.
50858         * tests/test-mbmemcasecmp3.sh: New file.
50859         * tests/test-mbmemcasecmp.c: New file.
50860
50861         New module 'mbmemcasecmp'.
50862         * lib/mbmemcasecmp.h: New file.
50863         * lib/mbmemcasecmp.c: New file.
50864         * modules/mbmemcasecmp: New file.
50865
50866 2009-03-09  Bruno Haible  <bruno@clisp.org>
50867
50868         Tests for module 'unicase/ulc-casecoll'.
50869         * modules/unicase/ulc-casecoll-tests: New file.
50870         * tests/unicase/test-ulc-casecoll1.sh: New file.
50871         * tests/unicase/test-ulc-casecoll2.sh: New file.
50872         * tests/unicase/test-ulc-casecoll.c: New file.
50873
50874         New module 'unicase/ulc-casecoll'.
50875         * lib/unicase.h (ulc_casecoll): New declaration.
50876         * lib/unicase/ulc-casecoll.c: New file.
50877         * modules/unicase/ulc-casecoll: New file.
50878
50879         New module 'unicase/ulc-casexfrm'.
50880         * lib/unicase.h (ulc_casexfrm): New declaration.
50881         * lib/unicase/ulc-casexfrm.c: New file.
50882         * modules/unicase/ulc-casexfrm: New file.
50883
50884 2009-03-09  Bruno Haible  <bruno@clisp.org>
50885
50886         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50887         invocations.
50888
50889         * m4/mbscasecmp.m4: Remove file.
50890         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50891         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50892
50893         * m4/mbscasestr.m4: Remove file.
50894         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50895         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50896
50897         * m4/mbschr.m4: Remove file.
50898         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50899         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50900
50901         * m4/mbscspn.m4: Remove file.
50902         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50903         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50904
50905         * m4/mbslen.m4: Remove file.
50906         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50907         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50908
50909         * m4/mbsncasecmp.m4: Remove file.
50910         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50911         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50912
50913         * m4/mbsnlen.m4: Remove file.
50914         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50915         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50916
50917         * m4/mbspbrk.m4: Remove file.
50918         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50919         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50920
50921         * m4/mbspcasecmp.m4: Remove file.
50922         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50923         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50924
50925         * m4/mbsrchr.m4: Remove file.
50926         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50927         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50928
50929         * m4/mbssep.m4: Remove file.
50930         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50931         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50932
50933         * m4/mbsspn.m4: Remove file.
50934         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50935         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50936
50937         * m4/mbsstr.m4: Remove file.
50938         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50939         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50940
50941         * m4/mbstok_r.m4: Remove file.
50942         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50943         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50944
50945         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50946
50947         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50948         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50949
50950         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50951
50952 2009-03-08  Bruno Haible  <bruno@clisp.org>
50953
50954         Tests for module 'unicase/ulc-casecmp'.
50955         * modules/unicase/ulc-casecmp-tests: New file.
50956         * tests/unicase/test-ulc-casecmp1.sh: New file.
50957         * tests/unicase/test-ulc-casecmp2.sh: New file.
50958         * tests/unicase/test-ulc-casecmp.c: New file.
50959
50960         New module 'unicase/ulc-casecmp'.
50961         * lib/unicase.h (ulc_casecmp): New declaration.
50962         * lib/unicase/ulc-casecmp.c: New file.
50963         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50964         'const SRC_UNIT *'.
50965         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50966         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50967         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50968         * modules/unicase/ulc-casecmp: New file.
50969
50970         Tests for module 'unicase/u32-is-cased'.
50971         * modules/unicase/u32-is-cased-tests: New file.
50972         * tests/unicase/test-u32-is-cased.c: New file.
50973
50974         Tests for module 'unicase/u16-is-cased'.
50975         * modules/unicase/u16-is-cased-tests: New file.
50976         * tests/unicase/test-u16-is-cased.c: New file.
50977
50978         Tests for module 'unicase/u8-is-cased'.
50979         * modules/unicase/u8-is-cased-tests: New file.
50980         * tests/unicase/test-u8-is-cased.c: New file.
50981         * tests/unicase/test-is-cased.h: New file.
50982
50983         New module 'unicase/u32-is-cased'.
50984         * lib/unicase/u32-is-cased.c: New file.
50985         * modules/unicase/u32-is-cased: New file.
50986
50987         New module 'unicase/u16-is-cased'.
50988         * lib/unicase/u16-is-cased.c: New file.
50989         * modules/unicase/u16-is-cased: New file.
50990
50991         New module 'unicase/u8-is-cased'.
50992         * lib/unicase/u8-is-cased.c: New file.
50993         * lib/unicase/u-is-cased.h: New file.
50994         * modules/unicase/u8-is-cased: New file.
50995
50996         Tests for module 'unicase/u32-is-casefolded'.
50997         * modules/unicase/u32-is-casefolded-tests: New file.
50998         * tests/unicase/test-u32-is-casefolded.c: New file.
50999
51000         Tests for module 'unicase/u16-is-casefolded'.
51001         * modules/unicase/u16-is-casefolded-tests: New file.
51002         * tests/unicase/test-u16-is-casefolded.c: New file.
51003
51004         Tests for module 'unicase/u8-is-casefolded'.
51005         * modules/unicase/u8-is-casefolded-tests: New file.
51006         * tests/unicase/test-u8-is-casefolded.c: New file.
51007         * tests/unicase/test-is-casefolded.h: New file.
51008
51009         New module 'unicase/u32-is-casefolded'.
51010         * lib/unicase/u32-is-casefolded.c: New file.
51011         * modules/unicase/u32-is-casefolded: New file.
51012
51013         New module 'unicase/u16-is-casefolded'.
51014         * lib/unicase/u16-is-casefolded.c: New file.
51015         * modules/unicase/u16-is-casefolded: New file.
51016
51017         New module 'unicase/u8-is-casefolded'.
51018         * lib/unicase/u8-is-casefolded.c: New file.
51019         * modules/unicase/u8-is-casefolded: New file.
51020
51021         Tests for module 'unicase/u32-is-titlecase'.
51022         * modules/unicase/u32-is-titlecase-tests: New file.
51023         * tests/unicase/test-u32-is-titlecase.c: New file.
51024
51025         Tests for module 'unicase/u16-is-titlecase'.
51026         * modules/unicase/u16-is-titlecase-tests: New file.
51027         * tests/unicase/test-u16-is-titlecase.c: New file.
51028
51029         Tests for module 'unicase/u8-is-titlecase'.
51030         * modules/unicase/u8-is-titlecase-tests: New file.
51031         * tests/unicase/test-u8-is-titlecase.c: New file.
51032         * tests/unicase/test-is-titlecase.h: New file.
51033
51034         New module 'unicase/u32-is-titlecase'.
51035         * lib/unicase/u32-is-titlecase.c: New file.
51036         * modules/unicase/u32-is-titlecase: New file.
51037
51038         New module 'unicase/u16-is-titlecase'.
51039         * lib/unicase/u16-is-titlecase.c: New file.
51040         * modules/unicase/u16-is-titlecase: New file.
51041
51042         New module 'unicase/u8-is-titlecase'.
51043         * lib/unicase/u8-is-titlecase.c: New file.
51044         * modules/unicase/u8-is-titlecase: New file.
51045
51046         Tests for module 'unicase/u32-is-lowercase'.
51047         * modules/unicase/u32-is-lowercase-tests: New file.
51048         * tests/unicase/test-u32-is-lowercase.c: New file.
51049
51050         Tests for module 'unicase/u16-is-lowercase'.
51051         * modules/unicase/u16-is-lowercase-tests: New file.
51052         * tests/unicase/test-u16-is-lowercase.c: New file.
51053
51054         Tests for module 'unicase/u8-is-lowercase'.
51055         * modules/unicase/u8-is-lowercase-tests: New file.
51056         * tests/unicase/test-u8-is-lowercase.c: New file.
51057         * tests/unicase/test-is-lowercase.h: New file.
51058
51059         New module 'unicase/u32-is-lowercase'.
51060         * lib/unicase/u32-is-lowercase.c: New file.
51061         * modules/unicase/u32-is-lowercase: New file.
51062
51063         New module 'unicase/u16-is-lowercase'.
51064         * lib/unicase/u16-is-lowercase.c: New file.
51065         * modules/unicase/u16-is-lowercase: New file.
51066
51067         New module 'unicase/u8-is-lowercase'.
51068         * lib/unicase/u8-is-lowercase.c: New file.
51069         * modules/unicase/u8-is-lowercase: New file.
51070
51071         Tests for module 'unicase/u32-is-uppercase'.
51072         * modules/unicase/u32-is-uppercase-tests: New file.
51073         * tests/unicase/test-u32-is-uppercase.c: New file.
51074
51075         Tests for module 'unicase/u16-is-uppercase'.
51076         * modules/unicase/u16-is-uppercase-tests: New file.
51077         * tests/unicase/test-u16-is-uppercase.c: New file.
51078
51079         Tests for module 'unicase/u8-is-uppercase'.
51080         * modules/unicase/u8-is-uppercase-tests: New file.
51081         * tests/unicase/test-u8-is-uppercase.c: New file.
51082         * tests/unicase/test-is-uppercase.h: New file.
51083
51084         New module 'unicase/u32-is-uppercase'.
51085         * lib/unicase/u32-is-uppercase.c: New file.
51086         * modules/unicase/u32-is-uppercase: New file.
51087
51088         New module 'unicase/u16-is-uppercase'.
51089         * lib/unicase/u16-is-uppercase.c: New file.
51090         * modules/unicase/u16-is-uppercase: New file.
51091
51092         New module 'unicase/u8-is-uppercase'.
51093         * lib/unicase/u8-is-uppercase.c: New file.
51094         * modules/unicase/u8-is-uppercase: New file.
51095
51096         New module 'unicase/u32-is-invariant'.
51097         * lib/unicase/u32-is-invariant.c: New file.
51098         * modules/unicase/u32-is-invariant: New file.
51099
51100         New module 'unicase/u16-is-invariant'.
51101         * lib/unicase/u16-is-invariant.c: New file.
51102         * modules/unicase/u16-is-invariant: New file.
51103
51104         New module 'unicase/u8-is-invariant'.
51105         * lib/unicase/u8-is-invariant.c: New file.
51106         * lib/unicase/invariant.h: New file.
51107         * lib/unicase/u-is-invariant.h: New file.
51108         * modules/unicase/u8-is-invariant: New file.
51109
51110         Tests for module 'unicase/u32-casecoll'.
51111         * modules/unicase/u32-casecoll-tests: New file.
51112         * tests/unicase/test-u32-casecoll.c: New file.
51113
51114         Tests for module 'unicase/u16-casecoll'.
51115         * modules/unicase/u16-casecoll-tests: New file.
51116         * tests/unicase/test-u16-casecoll.c: New file.
51117
51118         Tests for module 'unicase/u8-casecoll'.
51119         * modules/unicase/u8-casecoll-tests: New file.
51120         * tests/unicase/test-u8-casecoll.c: New file.
51121
51122         New module 'unicase/u32-casecoll'.
51123         * lib/unicase/u32-casecoll.c: New file.
51124         * modules/unicase/u32-casecoll: New file.
51125
51126         New module 'unicase/u16-casecoll'.
51127         * lib/unicase/u16-casecoll.c: New file.
51128         * modules/unicase/u16-casecoll: New file.
51129
51130         New module 'unicase/u8-casecoll'.
51131         * lib/unicase/u8-casecoll.c: New file.
51132         * lib/unicase/u-casecoll.h: New file.
51133         * modules/unicase/u8-casecoll: New file.
51134
51135         New module 'unicase/u32-casexfrm'.
51136         * lib/unicase/u32-casexfrm.c: New file.
51137         * modules/unicase/u32-casexfrm: New file.
51138
51139         New module 'unicase/u16-casexfrm'.
51140         * lib/unicase/u16-casexfrm.c: New file.
51141         * modules/unicase/u16-casexfrm: New file.
51142
51143         New module 'unicase/u8-casexfrm'.
51144         * lib/unicase/u8-casexfrm.c: New file.
51145         * lib/unicase/u-casexfrm.h: New file.
51146         * modules/unicase/u8-casexfrm: New file.
51147
51148         Tests for module 'unicase/u32-casecmp'.
51149         * modules/unicase/u32-casecmp-tests: New file.
51150         * tests/unicase/test-u32-casecmp.c: New file.
51151
51152         Tests for module 'unicase/u16-casecmp'.
51153         * modules/unicase/u16-casecmp-tests: New file.
51154         * tests/unicase/test-u16-casecmp.c: New file.
51155
51156         Tests for module 'unicase/u8-casecmp'.
51157         * modules/unicase/u8-casecmp-tests: New file.
51158         * tests/unicase/test-u8-casecmp.c: New file.
51159         * tests/unicase/test-casecmp.h: New file.
51160
51161         New module 'unicase/u32-casecmp'.
51162         * lib/unicase/u32-casecmp.c: New file.
51163         * modules/unicase/u32-casecmp: New file.
51164
51165         New module 'unicase/u16-casecmp'.
51166         * lib/unicase/u16-casecmp.c: New file.
51167         * modules/unicase/u16-casecmp: New file.
51168
51169         New module 'unicase/u8-casecmp'.
51170         * lib/unicase/u8-casecmp.c: New file.
51171         * lib/unicase/u-casecmp.h: New file.
51172         * modules/unicase/u8-casecmp: New file.
51173
51174         Tests for module 'unicase/u32-casefold'.
51175         * modules/unicase/u32-casefold-tests: New file.
51176         * tests/unicase/test-u32-casefold.c: New file.
51177
51178         Tests for module 'unicase/u16-casefold'.
51179         * modules/unicase/u16-casefold-tests: New file.
51180         * tests/unicase/test-u16-casefold.c: New file.
51181
51182         Tests for module 'unicase/u8-casefold'.
51183         * modules/unicase/u8-casefold-tests: New file.
51184         * tests/unicase/test-u8-casefold.c: New file.
51185
51186         New module 'unicase/u32-casefold'.
51187         * lib/unicase/u32-casefold.c: New file.
51188         * modules/unicase/u32-casefold: New file.
51189
51190         New module 'unicase/u16-casefold'.
51191         * lib/unicase/u16-casefold.c: New file.
51192         * modules/unicase/u16-casefold: New file.
51193
51194         New module 'unicase/u8-casefold'.
51195         * lib/unicase/u8-casefold.c: New file.
51196         * lib/unicase/u-casefold.h: New file.
51197         * modules/unicase/u8-casefold: New file.
51198
51199         New module 'unicase/tocasefold'.
51200         * lib/unicase/casefold.h: New file.
51201         * lib/unicase/tocasefold.c: New file.
51202         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51203         * modules/unicase/tocasefold: New file.
51204
51205         Tests for module 'unicase/u32-totitle'.
51206         * modules/unicase/u32-totitle-tests: New file.
51207         * tests/unicase/test-u32-totitle.c: New file.
51208
51209         Tests for module 'unicase/u16-totitle'.
51210         * modules/unicase/u16-totitle-tests: New file.
51211         * tests/unicase/test-u16-totitle.c: New file.
51212
51213         Tests for module 'unicase/u8-totitle'.
51214         * modules/unicase/u8-totitle-tests: New file.
51215         * tests/unicase/test-u8-totitle.c: New file.
51216
51217         New module 'unicase/u32-totitle'.
51218         * lib/unicase/u32-totitle.c: New file.
51219         * modules/unicase/u32-totitle: New file.
51220
51221         New module 'unicase/u16-totitle'.
51222         * lib/unicase/u16-totitle.c: New file.
51223         * modules/unicase/u16-totitle: New file.
51224
51225         New module 'unicase/u8-totitle'.
51226         * lib/unicase/u8-totitle.c: New file.
51227         * lib/unicase/u-totitle.h: New file.
51228         * modules/unicase/u8-totitle: New file.
51229
51230         Tests for module 'unicase/u32-tolower'.
51231         * modules/unicase/u32-tolower-tests: New file.
51232         * tests/unicase/test-u32-tolower.c: New file.
51233
51234         Tests for module 'unicase/u16-tolower'.
51235         * modules/unicase/u16-tolower-tests: New file.
51236         * tests/unicase/test-u16-tolower.c: New file.
51237
51238         Tests for module 'unicase/u8-tolower'.
51239         * modules/unicase/u8-tolower-tests: New file.
51240         * tests/unicase/test-u8-tolower.c: New file.
51241
51242         New module 'unicase/u32-tolower'.
51243         * lib/unicase/u32-tolower.c: New file.
51244         * modules/unicase/u32-tolower: New file.
51245
51246         New module 'unicase/u16-tolower'.
51247         * lib/unicase/u16-tolower.c: New file.
51248         * modules/unicase/u16-tolower: New file.
51249
51250         New module 'unicase/u8-tolower'.
51251         * lib/unicase/u8-tolower.c: New file.
51252         * modules/unicase/u8-tolower: New file.
51253
51254         Tests for module 'unicase/u32-toupper'.
51255         * modules/unicase/u32-toupper-tests: New file.
51256         * tests/unicase/test-u32-toupper.c: New file.
51257
51258         Tests for module 'unicase/u16-toupper'.
51259         * modules/unicase/u16-toupper-tests: New file.
51260         * tests/unicase/test-u16-toupper.c: New file.
51261
51262         Tests for module 'unicase/u8-toupper'.
51263         * modules/unicase/u8-toupper-tests: New file.
51264         * tests/unicase/test-u8-toupper.c: New file.
51265
51266         New module 'unicase/u32-toupper'.
51267         * lib/unicase/u32-toupper.c: New file.
51268         * modules/unicase/u32-toupper: New file.
51269
51270         New module 'unicase/u16-toupper'.
51271         * lib/unicase/u16-toupper.c: New file.
51272         * modules/unicase/u16-toupper: New file.
51273
51274         New module 'unicase/u8-toupper'.
51275         * lib/unicase/u8-toupper.c: New file.
51276         * modules/unicase/u8-toupper: New file.
51277
51278         New module 'unicase/u32-casemap'.
51279         * lib/unicase/u32-casemap.c: New file.
51280         * modules/unicase/u32-casemap: New file.
51281
51282         New module 'unicase/u16-casemap'.
51283         * lib/unicase/u16-casemap.c: New file.
51284         * modules/unicase/u16-casemap: New file.
51285
51286         New module 'unicase/u8-casemap'.
51287         * lib/unicase/unicasemap.h: New file.
51288         * lib/unicase/u8-casemap.c: New file.
51289         * lib/unicase/u-casemap.h: New file.
51290         * modules/unicase/u8-casemap: New file.
51291
51292         New module 'unicase/special-casing'.
51293         * lib/unicase/special-casing.h: New file.
51294         * lib/unicase/special-casing.c: New file.
51295         * lib/unicase/special-casing-table.gperf: New file, generated by
51296         gen-uni-tables.c.
51297         * modules/unicase/special-casing: New file.
51298
51299         Tests for module 'unicase/locale-language'.
51300         * modules/unicase/locale-language-tests: New file.
51301         * tests/unicase/test-locale-language.sh: New file.
51302         * tests/unicase/test-locale-language.c: New file.
51303
51304         New module 'unicase/locale-language'.
51305         * lib/unicase/locale-language.c: New file.
51306         * lib/unicase/locale-languages.gperf: New file.
51307         * modules/unicase/locale-language: New file.
51308
51309         Generate more tables for case conversion and case folding.
51310         * lib/gen-uni-tables.c (SCC_*): New enum items.
51311         (struct special_casing_rule): New type.
51312         (casing_rules, num_casing_rules, allocated_casing_rules): New
51313         variables.
51314         (add_casing_rule, fill_casing_rules): New functions.
51315         (struct casefold_rule): New type.
51316         (casefolding_rules, num_casefolding_rules,
51317         allocated_casefolding_rules): New variables.
51318         (fill_casefolding_rules): New function.
51319         (unicode_casefold): New variable.
51320         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51321         sort_casing_rules, output_casing_rules): New functions.
51322         (main): Accept to more arguments: SpecialCasing.txt and
51323         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51324         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51325         Output mapping for casefolding.
51326
51327         * lib/unicase.h: Include stdbool.h, uninorm.h.
51328         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51329         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51330         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51331         arguments.
51332         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51333         resultp arguments.
51334         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51335         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51336         resultp arguments.
51337         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51338         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51339         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51340         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51341         declarations.
51342         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51343
51344 2009-03-08  Bruno Haible  <bruno@clisp.org>
51345
51346         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51347         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51348         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51349         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51350
51351 2009-03-07  Bruno Haible  <bruno@clisp.org>
51352
51353         Adjust u*_normcmp, u*_normcoll API.
51354         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51355         u16_normcoll, u32_normcoll): Change failure conventions.
51356         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51357         errno and return -1.
51358         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51359
51360 2009-03-07  Bruno Haible  <bruno@clisp.org>
51361
51362         Tests for module 'uninorm/u32-normcoll'.
51363         * modules/uninorm/u32-normcoll-tests: New file.
51364         * tests/uninorm/test-u32-normcoll.c: New file.
51365
51366         Tests for module 'uninorm/u16-normcoll'.
51367         * modules/uninorm/u16-normcoll-tests: New file.
51368         * tests/uninorm/test-u16-normcoll.c: New file.
51369
51370         Tests for module 'uninorm/u8-normcoll'.
51371         * modules/uninorm/u8-normcoll-tests: New file.
51372         * tests/uninorm/test-u8-normcoll.c: New file.
51373
51374 2009-03-07  Bruno Haible  <bruno@clisp.org>
51375
51376         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51377         tests/uninorm/test-u32-normcmp.c.
51378         * tests/uninorm/test-u32-normcmp.c: Include it.
51379         (test_nonascii): New function, extracted from main. Add some more
51380         tests.
51381         (main): Invoke test_ascii and test_nonascii.
51382         * modules/uninorm/u32-normcmp-tests (Files): Add
51383         tests/uninorm/test-u32-normcmp.h.
51384         (Depends-on): Remove uninorm/u32-normcmp.
51385
51386         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51387         tests/uninorm/test-u16-normcmp.c.
51388         * tests/uninorm/test-u16-normcmp.c: Include it.
51389         (test_nonascii): New function, extracted from main. Add some more
51390         tests.
51391         (main): Invoke test_ascii and test_nonascii.
51392         * modules/uninorm/u16-normcmp-tests (Files): Add
51393         tests/uninorm/test-u16-normcmp.h.
51394         (Depends-on): Remove uninorm/u16-normcmp.
51395
51396         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51397         tests/uninorm/test-u8-normcmp.c.
51398         * tests/uninorm/test-u8-normcmp.c: Include it.
51399         (test_nonascii): New function, extracted from main. Add some more
51400         tests.
51401         (main): Invoke test_ascii and test_nonascii.
51402         * modules/uninorm/u8-normcmp-tests (Files): Add
51403         tests/uninorm/test-u8-normcmp.h.
51404         (Depends-on): Remove uninorm/u8-normcmp.
51405
51406 2009-03-07  Bruno Haible  <bruno@clisp.org>
51407
51408         New module 'uninorm/u32-normcoll'.
51409         * lib/uninorm/u32-normcoll.c: New file.
51410         * modules/uninorm/u32-normcoll: New file.
51411
51412         New module 'uninorm/u16-normcoll'.
51413         * lib/uninorm/u16-normcoll.c: New file.
51414         * modules/uninorm/u16-normcoll: New file.
51415
51416         New module 'uninorm/u8-normcoll'.
51417         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51418         declarations.
51419         * lib/uninorm/u8-normcoll.c: New file.
51420         * lib/uninorm/u-normcoll.h: New file.
51421         * modules/uninorm/u8-normcoll: New file.
51422
51423         New module 'uninorm/u32-normxfrm'.
51424         * lib/uninorm/u32-normxfrm.c: New file.
51425         * modules/uninorm/u32-normxfrm: New file.
51426
51427         New module 'uninorm/u16-normxfrm'.
51428         * lib/uninorm/u16-normxfrm.c: New file.
51429         * modules/uninorm/u16-normxfrm: New file.
51430
51431         New module 'uninorm/u8-normxfrm'.
51432         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51433         declarations.
51434         * lib/uninorm/u8-normxfrm.c: New file.
51435         * lib/uninorm/u-normxfrm.h: New file.
51436         * modules/uninorm/u8-normxfrm: New file.
51437
51438 2009-03-07  Bruno Haible  <bruno@clisp.org>
51439
51440         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51441         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51442         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51443
51444 2009-03-07  Bruno Haible  <bruno@clisp.org>
51445
51446         New module 'memxfrm'.
51447         * lib/memxfrm.h: New file.
51448         * lib/memxfrm.c: New file.
51449         * modules/memxfrm: New file.
51450
51451 2009-03-07  Bruno Haible  <bruno@clisp.org>
51452
51453         New module 'memcmp2'.
51454         * lib/memcmp2.h: New file.
51455         * lib/memcmp2.c: New file.
51456         * modules/memcmp2: New file.
51457
51458 2009-03-07  Bruno Haible  <bruno@clisp.org>
51459
51460         Tests for module 'uninorm/decomposing-form'.
51461         * modules/uninorm/decomposing-form-tests: New file.
51462         * tests/uninorm/test-decomposing-form.c: New file.
51463
51464         New module 'uninorm/decomposing-form'.
51465         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51466         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51467         Add 'decomposing_variant' field.
51468         * lib/uninorm/decomposing-form.c: New file.
51469         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51470         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51471         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51472         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51473         * modules/uninorm/decomposing-form: New file.
51474         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51475         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51476
51477 2009-03-07  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51480         strings.
51481
51482 2009-03-06  Bruno Haible  <bruno@clisp.org>
51483
51484         Tests for module 'uninorm/u32-normcmp'.
51485         * tests/uninorm/test-u32-normcmp.c: New file.
51486         * modules/uninorm/u32-normcmp-tests: New file.
51487
51488         Tests for module 'uninorm/u16-normcmp'.
51489         * tests/uninorm/test-u16-normcmp.c: New file.
51490         * modules/uninorm/u16-normcmp-tests: New file.
51491
51492         Tests for module 'uninorm/u8-normcmp'.
51493         * tests/uninorm/test-u8-normcmp.c: New file.
51494         * modules/uninorm/u8-normcmp-tests: New file.
51495
51496         New module 'uninorm/u32-normcmp'.
51497         * lib/uninorm/u32-normcmp.c: New file.
51498         * modules/uninorm/u32-normcmp: New file.
51499
51500         New module 'uninorm/u16-normcmp'.
51501         * lib/uninorm/u16-normcmp.c: New file.
51502         * modules/uninorm/u16-normcmp: New file.
51503
51504         New module 'uninorm/u8-normcmp'.
51505         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51506         declarations.
51507         * lib/uninorm/u8-normcmp.c: New file.
51508         * lib/uninorm/u-normcmp.h: New file.
51509         * modules/uninorm/u8-normcmp: New file.
51510
51511 2009-03-06  Bruno Haible  <bruno@clisp.org>
51512
51513         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51514         Reported by Eric Blake.
51515
51516 2009-03-06  Eric Blake  <ebb9@byu.net>
51517             Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51520         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51521         condition.
51522         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51523         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51524         condition.
51525         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51526
51527 2009-03-06  Eric Blake  <ebb9@byu.net>
51528
51529         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51530         to avoid compiler warnings.
51531         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51532
51533 2009-03-05  Bruno Haible  <bruno@clisp.org>
51534
51535         * tests/test-ftell.c (main): Disable test beyond end of file on
51536         FreeMiNT.
51537         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51538
51539 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51540
51541         * lib/filevercmp.c: Move hidden files up in ordering.
51542         * tests/test-filevercmp.c: Add tests for hidden files.
51543
51544 2009-03-04  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51547         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51548         AM_CFLAGS.
51549         Reported by Simon Josefsson.
51550
51551 2009-03-03  Bruno Haible  <bruno@clisp.org>
51552
51553         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51554         Reported by Simon Josefsson.
51555
51556         * doc/ld-version-script.texi: Update node reference.
51557
51558 2009-03-03  Bruno Haible  <bruno@clisp.org>
51559
51560         * modules/visibility (License): Change to 'unlimited'.
51561         Suggested by Simon Josefsson.
51562
51563 2009-03-03  Jim Meyering  <meyering@redhat.com>
51564
51565         unlinkdir: cannot_unlink_dir may modify process state
51566         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51567         it's neither thread-safe nor appropriate for use in a library.
51568
51569 2009-03-03  Eric Blake  <ebb9@byu.net>
51570
51571         test-closein: silence test under Darwin
51572         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51573         care if it dies from EPIPE or EBADF.
51574
51575 2009-03-03  Bruno Haible  <bruno@clisp.org>
51576
51577         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51578         earlier.
51579         * doc/visibility.texi: Fix @node and @section.
51580
51581 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51582
51583         * doc/gnulib.texi: Link to sections for ld version script and
51584         visibility.
51585         * doc/visibility.texi: Add @node and @section.
51586         * modules/ld-version-script: New module.
51587         * m4/ld-version-script.m4: New file.
51588         * doc/ld-version-script.texi: New file.
51589
51590 2009-03-02  David Lutterkort  <lutter@redhat.com>
51591
51592         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51594
51595 2009-03-02  Bruno Haible  <bruno@clisp.org>
51596
51597         * doc/visibility.texi: Mention libtool's -export-symbols option.
51598
51599 2009-03-02  Jim Meyering  <meyering@redhat.com>
51600
51601         announce-gen: new option: --no-print-checksums
51602         * build-aux/announce-gen (usage): Describe it.
51603         (print_checksums): Print a newline here, not in the [*] footnote.
51604         (main): Honor it.
51605
51606 2009-03-01  Bruno Haible  <bruno@clisp.org>
51607
51608         Use socklen_t in the native Windows replacements prototypes.
51609         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51610         instead of 'int'.
51611         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51612         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51613         * modules/getsockopt (Depends-on): Add socklen.
51614         * modules/setsockopt (Depends-on): Add socklen.
51615
51616 2009-03-01  Bruno Haible  <bruno@clisp.org>
51617
51618         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51619         least 4.2.
51620
51621 2009-03-01  Eric Blake  <ebb9@byu.net>
51622             Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51625         error messages.
51626         * lib/wait-process.c (wait_subprocess): Omit error message about
51627         deadly signal sent to the child of termsigp != NULL.
51628
51629 2009-03-01  Eric Blake  <ebb9@byu.net>
51630
51631         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51632
51633 2009-03-01  Bruno Haible  <bruno@clisp.org>
51634
51635         Avoid a gcc warning.
51636         * tests/test-sched.c (b): Make global.
51637         Reported by Eric Blake.
51638
51639 2009-01-19  Martin Lambers  <marlam@marlam.de>
51640
51641         Provide POSIX semantics for socket timeout options on W32.
51642         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51643         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51644         * modules/setsockopt: Depend on sys_time module for struct timeval.
51645         * modules/getsockopt: Depend on sys_time module for struct timeval.
51646
51647 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51648
51649         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51650         __USE_GNU, for consistency with netdb.in.h.
51651         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51652
51653 2009-03-01  Bruno Haible  <bruno@clisp.org>
51654
51655         More support for FreeMiNT.
51656         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51657         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51658
51659 2009-03-01  Bruno Haible  <bruno@clisp.org>
51660
51661         More support for FreeMiNT.
51662         * lib/fpurge.c (fpurge): Correct last commit.
51663         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51664
51665 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51666
51667         Fix unportable awk script in vc-list-files.
51668         * build-aux/vc-list-files: In the replacement awk script, use
51669         substr with a second argument of 1, not zero.
51670         Report by Simon Josefsson.
51671
51672 2009-02-28  Bruno Haible  <bruno@clisp.org>
51673
51674         More support for FreeMiNT.
51675         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51676         to FreeMiNT today.
51677         * lib/fwriting.c (fwriting): Likewise.
51678         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51679
51680 2009-02-28  Bruno Haible  <bruno@clisp.org>
51681
51682         * tests/test-freadseek.c (main): Disable test beyond end of file on
51683         FreeMiNT.
51684         * tests/test-ftello.c (main): Likewise.
51685         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51686
51687 2009-02-28  Bruno Haible  <bruno@clisp.org>
51688
51689         Add tentative support for FreeMiNT.
51690         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51691         * lib/fpurge.c (fpurge): Likewise.
51692         * lib/freadable.c (freadable): Likewise.
51693         * lib/freading.c (freading): Likewise.
51694         * lib/freadptr.c (freadptr): Likewise.
51695         * lib/freadseek.c (freadptrinc): Likewise.
51696         * lib/fseeko.c (rpl_fseeko): Likewise.
51697         * lib/fseterr.c (fseterr): Likewise.
51698         * lib/fwritable.c (fwritable): Likewise.
51699         * lib/fwriting.c (fwriting): Likewise.
51700         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51701         Hourihane.
51702         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51703
51704 2009-02-28  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51707         SIGCHLD.
51708         Reported by Jim Meyering.
51709
51710 2009-02-28  Bruno Haible  <bruno@clisp.org>
51711
51712         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51713         Mention the results of these tests on various platforms.
51714         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51715         order.
51716         * doc/posix-functions/printf.texi: Likewise.
51717         * doc/posix-functions/snprintf.texi: Likewise.
51718         * doc/posix-functions/sprintf.texi: Likewise.
51719         * doc/posix-functions/vfprintf.texi: Likewise.
51720         * doc/posix-functions/vprintf.texi: Likewise.
51721         * doc/posix-functions/vsnprintf.texi: Likewise.
51722         * doc/posix-functions/vsprintf.texi: Likewise.
51723         * doc/glibc-functions/obstack_printf.texi: Likewise.
51724         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51725
51726 2009-02-28  Bruno Haible  <bruno@clisp.org>
51727
51728         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51729         Reported by Loïc Minier <lool@dooz.org>.
51730
51731 2009-02-27  Bruno Haible  <bruno@clisp.org>
51732
51733         * gnulib-tool (func_import): Make the sed expression used to create the
51734         sed script for updating the .gitignore file POSIX compliant.
51735         Reported by Eric Blake.
51736
51737 2009-02-27  Bruno Haible  <bruno@clisp.org>
51738
51739         * gnulib-tool (sed): Don't alias as "sed --posix".
51740         Reported by Eric Blake.
51741
51742 2009-02-27  Bruno Haible  <bruno@clisp.org>
51743
51744         Avoid test link errors.
51745         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51746         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51747         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51748         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51750
51751 2009-02-27  Bruno Haible  <bruno@clisp.org>
51752
51753         Avoid spurious "(cached)" in configure output.
51754         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51755         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51756         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51757         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51758         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51760         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51761         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51762         Reported by Eric Blake.
51763
51764 2009-02-27  Eric Blake  <ebb9@byu.net>
51765
51766         printf: fix regression in previous patch
51767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51768
51769 2009-02-27  Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51772         value.
51773         * lib/stdint.in.h: Likewise.
51774         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51775
51776 2009-02-27  Eric Blake  <ebb9@byu.net>
51777
51778         doc: mention more functions added in cygwin 1.7.0
51779         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51780         addition.
51781         * doc/posix-functions/open_wmemstream.texi: Likewise.
51782         * doc/posix-functions/wcsnlen.texi: Likewise.
51783         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51784         * doc/posix-functions/wcstod.texi: Likewise.
51785         * doc/posix-functions/wcstof.texi: Likewise.
51786         * doc/posix-functions/wcstoimax.texi: Likewise.
51787         * doc/posix-functions/wcstok.texi: Likewise.
51788         * doc/posix-functions/wcstoumax.texi: Likewise.
51789
51790         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51791         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51792         * doc/posix-functions/fprintf.texi: Update.
51793         * doc/posix-functions/printf.texi: Update.
51794         * doc/posix-functions/snprintf.texi: Update.
51795         * doc/posix-functions/sprintf.texi: Update.
51796         * doc/posix-functions/vfprintf.texi: Update.
51797         * doc/posix-functions/vprintf.texi: Update.
51798         * doc/posix-functions/vsnprintf.texi: Update.
51799         * doc/posix-functions/vsprintf.texi: Update.
51800         * doc/glibc-functions/obstack_printf.texi: Update.
51801         * doc/glibc-functions/obstack_vprintf.texi: Update.
51802
51803 2009-02-26  Eric Blake  <ebb9@byu.net>
51804
51805         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51806         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51807         compilation bug by using runtime conversion.
51808         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51809         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51810         * modules/ceill-tests (Files): Use nan.h.
51811         * modules/floorl-tests (Files): Likewise.
51812         * modules/frexpl-tests (Files): Likewise.
51813         * modules/isnanl-tests (Files): Likewise.
51814         * modules/ldexpl-tests (Files): Likewise.
51815         * modules/roundl-tests (Files): Likewise.
51816         * modules/truncl-tests (Files): Likewise.
51817         * tests/test-ceill.c (main): Use a working NaN.
51818         * tests/test-floorl.c (main): Likewise.
51819         * tests/test-frexpl.c (main): Likewise.
51820         * tests/test-isnan.c (test_long_double): Likewise.
51821         * tests/test-isnanl.h (main): Likewise.
51822         * tests/test-ldexpl.h (main): Likewise.
51823         * tests/test-roundl.h (main): Likewise.
51824         * tests/test-truncl.h (main): Likewise.
51825         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51826
51827 2009-02-26  Eric Blake  <ebb9@byu.net>
51828             Bruno Haible  <bruno@clisp.org>
51829
51830         Work around a *printf bug with %ls on Solaris.
51831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51832         precision is specified, sprintf stops converting the wide string
51833         argument when the number of bytes that have been produced by this
51834         conversion equals or exceeds the precision.
51835         * doc/posix-functions/fprintf.texi: Update.
51836         * doc/posix-functions/printf.texi: Update.
51837         * doc/posix-functions/snprintf.texi: Update.
51838         * doc/posix-functions/sprintf.texi: Update.
51839         * doc/posix-functions/vfprintf.texi: Update.
51840         * doc/posix-functions/vprintf.texi: Update.
51841         * doc/posix-functions/vsnprintf.texi: Update.
51842         * doc/posix-functions/vsprintf.texi: Update.
51843         * doc/glibc-functions/obstack_printf.texi: Update.
51844         * doc/glibc-functions/obstack_vprintf.texi: Update.
51845
51846 2009-02-26  Eric Blake  <ebb9@byu.net>
51847
51848         stdlib: favor compiler check of random.h
51849         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51850         to avoid an ObjC random.h installed by Swarm.
51851
51852 2009-02-26  Bruno Haible  <bruno@clisp.org>
51853
51854         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51855         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51856         Reported by Gary V. Vaughan <gary@gnu.org>.
51857
51858 2009-02-26  Bruno Haible  <bruno@clisp.org>
51859
51860         Fix *printf behaviour regarding the %ls directive.
51861         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51862         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51863         NEED_PRINTF_DIRECTIVE_LS.
51864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51865         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51866         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51867         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51868         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51869         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51870         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51872         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51875         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51876         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51879         * doc/posix-functions/fprintf.texi: Update.
51880         * doc/posix-functions/printf.texi: Update.
51881         * doc/posix-functions/snprintf.texi: Update.
51882         * doc/posix-functions/sprintf.texi: Update.
51883         * doc/posix-functions/vfprintf.texi: Update.
51884         * doc/posix-functions/vprintf.texi: Update.
51885         * doc/posix-functions/vsnprintf.texi: Update.
51886         * doc/posix-functions/vsprintf.texi: Update.
51887         * doc/glibc-functions/obstack_printf.texi: Update.
51888         * doc/glibc-functions/obstack_vprintf.texi: Update.
51889         Reported by Eric Blake.
51890
51891 2009-02-25  Bruno Haible  <bruno@clisp.org>
51892
51893         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51894         with known value.
51895         Reported by Gary V. Vaughan <gary@gnu.org>.
51896
51897 2009-02-25  Bruno Haible  <bruno@clisp.org>
51898
51899         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51900         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51901         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51902         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51903         Reported by Gary V. Vaughan <gary@gnu.org>.
51904
51905 2009-02-25  Bruno Haible  <bruno@clisp.org>
51906
51907         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51908         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51909         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51910         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51911         Reported by Gary V. Vaughan <gary@gnu.org>.
51912
51913 2009-02-25  Eric Blake  <ebb9@byu.net>
51914
51915         tests: skip fseek/ftell tests if ungetc is broken
51916         * m4/ungetc.m4: New file.
51917         * modules/fseek-tests: Split test, so ungetc dependency is
51918         separate from rest of test.
51919         * modules/fseeko-tests: Likewise.
51920         * modules/ftell-tests: Likewise.
51921         * modules/ftello-tests: Likewise.
51922         * tests/test-fseek.c (main): Isolate ungetc dependency.
51923         * tests/test-fseeko.c (main): Likewise.
51924         * tests/test-ftell.c (main): Likewise.
51925         * tests/test-ftello.c (main): Likewise.
51926         * tests/test-fseek2.sh: New file.
51927         * tests/test-fseeko2.sh: Likewise.
51928         * tests/test-ftell2.sh: Likewise.
51929         * tests/test-ftello2.sh: Likewise.
51930
51931 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51932
51933         test-getaddrinfo: fix usage of skip return code 77
51934         * tests/test-gettaddrinfo.c: Return skip code 77 only
51935         for first occurrence of skip (4x77 is not 77)
51936
51937 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51938
51939         strtod: avoid C99 decl-after-statement
51940         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51941
51942 2009-02-24  Eric Blake  <ebb9@byu.net>
51943
51944         strtod: detect HP-UX 11.31 bug
51945         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51946         Reported by Gary V. Vaughan.
51947
51948 2009-02-23  Bruno Haible  <bruno@clisp.org>
51949
51950         Fix invalid read past end of memory block.
51951         * lib/vasnprintf.c (DCHAR_SET): Define.
51952         (local_wcslen): Define only when needed.
51953         (local_strnlen, local_wcsnlen): New functions.
51954         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51955         directives that involve a conversion ourselves.
51956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51957         wcsnlen, mbrtowc, wcrtomb.
51958         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51959         * tests/test-vasprintf-posix.c (test_function): Likewise.
51960         * tests/test-snprintf-posix.h (test_function): Likewise.
51961         * tests/test-sprintf-posix.h (test_function): Likewise.
51962         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51963
51964 2009-02-22  Bruno Haible  <bruno@clisp.org>
51965
51966         Implement new clarified decomposition of Hangul syllables.
51967         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51968         of type LTV, return only a pairwise decomposition.
51969         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51970         Likewise.
51971         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51972         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51973         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51974
51975 2009-02-22  Bruno Haible  <bruno@clisp.org>
51976
51977         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51978         zero-length results and shrink excess allocated memory.
51979         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51980         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51981         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51982         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51983         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51984         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51985         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51986         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51987         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51988         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51989         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51990         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51991
51992 2009-02-21  Bruno Haible  <bruno@clisp.org>
51993
51994         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51995         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51996         spaces after a period. Put a space between a macro name and its
51997         argument list. Trivial rewordings.
51998         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51999         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52000         (main): Return 0 explicitly.
52001
52002 2009-02-21  Bruno Haible  <bruno@clisp.org>
52003
52004         Tests for module 'uninorm/filter'.
52005         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52006         * modules/uninorm/filter-tests: New file.
52007
52008         New module 'uninorm/filter'.
52009         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52010         uninorm_filter_flush, uninorm_filter_free): New declarations.
52011         * lib/uninorm/uninorm-filter.c: New file.
52012         * modules/uninorm/filter: New file.
52013
52014 2009-02-21  Bruno Haible  <bruno@clisp.org>
52015
52016         Tests for module 'uninorm/nfkc'.
52017         * tests/uninorm/test-nfkc.c: New file.
52018         * tests/uninorm/test-u8-nfkc.c: New file.
52019         * tests/uninorm/test-u16-nfkc.c: New file.
52020         * tests/uninorm/test-u32-nfkc.c: New file.
52021         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52022         * tests/uninorm/test-u32-nfkc-big.c: New file.
52023         * modules/uninorm/nfkc-tests: New file.
52024
52025         New module 'uninorm/nfkc'.
52026         * lib/uninorm/nfkc.c: New file.
52027         * modules/uninorm/nfkc: New file.
52028
52029         Tests for module 'uninorm/nfkd'.
52030         * tests/uninorm/test-nfkd.c: New file.
52031         * tests/uninorm/test-u8-nfkd.c: New file.
52032         * tests/uninorm/test-u16-nfkd.c: New file.
52033         * tests/uninorm/test-u32-nfkd.c: New file.
52034         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52035         * tests/uninorm/test-u32-nfkd-big.c: New file.
52036         * modules/uninorm/nfkd-tests: New file.
52037
52038         New module 'uninorm/nfkd'.
52039         * lib/uninorm/nfkd.c: New file.
52040         * modules/uninorm/nfkd: New file.
52041
52042         Tests for module 'uninorm/nfc'.
52043         * tests/uninorm/test-nfc.c: New file.
52044         * tests/uninorm/test-u8-nfc.c: New file.
52045         * tests/uninorm/test-u16-nfc.c: New file.
52046         * tests/uninorm/test-u32-nfc.c: New file.
52047         * tests/uninorm/test-u32-nfc-big.sh: New file.
52048         * tests/uninorm/test-u32-nfc-big.c: New file.
52049         * modules/uninorm/nfc-tests: New file.
52050
52051         New module 'uninorm/nfc'.
52052         * lib/uninorm/nfc.c: New file.
52053         * modules/uninorm/nfc: New file.
52054
52055         Tests for module 'uninorm/nfd'.
52056         * tests/uninorm/test-nfd.c: New file.
52057         * tests/uninorm/test-u8-nfd.c: New file.
52058         * tests/uninorm/test-u16-nfd.c: New file.
52059         * tests/uninorm/test-u32-nfd.c: New file.
52060         * tests/uninorm/test-u32-nfd-big.sh: New file.
52061         * tests/uninorm/test-u32-nfd-big.c: New file.
52062         * tests/uninorm/test-u32-normalize-big.h: New file.
52063         * tests/uninorm/test-u32-normalize-big.c: New file.
52064         * tests/uninorm/NormalizationTest.txt: New file, created from
52065         Unicode 5.1.0 NormalizationTest.txt.
52066         * modules/uninorm/nfd-tests: New file.
52067
52068         New module 'uninorm/nfd'.
52069         * lib/uninorm/nfd.c: New file.
52070         * modules/uninorm/nfd: New file.
52071
52072         New module 'uninorm/u32-normalize'.
52073         * lib/uninorm/u32-normalize.c: New file.
52074         * modules/uninorm/u32-normalize: New file.
52075
52076         New module 'uninorm/u16-normalize'.
52077         * lib/uninorm/u16-normalize.c: New file.
52078         * modules/uninorm/u16-normalize: New file.
52079
52080         New module 'uninorm/u8-normalize'.
52081         * lib/uninorm/u8-normalize.c: New file.
52082         * lib/uninorm/normalize-internal.h: New file.
52083         * lib/uninorm/u-normalize-internal.h: New file.
52084         * modules/uninorm/u8-normalize: New file.
52085
52086         New module 'uninorm/decompose-internal'.
52087         * lib/uninorm/decompose-internal.c: New file.
52088         * modules/uninorm/decompose-internal: New file.
52089
52090         Tests for module 'uninorm/composition'.
52091         * tests/uninorm/test-composition.c: New file.
52092         * modules/uninorm/composition-tests: New file.
52093
52094         New module 'uninorm/composition'.
52095         * lib/uninorm/composition.c: New file.
52096         * lib/uninorm/composition-table.gperf: New file, generated by
52097         gen-uni-tables.
52098         * modules/uninorm/composition: New file.
52099
52100         Tests for module 'uninorm/compat-decomposition'.
52101         * tests/uninorm/test-compat-decomposition.c: New file.
52102         * modules/uninorm/compat-decomposition-tests: New file.
52103
52104         New module 'uninorm/compat-decomposition'.
52105         * lib/uninorm/decompose-internal.h: New file.
52106         * lib/uninorm/compat-decomposition.c: New file.
52107         * modules/uninorm/compat-decomposition: New file.
52108
52109         Tests for module 'uninorm/canonical-decomposition'.
52110         * tests/uninorm/test-canonical-decomposition.c: New file.
52111         * modules/uninorm/canonical-decomposition-tests: New file.
52112
52113         New module 'uninorm/canonical-decomposition'.
52114         * lib/uninorm/canonical-decomposition.c: New file.
52115         * modules/uninorm/canonical-decomposition: New file.
52116
52117         Tests for module 'uninorm/decomposition'.
52118         * tests/uninorm/test-decomposition.c: New file.
52119         * modules/uninorm/decomposition-tests: New file.
52120
52121         New module 'uninorm/decomposition'.
52122         * lib/uninorm/decomposition.c: New file.
52123         * modules/uninorm/decomposition: New file.
52124
52125         New module 'uninorm/decomposition-table'.
52126         * lib/uninorm/decomposition-table.h: New file.
52127         * lib/uninorm/decomposition-table.c: New file.
52128         * lib/uninorm/decomposition-table1.h: New file, generated by
52129         gen-uni-tables.
52130         * lib/uninorm/decomposition-table2.h: New file, generated by
52131         gen-uni-tables.
52132         * modules/uninorm/decomposition-table: New file.
52133
52134         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52135         (UC_DECOMP_*): New enumeration items.
52136         (get_decomposition): New function.
52137         (struct decomp_table): New type.
52138         (output_decomposition, output_decomposition_tables): New functions.
52139         (unicode_composition_exclusions): New variable.
52140         (fill_composition_exclusions, debug_output_composition_tables): New
52141         functions.
52142         (main): Accept one more argument. Invoke fill_composition_exclusions.
52143         Output decomposition and composition tables.
52144
52145         New module 'uninorm/base'.
52146         * lib/uninorm.h: New file.
52147         * lib/unictype.h: Update comment.
52148         * modules/uninorm/base: New file.
52149
52150 2009-02-21  David Lutterkort  <lutter@redhat.com>
52151
52152         Tests for module 'safe-alloc'.
52153         * tests/test-safe-alloc.c: New file.
52154         * modules/safe-alloc-tests: New file.
52155
52156         New module 'safe-alloc'.
52157         * lib/safe-alloc.h: New file.
52158         * lib/safe-alloc.c: New file.
52159         * m4/safe-alloc.m4: New file.
52160         * modules/safe-alloc: New file.
52161         * doc/safe-alloc.texi: New file.
52162         * doc/gnulib.texi: Include it.
52163         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52164         safe-alloc.
52165
52166 2009-02-18  Bruno Haible  <bruno@clisp.org>
52167
52168         Fix link error on non-glibc systems.
52169         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52170         variable.
52171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52172
52173 2009-02-18  Jim Meyering  <meyering@redhat.com>
52174
52175         fts: avoid used-uninitialized error due to recent change
52176         * lib/fts.c (fts_read): Guard uses of the new member,
52177         parent->fts_n_dirs_remaining, since it's not relevant for
52178         the parent of a directory specified on the command-line.
52179
52180 2009-02-17  James Youngman  <jay@gnu.org>
52181             Bruno Haible  <bruno@clisp.org>
52182
52183         * m4/include_next.m4: Reformulate comment.
52184
52185 2009-02-16  Jim Meyering  <meyering@redhat.com>
52186
52187         fts: add #if guards so that the fts_lgpl module still builds
52188         * lib/fts.c: Guard just-added hash-table-using parts with
52189         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52190         Reported by Simon Josefsson.
52191
52192 2009-02-15  Bruno Haible  <bruno@clisp.org>
52193
52194         * modules/array-mergesort-tests: New file.
52195         * tests/test-array-mergesort.c: New file.
52196
52197         New module 'array-mergesort'.
52198         * modules/array-mergesort: New file.
52199         * lib/array-mergesort.h: New file.
52200
52201 2009-02-15  Bruno Haible  <bruno@clisp.org>
52202
52203         Fix 2009-02-07 commit.
52204         * lib/gen-uni-tables.c (output_predicate, output_category,
52205         output_combclass, output_bidi_category, output_decimal_digit,
52206         output_digit, output_numeric, output_mirror, output_scripts,
52207         output_ident_category, output_simple_mapping): Fix format directives.
52208         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52209
52210 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52211
52212         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52213         fixes are available from IBM.
52214
52215 2009-02-13  Jim Meyering  <meyering@redhat.com>
52216
52217         fts: arrange not to stat non-directories in more cases
52218         This makes GNU find (when it doesn't need to stat each file)
52219         *much* more efficient at traversing reiserfs file systems.
52220         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52221         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52222         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52223         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52224         (leaf_optimization_applies): New function.
52225         (LCO_hash, LCO_compare): New helper functions.
52226         (link_count_optimize_ok): New function.
52227         (fts_stat): Initialize new member (if dir).
52228         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52229         we've just stat'ed a directory.  Skip the stat call when possible.
52230         ---
52231         Note this AFS-related exchange:
52232         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52233         and note find's pioctl call in find/fstype.c.
52234         But that is necessary only if you want to enable the
52235         optimization for AFS, and for now, I don't.
52236
52237         fts: move a function definition "up" (no semantic change)
52238         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52239         "up" to precede upcoming use of a related function.
52240
52241 2009-02-11  Jim Meyering  <meyering@redhat.com>
52242
52243         fts: correct internal computation of nlinks (optimization-related)
52244         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52245         whether the current entry is a directory, so don't test it.
52246
52247 2009-02-10  Bruno Haible  <bruno@clisp.org>
52248
52249         Tests for module 'uniwbrk/ulc-wordbreaks'.
52250         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52251         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52252         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52253
52254         Tests for module 'uniwbrk/u32-wordbreaks'.
52255         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52256         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52257
52258         Tests for module 'uniwbrk/u16-wordbreaks'.
52259         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52260         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52261
52262         Tests for module 'uniwbrk/u8-wordbreaks'.
52263         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52264         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52265
52266 2009-02-10  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52269         property.
52270         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52271         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52272         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52273
52274 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52275
52276         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52277         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52278
52279 2009-02-10  Bruno Haible  <bruno@clisp.org>
52280
52281         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52282         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52283         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52284         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52285         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52286         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52287
52288 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52289
52290         * lib/sockets.h (gl_fd_to_handle): New function.
52291
52292         * tests/test-sockets.c: Call gl_fd_to_handle.
52293
52294 2009-02-09  Bruno Haible  <bruno@clisp.org>
52295
52296         * doc/havelib.texi: Document the conventions on bi-arch systems.
52297
52298 2009-02-08  Bruno Haible  <bruno@clisp.org>
52299
52300         Document the AC_LIB_LINKFLAGS macro.
52301         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52302         * doc/gnulib.texi: Include it.
52303
52304 2009-02-08  Bruno Haible  <bruno@clisp.org>
52305
52306         Fix wrong order of sections, compared to TOC.
52307         * doc/gnulib.texi: Include relocatable-maint.texi after the
52308         "Regular expressions" node, not before.
52309
52310 2009-02-08  Bruno Haible  <bruno@clisp.org>
52311
52312         Tests for module 'unicase/totitle'.
52313         * modules/unicase/totitle-tests: New file.
52314
52315         Tests for module 'unicase/tolower'.
52316         * modules/unicase/tolower-tests: New file.
52317
52318         Tests for module 'unicase/toupper'.
52319         * modules/unicase/toupper-tests: New file.
52320         * tests/unicase/test-mapping-part1.h: New file.
52321         * tests/unicase/test-mapping-part2.h: New file.
52322
52323         New module 'unicase/totitle'.
52324         * modules/unicase/totitle: New file.
52325         * lib/unicase/totitle.c: New file.
52326
52327         New module 'unicase/tolower'.
52328         * modules/unicase/tolower: New file.
52329         * lib/unicase/tolower.c: New file.
52330
52331         New module 'unicase/toupper'.
52332         * modules/unicase/toupper: New file.
52333         * lib/unicase/toupper.c: New file.
52334         * lib/unicase/simple-mapping.h: New file.
52335
52336         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52337         (mapping_table): New structure.
52338         (output_simple_mapping): New function.
52339         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52340         * modules/gen-uni-tables (Description): Update.
52341         * lib/unicase/toupper.h: New file, automatically generated by
52342         gen-uni-tables.
52343         * lib/unicase/tolower.h: New file, automatically generated by
52344         gen-uni-tables.
52345         * lib/unicase/totitle.h: New file, automatically generated by
52346         gen-uni-tables.
52347         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52348         gen-uni-tables.
52349         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52350         gen-uni-tables.
52351         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52352         gen-uni-tables.
52353
52354         New module 'unicase/base'.
52355         * modules/unicase/base: New file.
52356         * lib/unicase.h: New file.
52357
52358 2009-02-08  Bruno Haible  <bruno@clisp.org>
52359
52360         New module 'uniwbrk/ulc-wordbreaks'.
52361         * modules/uniwbrk/ulc-wordbreaks: New file.
52362         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52363
52364         New module 'uniwbrk/u32-wordbreaks'.
52365         * modules/uniwbrk/u32-wordbreaks: New file.
52366         * lib/uniwbrk/u32-wordbreaks.c: New file.
52367
52368         New module 'uniwbrk/u16-wordbreaks'.
52369         * modules/uniwbrk/u16-wordbreaks: New file.
52370         * lib/uniwbrk/u16-wordbreaks.c: New file.
52371
52372         New module 'uniwbrk/u8-wordbreaks'.
52373         * modules/uniwbrk/u8-wordbreaks: New file.
52374         * lib/uniwbrk/u8-wordbreaks.c: New file.
52375         * lib/uniwbrk/u-wordbreaks.h: New file.
52376
52377         New module 'uniwbrk/table'.
52378         * modules/uniwbrk/table: New file.
52379         * lib/uniwbrk/wbrktable.h: New file.
52380         * lib/uniwbrk/wbrktable.c: New file.
52381
52382         New module 'uniwbrk/wordbreak-property'.
52383         * modules/uniwbrk/wordbreak-property: New file.
52384         * lib/uniwbrk/wordbreak-property.c: New file.
52385
52386         * lib/gen-uni-tables.c (WBP_*): New enum items.
52387         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52388         (unicode_org_wbp): New variable.
52389         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52390         New functions.
52391         (wbp_table): New structure.
52392         (output_wbp, output_wbrk_tables): New functions.
52393         (main): Accept additional argument. Invoke fill_org_wbp,
52394         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52395         output_wbrk_tables.
52396         * modules/gen-uni-tables (Description): Update.
52397         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52398         gen-uni-tables.
52399
52400         New module 'uniwbrk/base'.
52401         * modules/uniwbrk/base: New file.
52402         * lib/uniwbrk.h: New file.
52403
52404 2009-02-08  Bruno Haible  <bruno@clisp.org>
52405
52406         Update to Unicode 5.1.0.
52407         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52408         U+2185..U+2188.
52409         (is_property_default_ignorable_code_point): Don't include characters
52410         of category Cc or Cs and not-a-characters.
52411         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52412         U+0D79, U+109E, U+109F, U+A60C.
52413         * lib/unictype/bidi_of.h: Regenerated.
52414         * lib/unictype/blocks.h: Regenerated.
52415         * lib/unictype/categ_C.h: Regenerated.
52416         * lib/unictype/categ_Cf.h: Regenerated.
52417         * lib/unictype/categ_Cn.h: Regenerated.
52418         * lib/unictype/categ_L.h: Regenerated.
52419         * lib/unictype/categ_Ll.h: Regenerated.
52420         * lib/unictype/categ_Lm.h: Regenerated.
52421         * lib/unictype/categ_Lo.h: Regenerated.
52422         * lib/unictype/categ_Lu.h: Regenerated.
52423         * lib/unictype/categ_M.h: Regenerated.
52424         * lib/unictype/categ_Mc.h: Regenerated.
52425         * lib/unictype/categ_Me.h: Regenerated.
52426         * lib/unictype/categ_Mn.h: Regenerated.
52427         * lib/unictype/categ_N.h: Regenerated.
52428         * lib/unictype/categ_Nd.h: Regenerated.
52429         * lib/unictype/categ_Nl.h: Regenerated.
52430         * lib/unictype/categ_No.h: Regenerated.
52431         * lib/unictype/categ_P.h: Regenerated.
52432         * lib/unictype/categ_Pd.h: Regenerated.
52433         * lib/unictype/categ_Pe.h: Regenerated.
52434         * lib/unictype/categ_Pf.h: Regenerated.
52435         * lib/unictype/categ_Pi.h: Regenerated.
52436         * lib/unictype/categ_Po.h: Regenerated.
52437         * lib/unictype/categ_Ps.h: Regenerated.
52438         * lib/unictype/categ_S.h: Regenerated.
52439         * lib/unictype/categ_Sk.h: Regenerated.
52440         * lib/unictype/categ_Sm.h: Regenerated.
52441         * lib/unictype/categ_So.h: Regenerated.
52442         * lib/unictype/categ_of.h: Regenerated.
52443         * lib/unictype/combining.h: Regenerated.
52444         * lib/unictype/ctype_alnum.h: Regenerated.
52445         * lib/unictype/ctype_alpha.h: Regenerated.
52446         * lib/unictype/ctype_graph.h: Regenerated.
52447         * lib/unictype/ctype_lower.h: Regenerated.
52448         * lib/unictype/ctype_print.h: Regenerated.
52449         * lib/unictype/ctype_punct.h: Regenerated.
52450         * lib/unictype/ctype_upper.h: Regenerated.
52451         * lib/unictype/decdigit.h: Regenerated.
52452         * lib/unictype/digit.h: Regenerated.
52453         * lib/unictype/mirror.h: Regenerated.
52454         * lib/unictype/numeric.h: Regenerated.
52455         * lib/unictype/pr_alphabetic.h: Regenerated.
52456         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52457         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52458         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52459         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52460         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52461         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52462         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52463         * lib/unictype/pr_combining.h: Regenerated.
52464         * lib/unictype/pr_dash.h: Regenerated.
52465         * lib/unictype/pr_decimal_digit.h: Regenerated.
52466         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52467         * lib/unictype/pr_deprecated.h: Regenerated.
52468         * lib/unictype/pr_diacritic.h: Regenerated.
52469         * lib/unictype/pr_extender.h: Regenerated.
52470         * lib/unictype/pr_format_control.h: Regenerated.
52471         * lib/unictype/pr_grapheme_base.h: Regenerated.
52472         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52473         * lib/unictype/pr_grapheme_link.h: Regenerated.
52474         * lib/unictype/pr_id_continue.h: Regenerated.
52475         * lib/unictype/pr_id_start.h: Regenerated.
52476         * lib/unictype/pr_ideographic.h: Regenerated.
52477         * lib/unictype/pr_ignorable_control.h: Regenerated.
52478         * lib/unictype/pr_lowercase.h: Regenerated.
52479         * lib/unictype/pr_math.h: Regenerated.
52480         * lib/unictype/pr_numeric.h: Regenerated.
52481         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52482         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52483         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52484         * lib/unictype/pr_other_id_continue.h: Regenerated.
52485         * lib/unictype/pr_other_lowercase.h: Regenerated.
52486         * lib/unictype/pr_other_math.h: Regenerated.
52487         * lib/unictype/pr_punctuation.h: Regenerated.
52488         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52489         * lib/unictype/pr_soft_dotted.h: Regenerated.
52490         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52491         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52492         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52493         * lib/unictype/pr_uppercase.h: Regenerated.
52494         * lib/unictype/pr_xid_continue.h: Regenerated.
52495         * lib/unictype/pr_xid_start.h: Regenerated.
52496         * lib/unictype/pr_zero_width.h: Regenerated.
52497         * lib/unictype/scripts.h: Regenerated.
52498         * lib/unictype/scripts_byname.gperf: Regenerated.
52499         * lib/unictype/sy_java_ident.h: Regenerated.
52500         * lib/unilbrk/lbrkprop1.h: Regenerated.
52501         * lib/unilbrk/lbrkprop2.h: Regenerated.
52502         * tests/unictype/test-categ_C.c: Regenerated.
52503         * tests/unictype/test-categ_Cf.c: Regenerated.
52504         * tests/unictype/test-categ_Cn.c: Regenerated.
52505         * tests/unictype/test-categ_L.c: Regenerated.
52506         * tests/unictype/test-categ_Ll.c: Regenerated.
52507         * tests/unictype/test-categ_Lm.c: Regenerated.
52508         * tests/unictype/test-categ_Lo.c: Regenerated.
52509         * tests/unictype/test-categ_Lu.c: Regenerated.
52510         * tests/unictype/test-categ_M.c: Regenerated.
52511         * tests/unictype/test-categ_Mc.c: Regenerated.
52512         * tests/unictype/test-categ_Me.c: Regenerated.
52513         * tests/unictype/test-categ_Mn.c: Regenerated.
52514         * tests/unictype/test-categ_N.c: Regenerated.
52515         * tests/unictype/test-categ_Nd.c: Regenerated.
52516         * tests/unictype/test-categ_Nl.c: Regenerated.
52517         * tests/unictype/test-categ_No.c: Regenerated.
52518         * tests/unictype/test-categ_P.c: Regenerated.
52519         * tests/unictype/test-categ_Pd.c: Regenerated.
52520         * tests/unictype/test-categ_Pe.c: Regenerated.
52521         * tests/unictype/test-categ_Pf.c: Regenerated.
52522         * tests/unictype/test-categ_Pi.c: Regenerated.
52523         * tests/unictype/test-categ_Po.c: Regenerated.
52524         * tests/unictype/test-categ_Ps.c: Regenerated.
52525         * tests/unictype/test-categ_S.c: Regenerated.
52526         * tests/unictype/test-categ_Sk.c: Regenerated.
52527         * tests/unictype/test-categ_Sm.c: Regenerated.
52528         * tests/unictype/test-categ_So.c: Regenerated.
52529         * tests/unictype/test-ctype_alnum.c: Regenerated.
52530         * tests/unictype/test-ctype_alpha.c: Regenerated.
52531         * tests/unictype/test-ctype_graph.c: Regenerated.
52532         * tests/unictype/test-ctype_lower.c: Regenerated.
52533         * tests/unictype/test-ctype_print.c: Regenerated.
52534         * tests/unictype/test-ctype_punct.c: Regenerated.
52535         * tests/unictype/test-ctype_upper.c: Regenerated.
52536         * tests/unictype/test-decdigit.h: Regenerated.
52537         * tests/unictype/test-digit.h: Regenerated.
52538         * tests/unictype/test-numeric.h: Regenerated.
52539         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52540         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52541         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52542         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52543         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52544         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52545         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52546         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52547         * tests/unictype/test-pr_combining.c: Regenerated.
52548         * tests/unictype/test-pr_dash.c: Regenerated.
52549         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52550         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52551         * tests/unictype/test-pr_deprecated.c: Regenerated.
52552         * tests/unictype/test-pr_diacritic.c: Regenerated.
52553         * tests/unictype/test-pr_extender.c: Regenerated.
52554         * tests/unictype/test-pr_format_control.c: Regenerated.
52555         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52556         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52557         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52558         * tests/unictype/test-pr_id_continue.c: Regenerated.
52559         * tests/unictype/test-pr_id_start.c: Regenerated.
52560         * tests/unictype/test-pr_ideographic.c: Regenerated.
52561         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52562         * tests/unictype/test-pr_lowercase.c: Regenerated.
52563         * tests/unictype/test-pr_math.c: Regenerated.
52564         * tests/unictype/test-pr_numeric.c: Regenerated.
52565         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52566         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52567         Regenerated.
52568         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52569         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52570         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52571         * tests/unictype/test-pr_other_math.c: Regenerated.
52572         * tests/unictype/test-pr_punctuation.c: Regenerated.
52573         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52574         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52575         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52576         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52577         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52578         * tests/unictype/test-pr_uppercase.c: Regenerated.
52579         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52580         * tests/unictype/test-pr_xid_start.c: Regenerated.
52581         * tests/unictype/test-pr_zero_width.c: Regenerated.
52582
52583         Update to Unicode 5.1.0.
52584         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52585         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52586         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52587         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52588         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52589         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52590         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52591         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52592         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52593         (nonspacing_table_ind): Update.
52594         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52595
52596         Update to Unicode 5.1.0.
52597         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52598         code transform.
52599         * lib/uniname/uniname.c (unicode_character_name,
52600         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52601         * lib/uniname/uninames.h: Regenerated.
52602         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52603
52604 2009-02-07  Bruno Haible  <bruno@clisp.org>
52605
52606         Merge gen-ctype and gen-lbrk into a single program.
52607         * lib/gen-uni-tables.c: New file, incorporating
52608         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52609         Add directory prefixes to the names of the generated files.
52610         * lib/unictype/gen-ctype.c: Remove file.
52611         * lib/unilbrk/gen-lbrk.c: Remove file.
52612         * modules/gen-uni-tables: New file.
52613         * modules/unictype/gen-ctype: Remove file.
52614         * modules/unilbrk/gen-lbrk: Remove file.
52615
52616 2009-02-07  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52619
52620         New module 'unistr/u32-strcoll'.
52621         * modules/unistr/u32-strcoll: New file.
52622         * lib/unistr/u32-strcoll.c: New file.
52623
52624         New module 'unistr/u16-strcoll'.
52625         * modules/unistr/u16-strcoll: New file.
52626         * lib/unistr/u16-strcoll.c: New file.
52627
52628         New module 'unistr/u8-strcoll'.
52629         * modules/unistr/u8-strcoll: New file.
52630         * lib/unistr/u8-strcoll.c: New file.
52631         * lib/unistr/u-strcoll.h: New file.
52632
52633 2009-02-07  Bruno Haible  <bruno@clisp.org>
52634
52635         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52636         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52637         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52638         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52639         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52640         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52641
52642 2009-02-07  Bruno Haible  <bruno@clisp.org>
52643
52644         Make 64-bit clean.
52645         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52646         output_combclass, output_bidi_category, output_decimal_digit,
52647         output_digit, output_numeric, output_mirror, output_scripts,
52648         output_ident_category): Use proper width specifier in format strings.
52649
52650 2009-02-07  Bruno Haible  <bruno@clisp.org>
52651
52652         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52653         failure behaviour.
52654
52655 2009-02-07  Jim Meyering  <meyering@redhat.com>
52656
52657         regex: avoid compilation failure with upcoming gcc-4.4
52658         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52659         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52660         "... error: integer overflow in preprocessor expression".
52661
52662 2009-02-05  Ben Pfaff  <blp@gnu.org>
52663
52664         Fix link errors on Windows when close module is used.
52665         * modules/close: Add $(LIB_CLOSE) to Link section.
52666         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52667         $(LIB_CLOSE) on Windows.
52668
52669 2009-02-05  Jim Meyering  <meyering@redhat.com>
52670
52671         still avoid unused-parameter warnings, but do it cleanly
52672         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52673         (get_fs_usage): Cast to void instead.
52674         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52675         (dev_from_mount_options, read_file_system_list): Cast to void.
52676         Prompted by Bruno Haible.
52677
52678 2009-02-04  Jim Meyering  <meyering@redhat.com>
52679
52680         fsusage.c: correct copyright year
52681         * lib/fsusage.c: Reflect year in which the change is pushed into
52682
52683         avoid misc. warnings
52684         * lib/fsusage.c (UNUSED_PARAM): Define.
52685         (get_fs_usage): Mark parameter "disk" as unused.
52686         * lib/getugroups.c (getgrent): Use "void" in prototype.
52687         * lib/mountlist.c: Mark unused parameters.
52688         (read_file_system_list): Declare a local with "const".
52689         * lib/nanosleep.c (getnow): Declare static.
52690         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52691
52692         dirfd: set errno upon failure
52693         * lib/dirfd.c: Include <errno.h>.
52694         Set errno to ENOTSUP when returning -1.
52695         * modules/dirfd (Depends-on): Add errno.
52696         Suggested by John Kodis <kodis@comcast.net>.
52697
52698 2009-02-01  Bruno Haible  <bruno@clisp.org>
52699
52700         Don't assume sizeof (long) >= sizeof (void *).
52701         * lib/memcmp.c: Include stdint.h.
52702         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52703         srcp2 to 'const byte *'.
52704         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52705         types to uintptr_t.
52706         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52707         * modules/memcmp (Depends-on): Add stdint.
52708         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52709
52710 2009-01-30  Eric Blake  <ebb9@byu.net>
52711
52712         fix more require-before-expand issues
52713         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52714         expand, AC_PROG_AWK.
52715         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52716
52717 2009-01-28  Eric Blake  <ebb9@byu.net>
52718
52719         version-etc: use consistent URL formatting
52720         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52721         Improve formatting.  Use fputs for string without %.
52722
52723 2009-01-28  Jim Meyering  <meyering@redhat.com>
52724
52725         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52726         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52727         "underquoted definition of NAME" from autoconf-2.59.
52728
52729 2009-01-28  Bruno Haible  <bruno@clisp.org>
52730
52731         * doc/gnulib.texi: Add "Obsolete modules" to index.
52732
52733 2009-01-28  Jim Meyering  <meyering@redhat.com>
52734
52735         useless-if-before-free: recognize more variants
52736         * build-aux/useless-if-before-free: Also recognize e.g.,
52737         if (NULL != p) free (p);
52738
52739 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52740
52741         test-getaddrinfo: skip (don't fail) this test when there's no network
52742         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52743         on the presumption that it means you lack network access.
52744
52745 2009-01-26  Jim Meyering  <meyering@redhat.com>
52746
52747         fflush: avoid warnings on modern systems
52748         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52749         pos and result, into scopes where they're used.
52750
52751 2009-01-26  Eric Blake  <ebb9@byu.net>
52752
52753         Silence warning reintroduced by recent extensions patch.
52754         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52755         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52756         autoconf.
52757
52758         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52759         * m4/00gnulib.m4: New file.
52760         * gnulib-tool (func_get_filelist): Always use it.
52761         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52762         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52763
52764 2009-01-25  Bruno Haible  <bruno@clisp.org>
52765
52766         Make test-quotearg work on MacOS X and AIX.
52767         * tests/test-quotearg.sh: New file.
52768         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52769         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52770         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52771         include <libintl.h>.
52772         (fake_locale): Remove variable.
52773         (gettext, dgettext, dcgettext): Remove functions.
52774         (main): Instead of setting a fake locale, set a real locale. Call
52775         textdomain and bindtextdomain.
52776         * modules/quotearg-tests (Files): Add the new files.
52777         (Depends-on): Add gettext, setenv, unsetenv.
52778         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52779         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52780         Augment TESTS_ENVIRONMENT.
52781
52782 2009-01-25  Bruno Haible  <bruno@clisp.org>
52783
52784         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52785         fr_FR.ISO8859-1 locale on MacOS X.
52786         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52787         ja_JP.eucJP locale on MacOS X.
52788         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52789         zh_CN.GB18030 locale on MacOS X.
52790
52791 2009-01-25  Bruno Haible  <bruno@clisp.org>
52792
52793         Avoid link errors on MacOS X 10.3.
52794         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52795         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52796
52797 2009-01-25  Bruno Haible  <bruno@clisp.org>
52798
52799         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52800         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52801         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52802         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52803         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52804         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52805         posix_spawnattr_init, posix_spawnattr_setsigmask,
52806         posix_spawnattr_setflags, posix_spawnattr_destroy.
52807
52808         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52809         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52810         * modules/execute (Files): Remove m4/posix_spawn.m4.
52811         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52812         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52813         posix_spawnattr_init, posix_spawnattr_setsigmask,
52814         posix_spawnattr_setflags, posix_spawnattr_destroy.
52815
52816 2009-01-25  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/glthread/threadlib.c: Include <stdlib.h>.
52819
52820 2009-01-25  Bruno Haible  <bruno@clisp.org>
52821
52822         * lib/glthread/threadlib.c (dummy): New declaration.
52823
52824 2009-01-25  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52827         multibyte characters also for the GB18030 encoding. Don't crash when
52828         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52829
52830 2009-01-25  Bruno Haible  <bruno@clisp.org>
52831
52832         Avoid redefining 'struct random_data' on OSF/1 5.1.
52833         * lib/stdlib.in.h: Include <random.h> if it exists.
52834         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52835         HAVE_RANDOM_H. Include <random.h> when testing whether
52836         'struct random_data' exists.
52837         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52838
52839 2009-01-25  Bruno Haible  <bruno@clisp.org>
52840
52841         Don't install charset.alias on MacOS X >= 10.3.
52842         * lib/localcharset.c (DARWIN7): New macro.
52843         (get_charset_aliases): Hardcode the result for Darwin7.
52844         * modules/localcharset (install-exec-local): Don't install
52845         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52846
52847 2009-01-25  Bruno Haible  <bruno@clisp.org>
52848
52849         Don't install charset.alias on mingw and Cygwin.
52850         * modules/localcharset (install-exec-local): Don't install
52851         charset.alias on mingw and Cygwin, if the file does not yet exist.
52852         The result for these platforms is hardcoded in localcharset.c.
52853
52854 2009-01-25  Bruno Haible  <bruno@clisp.org>
52855
52856         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52858         before requiring AC_USE_SYSTEM_EXTENSIONS.
52859
52860 2009-01-25  Jim Meyering  <meyering@redhat.com>
52861
52862         c-strtod: avoid warnings
52863         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52864         "assignment discards qualifiers from pointer target type" warnings.
52865
52866 2009-01-24  Bruno Haible  <bruno@clisp.org>
52867
52868         Add support for non-UTF-8 locales on MacOS X.
52869         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52870         canonical encodings. For Darwin 7 and newer, don't map traditional
52871         encodings to UTF-8.
52872         Reported by Vincent Lefevre <vincent@vinc17.org>
52873         at <http://savannah.gnu.org/bugs/?25235>.
52874
52875 2009-01-24  Bruno Haible  <bruno@clisp.org>
52876
52877         * doc/gnulib.texi (Obsolete modules): New section.
52878         Reported by Mike Frysinger <vapier@gentoo.org>.
52879
52880 2009-01-24  Bruno Haible  <bruno@clisp.org>
52881
52882         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52883         (%.dvi): New rule.
52884
52885 2009-01-24  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52888         Reported by Eric Blake.
52889
52890 2009-01-24  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52893         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52894         Reported by Gary V. Vaughan <gary@gnu.org>.
52895
52896 2009-01-24  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52899
52900 2009-01-23  Bruno Haible  <bruno@clisp.org>
52901
52902         Make c-strtod, c-strtold usable in libraries.
52903         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52904         (C_STRTOD): Call strdup instead of xstrdup.
52905         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52906         * modules/c-strtold (Depends-on): Likewise.
52907         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52908         * NEWS: Mention the change.
52909         Reported by Michael Gold <mgold@ncf.ca>.
52910
52911 2009-01-23  Jim Meyering  <meyering@redhat.com>
52912
52913         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52914         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52915         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52916
52917 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52918
52919         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52920         GNU CoreUtils.
52921         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52922         * modules/version-etc (Description): Update.
52923
52924 2009-01-22  Bruno Haible  <bruno@clisp.org>
52925
52926         Cache the C locale object.
52927         * lib/c-strtod.c (c_locale_cache): New variable.
52928         (c_locale): New function.
52929         (C_STRTOD): Use it, and don't call freelocale.
52930         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52931         Suggested by Paolo Bonzini.
52932
52933 2009-01-21  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52936         conditions other than overflow.
52937
52938 2009-01-21  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/c-strtod.c: Include errno.h.
52941         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52942         value from STRTOD_L and STRTOD.
52943
52944 2009-01-21  Bruno Haible  <bruno@clisp.org>
52945         and Jim Meyering  <meyering@redhat.com>
52946
52947         nanosleep: skip configure test (fail it) for apple universal builds
52948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52949         universal builds, assume that nanosleep does not work.
52950         * modules/nanosleep (Depends-on): Add multiarch.
52951
52952         mktime: skip configure test (fail it) for apple universal builds
52953         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52954         universal builds, assume that mktime does not work.
52955         * modules/mktime (Depends-on): Add multiarch.
52956
52957 2009-01-21  Eric Blake  <ebb9@byu.net>
52958
52959         multiarch: avoid expand-before-require warning
52960         * modules/multiarch (configure.ac): Require, rather than expand,
52961         gl_MULTIARCH.
52962         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52963         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52964         enforce that all clients require it.  Partial reversion of
52965         2008-12-29 patch.
52966
52967         error: avoid expand-before-require warning
52968         * modules/errno (configure.ac): Require, rather than expand,
52969         gl_HEADER_ERRNO_H.
52970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52971         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52972         enforce that all clients require it.
52973
52974         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52975         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52976         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52977         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52978
52979 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52980
52981         Revert:
52982         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52983
52984         regex: do not depend on obsolete modules.
52985         * modules/regex: Remove memcmp and memmove.
52986
52987 2009-01-20  Bruno Haible  <bruno@clisp.org>
52988
52989         Make the 'link' module link on Windows NT 4.
52990         * lib/link.c (_WIN32_WINNT): Don't define.
52991         (CreateHardLinkFuncType): New type.
52992         (CreateHardLinkFunc, initialized): New variables.
52993         (initialize): New function.
52994         (link): Invoke CreateHardLink indirectly through the function pointer.
52995
52996 2009-01-20  Bruno Haible  <bruno@clisp.org>
52997
52998         Fix compilation failure on mingw.
52999         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53000
53001 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53002
53003         * doc/c-strtod.texi: Mention a couple of restrictions.
53004
53005 2009-01-20  Jim Meyering  <meyering@redhat.com>
53006
53007         gettimeofday: move more declarations out of functions
53008         * lib/gettimeofday.c: Move extern declarations of tzset and
53009         gmtime out of containing functions.  Prompted by Bruno Haible.
53010
53011 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53012
53013         regex: do not depend on obsolete modules.
53014         * modules/regex: Remove memcmp and memmove.
53015
53016 2009-01-19  Bruno Haible  <bruno@clisp.org>
53017
53018         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53019         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53020         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53021         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53022         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53023
53024 2009-01-19  Bruno Haible  <bruno@clisp.org>
53025
53026         * tests/test-link.c: Include <errno.h>.
53027         (main): Exit with code 77 when a hard link cannot be created due to
53028         the file system.
53029         * tests/test-link.sh: Skip test when a hard link cannot be created due
53030         to the file system.
53031         Suggested by Eric Blake.
53032
53033 2009-01-19  Martin Lambers  <marlam@marlam.de>
53034
53035         * modules/link-tests: New file.
53036         * tests/test-link.sh: New file.
53037         * tests/test-link.c: New file.
53038
53039 2009-01-19  Eric Blake  <ebb9@byu.net>
53040
53041         doc: mention another function added in cygwin 1.7.0
53042         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53043         Another new function in cygwin 1.7.
53044
53045 2009-01-19  Bruno Haible  <bruno@clisp.org>
53046
53047         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53048         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53049         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53050         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53051         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53052         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53053         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53054         * m4/md4.m4 (gl_MD4): Likewise.
53055         * m4/md5.m4 (gl_MD5): Likewise.
53056         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53057         * m4/sha1.m4 (gl_SHA1): Likewise.
53058         * m4/sha256.m4 (gl_SHA256): Likewise.
53059         * m4/sha512.m4 (gl_SHA512): Likewise.
53060
53061 2009-01-19  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/uniname/uniname-tests (Depends-on): Add progname.
53064         * tests/uniname/test-uninames.c: Include progname.h.
53065         (main): Call set_program_name.
53066
53067         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53068         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53069         (main): Call set_program_name.
53070
53071         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53072         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53073         (main): Call set_program_name.
53074
53075         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53076         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53077         (main): Call set_program_name.
53078
53079         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53080         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53081         (main): Call set_program_name.
53082
53083         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53084         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53085         (main): Call set_program_name.
53086
53087         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53088         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53089         (main): Call set_program_name.
53090
53091         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53092         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53093         (main): Call set_program_name.
53094
53095         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53096         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53097         (main): Call set_program_name.
53098
53099 2009-01-19  Eric Blake  <ebb9@byu.net>
53100
53101         test-unistd: test previous patch
53102         * tests/test-unistd.c: Test *_FILENO macros.
53103
53104         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53105         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53106         Guarantee a definition.
53107         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53108         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53109         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53110         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53111         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53112         Likewise.
53113         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53114         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53115         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53116         Likewise.
53117         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53118         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53119         (STDERR_FILENO): Likewise.
53120         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53121         (STDERR_FILENO): Likewise.
53122         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53123         (STDERR_FILENO): Likewise.
53124         Reported by Elbert Pol.
53125
53126 2009-01-19  Eric Blake  <ebb9@byu.net>
53127
53128         doc: mention more functions added in cygwin 1.7.0
53129         * doc/posix-functions/abort.texi (abort): Update wording related
53130         to cygwin.
53131         * doc/posix-functions/daylight.texi (daylight): Likewise.
53132         * doc/posix-functions/optarg.texi (optarg): Likewise.
53133         * doc/posix-functions/optarg.texi (opterr): Likewise.
53134         * doc/posix-functions/optarg.texi (optind): Likewise.
53135         * doc/posix-functions/optarg.texi (optopt): Likewise.
53136         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53137         worked in 1.5.x, and was withdrawn in 1.7.
53138         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53139         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53140         cygwin versions.
53141         * doc/posix-functions/perror.texi (perror): Likewise.
53142         * doc/posix-functions/printf.texi (printf): Likewise.
53143         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53144         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53145         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53146         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53147         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53148         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53149         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53150         Likewise.
53151         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53152         Likewise.
53153         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53154         this function.
53155         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53156         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53157         Likewise.
53158         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53159         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53160         * doc/posix-functions/confstr.texi (confstr): Likewise.
53161         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53162         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53163         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53164         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53165         * doc/posix-functions/fputws.texi (fputws): Likewise.
53166         * doc/posix-functions/fwide.texi (fwide): Likewise.
53167         * doc/posix-functions/getwc.texi (getwc): Likewise.
53168         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53169         * doc/posix-functions/putwc.texi (putwc): Likewise.
53170         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53171         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53172         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53173         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53174         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53175         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53176         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53177         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53178         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53179         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53180         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53181
53182 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53183
53184         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53185         * lib/ioctl.c: Include <sys/ioctl.h>.
53186
53187 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53188
53189         * modules/getdate-tests (Depends-on): Add progname.
53190         * tests/test-getdate.c: Use progname module, to avoid link errors
53191         on non-glibc systems.
53192
53193 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53194
53195         * modules/filenamecat-tests (Depends-on): Add progname.
53196         * modules/fstrcmp-tests (Depends-on): Likewise.
53197
53198         * tests/test-filenamecat.c: Use progname module, to avoid link
53199         errors on non-glibc systems.
53200         * tests/test-fstrcmp.c: Likewise.
53201
53202 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53203
53204         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53205         * lib/gettimeofday.c: Move extern declaration out of function.
53206
53207 2009-01-18  Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53210         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53211         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53212
53213 2009-01-18  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/strftime.c (MEMPCPY): Remove unused macro.
53216         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53217
53218 2009-01-18  Martin Lambers  <marlam@marlam.de>
53219
53220         New module 'link'.
53221         * lib/unistd.in.h (link): New declaration.
53222         * lib/link.c: New file.
53223         * m4/link.m4: New file.
53224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53225         HAVE_LINK.
53226         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53227         * modules/link: New file.
53228         * doc/posix-functions/link.texi: Mention the new module.
53229
53230 2009-01-18  Bruno Haible  <bruno@clisp.org>
53231
53232         * tests/test-avltree_list.c (main): Call set_program_name.
53233         * tests/test-avltree_oset.c (main): Likewise.
53234         * tests/test-obstack-printf.c: Include progname.h.
53235         (main): Call set_program_name.
53236         * tests/test-quotearg.c: Include progname.h.
53237         (main): Call set_program_name.
53238         * tests/test-xmemdup0.c: Include progname.h.
53239         (main): Call set_program_name.
53240
53241 2009-01-18  Bruno Haible  <bruno@clisp.org>
53242
53243         New module 'alphasort'.
53244         * lib/dirent.in.h (alphasort): New declaration.
53245         * lib/alphasort.c: New file, from glibc with modifications.
53246         * m4/alphasort.m4: New file.
53247         * modules/alphasort: New file.
53248         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53249         HAVE_ALPHASORT.
53250         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53251         HAVE_ALPHASORT.
53252         * doc/posix-functions/alphasort.texi: Mention the new module and the
53253         portability problems.
53254
53255 2009-01-18  Bruno Haible  <bruno@clisp.org>
53256
53257         New module 'scandir'.
53258         * lib/dirent.in.h (scandir): New declaration.
53259         * lib/scandir.c: New file, from glibc with modifications.
53260         * m4/scandir.m4: New file.
53261         * modules/scandir: New file.
53262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53263         HAVE_SCANDIR.
53264         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53265         HAVE_SCANDIR.
53266         * doc/posix-functions/scandir.texi: Mention the new module and the
53267         portability problems.
53268
53269 2009-01-17  Bruno Haible  <bruno@clisp.org>
53270
53271         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53272         Update documentation.
53273         (func_remove_suffix): Escape all dots in the suffix. Update
53274         documentation.
53275         (func_filter_filelist): Update documentation.
53276         Reported by Ralf Wildenhues.
53277
53278 2009-01-17  Bruno Haible  <bruno@clisp.org>
53279
53280         * modules/dprintf-posix-tests: New file.
53281         * tests/test-dprintf-posix.sh: New file.
53282         * tests/test-dprintf-posix.c: New file.
53283
53284         New modules 'dprintf', 'dprintf-posix'.
53285         * lib/stdio.in.h (dprintf): New declaration.
53286         * lib/dprintf.c: New file.
53287         * m4/dprintf.m4: New file.
53288         * m4/dprintf-posix.m4: New file.
53289         * modules/dprintf: New file.
53290         * modules/dprintf-posix: New file.
53291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53292         HAVE_DPRINTF, REPLACE_DPRINTF.
53293         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53294         HAVE_DPRINTF, REPLACE_DPRINTF.
53295         * doc/posix-functions/dprintf.texi: Mention the new modules.
53296
53297 2009-01-17  Bruno Haible  <bruno@clisp.org>
53298
53299         * modules/vdprintf-posix-tests: New file.
53300         * tests/test-vdprintf-posix.sh: New file.
53301         * tests/test-vdprintf-posix.c: New file.
53302
53303         New modules 'vdprintf', 'vdprintf-posix'.
53304         * lib/stdio.in.h (vdprintf): New declaration.
53305         * lib/vdprintf.c: New file.
53306         * m4/vdprintf.m4: New file.
53307         * m4/vdprintf-posix.m4: New file.
53308         * modules/vdprintf: New file.
53309         * modules/vdprintf-posix: New file.
53310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53311         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53312         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53313         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53314         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53315
53316 2009-01-17  Bruno Haible  <bruno@clisp.org>
53317
53318         Fix replacement of fopen on mingw.
53319         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53320         mingw.
53321
53322 2009-01-17  Bruno Haible  <bruno@clisp.org>
53323
53324         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53325         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53326
53327 2009-01-17  Bruno Haible  <bruno@clisp.org>
53328
53329         Avoid test-fflush2.sh failure on mingw.
53330         * tests/test-fflush2.c: Include binary-io.h.
53331         (main): Put standard input into binary mode.
53332         * modules/fflush-tests (Depends-on): Add binary-io.
53333
53334 2009-01-17  Bruno Haible  <bruno@clisp.org>
53335
53336         * lib/wchar.in.h: In another particular situation, include only the
53337         system's <wchar.h> file.
53338         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53339         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53340         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53341
53342 2009-01-17  Bruno Haible  <bruno@clisp.org>
53343
53344         Support for stripping executables in --enable-relocatable.
53345         * build-aux/install-reloc: Expect one more argument, or an environment
53346         variable RELOC_STRIP_PROG. If set, strip the destination program and
53347         its wrapper.
53348         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53349         RELOC_STRIP_PROG.
53350         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53351         to set RELOCATABLE_STRIP.
53352         * NEWS: Mention the new Makefile requirement.
53353
53354 2009-01-17  Bruno Haible  <bruno@clisp.org>
53355
53356         * build-aux/install-reloc: Remove debugging information left over by
53357         C compiler on MacOS X.
53358
53359 2009-01-17  Bruno Haible  <bruno@clisp.org>
53360
53361         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53362         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53363         _NSGetExecutablePath.
53364
53365 2009-01-16  Jim Meyering  <meyering@redhat.com>
53366
53367         strerror: avoid warnings about discarding "const"
53368         * lib/strerror.c (rpl_strerror): Instead of returning a const
53369         string from each and every "case", use a variable, and add a single
53370         cast after the switch.
53371
53372 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53373
53374         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53375
53376 2009-01-16  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53379         array initializer syntax that also works in C++ mode.
53380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53381
53382 2009-01-16  Jim Meyering  <meyering@redhat.com>
53383
53384         poll: suppress a warning
53385         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53386         to ignore "...unsigned expression < 0 is always false" warnings.
53387
53388 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53389
53390         poll: remove declarations of unused variables
53391         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53392         sockbuf and optlen.
53393
53394 2009-01-15  Bruno Haible  <bruno@clisp.org>
53395
53396         Make fflush-after-ungetc POSIX compliant on BSD systems.
53397         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53398         (clear_ungetc_buffer): Implement also for other systems.
53399         (rpl_fflush): On glibc systems, invoke
53400         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53401         clear_ungetc_buffer after fetching the stream's position, not before.
53402
53403 2009-01-15  Bruno Haible  <bruno@clisp.org>
53404
53405         Make fflush-after-ungetc POSIX compliant on glibc systems.
53406         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53407         after ungetc.
53408         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53409         (rpl_fflush): On glibc systems, simply call the system's fflush
53410         function after clearing the ungetc buffer.
53411         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53412         Instead, lseek only to the end of file, then use the system's fseeko
53413         for the rest. On glibc systems, reset the EOF indicator bit.
53414
53415 2009-01-15  Jim Meyering  <meyering@redhat.com>
53416
53417         openmp.m4: revert quote-adding change, for portability to older autoconf
53418         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53419         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53420         Simon Josefsson noticed the problem when using autoconf-2.61.
53421
53422 2009-01-15  Bruno Haible  <bruno@clisp.org>
53423
53424         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53425         * tests/test-fflush2.c (ASSERT): Always fail.
53426         (main): Add two tests for fflush() after ungetc(), taking into account
53427         the Austin Group's clarification.
53428         Suggested by Eric Blake.
53429
53430 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53431
53432         mktime.m4: remove K&R-style function prototypes
53433         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53434         for the Sun C++ compiler.
53435
53436 2009-01-14  Bruno Haible  <bruno@clisp.org>
53437
53438         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53439         while including <wchar.h>.
53440         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53441         the system's <wchar.h> file.
53442         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53443
53444 2009-01-14  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/csharp.m4: Don't mention gettext on the serial number line.
53447         * m4/csharpexec.m4: Likewise.
53448         * m4/eaccess.m4: Likewise.
53449         * m4/javaexec.m4: Likewise.
53450         * m4/sig_atomic_t.m4: Likewise.
53451         * m4/tmpdir.m4: Likewise.
53452         * m4/intldir.m4: Bump gettext version.
53453         * m4/lib-ld.m4: Likewise.
53454
53455 2009-01-14  Bruno Haible  <bruno@clisp.org>
53456
53457         * lib/progname.c (set_program_name): Add more comments.
53458         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53459
53460 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53461
53462         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53463         were sys/stat.h does not define it.
53464
53465 2009-01-14  Jim Meyering  <meyering@redhat.com>
53466
53467         many *.m4 files: improve m4 quoting
53468         99% of this change was performed by running the following commands:
53469         git ls-files | grep '\.m4$' | xargs perl -pi \
53470           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53471           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53472           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53473           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53474         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53475         The remainder were to add Copyright dates, increment serial numbers,
53476         undo some changes in comments, exclude m4/intl.m4, and add quotes
53477         around the "1" in ",1" where the unusual spacing prohibited the
53478         above regexps from doing the job.  For more details, see
53479         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53480         * m4/acl.m4: Modified.
53481         * m4/afs.m4: Likewise.
53482         * m4/alloca.m4: Likewise.
53483         * m4/argp.m4: Likewise.
53484         * m4/argz.m4: Likewise.
53485         * m4/atexit.m4: Likewise.
53486         * m4/bison-i18n.m4: Likewise.
53487         * m4/bison.m4: Likewise.
53488         * m4/byteswap.m4: Likewise.
53489         * m4/c-stack.m4: Likewise.
53490         * m4/c-strtod.m4: Likewise.
53491         * m4/calloc.m4: Likewise.
53492         * m4/canonicalize-lgpl.m4: Likewise.
53493         * m4/chown.m4: Likewise.
53494         * m4/clock_time.m4: Likewise.
53495         * m4/codeset.m4: Likewise.
53496         * m4/copy-file.m4: Likewise.
53497         * m4/csharp.m4: Likewise.
53498         * m4/csharpcomp.m4: Likewise.
53499         * m4/csharpexec.m4: Likewise.
53500         * m4/d-ino.m4: Likewise.
53501         * m4/d-type.m4: Likewise.
53502         * m4/dirfd.m4: Likewise.
53503         * m4/double-slash-root.m4: Likewise.
53504         * m4/eaccess.m4: Likewise.
53505         * m4/eealloc.m4: Likewise.
53506         * m4/environ.m4: Likewise.
53507         * m4/errno_h.m4: Likewise.
53508         * m4/euidaccess.m4: Likewise.
53509         * m4/execute.m4: Likewise.
53510         * m4/fatal-signal.m4: Likewise.
53511         * m4/fchdir.m4: Likewise.
53512         * m4/fcntl_h.m4: Likewise.
53513         * m4/fileblocks.m4: Likewise.
53514         * m4/filenamecat.m4: Likewise.
53515         * m4/findprog.m4: Likewise.
53516         * m4/flexmember.m4: Likewise.
53517         * m4/fnmatch.m4: Likewise.
53518         * m4/fopen.m4: Likewise.
53519         * m4/fpending.m4: Likewise.
53520         * m4/fprintf-posix.m4: Likewise.
53521         * m4/free.m4: Likewise.
53522         * m4/frexp.m4: Likewise.
53523         * m4/frexpl.m4: Likewise.
53524         * m4/fsusage.m4: Likewise.
53525         * m4/ftruncate.m4: Likewise.
53526         * m4/gc-camellia.m4: Likewise.
53527         * m4/gc-random.m4: Likewise.
53528         * m4/gc.m4: Likewise.
53529         * m4/getaddrinfo.m4: Likewise.
53530         * m4/getcwd-abort-bug.m4: Likewise.
53531         * m4/getcwd-path-max.m4: Likewise.
53532         * m4/getdate.m4: Likewise.
53533         * m4/getdomainname.m4: Likewise.
53534         * m4/getgroups.m4: Likewise.
53535         * m4/gethostname.m4: Likewise.
53536         * m4/gethrxtime.m4: Likewise.
53537         * m4/getline.m4: Likewise.
53538         * m4/getloadavg.m4: Likewise.
53539         * m4/getndelim2.m4: Likewise.
53540         * m4/getpass.m4: Likewise.
53541         * m4/gettext.m4: Likewise.
53542         * m4/gettime.m4: Likewise.
53543         * m4/gettimeofday.m4: Likewise.
53544         * m4/gnulib-common.m4: Likewise.
53545         * m4/group-member.m4: Likewise.
53546         * m4/host-os.m4: Likewise.
53547         * m4/iconv.m4: Likewise.
53548         * m4/iconv_open.m4: Likewise.
53549         * m4/inet_ntop.m4: Likewise.
53550         * m4/inet_pton.m4: Likewise.
53551         * m4/inline.m4: Likewise.
53552         * m4/intldir.m4: Likewise.
53553         * m4/intlmacosx.m4: Likewise.
53554         * m4/intmax.m4: Likewise.
53555         * m4/intmax_t.m4: Likewise.
53556         * m4/inttypes.m4: Likewise.
53557         * m4/inttypes_h.m4: Likewise.
53558         * m4/inttypes-pri.m4: Likewise.
53559         * m4/isapipe.m4: Likewise.
53560         * m4/isnand.m4: Likewise.
53561         * m4/isnanf.m4: Likewise.
53562         * m4/isnanl.m4: Likewise.
53563         * m4/javacomp.m4: Likewise.
53564         * m4/javaexec.m4: Likewise.
53565         * m4/jm-winsz1.m4: Likewise.
53566         * m4/jm-winsz2.m4: Likewise.
53567         * m4/lchown.m4: Likewise.
53568         * m4/lcmessage.m4: Likewise.
53569         * m4/ldexpl.m4: Likewise.
53570         * m4/lib-ld.m4: Likewise.
53571         * m4/lib-link.m4: Likewise.
53572         * m4/libsigsegv.m4: Likewise.
53573         * m4/link-follow.m4: Likewise.
53574         * m4/localcharset.m4: Likewise.
53575         * m4/locale-fr.m4: Likewise.
53576         * m4/locale-ja.m4: Likewise.
53577         * m4/locale-tr.m4: Likewise.
53578         * m4/locale-zh.m4: Likewise.
53579         * m4/lock.m4: Likewise.
53580         * m4/longlong.m4: Likewise.
53581         * m4/ls-mntd-fs.m4: Likewise.
53582         * m4/lstat.m4: Likewise.
53583         * m4/malloc.m4: Likewise.
53584         * m4/mathl.m4: Likewise.
53585         * m4/mbrtowc.m4: Likewise.
53586         * m4/mbstate_t.m4: Likewise.
53587         * m4/mbswidth.m4: Likewise.
53588         * m4/memchr.m4: Likewise.
53589         * m4/memcmp.m4: Likewise.
53590         * m4/memcpy.m4: Likewise.
53591         * m4/memmem.m4: Likewise.
53592         * m4/memmove.m4: Likewise.
53593         * m4/mempcpy.m4: Likewise.
53594         * m4/memrchr.m4: Likewise.
53595         * m4/memset.m4: Likewise.
53596         * m4/minmax.m4: Likewise.
53597         * m4/mkdir-slash.m4: Likewise.
53598         * m4/mkdtemp.m4: Likewise.
53599         * m4/mktime.m4: Likewise.
53600         * m4/mmap-anon.m4: Likewise.
53601         * m4/mountlist.m4: Likewise.
53602         * m4/nanosleep.m4: Likewise.
53603         * m4/nls.m4: Likewise.
53604         * m4/nocrash.m4: Likewise.
53605         * m4/open.m4: Likewise.
53606         * m4/openat.m4: Likewise.
53607         * m4/openmp.m4: Likewise.
53608         * m4/pathmax.m4: Likewise.
53609         * m4/perl.m4: Likewise.
53610         * m4/physmem.m4: Likewise.
53611         * m4/pipe.m4: Likewise.
53612         * m4/po.m4: Likewise.
53613         * m4/poll.m4: Likewise.
53614         * m4/posixtm.m4: Likewise.
53615         * m4/posixver.m4: Likewise.
53616         * m4/printf-frexp.m4: Likewise.
53617         * m4/printf-frexpl.m4: Likewise.
53618         * m4/printf-posix.m4: Likewise.
53619         * m4/printf-posix-rpl.m4: Likewise.
53620         * m4/printf.m4: Likewise.
53621         * m4/progtest.m4: Likewise.
53622         * m4/putenv.m4: Likewise.
53623         * m4/readline.m4: Likewise.
53624         * m4/readlink.m4: Likewise.
53625         * m4/readutmp.m4: Likewise.
53626         * m4/realloc.m4: Likewise.
53627         * m4/regex.m4: Likewise.
53628         * m4/relocatable.m4: Likewise.
53629         * m4/relocatable-lib.m4: Likewise.
53630         * m4/rename-dest-slash.m4: Likewise.
53631         * m4/rename.m4: Likewise.
53632         * m4/rmdir-errno.m4: Likewise.
53633         * m4/rmdir.m4: Likewise.
53634         * m4/roundf.m4: Likewise.
53635         * m4/roundl.m4: Likewise.
53636         * m4/rpmatch.m4: Likewise.
53637         * m4/save-cwd.m4: Likewise.
53638         * m4/selinux-selinux-h.m4: Likewise.
53639         * m4/setenv.m4: Likewise.
53640         * m4/settime.m4: Likewise.
53641         * m4/sig2str.m4: Likewise.
53642         * m4/sig_atomic_t.m4: Likewise.
53643         * m4/signalblocking.m4: Likewise.
53644         * m4/signbit.m4: Likewise.
53645         * m4/sigpipe.m4: Likewise.
53646         * m4/sockets.m4: Likewise.
53647         * m4/sockpfaf.m4: Likewise.
53648         * m4/st_dm_mode.m4: Likewise.
53649         * m4/stat-time.m4: Likewise.
53650         * m4/stdbool.m4: Likewise.
53651         * m4/stdint.m4: Likewise.
53652         * m4/stdint_h.m4: Likewise.
53653         * m4/stpcpy.m4: Likewise.
53654         * m4/stpncpy.m4: Likewise.
53655         * m4/strcase.m4: Likewise.
53656         * m4/strchrnul.m4: Likewise.
53657         * m4/strcspn.m4: Likewise.
53658         * m4/strdup.m4: Likewise.
53659         * m4/strftime.m4: Likewise.
53660         * m4/strndup.m4: Likewise.
53661         * m4/strnlen.m4: Likewise.
53662         * m4/strpbrk.m4: Likewise.
53663         * m4/strptime.m4: Likewise.
53664         * m4/strsep.m4: Likewise.
53665         * m4/strtod.m4: Likewise.
53666         * m4/strtoimax.m4: Likewise.
53667         * m4/strtok_r.m4: Likewise.
53668         * m4/strtol.m4: Likewise.
53669         * m4/strtoll.m4: Likewise.
53670         * m4/strtoul.m4: Likewise.
53671         * m4/strtoull.m4: Likewise.
53672         * m4/strtoumax.m4: Likewise.
53673         * m4/strverscmp.m4: Likewise.
53674         * m4/threadlib.m4: Likewise.
53675         * m4/timegm.m4: Likewise.
53676         * m4/tm_gmtoff.m4: Likewise.
53677         * m4/tmpdir.m4: Likewise.
53678         * m4/tmpfile.m4: Likewise.
53679         * m4/tzset.m4: Likewise.
53680         * m4/uintmax_t.m4: Likewise.
53681         * m4/unlinkdir.m4: Likewise.
53682         * m4/unlocked-io.m4: Likewise.
53683         * m4/uptime.m4: Likewise.
53684         * m4/userspec.m4: Likewise.
53685         * m4/utimbuf.m4: Likewise.
53686         * m4/utime.m4: Likewise.
53687         * m4/utimes-null.m4: Likewise.
53688         * m4/utimes.m4: Likewise.
53689         * m4/vararrays.m4: Likewise.
53690         * m4/vasnprintf.m4: Likewise.
53691         * m4/vfprintf-posix.m4: Likewise.
53692         * m4/vprintf-posix.m4: Likewise.
53693         * m4/wait-process.m4: Likewise.
53694         * m4/wchar_t.m4: Likewise.
53695         * m4/wint_t.m4: Likewise.
53696         * m4/write-any-file.m4: Likewise.
53697         * m4/yield.m4: Likewise.
53698
53699 2009-01-13  Bruno Haible  <bruno@clisp.org>
53700
53701         Avoid test-copy-file.sh failures when ACL support insufficient.
53702         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53703         TESTS_ENVIRONMENT.
53704         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53705         Reported by Jim Meyering.
53706
53707 2009-01-13  Bruno Haible  <bruno@clisp.org>
53708
53709         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53710         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53711         * modules/unistdio/u8-printf-parse (Files): Likewise.
53712         * modules/unistdio/u32-printf-parse (Files): Likewise.
53713         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53714
53715 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53716
53717         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53718         and m4/inttypes_h.m4 too.
53719
53720 2009-01-12  Eric Blake  <ebb9@byu.net>
53721
53722         tests: IRIX 6.2 cc can't compile -0.0 into .data
53723         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53724         rather than at compile-time.
53725         * tests/test-floorl.c (minus_zero): Likewise.
53726         * tests/test-frexpl.c (minus_zero): Likewise.
53727         * tests/test-isnan.c (minus_zerol): Likewise.
53728         * tests/test-isnanl.h (minus_zero): Likewise.
53729         * tests/test-ldexpl.c (minus_zero): Likewise.
53730         * tests/test-roundl.c (minus_zero): Likewise.
53731         * tests/test-signbit.c (minus_zerol): Likewise.
53732         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53733         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53734         * tests/test-truncl.c (minus_zero): Likewise.
53735         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53736         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53737         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53738
53739 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53740
53741         regex: fix glibc bug 9697
53742         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53743         handling.
53744
53745 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53746
53747         regex: fix glibc bug 697
53748         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53749         being NULL also if there are no backreferences.
53750
53751 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53752
53753         regex: merge glibc changes
53754         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53755         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53756         re_string_skip_chars, re_string_reconstruct): Likewise.
53757         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53758
53759 2009-01-07  Jim Meyering  <meyering@redhat.com>
53760
53761         poll: filter through cppi
53762         * lib/poll.c: Indent cpp directives to reflect nesting.
53763
53764 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53765
53766         poll: don't return uninitialized
53767         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53768
53769 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53770
53771         avoid compile failure on AIX 6.1
53772         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53773         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53774
53775 2009-01-04  Jim Meyering  <meyering@redhat.com>
53776
53777         remove duplicate inclusion of <stdio.h>
53778         * tests/test-fprintf-posix.c: Likewise.
53779         * tests/test-printf-posix.c: Likewise.
53780         * tests/test-snprintf-posix.c: Likewise.
53781         * tests/test-sprintf-posix.c: Likewise.
53782         * tests/test-vasprintf-posix.c: Likewise.
53783         * tests/test-vfprintf-posix.c: Likewise.
53784         * tests/test-vprintf-posix.c: Likewise.
53785         * tests/test-vsnprintf-posix.c: Likewise.
53786         * tests/test-vsprintf-posix.c: Likewise.
53787
53788 2009-01-03  Jim Meyering  <meyering@redhat.com>
53789
53790         gnulib-tool: fix sed-based filtering
53791         * gnulib-tool (func_filter_filelist): Remove extra backslash
53792         in sed_fff_filter definition.
53793
53794 2009-01-02  Jim Meyering  <meyering@redhat.com>
53795
53796         strftime: avoid compilation failure on Solaris 2.6
53797         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53798         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53799         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53800         be available.  Reported by Tom G. Christensen.  Details in
53801         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53802
53803 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53804             Bruno Haible  <bruno@clisp.org>
53805
53806         Speed up gnulib-tool by doing more string processing through shell
53807         built-ins.
53808         * gnulib-tool (fast_func_append): New variable.
53809         (func_remove_prefix, func_remove_suffix): New functions.
53810         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53811         (func_filter_filelist): New function.
53812         (func_get_dependencies): Use func_remove_suffix instead of sed.
53813         (func_get_automake_snippet): Use func_filter_filelist instead of a
53814         subshell and sed invocation.
53815
53816 2009-01-01  Bruno Haible  <bruno@clisp.org>
53817
53818         Fix a security bug.
53819         * gnulib-tool (func_import, import, update): Don't allow the characters
53820         '"', '$', '`', '\' in macro arguments that become part of commands that
53821         are evaluated.
53822
53823 2009-01-01  Bruno Haible  <bruno@clisp.org>
53824
53825         * gnulib-tool (func_reset_sigpipe): Add more comments.
53826
53827 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53828
53829         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53830         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53831         already know the answer.
53832
53833 2009-01-01  Jim Meyering  <meyering@redhat.com>
53834
53835         * lib/version-etc.c (version_etc_va): Update copyright year.
53836
53837 2008-12-30  Bruno Haible  <bruno@clisp.org>
53838
53839         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53840         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53841         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53842
53843 2008-12-29  Eric Blake  <ebb9@byu.net>
53844
53845         multiarch: avoid autoconf AC_REQUIRE bug
53846         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53847         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53848         2.63 and older.
53849         Reported by Bruno Haible, and analyzed in
53850         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53851
53852 2008-12-29  Bruno Haible  <bruno@clisp.org>
53853
53854         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53855         files in subdirectories correctly.
53856         Reported by Ralf Wildenhues.
53857
53858 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53859
53860         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53861         rather than 'join FILE -', for Solaris join.
53862
53863 2008-12-29  Bruno Haible  <bruno@clisp.org>
53864
53865         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53866         quoting.
53867         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53868         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53869         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53870         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53871         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53872         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53873         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53874         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53875         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53876         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53877         * m4/nls.m4 (AM_NLS): Likewise.
53878         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53879         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53880         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53881         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53882         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53883         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53884         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53885         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53886         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53887         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53888         * m4/xsize.m4 (gl_XSIZE): Likewise.
53889         Suggested by Jim Meyering.
53890
53891 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53892
53893         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53894         * lib/parse-duration.c: use a switch instead of cascading if's.
53895
53896 2008-12-29  Eric Blake  <ebb9@byu.net>
53897
53898         wchar.h: supply WEOF on Irix 5.3
53899         * lib/wchar.in.h (wint_t): Also supply WEOF.
53900         * lib/wctype.in.h (wint_t): Likewise.
53901         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53902         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53903         Reported by Tom G. Christensen.
53904
53905 2008-12-26  Bruno Haible  <bruno@clisp.org>
53906
53907         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53908         i486, i586, i686.
53909
53910 2008-12-26  Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53913
53914 2008-12-26  Bruno Haible  <bruno@clisp.org>
53915
53916         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53917         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53918         not __STDC_CONSTANT_MACROS.
53919         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53920
53921 2008-12-25  Bruno Haible  <bruno@clisp.org>
53922
53923         Add support for universal builds to vasnprintf.
53924         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53925         universal builds, guess no.
53926         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53927         * modules/vasprintf-posix (Depends-on): Likewise.
53928         * modules/fprintf-posix (Depends-on): Likewise.
53929         * modules/vfprintf-posix (Depends-on): Likewise.
53930         * modules/snprintf-posix (Depends-on): Likewise.
53931         * modules/vsnprintf-posix (Depends-on): Likewise.
53932         * modules/sprintf-posix (Depends-on): Likewise.
53933         * modules/vsprintf-posix (Depends-on): Likewise.
53934         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53935         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53936         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53937         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53938         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53939         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53940         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53941
53942         Add support for universal builds to <inttypes.h>.
53943         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53944         _SCNu64_PREFIX): In Apple
53945         universal builds, define directly, using _LP64.
53946         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53947         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53948         * modules/inttypes (Depends-on): Add multiarch.
53949         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53950
53951         Add support for universal builds to <stdint.h>.
53952         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53953         universal builds, define directly, using _LP64.
53954         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53955         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53956         and size_t.
53957         * modules/stdint (Depends-on): Add multiarch.
53958         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53959
53960         New module 'multiarch'.
53961         * modules/multiarch: New file.
53962         * m4/multiarch.m4: New file.
53963
53964 2008-12-25  Bruno Haible  <bruno@clisp.org>
53965
53966         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53967
53968 2008-12-25  Bruno Haible  <bruno@clisp.org>
53969
53970         * modules/btowc (License): Relicense under LGPLv2+.
53971         * modules/mbsinit (License): Likewise.
53972         * modules/mbrtowc (License): Likewise.
53973         * modules/wcrtomb (License): Likewise.
53974         * modules/streq (License): Likewise.
53975         Reported by David Lutterkort <lutter@redhat.com>.
53976
53977 2008-12-23  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53980
53981 2008-12-23  Bruno Haible  <bruno@clisp.org>
53982
53983         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53984         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53985         GETADDRINFO_LIB, not in LIBS.
53986         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53987         * modules/canon-host (Link): Likewise.
53988         * NEWS: Mention the change.
53989         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53990         GETADDRINFO_LIB.
53991
53992 2008-12-22  Bruno Haible  <bruno@clisp.org>
53993
53994         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53995         * doc/posix-functions/iswalpha_l.texi: Likewise.
53996         * doc/posix-functions/iswblank_l.texi: Likewise.
53997         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53998         * doc/posix-functions/iswctype_l.texi: Likewise.
53999         * doc/posix-functions/iswdigit_l.texi: Likewise.
54000         * doc/posix-functions/iswgraph_l.texi: Likewise.
54001         * doc/posix-functions/iswlower_l.texi: Likewise.
54002         * doc/posix-functions/iswprint_l.texi: Likewise.
54003         * doc/posix-functions/iswpunct_l.texi: Likewise.
54004         * doc/posix-functions/iswspace_l.texi: Likewise.
54005         * doc/posix-functions/iswupper_l.texi: Likewise.
54006         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54007         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54008         * doc/posix-functions/open_wmemstream.texi: Likewise.
54009         * doc/posix-functions/swscanf.texi: Likewise.
54010         * doc/posix-functions/towctrans_l.texi: Likewise.
54011         * doc/posix-functions/towlower.texi: Likewise.
54012         * doc/posix-functions/towlower_l.texi: Likewise.
54013         * doc/posix-functions/towupper.texi: Likewise.
54014         * doc/posix-functions/towupper_l.texi: Likewise.
54015         * doc/posix-functions/vfwprintf.texi: Likewise.
54016         * doc/posix-functions/vfwscanf.texi: Likewise.
54017         * doc/posix-functions/vswscanf.texi: Likewise.
54018         * doc/posix-functions/vwprintf.texi: Likewise.
54019         * doc/posix-functions/vwscanf.texi: Likewise.
54020         * doc/posix-functions/wcpcpy.texi: Likewise.
54021         * doc/posix-functions/wcpncpy.texi: Likewise.
54022         * doc/posix-functions/wcscasecmp.texi: Likewise.
54023         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54024         * doc/posix-functions/wcscoll_l.texi: Likewise.
54025         * doc/posix-functions/wcsdup.texi: Likewise.
54026         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54027         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54028         * doc/posix-functions/wcsnlen.texi: Likewise.
54029         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54030         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54031         * doc/posix-functions/wctrans_l.texi: Likewise.
54032         * doc/posix-functions/wctype_l.texi: Likewise.
54033         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54034         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54035         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54036         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54037         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54038         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54039         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54040         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54041         * doc/glibc-functions/wcschrnul.texi: Likewise.
54042         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54043         * doc/glibc-functions/wcstod_l.texi: Likewise.
54044         * doc/glibc-functions/wcstof_l.texi: Likewise.
54045         * doc/glibc-functions/wcstol_l.texi: Likewise.
54046         * doc/glibc-functions/wcstold_l.texi: Likewise.
54047         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54048         * doc/glibc-functions/wcstoq.texi: Likewise.
54049         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54050         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54051         * doc/glibc-functions/wcstouq.texi: Likewise.
54052         * doc/glibc-functions/wmempcpy.texi: Likewise.
54053
54054 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54055             Eric Blake  <ebb9@byu.net>
54056             Paolo Bonzini  <bonzini@gnu.org>
54057             Bruno Haible  <bruno@clisp.org>
54058
54059         Make c-stack work on Haiku.
54060         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54061         (c_stack_action): Use SA_ONSTACK flag.
54062
54063 2008-12-22  Bruno Haible  <bruno@clisp.org>
54064
54065         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54066
54067 2008-12-22  Bruno Haible  <bruno@clisp.org>
54068
54069         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54070         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54071         being overridden.
54072         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54073         New macros.
54074         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54076         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54077         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54078
54079 2008-12-22  Bruno Haible  <bruno@clisp.org>
54080
54081         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54082         from test code.
54083
54084 2008-12-22  Eric Blake  <ebb9@byu.net>
54085
54086         Avoid gcc warnings on cygwin.
54087         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54088         Avoid unused variable.
54089         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54090         Likewise.
54091
54092 2008-12-22  Bruno Haible  <bruno@clisp.org>
54093
54094         Remove HAVE_MBRTOWC conditionals.
54095         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54096         (mbscasecmp): Assume mbrtowc function.
54097         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54098         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54099         * lib/mbschr.c: Include mbuiter.h unconditionally.
54100         (mbschr): Assume mbrtowc function.
54101         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54102         (mbscspn): Assume mbrtowc function.
54103         * lib/mbslen.c: Include mbuiter.h unconditionally.
54104         (mbslen): Assume mbrtowc function.
54105         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54106         (mbsncasecmp): Assume mbrtowc function.
54107         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54108         (mbsnlen): Assume mbrtowc function.
54109         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54110         (mbspbrk): Assume mbrtowc function.
54111         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54112         (mbspcasecmp): Assume mbrtowc function.
54113         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54114         (mbsrchr): Assume mbrtowc function.
54115         * lib/mbssep.c: Include mbuiter.h unconditionally.
54116         (mbssep): Assume mbrtowc function.
54117         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54118         (mbsspn): Assume mbrtowc function.
54119         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54120         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54121         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54122         (mbstok_r): Assume mbrtowc function.
54123         * lib/propername.c: Include mbuiter.h unconditionally.
54124         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54125         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54126         (trim2): Assume mbrtowc function.
54127         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54128         (mbsnwidth): Assume mbrtowc function.
54129         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54130         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54131         fallback definitions.
54132         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54133
54134 2008-12-22  Bruno Haible  <bruno@clisp.org>
54135
54136         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54137
54138 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54139
54140         * modules/regex: Request emulations for the mb*/wc* functions we need.
54141         * m4/regex.m4: Don't look for those functions here.
54142         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54143
54144 2008-12-22  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54147
54148 2008-12-21  Bruno Haible  <bruno@clisp.org>
54149
54150         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54151         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54152         (Include): Remove conditionalization.
54153         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54154         (Include): Remove conditionalization.
54155         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54156         (Include): Remove conditionalization.
54157         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54158         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54159         * NEWS: Mention the change.
54160         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54161         via Sergey Poznyakoff <gray@gnu.org.ua>.
54162
54163 2008-12-21  Bruno Haible  <bruno@clisp.org>
54164
54165         * MODULES.html.sh (Extended multibyte and wide character utilities
54166         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54167         wcrtomb, wcsrtombs.
54168         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54169         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54170         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54171         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54172
54173 2008-12-21  Bruno Haible  <bruno@clisp.org>
54174
54175         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54176
54177 2008-12-21  Bruno Haible  <bruno@clisp.org>
54178
54179         * modules/wcsnrtombs-tests: New file.
54180         * tests/test-wcsnrtombs1.sh: New file.
54181         * tests/test-wcsnrtombs2.sh: New file.
54182         * tests/test-wcsnrtombs3.sh: New file.
54183         * tests/test-wcsnrtombs4.sh: New file.
54184         * tests/test-wcsnrtombs.c: New file.
54185
54186         New module 'wcsnrtombs'.
54187         * lib/wchar.in.h (wcsnrtombs): New declaration.
54188         * lib/wcsnrtombs.c: New file.
54189         * lib/wcsrtombs-state.c: New file.
54190         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54191         (internal_state): Remove variable.
54192         * m4/wcsnrtombs.m4: New file.
54193         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54194         compilation units.
54195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54196         HAVE_WCSNRTOMBS.
54197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54198         HAVE_WCSNRTOMBS.
54199         * modules/wcsnrtombs: New file.
54200         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54201         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54202
54203 2008-12-21  Bruno Haible  <bruno@clisp.org>
54204
54205         * modules/wcsrtombs-tests: New file.
54206         * tests/test-wcsrtombs1.sh: New file.
54207         * tests/test-wcsrtombs2.sh: New file.
54208         * tests/test-wcsrtombs3.sh: New file.
54209         * tests/test-wcsrtombs4.sh: New file.
54210         * tests/test-wcsrtombs.c: New file.
54211
54212         New module 'wcsrtombs'.
54213         * lib/wchar.in.h (wcsrtombs): New declaration.
54214         * lib/wcsrtombs.c: New file.
54215         * m4/wcsrtombs.m4: New file.
54216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54217         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54219         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54220         * modules/wcsrtombs: New file.
54221         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54222         bugs.
54223
54224 2008-12-21  Bruno Haible  <bruno@clisp.org>
54225
54226         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54227         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54229         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54230         if not correct.
54231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54232         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54233         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54234         m4/locale-zh.m4, m4/codeset.m4.
54235         * doc/posix-functions/wcrtomb.texi: Document the bug.
54236
54237 2008-12-21  Bruno Haible  <bruno@clisp.org>
54238
54239         Work around a btowc() bug on IRIX 6.5.
54240         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54241         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54242         REPLACE_WTOBC if not.
54243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54244         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54245         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54246
54247 2008-12-21  Bruno Haible  <bruno@clisp.org>
54248
54249         * modules/wcrtomb-tests: New file.
54250         * tests/test-wcrtomb.sh: New file.
54251         * tests/test-wcrtomb.c: New file.
54252
54253         New module 'wcrtomb'.
54254         * lib/wchar.in.h (wcrtomb): New declaration.
54255         * lib/wcrtomb.c: New file.
54256         * m4/wcrtomb.m4: New file.
54257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54258         HAVE_WCRTOMB.
54259         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54260         HAVE_WCRTOMB.
54261         * modules/wcrtomb: New file.
54262         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54263
54264 2008-12-21  Bruno Haible  <bruno@clisp.org>
54265
54266         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54267         * modules/mbsrtowcs (Files): Likewise.
54268         * modules/wctob (Files): Likewise.
54269         * modules/c-strcase-tests (Files): Likewise.
54270         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54271         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54272         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54273         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54274         * modules/vasnprintf-posix-tests (Files): Likewise.
54275
54276 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54277
54278         gitlog-to-changelog: pass all command-line arguments to git-log
54279         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54280         it is sometimes convenient to filter the commits in various ways.
54281         gitlog-to-changelog only allows --since to specify a start date,
54282         but git-log itself supports many other filtering mechanisms.
54283         At the moment, I want to filter by branch name.  Rather than
54284         adding a --branch option to gitlog-to-changelog, it seems more
54285         flexible to simply pass all options directly to git-log and let
54286         git do the work.  Notice that this effectively makes --since a
54287         redundant option for gitlog-to-changelog, but removing it would
54288         require current usage to change since calls would then require
54289         an additional '--'.
54290
54291 2008-12-21  Bruno Haible  <bruno@clisp.org>
54292
54293         * modules/mbsnrtowcs-tests: New file.
54294         * tests/test-mbsnrtowcs1.sh: New file.
54295         * tests/test-mbsnrtowcs2.sh: New file.
54296         * tests/test-mbsnrtowcs3.sh: New file.
54297         * tests/test-mbsnrtowcs4.sh: New file.
54298         * tests/test-mbsnrtowcs.c: New file.
54299
54300         New module 'mbsnrtowcs'.
54301         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54302         * lib/mbsnrtowcs.c: New file.
54303         * lib/mbsrtowcs-state.c: New file.
54304         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54305         (internal_state): Remove variable.
54306         * m4/mbsnrtowcs.m4: New file.
54307         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54308         compilation units.
54309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54310         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54311         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54312         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54313         * modules/mbsnrtowcs: New file.
54314         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54315         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54316         portability problem.
54317
54318 2008-12-21  Bruno Haible  <bruno@clisp.org>
54319
54320         Work around mbsrtowcs bug.
54321         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54322         (gl_FUNC_MBSRTOWCS): Invoke it.
54323         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54324         m4/locale-zh.m4.
54325         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54326
54327 2008-12-21  Bruno Haible  <bruno@clisp.org>
54328
54329         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54330
54331 2008-12-21  Bruno Haible  <bruno@clisp.org>
54332
54333         Update doc for AIX.
54334         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54335         16-bit wchar_t type.
54336         * doc/posix-functions/btowc.texi: Likewise.
54337         * doc/posix-functions/fgetwc.texi: Likewise.
54338         * doc/posix-functions/fgetws.texi: Likewise.
54339         * doc/posix-functions/fputwc.texi: Likewise.
54340         * doc/posix-functions/fputws.texi: Likewise.
54341         * doc/posix-functions/fwide.texi: Likewise.
54342         * doc/posix-functions/fwprintf.texi: Likewise.
54343         * doc/posix-functions/fwscanf.texi: Likewise.
54344         * doc/posix-functions/getwchar.texi: Likewise.
54345         * doc/posix-functions/getwc.texi: Likewise.
54346         * doc/posix-functions/iswalnum.texi: Likewise.
54347         * doc/posix-functions/iswalpha.texi: Likewise.
54348         * doc/posix-functions/iswblank.texi: Likewise.
54349         * doc/posix-functions/iswcntrl.texi: Likewise.
54350         * doc/posix-functions/iswctype.texi: Likewise.
54351         * doc/posix-functions/iswdigit.texi: Likewise.
54352         * doc/posix-functions/iswgraph.texi: Likewise.
54353         * doc/posix-functions/iswlower.texi: Likewise.
54354         * doc/posix-functions/iswprint.texi: Likewise.
54355         * doc/posix-functions/iswpunct.texi: Likewise.
54356         * doc/posix-functions/iswspace.texi: Likewise.
54357         * doc/posix-functions/iswupper.texi: Likewise.
54358         * doc/posix-functions/iswxdigit.texi: Likewise.
54359         * doc/posix-functions/mbrtowc.texi: Likewise.
54360         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54361         * doc/posix-functions/mbstowcs.texi: Likewise.
54362         * doc/posix-functions/mbtowc.texi: Likewise.
54363         * doc/posix-functions/putwchar.texi: Likewise.
54364         * doc/posix-functions/putwc.texi: Likewise.
54365         * doc/posix-functions/swprintf.texi: Likewise.
54366         * doc/posix-functions/tolower.texi: Likewise.
54367         * doc/posix-functions/toupper.texi: Likewise.
54368         * doc/posix-functions/towctrans.texi: Likewise.
54369         * doc/posix-functions/ungetwc.texi: Likewise.
54370         * doc/posix-functions/vswprintf.texi: Likewise.
54371         * doc/posix-functions/wcrtomb.texi: Likewise.
54372         * doc/posix-functions/wcscat.texi: Likewise.
54373         * doc/posix-functions/wcschr.texi: Likewise.
54374         * doc/posix-functions/wcscmp.texi: Likewise.
54375         * doc/posix-functions/wcscoll.texi: Likewise.
54376         * doc/posix-functions/wcscpy.texi: Likewise.
54377         * doc/posix-functions/wcscspn.texi: Likewise.
54378         * doc/posix-functions/wcsftime.texi: Likewise.
54379         * doc/posix-functions/wcslen.texi: Likewise.
54380         * doc/posix-functions/wcsncat.texi: Likewise.
54381         * doc/posix-functions/wcsncmp.texi: Likewise.
54382         * doc/posix-functions/wcsncpy.texi: Likewise.
54383         * doc/posix-functions/wcspbrk.texi: Likewise.
54384         * doc/posix-functions/wcsrchr.texi: Likewise.
54385         * doc/posix-functions/wcsrtombs.texi: Likewise.
54386         * doc/posix-functions/wcsspn.texi: Likewise.
54387         * doc/posix-functions/wcsstr.texi: Likewise.
54388         * doc/posix-functions/wcstod.texi: Likewise.
54389         * doc/posix-functions/wcstof.texi: Likewise.
54390         * doc/posix-functions/wcstoimax.texi: Likewise.
54391         * doc/posix-functions/wcstok.texi: Likewise.
54392         * doc/posix-functions/wcstold.texi: Likewise.
54393         * doc/posix-functions/wcstoll.texi: Likewise.
54394         * doc/posix-functions/wcstol.texi: Likewise.
54395         * doc/posix-functions/wcstombs.texi: Likewise.
54396         * doc/posix-functions/wcstoull.texi: Likewise.
54397         * doc/posix-functions/wcstoul.texi: Likewise.
54398         * doc/posix-functions/wcstoumax.texi: Likewise.
54399         * doc/posix-functions/wcswidth.texi: Likewise.
54400         * doc/posix-functions/wcsxfrm.texi: Likewise.
54401         * doc/posix-functions/wctob.texi: Likewise.
54402         * doc/posix-functions/wctomb.texi: Likewise.
54403         * doc/posix-functions/wctrans.texi: Likewise.
54404         * doc/posix-functions/wctype.texi: Likewise.
54405         * doc/posix-functions/wcwidth.texi: Likewise.
54406         * doc/posix-functions/wmemchr.texi: Likewise.
54407         * doc/posix-functions/wmemcmp.texi: Likewise.
54408         * doc/posix-functions/wmemcpy.texi: Likewise.
54409         * doc/posix-functions/wmemmove.texi: Likewise.
54410         * doc/posix-functions/wmemset.texi: Likewise.
54411         * doc/posix-functions/wprintf.texi: Likewise.
54412         * doc/posix-functions/wscanf.texi: Likewise.
54413
54414 2008-12-21  Bruno Haible  <bruno@clisp.org>
54415
54416         Update doc for HP-UX 11.11.
54417         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54418         in HP-UX version 11.00, not in all versions of HP-UX 11.
54419         * doc/posix-functions/fwide.texi: Likewise.
54420         * doc/posix-functions/fwprintf.texi: Likewise.
54421         * doc/posix-functions/fwscanf.texi: Likewise.
54422         * doc/posix-functions/inet_ntop.texi: Likewise.
54423         * doc/posix-functions/inet_pton.texi: Likewise.
54424         * doc/posix-functions/mbrlen.texi: Likewise.
54425         * doc/posix-functions/mbrtowc.texi: Likewise.
54426         * doc/posix-functions/mbsinit.texi: Likewise.
54427         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54428         * doc/posix-functions/swprintf.texi: Likewise.
54429         * doc/posix-functions/swscanf.texi: Likewise.
54430         * doc/posix-functions/towctrans.texi: Likewise.
54431         * doc/posix-functions/vfwprintf.texi: Likewise.
54432         * doc/posix-functions/vswprintf.texi: Likewise.
54433         * doc/posix-functions/vwprintf.texi: Likewise.
54434         * doc/posix-functions/wcrtomb.texi: Likewise.
54435         * doc/posix-functions/wcsrtombs.texi: Likewise.
54436         * doc/posix-functions/wcsstr.texi: Likewise.
54437         * doc/posix-functions/wctob.texi: Likewise.
54438         * doc/posix-functions/wctrans.texi: Likewise.
54439         * doc/posix-functions/wmemchr.texi: Likewise.
54440         * doc/posix-functions/wmemcmp.texi: Likewise.
54441         * doc/posix-functions/wmemcpy.texi: Likewise.
54442         * doc/posix-functions/wmemmove.texi: Likewise.
54443         * doc/posix-functions/wmemset.texi: Likewise.
54444         * doc/posix-functions/wprintf.texi: Likewise.
54445         * doc/posix-functions/wscanf.texi: Likewise.
54446
54447 2008-12-21  Bruno Haible  <bruno@clisp.org>
54448
54449         Work around a portability problem.
54450         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54451         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54452
54453 2008-12-20  Bruno Haible  <bruno@clisp.org>
54454
54455         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54456         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54457         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54458         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54459         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54460
54461         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54462         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54463         set.
54464         (GNULIB_defined_mbstate_t): New macro.
54465         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54466         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54467         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54468         reuses the system's mbrtowc function but works around the bugs.
54469         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54470         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54471         macros.
54472         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54473         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54474         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54475         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54476         REPLACE_MBSINIT if mbsinit needs to be overridden.
54477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54478         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54479         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54480         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54481         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54482         m4/locale-zh.m4.
54483         (Depends): Add mbsinit.
54484         * modules/mbsinit (Depends): Add mbrtowc.
54485         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54486
54487 2008-12-20  Bruno Haible  <bruno@clisp.org>
54488
54489         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54490         so that there are no conversion errors on AIX.
54491         * tests/test-mbsrtowcs.c (main): LIkewise.
54492
54493 2008-12-20  Bruno Haible  <bruno@clisp.org>
54494
54495         Work around wctob bug on Solaris <= 9.
54496         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54497         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54499         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54500         * modules/wctob (Files): Add m4/locale-fr.m4.
54501         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54502
54503 2008-12-20  Bruno Haible  <bruno@clisp.org>
54504
54505         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54506         /dev/null.
54507         * tests/test-select-in.sh: Likewise.
54508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54509
54510 2008-12-20  Bruno Haible  <bruno@clisp.org>
54511
54512         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54513         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54514         Cygwin 1.5.x.
54515
54516 2008-12-20  Bruno Haible  <bruno@clisp.org>
54517
54518         Ensure mbstate_t is defined on HP-UX 11.11.
54519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54520         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54521         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54522         AC_USE_SYSTEM_EXTENSIONS.
54523         * modules/fnmatch (Depends-on): Add extensions.
54524         * modules/mbrlen (Depends-on): Likewise.
54525         * modules/mbrtowc (Depends-on): Likewise.
54526         * modules/mbsinit (Depends-on): Likewise.
54527         * modules/mbsrtowcs (Depends-on): Likewise.
54528         * modules/mbswidth (Depends-on): Likewise.
54529         * modules/quotearg (Depends-on): Likewise.
54530         * modules/strftime (Depends-on): Likewise.
54531
54532 2008-12-20  Bruno Haible  <bruno@clisp.org>
54533
54534         Ensure wctob is declared on IRIX 6.5.
54535         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54536         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54537         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54539         of HAVE_WCTOB.
54540         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54541         HAVE_WCTOB.
54542         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54543
54544 2008-12-19  Bruno Haible  <bruno@clisp.org>
54545
54546         * modules/mbsrtowcs-tests: New file.
54547         * tests/test-mbsrtowcs1.sh: New file.
54548         * tests/test-mbsrtowcs2.sh: New file.
54549         * tests/test-mbsrtowcs3.sh: New file.
54550         * tests/test-mbsrtowcs4.sh: New file.
54551         * tests/test-mbsrtowcs.c: New file.
54552
54553         New module 'mbsrtowcs'.
54554         * lib/wchar.in.h (mbsrtowcs): New declaration.
54555         * lib/mbsrtowcs.c: New file.
54556         * m4/mbsrtowcs.m4: New file.
54557         * modules/mbsrtowcs: New file.
54558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54559         HAVE_MBSRTOWCS.
54560         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54561         HAVE_MBSRTOWCS.
54562         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54563
54564 2008-12-19  Bruno Haible  <bruno@clisp.org>
54565
54566         New module 'mbrlen'.
54567         * lib/wchar.in.h (mbrlen): New declaration.
54568         * lib/mbrlen.c: New file.
54569         * m4/mbrlen.m4: New file.
54570         * modules/mbrlen: New file.
54571         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54572         HAVE_MBRLEN.
54573         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54574         HAVE_MBRLEN.
54575         * doc/posix-functions/mbrlen.texi: Document the new module.
54576
54577 2008-12-19  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54580         * modules/mbrtowc (Depends-on): Add verify.
54581         Suggested by Paul Eggert.
54582
54583 2008-12-18  Bruno Haible  <bruno@clisp.org>
54584
54585         * modules/mbsinit-tests: New file.
54586         * tests/test-mbsinit.sh: New file.
54587         * tests/test-mbsinit.c: New file.
54588
54589 2008-12-18  Bruno Haible  <bruno@clisp.org>
54590
54591         * modules/mbrtowc-tests: New file.
54592         * tests/test-mbrtowc1.sh: New file.
54593         * tests/test-mbrtowc2.sh: New file.
54594         * tests/test-mbrtowc3.sh: New file.
54595         * tests/test-mbrtowc4.sh: New file.
54596         * tests/test-mbrtowc.c: New file.
54597
54598         New module 'mbrtowc'.
54599         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54600         mbsinit and mbrtowc.
54601         (mbrtowc): New declaration.
54602         * lib/mbrtowc.c: New file.
54603         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54604         * modules/mbrtowc: New file.
54605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54606         HAVE_MBRTOWC.
54607         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54608         HAVE_MBRTOWC.
54609         * doc/posix-functions/mbrtowc.texi: Document the new module.
54610
54611 2008-12-18  Bruno Haible  <bruno@clisp.org>
54612
54613         New module 'wctob'.
54614         * lib/wchar.in.h (wctob): New declaration.
54615         * lib/wctob.c: New file.
54616         * m4/wctob.m4: New file.
54617         * modules/wctob: New file.
54618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54619         HAVE_WCTOB.
54620         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54621         * doc/posix-functions/wctob.texi: Document the new module.
54622
54623 2008-12-18  Bruno Haible  <bruno@clisp.org>
54624
54625         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54626         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54627
54628 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54629
54630         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54631         G. Christensen" <tgc@jupiterrise.com>.
54632
54633         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54634         G. Christensen" <tgc@jupiterrise.com>.
54635
54636         * lib/flock.c: Need to include string.h.  Reported by "Tom
54637         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54638         <ebb9@byu.net>.
54639
54640 2008-12-18  Bruno Haible  <bruno@clisp.org>
54641
54642         * m4/locale-ja.m4: New file, from GNU gettext.
54643
54644 2008-12-17  Bruno Haible  <bruno@clisp.org>
54645
54646         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54647         Suggested by Eric Blake.
54648
54649 2008-12-17  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54652
54653 2008-12-17  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54656         * modules/mbsinit (Depends-on): Add verify.
54657         Suggested by Paul Eggert.
54658
54659 2008-12-17  Bruno Haible  <bruno@clisp.org>
54660
54661         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54662         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54663         gl_FUNC_MBRTOWC.
54664         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54665         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54666         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54667         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54668         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54669         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54670         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54671         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54672         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54673         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54674         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54675         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54676         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54677         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54678         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54679         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54680         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54681         * modules/trim (configure.ac): Likewise.
54682
54683 2008-12-17  Bruno Haible  <bruno@clisp.org>
54684
54685         * modules/btowc-tests: New file.
54686         * tests/test-btowc1.sh: New file.
54687         * tests/test-btowc2.sh: New file.
54688         * tests/test-btowc.c: New file.
54689
54690         New module 'btowc'.
54691         * lib/wchar.in.h (btowc): New declaration.
54692         * lib/btowc.c: New file.
54693         * m4/btowc.m4: New file.
54694         * modules/btowc: New file.
54695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54696         HAVE_BTOWC.
54697         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54698         * doc/posix-functions/btowc.texi: Document the new module.
54699
54700 2008-12-17  Bruno Haible  <bruno@clisp.org>
54701
54702         New module 'mbsinit'.
54703         * lib/wchar.in.h (mbsinit): New declaration.
54704         * lib/mbsinit.c: New file.
54705         * m4/mbsinit.m4: New file.
54706         * modules/mbsinit: New file.
54707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54708         HAVE_MBSINIT.
54709         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54710         HAVE_MBSINIT.
54711         * doc/posix-functions/mbsinit.texi: Document the new module.
54712
54713 2008-12-16  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/unistd.in.h: Add comment.
54716         * tests/test-environ.c: Don't include <stdlib.h>.
54717
54718 2008-12-16  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/parse-duration.h (parse_duration): Document return value
54721         convention.
54722         * lib/parse-duration.c: Include specification header first. Add
54723         comments.
54724         (_): Remove macro.
54725         (parse_year_month_day, parse_hour_minute_second): Move side effects
54726         outside of strchr call.
54727         (parse_non_iso8601): Move side effects outside of isspace call.
54728         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54729         call.
54730
54731 2008-12-16  Bruno Haible  <bruno@clisp.org>
54732
54733         * tests/test-parse-duration.sh: Produce no output when the test
54734         succeeds.
54735
54736 2008-12-16  Bruno Haible  <bruno@clisp.org>
54737
54738         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54739         expressions.
54740
54741 2008-12-15  Bruno Haible  <bruno@clisp.org>
54742
54743         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54744         * doc/glibc-functions/flistxattr.texi: Likewise.
54745         * doc/glibc-functions/fopencookie.texi: Likewise.
54746         * doc/glibc-functions/fremovexattr.texi: Likewise.
54747         * doc/glibc-functions/fsetxattr.texi: Likewise.
54748         * doc/glibc-functions/getxattr.texi: Likewise.
54749         * doc/glibc-functions/lgetxattr.texi: Likewise.
54750         * doc/glibc-functions/listxattr.texi: Likewise.
54751         * doc/glibc-functions/llistxattr.texi: Likewise.
54752         * doc/glibc-functions/lremovexattr.texi: Likewise.
54753         * doc/glibc-functions/lsetxattr.texi: Likewise.
54754         * doc/glibc-functions/removexattr.texi: Likewise.
54755         * doc/glibc-functions/setxattr.texi: Likewise.
54756         * doc/posix-functions/open_memstream.texi: Likewise.
54757
54758 2008-12-15  Eric Blake  <ebb9@byu.net>
54759
54760         Update doc for cygwin 1.7.
54761         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54762         functions.
54763         * doc/posix-functions/fchmodat.texi: Likewise.
54764         * doc/posix-functions/fchownat.texi: Likewise.
54765         * doc/posix-functions/fdopendir.texi: Likewise.
54766         * doc/posix-functions/fmemopen.texi: Likewise.
54767         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54768         * doc/posix-functions/fstatat.texi: Likewise.
54769         * doc/posix-functions/futimens.texi: Likewise.
54770         * doc/posix-functions/gai_strerror.texi: Likewise.
54771         * doc/posix-functions/getaddrinfo.texi: Likewise.
54772         * doc/posix-functions/getnameinfo.texi: Likewise.
54773         * doc/posix-functions/if_freenameindex.texi: Likewise.
54774         * doc/posix-functions/if_indextoname.texi: Likewise.
54775         * doc/posix-functions/if_nameindex.texi: Likewise.
54776         * doc/posix-functions/if_nametoindex.texi: Likewise.
54777         * doc/posix-functions/insque.texi: Likewise.
54778         * doc/posix-functions/linkat.texi: Likewise.
54779         * doc/posix-functions/llrint.texi: Likewise.
54780         * doc/posix-functions/llrintf.texi: Likewise.
54781         * doc/posix-functions/llrintl.texi: Likewise.
54782         * doc/posix-functions/lockf.texi: Likewise.
54783         * doc/posix-functions/lrintl.texi: Likewise.
54784         * doc/posix-functions/mkdirat.texi: Likewise.
54785         * doc/posix-functions/mkfifoat.texi: Likewise.
54786         * doc/posix-functions/mknodat.texi: Likewise.
54787         * doc/posix-functions/mq_close.texi: Likewise.
54788         * doc/posix-functions/mq_getattr.texi: Likewise.
54789         * doc/posix-functions/mq_notify.texi: Likewise.
54790         * doc/posix-functions/mq_open.texi: Likewise.
54791         * doc/posix-functions/mq_receive.texi: Likewise.
54792         * doc/posix-functions/mq_send.texi: Likewise.
54793         * doc/posix-functions/mq_setattr.texi: Likewise.
54794         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54795         * doc/posix-functions/mq_timedsend.texi: Likewise.
54796         * doc/posix-functions/mq_unlink.texi: Likewise.
54797         * doc/posix-functions/open_memstream.texi: Likewise.
54798         * doc/posix-functions/openat.texi: Likewise.
54799         * doc/posix-functions/posix_fadvise.texi: Likewise.
54800         * doc/posix-functions/posix_fallocate.texi: Likewise.
54801         * doc/posix-functions/posix_madvise.texi: Likewise.
54802         * doc/posix-functions/posix_memalign.texi: Likewise.
54803         * doc/posix-functions/posix_openpt.texi: Likewise.
54804         * doc/posix-functions/readlinkat.texi: Likewise.
54805         * doc/posix-functions/remque.texi: Likewise.
54806         * doc/posix-functions/renameat.texi: Likewise.
54807         * doc/posix-functions/rintl.texi: Likewise.
54808         * doc/posix-functions/sem_unlink.texi: Likewise.
54809         * doc/posix-functions/shm_open.texi: Likewise.
54810         * doc/posix-functions/shm_unlink.texi: Likewise.
54811         * doc/posix-functions/signgam.texi: Likewise.
54812         * doc/posix-functions/sigset.texi: Likewise.
54813         * doc/posix-functions/stpcpy.texi: Likewise.
54814         * doc/posix-functions/stpncpy.texi: Likewise.
54815         * doc/posix-functions/strerror.texi: Likewise.
54816         * doc/posix-functions/strtod.texi: Likewise.
54817         * doc/posix-functions/symlinkat.texi: Likewise.
54818         * doc/posix-functions/unlinkat.texi: Likewise.
54819         * doc/posix-functions/utimensat.texi: Likewise.
54820         * doc/glibc-functions/bindresvport.texi: Likewise.
54821         * doc/glibc-functions/dn_expand.texi: Likewise.
54822         * doc/glibc-functions/exp10.texi: Likewise.
54823         * doc/glibc-functions/exp10f.texi: Likewise.
54824         * doc/glibc-functions/fgetxattr.texi: Likewise.
54825         * doc/glibc-functions/flistxattr.texi: Likewise.
54826         * doc/glibc-functions/fopencookie.texi: Likewise.
54827         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54828         * doc/glibc-functions/fremovexattr.texi: Likewise.
54829         * doc/glibc-functions/fsetxattr.texi: Likewise.
54830         * doc/glibc-functions/getifaddrs.texi: Likewise.
54831         * doc/glibc-functions/getxattr.texi: Likewise.
54832         * doc/glibc-functions/lgetxattr.texi: Likewise.
54833         * doc/glibc-functions/listxattr.texi: Likewise.
54834         * doc/glibc-functions/llistxattr.texi: Likewise.
54835         * doc/glibc-functions/lremovexattr.texi: Likewise.
54836         * doc/glibc-functions/lsetxattr.texi: Likewise.
54837         * doc/glibc-functions/pow10.texi: Likewise.
54838         * doc/glibc-functions/pow10f.texi: Likewise.
54839         * doc/glibc-functions/rcmd_af.texi: Likewise.
54840         * doc/glibc-functions/removexattr.texi: Likewise.
54841         * doc/glibc-functions/res_init.texi: Likewise.
54842         * doc/glibc-functions/res_mkquery.texi: Likewise.
54843         * doc/glibc-functions/res_query.texi: Likewise.
54844         * doc/glibc-functions/res_querydomain.texi: Likewise.
54845         * doc/glibc-functions/res_send.texi: Likewise.
54846         * doc/glibc-functions/rresvport_af.texi: Likewise.
54847         * doc/glibc-functions/setxattr.texi: Likewise.
54848         * doc/glibc-functions/strcasestr.texi: Likewise.
54849
54850 2008-12-15  Bruno Haible  <bruno@clisp.org>
54851
54852         Fix compilation error on OSF/1 4.0.
54853         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54854         <sys/time.h>, simply delegate to the system header.
54855         Reported by Daniel Richard G. <oss@teragram.com>.
54856
54857 2008-12-15  Bruno Haible  <bruno@clisp.org>
54858
54859         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54860         * doc/posix-functions/fchmodat.texi: Likewise.
54861         * doc/posix-functions/fchownat.texi: Likewise.
54862         * doc/posix-functions/fdopendir.texi: Likewise.
54863         * doc/posix-functions/fstatat.texi: Likewise.
54864         * doc/posix-functions/mkdirat.texi: Likewise.
54865         * doc/posix-functions/unlinkat.texi: Likewise.
54866
54867 2008-12-14  Bruno Haible  <bruno@clisp.org>
54868
54869         Update doc for POSIX:2008.
54870         * doc/posix-functions/faccessat.texi: New file.
54871         * doc/posix-functions/fchmodat.texi: New file.
54872         * doc/posix-functions/fchownat.texi: New file.
54873         * doc/posix-functions/fdopendir.texi: New file.
54874         * doc/posix-functions/fstatat.texi: New file.
54875         * doc/posix-functions/futimens.texi: New file.
54876         * doc/posix-functions/linkat.texi: New file.
54877         * doc/posix-functions/mkdirat.texi: New file.
54878         * doc/posix-functions/mkfifoat.texi: New file.
54879         * doc/posix-functions/mknodat.texi: New file.
54880         * doc/posix-functions/open_wmemstream.texi: New file.
54881         * doc/posix-functions/openat.texi: New file.
54882         * doc/posix-functions/psiginfo.texi: New file.
54883         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54884         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54885         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54886         * doc/posix-functions/readlinkat.texi: New file.
54887         * doc/posix-functions/renameat.texi: New file.
54888         * doc/posix-functions/strerror_l.texi: New file.
54889         * doc/posix-functions/symlinkat.texi: New file.
54890         * doc/posix-functions/unlinkat.texi: New file.
54891         * doc/posix-functions/utimensat.texi: New file.
54892         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54893
54894 2008-12-14  Bruno Haible  <bruno@clisp.org>
54895
54896         Update doc for POSIX:2008.
54897         * doc/posix-functions/alphasort.texi: Renamed from
54898         doc/glibc-functions/alphasort.texi.
54899         * doc/posix-functions/dirfd.texi: Renamed from
54900         doc/glibc-functions/dirfd.texi.
54901         * doc/posix-functions/dprintf.texi: Renamed from
54902         doc/glibc-functions/dprintf.texi.
54903         * doc/posix-functions/duplocale.texi: Renamed from
54904         doc/glibc-functions/duplocale.texi.
54905         * doc/posix-functions/fexecve.texi: Renamed from
54906         doc/glibc-functions/fexecve.texi.
54907         * doc/posix-functions/fmemopen.texi: Renamed from
54908         doc/glibc-functions/fmemopen.texi.
54909         * doc/posix-functions/freelocale.texi: Renamed from
54910         doc/glibc-functions/freelocale.texi.
54911         * doc/posix-functions/getdate_err.texi: Renamed from
54912         doc/glibc-functions/getdate_err.texi.
54913         * doc/posix-functions/isalnum_l.texi: Renamed from
54914         doc/glibc-functions/isalnum_l.texi.
54915         * doc/posix-functions/isalpha_l.texi: Renamed from
54916         doc/glibc-functions/isalpha_l.texi.
54917         * doc/posix-functions/isblank_l.texi: Renamed from
54918         doc/glibc-functions/isblank_l.texi.
54919         * doc/posix-functions/iscntrl_l.texi: Renamed from
54920         doc/glibc-functions/iscntrl_l.texi.
54921         * doc/posix-functions/isdigit_l.texi: Renamed from
54922         doc/glibc-functions/isdigit_l.texi.
54923         * doc/posix-functions/isgraph_l.texi: Renamed from
54924         doc/glibc-functions/isgraph_l.texi.
54925         * doc/posix-functions/islower_l.texi: Renamed from
54926         doc/glibc-functions/islower_l.texi.
54927         * doc/posix-functions/isprint_l.texi: Renamed from
54928         doc/glibc-functions/isprint_l.texi.
54929         * doc/posix-functions/ispunct_l.texi: Renamed from
54930         doc/glibc-functions/ispunct_l.texi.
54931         * doc/posix-functions/isspace_l.texi: Renamed from
54932         doc/glibc-functions/isspace_l.texi.
54933         * doc/posix-functions/isupper_l.texi: Renamed from
54934         doc/glibc-functions/isupper_l.texi.
54935         * doc/posix-functions/iswalnum_l.texi: Renamed from
54936         doc/glibc-functions/iswalnum_l.texi.
54937         * doc/posix-functions/iswalpha_l.texi: Renamed from
54938         doc/glibc-functions/iswalpha_l.texi.
54939         * doc/posix-functions/iswblank_l.texi: Renamed from
54940         doc/glibc-functions/iswblank_l.texi.
54941         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54942         doc/glibc-functions/iswcntrl_l.texi.
54943         * doc/posix-functions/iswctype_l.texi: Renamed from
54944         doc/glibc-functions/iswctype_l.texi.
54945         * doc/posix-functions/iswdigit_l.texi: Renamed from
54946         doc/glibc-functions/iswdigit_l.texi.
54947         * doc/posix-functions/iswgraph_l.texi: Renamed from
54948         doc/glibc-functions/iswgraph_l.texi.
54949         * doc/posix-functions/iswlower_l.texi: Renamed from
54950         doc/glibc-functions/iswlower_l.texi.
54951         * doc/posix-functions/iswprint_l.texi: Renamed from
54952         doc/glibc-functions/iswprint_l.texi.
54953         * doc/posix-functions/iswpunct_l.texi: Renamed from
54954         doc/glibc-functions/iswpunct_l.texi.
54955         * doc/posix-functions/iswspace_l.texi: Renamed from
54956         doc/glibc-functions/iswspace_l.texi.
54957         * doc/posix-functions/iswupper_l.texi: Renamed from
54958         doc/glibc-functions/iswupper_l.texi.
54959         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54960         doc/glibc-functions/iswxdigit_l.texi.
54961         * doc/posix-functions/isxdigit_l.texi: Renamed from
54962         doc/glibc-functions/isxdigit_l.texi.
54963         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54964         doc/glibc-functions/mbsnrtowcs.texi.
54965         * doc/posix-functions/mkdtemp.texi: Renamed from
54966         doc/glibc-functions/mkdtemp.texi.
54967         * doc/posix-functions/newlocale.texi: Renamed from
54968         doc/glibc-functions/newlocale.texi.
54969         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54970         doc/glibc-functions/nl_langinfo_l.texi.
54971         * doc/posix-functions/open_memstream.texi: Renamed from
54972         doc/glibc-functions/open_memstream.texi.
54973         * doc/posix-functions/opterr.texi: Renamed from
54974         doc/glibc-functions/opterr.texi.
54975         * doc/posix-functions/optind.texi: Renamed from
54976         doc/glibc-functions/optind.texi.
54977         * doc/posix-functions/optopt.texi: Renamed from
54978         doc/glibc-functions/optopt.texi.
54979         * doc/posix-functions/psignal.texi: Renamed from
54980         doc/glibc-functions/psignal.texi.
54981         * doc/posix-functions/scandir.texi: Renamed from
54982         doc/glibc-functions/scandir.texi.
54983         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54984         doc/glibc-functions/sched_get_priority_min.texi.
54985         * doc/posix-functions/signgam.texi: Renamed from
54986         doc/glibc-functions/signgam.texi.
54987         * doc/posix-functions/stpcpy.texi: Renamed from
54988         doc/glibc-functions/stpcpy.texi.
54989         * doc/posix-functions/stpncpy.texi: Renamed from
54990         doc/glibc-functions/stpncpy.texi.
54991         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54992         doc/glibc-functions/strcasecmp_l.texi.
54993         * doc/posix-functions/strcoll_l.texi: Renamed from
54994         doc/glibc-functions/strcoll_l.texi.
54995         * doc/posix-functions/strfmon_l.texi: Renamed from
54996         doc/glibc-functions/strfmon_l.texi.
54997         * doc/posix-functions/strftime_l.texi: Renamed from
54998         doc/glibc-functions/strftime_l.texi.
54999         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55000         doc/glibc-functions/strncasecmp_l.texi.
55001         * doc/posix-functions/strndup.texi: Renamed from
55002         doc/glibc-functions/strndup.texi.
55003         * doc/posix-functions/strnlen.texi: Renamed from
55004         doc/glibc-functions/strnlen.texi.
55005         * doc/posix-functions/strsignal.texi: Renamed from
55006         doc/glibc-functions/strsignal.texi.
55007         * doc/posix-functions/strxfrm_l.texi: Renamed from
55008         doc/glibc-functions/strxfrm_l.texi.
55009         * doc/posix-functions/timer_gettime.texi: Renamed from
55010         doc/glibc-functions/timer_gettime.texi.
55011         * doc/posix-functions/tolower_l.texi: Renamed from
55012         doc/glibc-functions/tolower_l.texi.
55013         * doc/posix-functions/toupper_l.texi: Renamed from
55014         doc/glibc-functions/toupper_l.texi.
55015         * doc/posix-functions/towctrans_l.texi: Renamed from
55016         doc/glibc-functions/towctrans_l.texi.
55017         * doc/posix-functions/towlower_l.texi: Renamed from
55018         doc/glibc-functions/towlower_l.texi.
55019         * doc/posix-functions/towupper_l.texi: Renamed from
55020         doc/glibc-functions/towupper_l.texi.
55021         * doc/posix-functions/uselocale.texi: Renamed from
55022         doc/glibc-functions/uselocale.texi.
55023         * doc/posix-functions/vdprintf.texi: Renamed from
55024         doc/glibc-functions/vdprintf.texi.
55025         * doc/posix-functions/wcpcpy.texi:
55026         Renamed from doc/glibc-functions/wcpcpy.texi.
55027         * doc/posix-functions/wcpncpy.texi: Renamed from
55028         doc/glibc-functions/wcpncpy.texi.
55029         * doc/posix-functions/wcscasecmp.texi: Renamed from
55030         doc/glibc-functions/wcscasecmp.texi.
55031         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55032         doc/glibc-functions/wcscasecmp_l.texi.
55033         * doc/posix-functions/wcscoll_l.texi: Renamed from
55034         doc/glibc-functions/wcscoll_l.texi.
55035         * doc/posix-functions/wcsdup.texi: Renamed from
55036         doc/glibc-functions/wcsdup.texi.
55037         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55038         doc/glibc-functions/wcsncasecmp.texi.
55039         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55040         doc/glibc-functions/wcsncasecmp_l.texi.
55041         * doc/posix-functions/wcsnlen.texi: Renamed from
55042         doc/glibc-functions/wcsnlen.texi.
55043         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55044         doc/glibc-functions/wcsnrtombs.texi.
55045         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55046         doc/glibc-functions/wcsxfrm_l.texi.
55047         * doc/posix-functions/wctrans_l.texi: Renamed from
55048         doc/glibc-functions/wctrans_l.texi.
55049         * doc/posix-functions/wctype_l.texi: Renamed from
55050         doc/glibc-functions/wctype_l.texi.
55051         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55052         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55053         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55054         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55055         these subsections.
55056         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55057         Remove sections.
55058
55059 2008-12-14  Bruno Haible  <bruno@clisp.org>
55060
55061         Update doc for POSIX:2008.
55062         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55063
55064 2008-12-14  Bruno Haible  <bruno@clisp.org>
55065
55066         Update doc for POSIX:2008.
55067         * doc/pastposix-functions/bcmp.texi: Renamed from
55068         doc/posix-functions/bcmp.texi.
55069         * doc/pastposix-functions/bcopy.texi: Renamed from
55070         doc/posix-functions/bcopy.texi.
55071         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55072         doc/posix-functions/bsd_signal.texi.
55073         * doc/pastposix-functions/bzero.texi: Renamed from
55074         doc/posix-functions/bzero.texi.
55075         * doc/pastposix-functions/ecvt.texi: Renamed from
55076         doc/posix-functions/ecvt.texi.
55077         * doc/pastposix-functions/fcvt.texi: Renamed from
55078         doc/posix-functions/fcvt.texi.
55079         * doc/pastposix-functions/ftime.texi: Renamed from
55080         doc/posix-functions/ftime.texi.
55081         * doc/pastposix-functions/gcvt.texi: Renamed from
55082         doc/posix-functions/gcvt.texi.
55083         * doc/pastposix-functions/getcontext.texi: Renamed from
55084         doc/posix-functions/getcontext.texi.
55085         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55086         doc/posix-functions/gethostbyaddr.texi.
55087         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55088         doc/posix-functions/gethostbyname.texi.
55089         * doc/pastposix-functions/getwd.texi: Renamed from
55090         doc/posix-functions/getwd.texi.
55091         * doc/pastposix-functions/h_errno.texi: Renamed from
55092         doc/posix-functions/h_errno.texi.
55093         * doc/pastposix-functions/index.texi: Renamed from
55094         doc/posix-functions/index.texi.
55095         * doc/pastposix-functions/makecontext.texi: Renamed from
55096         doc/posix-functions/makecontext.texi.
55097         * doc/pastposix-functions/mktemp.texi: Renamed from
55098         doc/posix-functions/mktemp.texi.
55099         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55100         doc/posix-functions/pthread_attr_getstackaddr.texi.
55101         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55102         doc/posix-functions/pthread_attr_setstackaddr.texi.
55103         * doc/pastposix-functions/rindex.texi: Renamed from
55104         doc/posix-functions/rindex.texi.
55105         * doc/pastposix-functions/scalb.texi: Renamed from
55106         doc/posix-functions/scalb.texi.
55107         * doc/pastposix-functions/setcontext.texi: Renamed from
55108         doc/posix-functions/setcontext.texi.
55109         * doc/pastposix-functions/swapcontext.texi: Renamed from
55110         doc/posix-functions/swapcontext.texi.
55111         * doc/pastposix-functions/ualarm.texi: Renamed from
55112         doc/posix-functions/ualarm.texi.
55113         * doc/pastposix-functions/usleep.texi: Renamed from
55114         doc/posix-functions/usleep.texi.
55115         * doc/pastposix-functions/vfork.texi: Renamed from
55116         doc/posix-functions/vfork.texi.
55117         * doc/pastposix-functions/wcswcs.texi: Renamed from
55118         doc/posix-functions/wcswcs.texi.
55119         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55120         (Function Substitutes): Update.
55121
55122 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55123
55124         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55125         m4/strerror.m4.
55126
55127 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55128             Bruno Haible  <bruno@clisp.org>
55129
55130         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55131
55132 2008-12-13  Bruno Haible  <bruno@clisp.org>
55133
55134         * modules/strtoull (Depends-on): Remove unistd.
55135
55136 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55137
55138         * modules/strtoull (Depends-on): Add stdlib.
55139
55140 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55141
55142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55143
55144 2008-12-10  Jim Meyering  <meyering@redhat.com>
55145
55146         gl_ASSERT: don't say assertions are disabled when they're not
55147         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55148         "checking whether to enable assertions... no", when they are in
55149         fact enabled.  This is solely a bug in the output of configure.
55150         In spite of saying "no", NDEBUG was not defined in that case.
55151         Also, as noted by Eric Blake, leave assertions enabled upon
55152         --enable-assert=INVALID.
55153
55154 2008-12-10  Bruno Haible  <bruno@clisp.org>
55155
55156         Change MODULES.html to refer to POSIX:2008 where possible.
55157         * MODULES.html.sh (POSIX2008_URL): New variable.
55158         (posix_headers): Remove sys/timeb, ucontext.
55159         (posix2001_headers): New variable.
55160         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55161         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55162         index, makecontext, mktemp, pthread_attr_getstackaddr,
55163         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55164         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55165         (posix2001_functions): New variable.
55166         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55167         otherwise.
55168
55169 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55170
55171         add missing include to parse-duration.c
55172         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55173         * modules/parse-duration (Depends-on): Add xalloc.
55174
55175         fix sed script reading maint.mk
55176         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55177         (syntax-check-rules): Use it.
55178
55179 2008-12-09  Bruno Haible  <bruno@clisp.org>
55180
55181         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55182         MacOS X 10.4/PowerPC.
55183         Reported by Simon Josefsson.
55184
55185 2008-12-08  Jim Meyering  <meyering@redhat.com>
55186
55187         work around mingw's lack of some S_IF definitions
55188         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55189         Reported by Simon Josefsson.
55190
55191 2008-12-08  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55194         applied to variables. Needed on MacOS X 10.4/PowerPC.
55195         Reported by Simon Josefsson.
55196
55197 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55198         and Eric Blake  <ebb9@byu.net>
55199
55200         assert: honor --enable-assert
55201         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55202         order to honor --enable-assert, rather than treating it as a
55203         synonym for --disable-assert.
55204
55205 2008-12-08  Jim Meyering  <meyering@redhat.com>
55206
55207         * lib/posixtm.c: Remove now-useless declaration of mktime.
55208
55209         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55210
55211 2008-12-07  Bruno Haible  <bruno@clisp.org>
55212
55213         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55214         test_once): Mark functions as static.
55215         * tests/test-tls.c (test_tls): Likewise.
55216
55217 2008-12-07  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55220         iconv_register_autodetect.
55221
55222 2008-12-07  Jim Meyering  <meyering@redhat.com>
55223
55224         posixtm.c: avoid a warning
55225         * lib/posixtm.c (posixtime): Don't initialize tm0.
55226         It's no longer needed to placate gcc4's -Wuninitialized,
55227         and the attempt to placate would elicit a new warning.
55228
55229         unicodeio.c: mark unused parameters
55230         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55231         (fallback_failure_callback): Likewise.
55232
55233 2008-12-07  Bruno Haible  <bruno@clisp.org>
55234
55235         * gnulib-tool (func_create_testdir): When building the tests
55236         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55237         Reported by Simon Josefsson.
55238
55239 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55240
55241         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55242
55243 2008-12-06  Bruno Haible  <bruno@clisp.org>
55244
55245         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55246         Suggested by Eric Blake.
55247
55248 2008-12-06  Bruno Haible  <bruno@clisp.org>
55249
55250         Fix a c-stack test failure on MacOS X.
55251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55252         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55253         handler for SIGBUS as well.
55254         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55255         install a signal handler for SIGBUS as well.
55256         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55257
55258 2008-12-06  Bruno Haible  <bruno@clisp.org>
55259
55260         Advocacy documentation.
55261         * doc/gnulib-intro.texi (Benefits): New section.
55262         * doc/gnulib.texi: Update.
55263
55264 2008-12-06  Bruno Haible  <bruno@clisp.org>
55265
55266         Document the 'manywarnings' module.
55267         * doc/manywarnings.texi: New file.
55268         * doc/gnulib.texi: Include it.
55269
55270 2008-12-05  Eric Blake  <ebb9@byu.net>
55271
55272         tests: silence some gcc warnings
55273         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55274         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55275         type mismatches.
55276
55277 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55278             Bruno Haible  <bruno@clisp.org>
55279
55280         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55281
55282 2008-11-29  Jim Meyering  <meyering@redhat.com>
55283
55284         unicodeio.c: mark unused parameters
55285         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55286         (fallback_failure_callback): Likewise.
55287
55288         fts: fix a thinko
55289         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55290         (set_stat_type): Return S_IF*-valued "type" directly.
55291         Prompted by James Youngman's spotting a related bug.
55292         Confirmed by further testing through find.
55293
55294         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55295         * lib/fts.c (D_TYPE): Define.
55296         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55297         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55298         (s_ifmt_shift_bits): New function.
55299         (set_stat_type): New function.
55300         (fts_build): When not calling fts_stat, call set_stat_type
55301         to propagate dirent.d_type info to fts_read caller.
55302         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55303         fts_statp->st_mode type information may be valid.
55304
55305 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55306
55307         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55308         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55309         <sds@gnu.org>.
55310
55311 2008-11-20  Bruno Haible  <bruno@clisp.org>
55312
55313         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55314         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55315         INCLUDE_NEXT.
55316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55317         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55318         * modules/math (Makefile.am): Substitute
55319         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55320         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55321
55322 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55323             Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/stdint.in.h: Define all type macros so that their expansion is
55326         a single typedef'ed token. Fixes a compilation failure in Boost which
55327         does "using ::int8_t;".
55328
55329 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55330
55331         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55332         gl_MANYWARN_ALL_GCC.
55333         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55334         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55335         * modules/manywarnings: New file.
55336         * MODULES.html.sh: Mention manywarnings module.
55337
55338 2008-11-18  Bruno Haible  <bruno@clisp.org>
55339
55340         * doc/gnulib-tool.texi (Unit tests): New section.
55341
55342 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55343
55344         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55345         paths like 'lib/po/foo.po'.
55346
55347 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55348
55349         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55350         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55351
55352 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55353
55354         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55355         parameter works.
55356
55357 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55358
55359         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55360
55361 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55362
55363         * modules/parse-duration-tests: New file.
55364         * tests/test-parse-duration.sh: New file.
55365         * tests/test-parse-duration.c: New file.
55366
55367         New module 'parse-duration'.
55368         * lib/parse-duration.h: New file.
55369         * lib/parse-duration.c: New file.
55370         * modules/parse-duration: New file.
55371
55372 2008-11-17  Bruno Haible  <bruno@clisp.org>
55373
55374         * tests/test-select-out.sh: Comment out the first pipe test.
55375         Reported by Simon Josefsson.
55376
55377 2008-11-17  Bruno Haible  <bruno@clisp.org>
55378
55379         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55380         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55381         gl_HOSTENT.
55382
55383 2008-11-17  Bruno Haible  <bruno@clisp.org>
55384
55385         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55386         -lnetwork and -lnet. Needed for Haiku and BeOS.
55387
55388 2008-11-16  Bruno Haible  <bruno@clisp.org>
55389
55390         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55391
55392 2008-11-16  Bruno Haible  <bruno@clisp.org>
55393
55394         Avoid test failure on Haiku.
55395         * tests/test-fsync.c: Include <errno.h>.
55396         (main): Don't require that fsync (0) fails.
55397
55398 2008-11-15  Bruno Haible  <bruno@clisp.org>
55399
55400         New module 'hostent'.
55401         * modules/hostent: New file.
55402         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55403
55404 2008-11-15  Bruno Haible  <bruno@clisp.org>
55405
55406         New module 'servent'.
55407         * modules/servent: New file.
55408         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55409
55410 2008-11-15  Bruno Haible  <bruno@clisp.org>
55411
55412         Avoid generating same test program with two different rules.
55413         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55414         test-frexp to test-frexp-nolibm.
55415         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55416         test-frexpl to test-frexpl-nolibm.
55417
55418 2008-11-15  Bruno Haible  <bruno@clisp.org>
55419
55420         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55421         $(FREXPL_LIBM).
55422
55423 2008-11-15  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/netdb.in.h: Activate the definitions also when the system's
55426         <netdb.h> has 'struct addrinfo'.
55427         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55428         EAI_OVERFLOW or AI_NUMERICSERV.
55429         * doc/posix-headers/netdb.texi: Document the problem.
55430
55431 2008-11-15  Bruno Haible  <bruno@clisp.org>
55432
55433         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55434
55435         Make the 'sched' module work on platforms where <sched.h> exists but
55436         is incomplete (such as Haiku).
55437         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55438         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55439         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55440         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55441         HAVE_STRUCT_SCHED_PARAM.
55442         * modules/sched (Depends-on): Add include_next.
55443         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55444         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55445         * doc/posix-headers/sched.texi: Document the issue.
55446
55447 2008-11-13  Jim Meyering  <meyering@redhat.com>
55448
55449         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55450         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55451         test would fail due to the difference in the Report bugs to ...
55452         line.  The expected address is empty, "<>", while the actual
55453         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55454
55455 2008-11-12  Bruno Haible  <bruno@clisp.org>
55456
55457         lstat: don't compile lstat.c on systems lacking lstat
55458         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55459         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55460         Reported by Daniel P. Berrange via Jim Meyering.
55461
55462 2008-11-12  Jim Meyering  <meyering@redhat.com>
55463
55464         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55465
55466 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55467
55468         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55469         instead.
55470
55471 2008-11-12  Bruno Haible  <bruno@clisp.org>
55472
55473         * lib/unicodeio.c: Include unistr.h.
55474         (utf8_wctomb): Remove function.
55475         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55476
55477 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55478
55479         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55480         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55481         <bruno@clisp.org>.
55482         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55483
55484 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55485
55486         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55487         * doc/gnulib.texi: Add section for warnings.
55488
55489 2008-11-11  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/sockets.h: Add a comment.
55492
55493 2008-11-11  Karl Berry  <karl@gnu.org>
55494
55495         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55496
55497 2008-11-11  Eric Blake  <ebb9@byu.net>
55498
55499         fdl.texi: avoid git symlinks
55500         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55501
55502 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55503
55504         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55505
55506 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55507
55508         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55509         (gl_WARN_ADD): Substitute $2 if literal.
55510
55511 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55512
55513         * m4/warning.m4: Remove.
55514
55515 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55516
55517         * m4/warnings.m4: Almost complete rewrite. :-)
55518
55519 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55520
55521         * modules/warnings: New module.
55522         * m4/warnings.m4: New file.
55523         * MODULES.html.sh: Mention warnings module.
55524         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55525         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55526
55527 2008-11-10  Eric Blake  <ebb9@byu.net>
55528
55529         fdl.texi: make a symlink to the latest version
55530         * doc/standards.texi: Revert today's earlier change.
55531         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55532         * doc/fdl.texi: ...and replace this with a symlink to the newer
55533         fdl-1.3.texi.
55534
55535 2008-11-10  Bruno Haible  <bruno@clisp.org>
55536
55537         * tests/test-select-fd.c (main): Accept the result file name as fourth
55538         argument.
55539         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55540         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55541
55542 2008-11-10  Bruno Haible  <bruno@clisp.org>
55543
55544         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55545         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55546         as autoconf-substituted macros.
55547         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55548         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55549         gl_NETDB_H_DEFAULTS. Set these variables.
55550         * modules/netdb (Makefile.am): Substitute these variables.
55551
55552 2008-11-10  Eric Blake  <ebb9@byu.net>
55553
55554         standards.texi: include correct file for FDL 1.3
55555         * doc/standards.texi (GNU Free Documentation License): Change
55556         include file to pull in FDL 1.3, not 1.2.
55557
55558         fdl.texi: revert accidental change to license
55559         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55560
55561 2008-11-10  Bruno Haible  <bruno@clisp.org>
55562
55563         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55564         cross-compiling guesses also when the native compile gives no result.
55565
55566 2008-11-10  Bruno Haible  <bruno@clisp.org>
55567
55568         * lib/spawni.c (__spawni): Force variable into the stack.
55569
55570 2008-11-10  Bruno Haible  <bruno@clisp.org>
55571
55572         Add support for Haiku.
55573         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55574         glibc and BeOS, but also on Haiku.
55575         * lib/fpurge.c (fpurge): Likewise.
55576         * lib/freadable.c (freadable): Likewise.
55577         * lib/freadahead.c (freadahead): Likewise.
55578         * lib/freading.c (freading): Likewise.
55579         * lib/freadptr.c (freadptr): Likewise.
55580         * lib/freadseek.c (freadptrinc): Likewise.
55581         * lib/fseeko.c (rpl_fseeko): Likewise.
55582         * lib/fseterr.c (fseterr): Likewise.
55583         * lib/fwritable.c (fwritable): Likewise.
55584         * lib/fwriting.c (fwriting): Likewise.
55585         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55586
55587 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55588
55589         * lib/config.charset: Treat Haiku like BeOS.
55590
55591 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55592
55593         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55594         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55595
55596 2008-11-08  Bruno Haible  <bruno@clisp.org>
55597
55598         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55599         AC_CACHE_CHECK.
55600
55601 2008-11-08  Bruno Haible  <bruno@clisp.org>
55602
55603         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55604
55605 2008-11-08  Bruno Haible  <bruno@clisp.org>
55606
55607         * tests/test-select-fd.c: New file.
55608         * tests/test-select-in.sh: New file.
55609         * tests/test-select-out.sh: New file.
55610         * tests/test-select-stdin.c: New file.
55611         * modules/select-tests (Files): Add the new files.
55612         (Depends-on): Add gettimeofday.
55613         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55614         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55615         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55616
55617 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55618             Bruno Haible  <bruno@clisp.org>
55619
55620         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55621
55622 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55623
55624         * build-aux/pmccabe2html: Added support for C++ source files.
55625
55626 2008-11-05  Ben Pfaff  <blp@gnu.org>
55627
55628         Fix lib/close.c build on Windows.
55629         * modules/close (Files): Add lib/w32sock.h.
55630
55631 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55632
55633         Accept Bison's NEWS format.
55634         * build-aux/announce-gen (print_news_deltas): Tweak
55635         $re_prefix.
55636
55637 2008-11-04  Bruno Haible  <bruno@clisp.org>
55638
55639         * modules/random_r (Maintainer): Add glibc.
55640
55641 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55642
55643         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55644         by karl@freefriends.org (Karl Berry).
55645         * doc/alloca.texi: Likewise.
55646         * doc/c-ctype.texi: Likewise.
55647         * doc/c-strcase.texi: Likewise.
55648         * doc/c-strcaseeq.texi: Likewise.
55649         * doc/c-strcasestr.texi: Likewise.
55650         * doc/c-strstr.texi: Likewise.
55651         * doc/c-strtod.texi: Likewise.
55652         * doc/c-strtold.texi: Likewise.
55653         * doc/ctime.texi: Likewise.
55654         * doc/error.texi: Likewise.
55655         * doc/fdl.texi: Likewise.
55656         * doc/gcd.texi: Likewise.
55657         * doc/getdate.texi: Likewise.
55658         * doc/gnulib-intro.texi: Likewise.
55659         * doc/gnulib-tool.texi: Likewise.
55660         * doc/gnulib.texi: Likewise.
55661         * doc/inet_ntoa.texi: Likewise.
55662         * doc/maintain.texi: Likewise.
55663         * doc/make-stds.texi: Likewise.
55664         * doc/quote.texi: Likewise.
55665         * doc/regexprops-generic.texi: Likewise.
55666         * doc/standards.texi: Likewise.
55667         * doc/verify.texi: Likewise.
55668         * doc/visibility.texi: Likewise.
55669         * doc/gnulib.texi (GNU Free Documentation License): Include
55670         fdl-1.3.texi instead of fdl.texi.
55671
55672 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55673
55674         * doc/fdl-1.3.texi: New file, from
55675         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55676         * modules/fdl-1.3: Add.
55677         * MODULES.html.sh: Add fdl-1.3.
55678
55679 2008-11-03  Bruno Haible  <bruno@clisp.org>
55680
55681         Make determination of absolute name of header file work with AIX xlc.
55682         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55683         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55684         preprocessing.
55685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55686         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55687
55688 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55689
55690         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55691         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55692         <ludo@gnu.org>.
55693
55694 2008-11-02  Bruno Haible  <bruno@clisp.org>
55695
55696         Mark 'strpbrk' obsolete.
55697         * modules/strpbrk (Status, Notice): New sections.
55698         * modules/strtok_r (Depends-on): Add strpbrk.
55699
55700 2008-11-02  Bruno Haible  <bruno@clisp.org>
55701
55702         Mark 'strdup' obsolete.
55703         * modules/strdup (Status, Notice): New sections.
55704         * modules/findprog (Depends-on): Add strdup.
55705         * modules/getaddrinfo (Depends-on): Likewise.
55706         * modules/localename (Depends-on): Likewise.
55707         * modules/relocatable-lib (Depends-on): Likewise.
55708         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55709         * modules/relocatable-prog (Depends-on): Likewise.
55710         * modules/trim (Depends-on): Likewise.
55711         * modules/unictype/gen-ctype (Depends-on): Likewise.
55712         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55713
55714 2008-11-02  Bruno Haible  <bruno@clisp.org>
55715
55716         Mark 'strcspn' obsolete.
55717         * modules/strcspn (Status, Notice): New sections.
55718
55719 2008-11-02  Bruno Haible  <bruno@clisp.org>
55720
55721         Mark 'rmdir' obsolete.
55722         * modules/rmdir (Status, Notice): New sections.
55723         * modules/clean-temp (Depends-on): Add rmdir.
55724         * modules/openat (Depends-on): Likewise.
55725
55726 2008-11-02  Bruno Haible  <bruno@clisp.org>
55727
55728         Mark 'raise' obsolete.
55729         * modules/raise (Status, Notice): New sections.
55730         (Include): Specify <signal.h>.
55731         * modules/stdio (Depends-on): Add raise.
55732         * modules/write (Depends-on): Likewise.
55733
55734 2008-11-02  Bruno Haible  <bruno@clisp.org>
55735
55736         Mark 'memset' obsolete.
55737         * modules/memset (Status, Notice): New sections.
55738
55739 2008-11-02  Bruno Haible  <bruno@clisp.org>
55740
55741         Mark 'memmove' obsolete.
55742         * modules/memmove (Status, Notice): New sections.
55743         * modules/argp (Depends-on): Add memmove.
55744         * modules/argz (Depends-on): Likewise.
55745         * modules/canonicalize (Depends-on): Likewise.
55746         * modules/canonicalize-lgpl (Depends-on): Likewise.
55747         * modules/fts (Depends-on): Likewise.
55748         * modules/getcwd (Depends-on): Likewise.
55749         * modules/human (Depends-on): Likewise.
55750         * modules/regex (Depends-on): Likewise.
55751         * modules/striconveh (Depends-on): Likewise.
55752         * modules/trim (Depends-on): Likewise.
55753         * modules/unistr/u8-move (Depends-on): Likewise.
55754         * modules/unistr/u16-move (Depends-on): Likewise.
55755         * modules/unistr/u32-move (Depends-on): Likewise.
55756
55757 2008-11-02  Bruno Haible  <bruno@clisp.org>
55758
55759         Mark 'memcpy' obsolete.
55760         * modules/memcpy (Status, Notice): New sections.
55761
55762 2008-11-02  Bruno Haible  <bruno@clisp.org>
55763
55764         Mark 'memcmp' obsolete.
55765         * modules/memcmp (Status, Notice): New sections.
55766         * modules/argmatch (Depends-on): Add memchr.
55767         * modules/backupfile (Depends-on): Likewise.
55768         * modules/c-strcasestr (Depends-on): Likewise.
55769         * modules/crypto/des (Depends-on): Likewise.
55770         * modules/csharpcomp (Depends-on): Likewise.
55771         * modules/fnmatch (Depends-on): Likewise.
55772         * modules/git-merge-changelog (Depends-on): Likewise.
55773         * modules/isnand (Depends-on): Likewise.
55774         * modules/isnand-nolibm (Depends-on): Likewise.
55775         * modules/isnanf (Depends-on): Likewise.
55776         * modules/isnanf-nolibm (Depends-on): Likewise.
55777         * modules/isnanl (Depends-on): Likewise.
55778         * modules/isnanl-nolibm (Depends-on): Likewise.
55779         * modules/mbchar (Depends-on): Likewise.
55780         * modules/memcoll (Depends-on): Likewise.
55781         * modules/quotearg (Depends-on): Likewise.
55782         * modules/regex (Depends-on): Likewise.
55783         * modules/relocatable-prog (Depends-on): Likewise.
55784         * modules/same (Depends-on): Likewise.
55785         * modules/signbit (Depends-on): Likewise.
55786         * modules/strcasestr-simple (Depends-on): Likewise.
55787         * modules/unictype/gen-ctype (Depends-on): Likewise.
55788         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55789         * modules/uniname/uniname (Depends-on): Likewise.
55790         * modules/unistr/u8-cmp (Depends-on): Likewise.
55791
55792 2008-11-02  Bruno Haible  <bruno@clisp.org>
55793
55794         Mark 'memchr' obsolete.
55795         * modules/memchr (Status, Notice): New sections.
55796         * modules/argp (Depends-on): Add memchr.
55797         * modules/base64 (Depends-on): Likewise.
55798         * modules/c-strcasestr (Depends-on): Likewise.
55799         * modules/chdir-long (Depends-on): Likewise.
55800         * modules/fnmatch (Depends-on): Likewise.
55801         * modules/getsubopt (Depends-on): Likewise.
55802         * modules/git-merge-changelog (Depends-on): Likewise.
55803         * modules/glob (Depends-on): Likewise.
55804         * modules/strcasestr-simple (Depends-on): Likewise.
55805         * modules/strnlen (Depends-on): Likewise.
55806
55807 2008-11-02  Bruno Haible  <bruno@clisp.org>
55808
55809         Mark 'atexit' obsolete.
55810         * modules/atexit (Status, Notice): New sections.
55811         * modules/chdir-long (Depends-on): Add atexit.
55812         * modules/wait-process (Depends-on): Likewise.
55813
55814 2008-11-02  Bruno Haible  <bruno@clisp.org>
55815
55816         * gnulib-tool: New option --with-obsolete.
55817         (func_usage): Document it.
55818         (func_modules_transitive_closure): Drop obsolete dependencies if
55819         incobsolete is not true.
55820         (func_import): Read and save the incobsolete variable to the cache.
55821
55822 2008-11-02  Bruno Haible  <bruno@clisp.org>
55823
55824         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55825         * gnulib-tool: New option --extract-status.
55826         (func_usage): Document it.
55827         (sed_extract_prog): Recognize it.
55828         (func_get_status): New function.
55829
55830 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55831
55832         * modules/sockets (License): Change from LGPL to LGPLv2+.
55833
55834 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55835
55836         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55837
55838 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55839
55840         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55841         Mention times and sys_times.
55842         * modules/sys_times, modules/sys_times-tests: New modules.
55843         * modules/times, modules/times-tests: Likewise
55844         * m4/sys_times_h.m4: New file.
55845         * lib/sys_times.in.h: Likewise
55846         * lib/times.c: Likewise.
55847         * tests/test-sys_times.c: Likewise.
55848         * tests/test-times.c: Likewise.
55849         * doc/posix-headers/sys_times.texi: Update.
55850         * doc/posix-functions/times.texi: Update.
55851
55852 2008-10-28  Jim Meyering  <meyering@redhat.com>
55853
55854         * modules/tempname (Depends-on): Add lstat.
55855
55856         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55857
55858 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55859
55860         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55861         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55862         using idiom used elsewhere in gnulib.
55863
55864 2008-10-27  Jim Meyering  <meyering@redhat.com>
55865
55866         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55867
55868 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55869
55870         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55871         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55872         programs.
55873         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55874
55875 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55876
55877         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55878
55879 2008-10-27  Bruno Haible  <bruno@clisp.org>
55880
55881         * tests/test-lstat.c: Include <stdio.h>.
55882
55883 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55884
55885         * modules/lstat-tests: New module.
55886         * tests/test-lstat.c: New file.
55887
55888 2008-10-26  Jim Meyering  <meyering@redhat.com>
55889
55890         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55891
55892 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55893             Bruno Haible  <bruno@clisp.org>
55894
55895         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55896         * modules/configmake (Include): Add a note that the include must come
55897         after all system headers.
55898         * lib/javaversion.c: Include configmake.h after all other includes.
55899
55900 2008-10-26  Bruno Haible  <bruno@clisp.org>
55901
55902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55903         HAVE_STRUCT_RANDOM_DATA to 1.
55904         (gl_STDLIB_H): Simplify.
55905
55906 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55907
55908         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55909         substitute HAVE_STRUCT_RANDOM_DATA.
55910         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55911         random_data.
55912         * modules/stdlib (Makefile.am): Substitute
55913         HAVE_STRUCT_RANDOM_DATA.
55914
55915 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55916
55917         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55918         * doc/gnulib-intro.texi (Copyright): Likewise.
55919
55920 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55921
55922         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55923         findings.
55924
55925 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55926             Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/unistd.in.h: Include <winsock2.h>.
55929         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55930         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55931         Provide dummy declarations.
55932         (gethostname): Override.
55933         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55934         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55935         gl_PREREQ_SYS_H_WINSOCK2.
55936         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55937         * doc/posix-functions/gethostname.texi: More details.
55938
55939 2008-10-25  Bruno Haible  <bruno@clisp.org>
55940
55941         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55942         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55943         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55944
55945         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55946         here ...
55947         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55948         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55949         gl_UNISTD_H_DEFAULTS.
55950
55951 2008-10-25  Eric Blake  <ebb9@byu.net>
55952
55953         signbit: avoid spurious compiler failure
55954         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55955         declarations inside function.
55956
55957 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55958             Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55961         * modules/random_r (Depends-on): Add stdint.
55962
55963 2008-10-24  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55966         Eggert.
55967         * modules/strerror (License): Likewise.
55968
55969 2008-10-24  Jim Meyering  <meyering@redhat.com>
55970
55971         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55972         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55973
55974 2008-10-24  Eric Blake  <ebb9@byu.net>
55975
55976         getgroups: fix compilation when getgroups is available
55977         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55978         but with <config.h> override of getgroups disabled.
55979
55980 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55981
55982         * doc/gnulib.texi (Header files): Add note about C++ problems.
55983         Explained by Bruno Haible <bruno@clisp.org>.
55984
55985 2008-10-23  Bruno Haible  <bruno@clisp.org>
55986
55987         Define a dummy SA_NODEFER macro on Interix.
55988         * lib/signal.in.h (SA_NODEFER): Define fallback.
55989         Reported by Aleksey Cheusov <cheusov@tut.by> via
55990         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55991
55992 2008-10-23  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/freadahead (License): Change to LGPLv2+.
55995         Suggested by Simon Josefsson.
55996
55997 2008-10-23  Jim Meyering  <meyering@redhat.com>
55998
55999         random_r: new module
56000         * modules/random_r: New file.
56001         * m4/random_r.m4: New file.
56002         * lib/random_r.c: New file, from glibc.
56003         * modules/random_r-tests: New file.
56004         * tests/test-random_r.c: New file.
56005         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56006          Declare.
56007         (RAND_MAX): Define.
56008         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56009         * modules/stdlib: Substitute them, too.
56010         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56011         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56012         * doc/glibc-functions/random_r.texi: Likewise.
56013         * doc/glibc-functions/setstate_r.texi: Likewise.
56014         * doc/glibc-functions/srandom_r.texi: Likewise.
56015         * config/srclist.txt: Mention it.
56016
56017 2008-10-23  David Lutterkort  <lutter@redhat.com>
56018
56019         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56020         link requirement
56021
56022 2008-10-23  Jim Meyering  <meyering@redhat.com>
56023
56024         selinux-h: mark parameters of stub functions as intentionally unused
56025         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56026         * lib/se-context.in.h: Likewise.
56027
56028 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56029
56030         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56031
56032 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56033
56034         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56035
56036 2008-10-22  Eric Blake  <ebb9@byu.net>
56037
56038         glthread/thread: avoid compiler warning
56039         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56040         Add unreachable abort to silence compiler.
56041
56042 2008-10-22  Eric Blake  <ebb9@byu.net>
56043
56044         netdb: also supply struct addrinfo for cygwin 1.5.x
56045         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56046         older cygwin.
56047         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56048         cygwin.
56049         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56050
56051 2008-10-22  Bruno Haible  <bruno@clisp.org>
56052
56053         * users.txt: Update entry about pspp.
56054
56055 2008-10-21  Bruno Haible  <bruno@clisp.org>
56056
56057         Simplification.
56058         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56059         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56060
56061         Simplification.
56062         * lib/ioctl.c (ioctl): Don't undefine.
56063         * lib/socket.c (socket): Don't undefine.
56064
56065         Remove unused module indicator macros.
56066         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56067         GNULIB_$1 as a C macro.
56068
56069         * doc/posix-functions/close.texi: Undo last change.
56070         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56071         Windows platforms.
56072
56073 2008-10-21  Bruno Haible  <bruno@clisp.org>
56074
56075         Add gethostname() declaration to <unistd.h>.
56076         * lib/unistd.in.h (gethostname): New declaration.
56077         * lib/gethostname.c: Include <unistd.h>.
56078         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56079         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56081         and HAVE_GETHOSTNAME.
56082         * modules/gethostname (Depends-on): Add unistd.
56083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56084         (Include): Specify <unistd.h>.
56085         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56086         HAVE_GETHOSTNAME.
56087         * tests/test-gethostname.c: Include <unistd.h> first.
56088
56089 2008-10-21  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56092         * modules/select-tests (Depends-on): Likewise.
56093         Reported by Simon Josefsson.
56094
56095 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56096
56097         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56098         * lib/accept.c: New file, based on winsock.c.
56099         * lib/bind.c: New file, based on winsock.c.
56100         * lib/connect.c: New file, based on winsock.c.
56101         * lib/getpeername.c: New file, based on winsock.c.
56102         * lib/getsockname.c: New file, based on winsock.c.
56103         * lib/getsockopt.c: New file, based on winsock.c.
56104         * lib/ioctl.c: New file, based on winsock.c.
56105         * lib/listen.c: New file, based on winsock.c.
56106         * lib/recv.c: New file, based on winsock.c.
56107         * lib/recvfrom.c: New file, based on winsock.c.
56108         * lib/send.c: New file, based on winsock.c.
56109         * lib/sendto.c: New file, based on winsock.c.
56110         * lib/setsockopt.c: New file, based on winsock.c.
56111         * lib/shutdown.c: New file, based on winsock.c.
56112         * lib/socket.c: New file, based on winsock.c.
56113         * lib/w32sock.h: New file, based on winsock.c.
56114         * lib/winsock.c: Remove file.
56115         * modules/accept: Likewise.
56116         * modules/bind: Likewise.
56117         * modules/connect: Likewise.
56118         * modules/getpeername: Likewise.
56119         * modules/getsockname: Likewise.
56120         * modules/getsockopt: Likewise.
56121         * modules/ioctl: Likewise.
56122         * modules/listen: Likewise.
56123         * modules/recv: Likewise.
56124         * modules/recvfrom: Likewise.
56125         * modules/send: Likewise.
56126         * modules/sendto: Likewise.
56127         * modules/setsockopt: Likewise.
56128         * modules/shutdown: Likewise.
56129         * modules/socket: Use socket.c instead of winsock.c.
56130         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56131         * doc/posix-functions/accept.texi: Doc fix.
56132         * doc/posix-functions/bind.texi: Doc fix.
56133         * doc/posix-functions/close.texi: Doc fix.
56134         * doc/posix-functions/connect.texi: Doc fix.
56135         * doc/posix-functions/getpeername.texi: Doc fix.
56136         * doc/posix-functions/getsockname.texi: Doc fix.
56137         * doc/posix-functions/getsockopt.texi: Doc fix.
56138         * doc/posix-functions/ioctl.texi: Doc fix.
56139         * doc/posix-functions/listen.texi: Doc fix.
56140         * doc/posix-functions/recv.texi: Doc fix.
56141         * doc/posix-functions/recvfrom.texi: Doc fix.
56142         * doc/posix-functions/send.texi: Doc fix.
56143         * doc/posix-functions/sendto.texi: Doc fix.
56144         * doc/posix-functions/setsockopt.texi: Doc fix.
56145         * doc/posix-functions/shutdown.texi: Doc fix.
56146         * doc/posix-functions/socket.texi: Doc fix.
56147
56148 2008-10-20  Bruno Haible  <bruno@clisp.org>
56149
56150         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56151         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56152         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56153         as an alias for SIGABRT.
56154         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56155         (sigaction): Map it to SIGABRT.
56156         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56157
56158 2008-10-20  Bruno Haible  <bruno@clisp.org>
56159
56160         * lib/fts.c: Don't include lstat.h.
56161         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56162
56163         Move the lstat() declaration to <sys/stat.h>.
56164         * lib/lstat.h: Remove file.
56165         * lib/sys_stat.in.h: Add special invocation convention.
56166         (lstat): New declaration.
56167         * lib/lstat.c (orig_lstat): New function.
56168         (rpl_lstat): Use orig_lstat instead of lstat.
56169         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56170         AC_C_INLINE. Set REPLACE_LSTAT.
56171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56172         and REPLACE_LSTAT.
56173         * modules/lstat (Files): Remove lib/lstat.h.
56174         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56175         (Include): Specify <sys/stat.h> instead of lstat.h.
56176         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56177         REPLACE_LSTAT.
56178         * NEWS: Mention the change.
56179
56180 2008-10-20  Bruno Haible  <bruno@clisp.org>
56181
56182         * modules/posix_spawn-tests: New file.
56183         * tests/test-posix_spawn3.c: New file.
56184
56185 2008-10-20  Bruno Haible  <bruno@clisp.org>
56186
56187         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56188         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56189         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56190         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56191         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56192
56193 2008-10-20  Bruno Haible  <bruno@clisp.org>
56194
56195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56196         of posix_spawn on AIX 5.3.
56197
56198 2008-10-20  Bruno Haible  <bruno@clisp.org>
56199
56200         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56201
56202 2008-10-20  Bruno Haible  <bruno@clisp.org>
56203
56204         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56205         of AC_LANG_PROGRAM.
56206
56207 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56208
56209         * lib/netdb.in.h: Don't define GNU specific constants until they
56210         are supported or needed.  Reported by Bruno Haible
56211         <bruno@clisp.org>.
56212
56213 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56214
56215         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56216
56217 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56218
56219         * lib/getaddrinfo.h: Remove file.
56220         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56221         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56222         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56223         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56224         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56225         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56226         * tests/test-getaddrinfo.c: Likewise.
56227         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56228         * NEWS: Mention change.
56229
56230 2008-10-19  Bruno Haible  <bruno@clisp.org>
56231
56232         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56233
56234 2008-10-19  Bruno Haible  <bruno@clisp.org>
56235
56236         * lib/wait-process.c: Include simply <sys/wait.h>.
56237         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56238         WIFSTOPPED): Remove fallback definitions.
56239         * modules/wait-process (Depends-on): Add sys_wait.
56240
56241         New module 'sys_wait'.
56242         * modules/sys_wait: New file.
56243         * lib/sys_wait.in.h: New file, partially copied from
56244         lib/wait-process.c.
56245         * m4/sys_wait_h.m4: New file.
56246         * doc/posix-headers/sys_wait.texi: Mention the new module.
56247
56248 2008-10-19  Bruno Haible  <bruno@clisp.org>
56249
56250         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56251
56252 2008-10-19  Bruno Haible  <bruno@clisp.org>
56253
56254         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56255         * lib/wait-process.c (WAIT_T): Remove type.
56256         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56257         (wait_subprocess): Update.
56258
56259 2008-10-19  Bruno Haible  <bruno@clisp.org>
56260
56261         New module 'atoll'.
56262         * modules/atoll: New file.
56263         * lib/stdlib.in.h (atoll): New declaration.
56264         * lib/atoll.c: New file, from glibc with modifications.
56265         * m4/atoll.m4: New file.
56266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56267         HAVE_ATOLL.
56268         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56269         * doc/posix-functions/atoll.texi: Mention the new module.
56270
56271 2008-10-19  Bruno Haible  <bruno@clisp.org>
56272
56273         Add strtoull() declaration to <stdlib.h>.
56274         * lib/stdlib.in.h (strtoull): New declaration.
56275         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56276         Set HAVE_STRTOULL.
56277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56278         HAVE_STRTOULL.
56279         * modules/strtoull (Depends-on): Add stdlib.
56280         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56281         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56282         HAVE_STRTOULL.
56283
56284 2008-10-19  Bruno Haible  <bruno@clisp.org>
56285
56286         Add strtoll() declaration to <stdlib.h>.
56287         * lib/stdlib.in.h (strtoll): New declaration.
56288         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56289         Set HAVE_STRTOLL.
56290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56291         HAVE_STRTOLL.
56292         * modules/strtoll (Depends-on): Add stdlib.
56293         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56294         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56295
56296 2008-10-19  Bruno Haible  <bruno@clisp.org>
56297
56298         * modules/bcopy (Depends-on): Add strings.
56299         (Include): Specify <strings.h>.
56300
56301 2008-10-19  Bruno Haible  <bruno@clisp.org>
56302
56303         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56304
56305 2008-10-19  Bruno Haible  <bruno@clisp.org>
56306
56307         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56308         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56309         mingw.
56310
56311 2008-10-19  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/atanl.c: Don't include isnanl.h.
56314         * lib/cosl.c: Likewise.
56315         * lib/ldexpl.c: Likewise.
56316         * lib/logl.c: Likewise.
56317         * lib/sinl.c: Likewise.
56318         * lib/sqrtl.c: Likewise.
56319         * lib/tanl.c: Likewise.
56320
56321         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56322         * lib/isnanf.h: Remove file.
56323         * lib/isnand.h: Remove file.
56324         * lib/isnanl.h: Remove file.
56325         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56326         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56327         macros.
56328         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56329         HAVE_ISNANF, don't define it as a C macro.
56330         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56331         HAVE_ISNAND, don't define it as a C macro.
56332         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56333         HAVE_ISNANL, don't define it as a C macro.
56334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56335         HAVE_ISNAN[FDL].
56336         * modules/isnanf (Files): Remove lib/isnanf.h.
56337         (Depends-on): Add math.
56338         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56339         (Include): Specify <math.h> instead of isnanf.h.
56340         * modules/isnand (Files): Remove lib/isnand.h.
56341         (Depends-on): Add math.
56342         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56343         (Include): Specify <math.h> instead of isnand.h.
56344         * modules/isnanl (Files): Remove lib/isnanl.h.
56345         (Depends-on): Add math.
56346         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56347         (Include): Specify <math.h> instead of isnanl.h.
56348         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56349         HAVE_ISNAN[FDL].
56350         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56351         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56352         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56353         * NEWS: Mention the change.
56354
56355 2008-10-18  Bruno Haible  <bruno@clisp.org>
56356
56357         Add getusershell(), setusershell(), endusershell() declarations to
56358         <unistd.h>.
56359         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56360         declarations.
56361         * lib/getusershell.c: Include unistd.h.
56362         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56363         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56364         HAVE_GETUSERSHELL.
56365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56366         and HAVE_GETUSERSHELL.
56367         * modules/getusershell (Depends-on): Add unistd, extensions.
56368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56369         (Include): Specify <unistd.h>.
56370         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56371         HAVE_GETUSERSHELL.
56372
56373 2008-10-18  Bruno Haible  <bruno@clisp.org>
56374
56375         Add a getloadavg() declaration to <stdlib.h>.
56376         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56377         getloadavg declaration.
56378         (getloadavg): New declaration.
56379         * lib/getloadavg.c: Include <stdlib.h> first.
56380         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56381         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56382         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56384         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56385         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56387         (Include): Specify <stdlib.h>.
56388         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56389         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56390
56391 2008-10-18  Bruno Haible  <bruno@clisp.org>
56392
56393         * lib/dirchownmod.c: Don't include lchmod.h.
56394
56395         Move the lchmod() declaration to <sys/stat.h>.
56396         * lib/lchmod.h: Remove file.
56397         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56398         (lchmod): New declaration, moved here from lib/lchown.h.
56399         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56400         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56402         and HAVE_LCHMOD.
56403         * modules/lchmod (Files): Remove lib/lchmod.h.
56404         (Depends-on): Add sys_stat, extensions.
56405         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56406         (Include): Specify <sys/stat.h> instead of lchmod.h.
56407         * modules/sys_stat (Depends-on): Add link-warning.
56408         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56409         definition of GL_LINK_WARNING.
56410         * NEWS: Mention the change.
56411
56412 2008-10-18  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/fchdir.c: Don't include dirfd.h.
56415         * lib/fts.c: Likewise.
56416         * lib/getcwd.c: Likewise.
56417         * lib/glob.c: Likewise.
56418
56419         Move the dirfd() declaration to <dirent.h>.
56420         * lib/dirfd.h: Remove file.
56421         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56422         (dirfd): New declaration.
56423         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56424         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56425         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56426         HAVE_DECL_DIRFD.
56427         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56428         HAVE_DECL_DIRFD.
56429         * modules/dirfd (Files): Remove lib/dirfd.h.
56430         (Depends-on): Add dirent, extensions.
56431         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56432         (Include): Specify <dirent.h> instead of dirfd.h.
56433         * modules/dirent (Depends-on): Add link-warning.
56434         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56435         definition of GL_LINK_WARNING.
56436         * NEWS: Mention the change.
56437
56438 2008-10-18  Bruno Haible  <bruno@clisp.org>
56439
56440         Move the euidaccess() declaration to <unistd.h>.
56441         * lib/euidaccess.h: Remove file.
56442         * lib/unistd.in.h (euidaccess): New declaration.
56443         * lib/euidaccess.c: Don't include euidaccess.h.
56444         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56445         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56447         and HAVE_EUIDACCESS.
56448         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56449         (Depends-on): Add unistd.
56450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56451         (Include): Specify <unistd.h> instead of euidaccess.h.
56452         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56453         HAVE_EUIDACCESS.
56454         * NEWS: Mention the change.
56455
56456 2008-10-18  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56459
56460         Move the getdomainname() declaration to <unistd.h>.
56461         * lib/getdomainname.h: Remove file.
56462         * lib/unistd.in.h (getdomainname): New declaration.
56463         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56464         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56465         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56466         HAVE_GETDOMAINNAME.
56467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56468         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56469         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56470         (Depends-on): Add unistd, extensions.
56471         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56472         (Includes): Specify <unistd.h> instead of getdomainname.h.
56473         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56474         HAVE_GETDOMAINNAME.
56475         * NEWS: Mention the change.
56476
56477 2008-10-18  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/dirent: New file.
56480         * m4/dirent_h.m4: New file.
56481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56482         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56483         * modules/fchdir (Files): Remove lib/dirent.in.h.
56484         (Depends-on): Add dirent.
56485         (Makefile.am): Move rules to modules/dirent.
56486         * doc/posix-headers/dirent.texi: Mention the new module.
56487
56488 2008-10-18  Bruno Haible  <bruno@clisp.org>
56489
56490         Avoid -Wunused-parameter warnings in public gnulib header files.
56491         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56492         macro.
56493         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56494
56495 2008-10-18  Bruno Haible  <bruno@clisp.org>
56496
56497         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56498         * doc/glibc-functions/error.texi: Mention the module 'error'.
56499         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56500         * doc/glibc-functions/getdomainname.texi: Mention the module
56501         'getdomainname'.
56502         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56503         * doc/glibc-functions/getpagesize.texi: Mention the module
56504         'getpagesize'.
56505         * doc/glibc-functions/getusershell.texi: Mention the module
56506         'getusershell'.
56507         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56508         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56509         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56510         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56511         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56512         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56513         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56514         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56515         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56516         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56517         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56518         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56519         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56520         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56521
56522 2008-10-17  Bruno Haible  <bruno@clisp.org>
56523
56524         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56525         HP-UX and IRIX, use -0.0L.
56526         * tests/test-ceill.c (minus_zero): Likewise.
56527         * tests/test-floorl.c (minus_zero): Likewise.
56528         * tests/test-frexpl.c (minus_zero): Likewise.
56529         * tests/test-isnan.c (minus_zerol): Likewise.
56530         * tests/test-isnanl.h (minus_zero): Likewise.
56531         * tests/test-ldexpl.c (minus_zero): Likewise.
56532         * tests/test-roundl.c (minus_zero): Likewise.
56533         * tests/test-signbit.c (minus_zerol): Likewise.
56534         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56535         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56536         * tests/test-truncl.c (minus_zero): Likewise.
56537         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56538         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56539         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56540         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56541
56542 2008-10-17  Bruno Haible  <bruno@clisp.org>
56543
56544         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56545         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56546         that it gets activated only for gcc >= 3.0.
56547         * lib/dirent.in.h: Likewise.
56548         * lib/errno.in.h: Likewise.
56549         * lib/fcntl.in.h: Likewise.
56550         * lib/float.in.h: Likewise.
56551         * lib/iconv.in.h: Likewise.
56552         * lib/inttypes.in.h: Likewise.
56553         * lib/locale.in.h: Likewise.
56554         * lib/math.in.h: Likewise.
56555         * lib/netdb.in.h: Likewise.
56556         * lib/netinet_in.in.h: Likewise.
56557         * lib/search.in.h: Likewise.
56558         * lib/signal.in.h: Likewise.
56559         * lib/spawn.in.h: Likewise.
56560         * lib/stdarg.in.h: Likewise.
56561         * lib/stdint.in.h: Likewise.
56562         * lib/stdio.in.h: Likewise.
56563         * lib/stdlib.in.h: Likewise.
56564         * lib/string.in.h: Likewise.
56565         * lib/strings.in.h: Likewise.
56566         * lib/sys_file.in.h: Likewise.
56567         * lib/sys_ioctl.in.h: Likewise.
56568         * lib/sys_select.in.h: Likewise.
56569         * lib/sys_socket.in.h: Likewise.
56570         * lib/sys_stat.in.h: Likewise.
56571         * lib/sys_time.in.h: Likewise.
56572         * lib/sysexits.in.h: Likewise.
56573         * lib/time.in.h: Likewise.
56574         * lib/unistd.in.h: Likewise.
56575         * lib/wchar.in.h: Likewise.
56576         * lib/wctype.in.h: Likewise.
56577         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56578
56579 2008-10-17  Jim Meyering  <meyering@redhat.com>
56580
56581         ignore-value: don't depend on inline module
56582         * modules/ignore-value (Depends-on): Remove 'inline'.
56583         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56584         Suggestion from Bruno Haible.
56585
56586 2008-10-17  Bruno Haible  <bruno@clisp.org>
56587
56588         New implementation of condition variables for Win32.
56589         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56590         (gl_linked_waitqueue_t): New type.
56591         (gl_cond_t): Use it.
56592         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56593         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56594         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56595         (glthread_cond_init_func, glthread_cond_wait_func,
56596         glthread_cond_timedwait_func, glthread_cond_signal_func,
56597         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56598         Reimplemented on the basis of gl_linked_waitqueue_t.
56599         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56600         gl_waitqueue_t.
56601         (gl_rwlock_t): Update.
56602         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56603
56604 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56605
56606         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56607         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56608
56609 2008-10-17  Jim Meyering  <meyering@redhat.com>
56610
56611         ignore-value: new module
56612         * modules/ignore-value: New file.
56613         * lib/ignore-value.h: New file.
56614         * MODULES.html.sh (Compiler warning management): New section,
56615         just for this module.  More to come.
56616
56617 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56618
56619         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56620         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56621         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56622
56623 2008-10-16  Jim Meyering  <meyering@redhat.com>
56624
56625         openat-die.c: avoid 'no previous prototype' warning
56626         * lib/openat-die.c: Include "openat.h".
56627         Reported by Reuben Thomas <rrt@sc3d.org>.
56628
56629 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56630
56631         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56632         * lib/netdb.in.h: Fix typo.
56633         Reported by Bruno Haible  <bruno@clisp.org>
56634
56635         * lib/netdb.in.h: Include sys/socket.h for platforms without
56636         netdb.h, to get structures like hostent on MinGW.
56637         * modules/netdb (Depends-on): Add sys_socket.
56638
56639 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56640
56641         * modules/netdb, modules/netdb-tests: New file.
56642         * m4/netdb_h.m4: New file.
56643         * lib/netdb.in.h: Add, currently just an empty file pending
56644         definitions.
56645         * tests/test-netdb.c: New file.
56646         * doc/posix-headers/netdb.texi: Mention that we replace it if
56647         needed.
56648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56649         netdb.
56650
56651 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56652
56653         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56654         with code.
56655
56656 2008-10-13  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/glthread/cond.c (glthread_cond_wait_func,
56659         glthread_cond_timedwait_func): Add a comment.
56660
56661 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56662
56663         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56664         * tests/test-select.c: Likewise,
56665
56666 2008-10-13  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/glthread/cond.c (glthread_cond_wait_func,
56669         glthread_cond_timedwait_func): Fix variable name.
56670         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56671
56672 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56673
56674         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56675         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56676         struct sockaddr.sa_len.
56677         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56678
56679 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56680
56681         * build-aux/pmccabe2html: Add css and css_url parameters.
56682
56683 2008-10-12  Bruno Haible  <bruno@clisp.org>
56684
56685         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56686         calling aclx_get.
56687         Reported by Rainer Tammer <tammer@tammer.net>.
56688
56689 2008-10-12  Bruno Haible  <bruno@clisp.org>
56690
56691         Use msvcrt aware primitives for creation/termination of Win32 threads.
56692         * lib/glthread/thread.c: Include <process.h>.
56693         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56694         (wrapper_func): Update signature.
56695         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56696
56697 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56698             Bruno Haible  <bruno@clisp.org>
56699
56700         Provide a Win32 implementation of the 'cond' module.
56701         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56702         * lib/glthread/cond.c (glthread_cond_init_func,
56703         glthread_cond_wait_func, glthread_cond_timedwait_func,
56704         glthread_cond_signal_func, glthread_cond_broadcast_func,
56705         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56706         * modules/cond (Dependencies): Add gettimeofday.
56707
56708 2008-10-11  Bruno Haible  <bruno@clisp.org>
56709
56710         Make sleep work on older versions of mingw.
56711         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56712         only whether it exists.
56713         * doc/posix-functions/sleep.texi: Mention the problem with older
56714         versions of mingw.
56715
56716 2008-10-11  Bruno Haible  <bruno@clisp.org>
56717
56718         New module 'shutdown'.
56719         * modules/shutdown: New file.
56720         * lib/sys_socket.in.h (shutdown): New declaration.
56721         * lib/winsock.c (shutdown): New function.
56722         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56723         GNULIB_SHUTDOWN.
56724         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56725         * doc/posix-functions/shutdown.texi: Document the new module.
56726
56727 2008-10-11  Jim Meyering  <meyering@redhat.com>
56728
56729         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56730
56731 2008-10-11  Bruno Haible  <bruno@clisp.org>
56732
56733         New module 'fclose'.
56734         * modules/fclose: New file.
56735         * lib/stdio.in.h (fclose): New declaration.
56736         * lib/fclose.c: New file.
56737         * m4/fclose.m4: New file.
56738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56739         REPLACE_FCLOSE.
56740         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56741         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56742         REPLACE_FCLOSE.
56743         * modules/close (Depends-on): fclose.
56744         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56745
56746 2008-10-11  Bruno Haible  <bruno@clisp.org>
56747
56748         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56749         set errno and don't call _close.
56750
56751 2008-10-10  Bruno Haible  <bruno@clisp.org>
56752
56753         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56754         ACL, not afterwards. Fixes test failure on Cygwin.
56755
56756 2008-10-09  Ben Pfaff  <blp@gnu.org>
56757
56758         * build-aux/announce-gen: Fix gnulib version related part of usage
56759         message.  Die with a useful error message if no tarballs are
56760         found.
56761
56762 2008-10-10  Jim Meyering  <meyering@redhat.com>
56763
56764         bootstrap: use git's --depth=N option only if it's supported
56765         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56766         recognize the --depth option.  Reported by Pádraig Brady.
56767
56768 2008-10-09  Bruno Haible  <bruno@clisp.org>
56769
56770         New module 'ioctl'.
56771         * modules/ioctl: New file.
56772         * lib/sys_socket.in.h (ioctl): Remove declaration.
56773         * lib/winsock.c: Include <sys/ioctl.h>.
56774         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56775         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56776         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56777         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56778         * doc/posix-functions/ioctl.texi: Mention the new module.
56779
56780 2008-10-09  Bruno Haible  <bruno@clisp.org>
56781
56782         New module 'sys_ioctl'.
56783         * lib/sys_ioctl.in.h: New file.
56784         * m4/sys_ioctl_h.m4: New file.
56785         * modules/sys_ioctl: New file.
56786         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56787
56788 2008-10-09  Bruno Haible  <bruno@clisp.org>
56789
56790         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56791         * lib/winsock.c: Include <stdarg.h>.
56792         (rpl_ioctl): Change to second argument 'int' and then varargs.
56793
56794 2008-10-09  Bruno Haible  <bruno@clisp.org>
56795
56796         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56797         when the sys_socket module is present and the system has <winsock2.h>.
56798
56799 2008-10-09  Bruno Haible  <bruno@clisp.org>
56800
56801         * doc/posix-functions/close.texi: Mention module 'close' instead of
56802         module 'sys_socket'.
56803
56804 2008-10-09  Bruno Haible  <bruno@clisp.org>
56805
56806         * doc/glibc-headers/sys_ioctl.texi: New file.
56807         * doc/gnulib.texi: Include it.
56808
56809 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56810             Bruno Haible  <bruno@clisp.org>
56811
56812         Combine the two replacements of 'close'.
56813         * lib/sys_socket.in.h (close): Define to a reminder to include
56814         <unistd.h>.
56815         (_gl_close_fd_maybe_socket): New declaration.
56816         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56817         * lib/winsock.c (close): Remove undefinition.
56818         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56819         needed for the gnulib module 'close'.
56820         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56821         define to an error symbol or to a warning, if suitable.
56822         * lib/close.c: Include <sys/socket.h>.
56823         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56824         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56825         UNISTD_H_HAVE_WINSOCK2_H.
56826         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56828         UNISTD_H_HAVE_WINSOCK2_H.
56829         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56830         (configure.ac): Set a module indicator.
56831         (Makefile.am): Substitute GNULIB_CLOSE.
56832         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56833         * modules/poll-tests (Depends-on): Add close.
56834         * modules/select-tests (Depends-on): Likewise.
56835
56836 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56837             Bruno Haible  <bruno@clisp.org>
56838
56839         New module 'close'.
56840         * modules/close: New file.
56841         * lib/unistd.in.h (close): Move declaration out of the
56842         FCHDIR_REPLACEMENT scope.
56843         (_gl_unregister_fd): New declaration.
56844         * lib/close.c: New file.
56845         * lib/fchdir.c (rpl_close): Remove function.
56846         * m4/close.m4: New file.
56847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56848         close.
56849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56850         REPLACE_CLOSE.
56851         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56852         REPLACE_CLOSE.
56853         * modules/fchdir (Depends-on): Add close.
56854
56855 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56856             Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/fcntl.in.h (open): Simplify conditionals.
56859         (_gl_register_fd): New declaration.
56860         * lib/fchdir.c (rpl_open): Remove function.
56861         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56862         also.
56863         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56865         open.
56866
56867 2008-10-09  Jim Meyering  <meyering@redhat.com>
56868
56869         GNUmakefile: use the more name-space-friendly "_version"
56870         * top/GNUmakefile (_dummy): Update.
56871         (_version): Rename from "version".
56872
56873 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56874             Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56877         rpl_close.
56878         (_gl_register_fd): New function, extracted from rpl_open.
56879         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56880         (rpl_open, rpl_opendir): Use _gl_register_fd.
56881
56882 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56883
56884         Fix organization of 'open' replacement.
56885         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56886         (gl_FUNC_OPEN): Use it.
56887         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56888
56889 2008-10-08  Bruno Haible  <bruno@clisp.org>
56890
56891         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56892
56893 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56894
56895         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56896         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56897         listen).
56898
56899 2008-10-08  Eric Blake  <ebb9@byu.net>
56900
56901         GNUmakefile: add 'make version' target
56902         * top/GNUmakefile (_curr-ver): Split version update rules...
56903         (version): ...into a target.
56904
56905 2008-10-07  Bruno Haible  <bruno@clisp.org>
56906
56907         Use a more portable replacement expression for -0.0L.
56908         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56909         instead of -0.0L. Fix m4 quotation.
56910
56911         * tests/test-signbit.c: Include <float.h>.
56912         (minus_zero): New variable.
56913         (test_signbitl): Use minus_zero instead of -zero.
56914         * modules/signbit-tests (Depends-on): Add float.
56915
56916         * tests/test-ceill.c: Include <float.h>.
56917         (zero): Remove variable.
56918         (minus_zero): New variable.
56919         (main): Use minus_zero instead of -zero.
56920         * modules/ceill-tests (Depends-on): Add float.
56921
56922         * tests/test-floorl.c: Include <float.h>.
56923         (zero): Remove variable.
56924         (minus_zero): New variable.
56925         (main): Use minus_zero instead of -zero.
56926         * modules/floorl-tests (Depends-on): Add float.
56927
56928         * tests/test-roundl.c: Include <float.h>.
56929         (zero): Remove variable.
56930         (minus_zero): New variable.
56931         (main): Use minus_zero instead of -zero.
56932         * modules/roundl-tests (Depends-on): Add float.
56933
56934         * tests/test-truncl.c: Include <float.h>.
56935         (zero): Remove variable.
56936         (minus_zero): New variable.
56937         (main): Use minus_zero instead of -zero.
56938         * modules/truncl-tests (Depends-on): Add float.
56939
56940         * tests/test-frexpl.c (zero): Remove variable.
56941         (minus_zero): New variable.
56942         (main): Use minus_zero instead of -zero.
56943         * modules/frexpl-tests (Depends-on): Add float.
56944
56945         * tests/test-isnan.c (zerol): Remove variable.
56946         (minus_zerol): New variable.
56947         (test_long_double): Use minus_zerol instead of -zerol.
56948         * modules/isnan-tests (Depends-on): Add float.
56949
56950         * tests/test-isnanl.h (zero): Remove variable.
56951         (minus_zero): New variable.
56952         (main): Use minus_zero instead of -zero.
56953         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56954         * modules/isnanl-tests (Depends-on): Add float.
56955
56956         * tests/test-ldexpl.c (zero): Remove variable.
56957         (minus_zero): New variable.
56958         (main): Use minus_zero instead of -zero.
56959         * modules/ldexpl-tests (Depends-on): Add float.
56960
56961         * tests/test-snprintf-posix.h (zerol): Remove variable.
56962         (minus_zerol): New variable.
56963         (test_function): Use minus_zerol instead of -zerol.
56964         * modules/snprintf-posix-tests (Depends-on): Add float.
56965         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56966
56967         * tests/test-sprintf-posix.h (zerol): Remove variable.
56968         (minus_zerol): New variable.
56969         (test_function): Use minus_zerol instead of -zerol.
56970         * modules/sprintf-posix-tests (Depends-on): Add float.
56971         * modules/vsprintf-posix-tests (Depends-on): Add float.
56972
56973         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56974         (minus_zerol): New variable.
56975         (test_function): Use minus_zerol instead of -zerol.
56976         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56977
56978         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56979         (minus_zerol): New variable.
56980         (test_function): Use minus_zerol instead of -zerol.
56981         * modules/vasprintf-posix-tests (Depends-on): Add float.
56982
56983 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56984
56985         * MODULES.html.sh (Support for building documentation): Mention
56986         pmccabe2html.  Sort entries.
56987
56988         Add pmccabe2html module, from gnupdf.
56989         * build-aux/pmccabe.css: New file.
56990         * build-aux/pmccabe2html: New file.
56991         * m4/pmccabe2html.m4: New file.
56992         * modules/pmccabe2html: New file.
56993
56994 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56995
56996         flock: new module
56997         * MODULES.html.sh: Add to list of modules.
56998         * lib/flock.c: flock implementation for Windows and Unix systems
56999         which have fcntl.
57000         * doc/glibc-functions/flock.texi: Update documentation.
57001         * lib/sys_file.in.h: <sys/file.h> header file.
57002         * m4/flock.m4: M4 macros.
57003         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57004         * modules/flock: flock module.
57005         * modules/flock-tests: flock tests module.
57006         * modules/sys_file: sys/file.h module.
57007         * tests/test-flock.c: test suite for flock.
57008
57009 2008-10-06  Jim Meyering  <meyering@redhat.com>
57010
57011         bootstrap: check for LT_INIT more portably still ;-)
57012         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57013         Spotted by Bruno Haible.
57014
57015 2008-10-06  Eric Blake  <ebb9@byu.net>
57016
57017         test-signbit: avoid tripping Irix cc bug on -0.0L
57018         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57019         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57020         entire testsuite consistent and avoids an Irix 6.2 bug.
57021
57022 2008-10-05  Bruno Haible  <bruno@clisp.org>
57023             Jim Meyering  <jim@meyering.net>
57024
57025         Add an option for ignoring EPIPE during close_stdout.
57026         * lib/closeout.h: Include <stdbool.h>.
57027         (close_stdout_set_ignore_EPIPE): New declaration.
57028         * lib/closeout.c: Include <stdbool.h>.
57029         (ignore_EPIPE): New variable.
57030         (close_stdout_set_ignore_EPIPE): New function.
57031         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57032         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57033         failure.
57034         * modules/closeout (Depends-on): Add stdbool.
57035
57036 2008-10-05  Bruno Haible  <bruno@clisp.org>
57037
57038         * modules/accept: New file.
57039         * modules/bind: New file.
57040         * modules/connect: New file.
57041         * modules/getpeername: New file.
57042         * modules/getsockname: New file.
57043         * modules/getsockopt: New file.
57044         * modules/listen: New file.
57045         * modules/recv: New file.
57046         * modules/recvfrom: New file.
57047         * modules/send: New file.
57048         * modules/sendto: New file.
57049         * modules/setsockopt: New file.
57050         * modules/socket: New file.
57051         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57052         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57053         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57054         the particular module is requested. Add a link warning when the
57055         particular module is not requested.
57056         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57057         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57058         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57059         the particular module is requested.
57060         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57061         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57062         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57063         * modules/sys_socket (Depends-on): Add link-warning.
57064         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57065         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57066         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57067         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57068         GL_LINK_WARNING.
57069         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57070         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57071         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57072         * doc/posix-functions/getpeername.texi: Mention the new module
57073         'getpeername'.
57074         * doc/posix-functions/getsockname.texi: Mention the new module
57075         'getsockname'.
57076         * doc/posix-functions/getsockopt.texi: Mention the new module
57077         'getsockopt'.
57078         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57079         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57080         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57081         * doc/posix-functions/send.texi: Mention the new module 'send'.
57082         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57083         * doc/posix-functions/setsockopt.texi: Mention the new module
57084         'setsockopt'.
57085         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57086         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57087         listen, connect, accept.
57088         * modules/select-tests (Depends-on): Likewise.
57089
57090 2008-10-05  Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/winsock.c (strerror): Remove unused #undef.
57093         (rpl_close): Remove unused local variable.
57094
57095         * modules/sys_socket (Depends-on); Add errno.
57096
57097 2008-10-05  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57100         (select): Add a link warning when the 'select' module is not used.
57101         * modules/sys_select (Depends-on): Add link-warning.
57102         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57103         Suggested by Paolo Bonzini.
57104
57105 2008-10-05  Jim Meyering  <meyering@redhat.com>
57106
57107         bootstrap: check for LT_INIT more portably
57108         * build-aux/bootstrap: Avoid using grep -E, since it's not
57109         portable enough.  Suggestion from Bruno Haible.
57110
57111 2008-10-05  Bruno Haible  <bruno@clisp.org>
57112
57113         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57114         as being fixed by gnulib.
57115
57116 2008-10-05  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/select-tests: New file, mostly copied from
57119         modules/sys_select-tests.
57120         * tests/test-select.c: New file, mostly copied from
57121         tests/test-sys_select.c.
57122         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57123         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57124         (Makefile.am): Remove test_sys_select_LDADD.
57125
57126         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57127         to an undefined symbol, for an error message.
57128         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57129         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57130         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57131         winsock-select.c here.
57132         * modules/sys_select (Files): Remove lib/winsock-select.c.
57133         (Depends-on): Remove alloca.
57134         (Makefile.am): Substitute GNULIB_SELECT.
57135         * modules/select: New file.
57136         * doc/posix-functions/select.texi: Update.
57137
57138 2008-10-05  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57141         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57142         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57143         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57144         getdtablesize.
57145         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57146         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57147
57148 2008-10-05  Bruno Haible  <bruno@clisp.org>
57149
57150         * modules/getdtablesize-tests: New file.
57151         * tests/test-getdtablesize.c: New file.
57152
57153         New module 'getdtablesize'.
57154         * lib/unistd.in.h (getdtablesize): New declaration.
57155         * lib/getdtablesize.c: New file.
57156         * m4/getdtablesize.m4: New file.
57157         * modules/getdtablesize: New file.
57158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57159         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57160         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57161         HAVE_GETDTABLESIZE.
57162         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57163
57164 2008-10-05  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/sched (Makefile.am): Fix typo.
57167         Reported by Simon Josefsson.
57168
57169 2008-10-05  Jim Meyering  <meyering@redhat.com>
57170
57171         bootstrap: check for LT_INIT, too
57172         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57173         are deprecated.  Suggestion from Ralf Wildenhues.
57174
57175 2008-10-05  Bruno Haible  <bruno@clisp.org>
57176
57177         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57178         overriding them by ours.
57179         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57180
57181 2008-10-05  Jim Meyering  <meyering@redhat.com>
57182
57183         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57184         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57185         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57186
57187 2008-10-04  Bruno Haible  <bruno@clisp.org>
57188
57189         * modules/dup2 (License): Change to LGPLv2+.
57190         * modules/sleep (License): Likewise.
57191         * modules/perror (License): Likewise.
57192         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57193         Blake.
57194         * modules/signal (License): Likewise.
57195         * modules/sigprocmask (License): Likewise.
57196         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57197         Meyering.
57198
57199 2008-10-04  Bruno Haible  <bruno@clisp.org>
57200
57201         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57202         Reported by Rainer Tammer <tammer@tammer.net>.
57203
57204 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57205             Bruno Haible  <bruno@clisp.org>
57206
57207         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57208         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57209         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57210
57211 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57212
57213         filevercmp: new module
57214         * lib/filevercmp.h: New function filevercmp comparing version strings.
57215         * lib/filevercmp.c: Implementation of filevercmp function.
57216         * modules/filevercmp: Module metadata.
57217         * tests/test-filevercmp.c: Unit test for new module.
57218         * modules/filevercmp-tests: Unit test metadata.
57219         * MODULES.html.sh: Add filevercmp module.
57220
57221 2008-10-03  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/c-ctype.h: Add comment.
57224         Reported by Jim Meyering.
57225
57226 2008-10-02  Bruno Haible  <bruno@clisp.org>
57227
57228         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57229
57230 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57231
57232         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57233         name of bootstrap.conf accordingly.
57234
57235 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57236
57237         * build-aux/bootstrap: Install git-merge-changelog configuration
57238         items into .gitconfig if needed.
57239
57240 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57241
57242         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57243         git repository, and initialize/update it accordingly.
57244
57245 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57246
57247         * modules/fsync-tests: New file.
57248         * tests/test-fsync.c: New file.
57249
57250         New module 'fsync'.
57251         * lib/fsync.c: New file.
57252         * m4/fsync.m4: New file.
57253         * modules/fsync: New file.
57254         * lib/unistd.in.h (fsync): New declaration.
57255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57256         GNULIB_FSYNC and HAVE_FSYNC.
57257         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57258         * MODULES.html.sh (posix_functions): Add fsync.
57259         * doc/posix-functions/fsync.texi: Mention the new module.
57260
57261 2008-10-02  Jim Meyering  <meyering@redhat.com>
57262
57263         fts.c: sync with similar code from coreutils' remove.c
57264         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57265         Guard also with "#if defined __linux__", since for now at least,
57266         this code is Linux-kernel-specific.
57267
57268 2008-10-02  Jim Meyering  <meyering@redhat.com>
57269
57270         fts: bug fixes
57271         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57272         Include <sys/vfs.h>, not <sys/statfs.h>.
57273
57274         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57275         Include <sys/vfs.h>, not <sys/statfs.h>.
57276
57277 2008-10-01  Bruno Haible  <bruno@clisp.org>
57278
57279         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57281         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57282         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57283         * doc/posix-functions/posix_spawnp.texi: Likewise.
57284         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57285         whether posix_spawn actually works.
57286         * m4/pipe.m4 (gl_PIPE): Likewise.
57287         * modules/execute (Files): Add m4/posix_spawn.m4.
57288         * modules/pipe (Files): Add m4/posix_spawn.m4.
57289         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57290
57291 2008-10-01  Jim Meyering  <meyering@redhat.com>
57292
57293         remove trailing spaces
57294         * NEWS: Likewise.
57295         * lib/poll.c (poll): Likewise.
57296         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57297         * lib/winsock.c (rpl_close): Likewise.
57298         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57299         * modules/yield: Likewise.
57300         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57301         * tests/test-sys_select.c (connect_to_socket): Likewise.
57302
57303         fts.c: adjust a new interface to be more generally useful
57304         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57305         (fts_build): Adjust caller.
57306
57307 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57308
57309         * modules/cond-tests: New file.
57310         * tests/test-cond.c: New file.
57311
57312 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57313             Bruno Haible  <bruno@clisp.org>
57314
57315         * modules/cond (Dependencies): Add errno, time.
57316         * lib/glthread/cond.h: Include <time.h>.
57317         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57318         across platforms.
57319
57320 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57321             Bruno Haible  <bruno@clisp.org>
57322
57323         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57324
57325 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57326             Bruno Haible  <bruno@clisp.org>
57327
57328         * modules/tls-tests (Depends-on): Add thread, yield.
57329         (configure.ac): Remove all checks.
57330         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57331         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57332         gl_thread_self): Remove definitions. Include glthread/thread.h and
57333         glthread/yield.h instead.
57334         (test_tls): Pass an additional NULL argument to gl_thread_join.
57335
57336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57337             Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/lock-tests (Depends-on): Add thread, yield.
57340         (configure.ac): Remove all checks.
57341         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57342         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57343         gl_thread_self): Remove definitions. Include glthread/thread.h and
57344         glthread/yield.h instead.
57345         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57346         additional NULL argument to gl_thread_join.
57347
57348 2008-09-30  Bruno Haible  <bruno@clisp.org>
57349
57350         Fix the Win32 implementation of the 'thread' module.
57351         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57352         pointer type.
57353         (gl_thread_self): Invoke gl_thread_self_func.
57354         (gl_thread_self_func): New declaration.
57355         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57356         (do_init_self_key, init_self_key): New functions.
57357         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57358         Remove some fields.
57359         (running_threads, running_lock): Remove variables.
57360         (get_current_thread_handle): New function.
57361         (gl_thread_self_func, wrapper_func, glthread_create_func,
57362         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57363         simplified.
57364
57365 2008-09-30  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57368         files.
57369
57370 2008-09-30  Jim Meyering  <meyering@redhat.com>
57371
57372         fts.m4: correct the test for statfs.f_type
57373         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57374         when checking for statfs.f_type.
57375
57376 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57377
57378         tests: avoid some compiler warnings
57379         * tests/test-memchr.c (main): Pass NULL indirectly.
57380         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57381
57382 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57383
57384         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57385         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57386         exactly specified dayshifts.
57387         (dayshift): New rule.
57388         (rel): Add dayshift.
57389         (relative_time_table) [tomorrow, yesterday, today, now]:
57390         Use tDAY_SHIFT in place of tDAY_UNIT.
57391         * tests/test-getdate.c: Add tests for now-disallowed countable
57392         dayshifts, e.g., "4 yesterday ago".
57393
57394 2008-09-29  Bruno Haible  <bruno@clisp.org>
57395
57396         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57397         * tests/test-posix_spawn1.in.sh: Renamed from
57398         tests/test-posix_spawn.in.sh.
57399         * tests/test-posix_spawn2.c: New file.
57400         * tests/test-posix_spawn2.in.sh: New file.
57401         * modules/posix_spawnp-tests (Files): Update.
57402         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57403
57404 2008-09-29  Bruno Haible  <bruno@clisp.org>
57405
57406         Propagate effects of putenv/setenv/unsetenv to child processes.
57407         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57408         * lib/pipe.c (create_pipe): Likewise.
57409
57410 2008-09-29  Bruno Haible  <bruno@clisp.org>
57411
57412         Enable use of shell scripts as executables in mingw.
57413         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57414         run the program as a shell script.
57415         * lib/pipe.c (create_pipe): Likewise.
57416         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57417         resulting array.
57418
57419 2008-09-29  Eric Blake  <ebb9@byu.net>
57420
57421         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57422
57423 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57424
57425         * doc/posix-functions/accept.texi: Update mingw problems.
57426         * doc/posix-functions/bind.texi: Update mingw problems.
57427         * doc/posix-functions/close.texi: Update mingw problems.
57428         * doc/posix-functions/connect.texi: Update mingw problems.
57429         * doc/posix-functions/getpeername.texi: Update mingw problems.
57430         * doc/posix-functions/getsockname.texi: Update mingw problems.
57431         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57432         * doc/posix-functions/ioctl.texi: Update mingw problems.
57433         * doc/posix-functions/listen.texi: Update mingw problems.
57434         * doc/posix-functions/recv.texi: Update mingw problems.
57435         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57436         * doc/posix-functions/select.texi: Update mingw problems.
57437         * doc/posix-functions/send.texi: Update mingw problems.
57438         * doc/posix-functions/sendto.texi: Update mingw problems.
57439         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57440         * doc/posix-functions/socket.texi: Update mingw problems.
57441
57442 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57443             Bruno Haible  <bruno@clisp.org>
57444
57445         * lib/sys_select.in.h: Include sys/time.h.
57446         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57447         * modules/sys_select: Depend on sys_time.
57448         * tests/test-sys_select.c: Test that sys/select.h defines struct
57449         timeval fully.
57450
57451 2008-09-29  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57454         * lib/sys_select.in.h: Likewise.
57455
57456 2008-09-29  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57459
57460 2008-09-29  Bruno Haible  <bruno@clisp.org>
57461
57462         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57463         Set LIBSOCKET instead of augmenting LIBS.
57464         * modules/sockets (Link): New section.
57465         * modules/sockets-tests (test_sockets_LDADD): New variable.
57466         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57467         * modules/poll-tests (test_poll_LDADD): New variable.
57468         * NEWS: Document the change.
57469
57470 2008-09-29  Bruno Haible  <bruno@clisp.org>
57471
57472         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57473         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57474         ARPA_INET_H directly.
57475         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57476
57477 2008-09-28  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57480         from gl_HEADER_SYS_SOCKET.
57481         (gl_HEADER_SYS_SOCKET): Invoke it.
57482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57483
57484 2008-09-28  Bruno Haible  <bruno@clisp.org>
57485
57486         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57487         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57488         Needed on OSF/1 4.0.
57489
57490 2008-09-28  Bruno Haible  <bruno@clisp.org>
57491
57492         Override open more carefully.
57493         * lib/open.c (orig_open): New function.
57494         (rpl_open): Use orig_open instead of open.
57495         * lib/fcntl.in.h: Add special invocation convention.
57496         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57497         (gl_FUNC_OPEN): Invoke it.
57498
57499         Override freopen more carefully.
57500         * lib/freopen.c (orig_freopen): New function.
57501         (rpl_freopen): Use orig_freopen instead of freopen.
57502         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57503         (gl_FUNC_FREOPEN): Invoke it.
57504
57505         Override fopen more carefully.
57506         * lib/fopen.c (orig_fopen): New function.
57507         (rpl_fopen): Use orig_fopen instead of fopen.
57508         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57509         (gl_FUNC_FOPEN): Invoke it.
57510         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57511
57512 2008-09-28  Bruno Haible  <bruno@clisp.org>
57513
57514         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57515         SIGPIPE.
57516
57517 2008-09-28  Bruno Haible  <bruno@clisp.org>
57518
57519         * tests/test-sigaction.c (handler, main): Disable the check whether
57520         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57521         glibc systems with LinuxThreads.
57522
57523 2008-09-28  Bruno Haible  <bruno@clisp.org>
57524
57525         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57526
57527         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57528         with AIX xlc.
57529         * lib/fcntl.in.h (open): Likewise.
57530         Reported by Rainer Tammer <tammer@tammer.net>.
57531
57532 2008-09-28  Bruno Haible  <bruno@clisp.org>
57533
57534         * modules/posix_spawnp-tests: New file.
57535         * tests/test-posix_spawn.c: New file.
57536         * tests/test-posix_spawn.in.sh: New file.
57537
57538         New module 'posix_spawnp'.
57539         * modules/posix_spawnp: New file.
57540         * lib/spawnp.c: New file, from GNU libc with modifications.
57541         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57542
57543         New module 'posix_spawn'.
57544         * modules/posix_spawn: New file.
57545         * lib/spawn.c: New file, from GNU libc with modifications.
57546         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57547
57548         New module 'posix_spawnattr_destroy'.
57549         * modules/posix_spawnattr_destroy: New file.
57550         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57551         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57552         module.
57553
57554         New module 'posix_spawnattr_setsigmask'.
57555         * modules/posix_spawnattr_setsigmask: New file.
57556         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57557         modifications.
57558         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57559         new module.
57560
57561         New module 'posix_spawnattr_getsigmask'.
57562         * modules/posix_spawnattr_getsigmask: New file.
57563         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57564         modifications.
57565         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57566         new module.
57567
57568         New module 'posix_spawnattr_setsigdefault'.
57569         * modules/posix_spawnattr_setsigdefault: New file.
57570         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57571         modifications.
57572         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57573         new module.
57574
57575         New module 'posix_spawnattr_getsigdefault'.
57576         * modules/posix_spawnattr_getsigdefault: New file.
57577         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57578         modifications.
57579         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57580         new module.
57581
57582         New module 'posix_spawnattr_setschedpolicy'.
57583         * modules/posix_spawnattr_setschedpolicy: New file.
57584         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57585         modifications.
57586         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57587         new module.
57588
57589         New module 'posix_spawnattr_getschedpolicy'.
57590         * modules/posix_spawnattr_getschedpolicy: New file.
57591         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57592         modifications.
57593         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57594         new module.
57595
57596         New module 'posix_spawnattr_setschedparam'.
57597         * modules/posix_spawnattr_setschedparam: New file.
57598         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57599         modifications.
57600         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57601         new module.
57602
57603         New module 'posix_spawnattr_getschedparam'.
57604         * modules/posix_spawnattr_getschedparam: New file.
57605         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57606         modifications.
57607         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57608         new module.
57609
57610         New module 'posix_spawnattr_setpgroup'.
57611         * modules/posix_spawnattr_setpgroup: New file.
57612         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57613         modifications.
57614         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57615         module.
57616
57617         New module 'posix_spawnattr_getpgroup'.
57618         * modules/posix_spawnattr_getpgroup: New file.
57619         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57620         modifications.
57621         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57622         module.
57623
57624         New module 'posix_spawnattr_setflags'.
57625         * modules/posix_spawnattr_setflags: New file.
57626         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57627         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57628         module.
57629
57630         New module 'posix_spawnattr_getflags'.
57631         * modules/posix_spawnattr_getflags: New file.
57632         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57633         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57634         module.
57635
57636         New module 'posix_spawnattr_init'.
57637         * modules/posix_spawnattr_init: New file.
57638         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57639         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57640         module.
57641
57642         New module 'posix_spawn_file_actions_destroy'.
57643         * modules/posix_spawn_file_actions_destroy: New file.
57644         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57645         modifications.
57646         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57647         the new module.
57648
57649         New module 'posix_spawn_file_actions_addopen'.
57650         * modules/posix_spawn_file_actions_addopen: New file.
57651         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57652         modifications.
57653         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57654         the new module.
57655
57656         New module 'posix_spawn_file_actions_adddup2'.
57657         * modules/posix_spawn_file_actions_adddup2: New file.
57658         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57659         modifications.
57660         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57661         the new module.
57662
57663         New module 'posix_spawn_file_actions_addclose'.
57664         * modules/posix_spawn_file_actions_addclose: New file.
57665         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57666         modifications.
57667         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57668         the new module.
57669
57670         New module 'posix_spawn_file_actions_init'.
57671         * modules/posix_spawn_file_actions_init: New file.
57672         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57673         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57674         new module.
57675
57676         New module 'posix_spawn-internal'.
57677         * modules/posix_spawn-internal: New file.
57678         * lib/spawn_int.h: New file, from GNU libc with modifications.
57679         * lib/spawni.c: New file, from GNU libc with modifications.
57680         * m4/posix_spawn.m4: New file.
57681
57682         New module 'spawn'.
57683         * modules/spawn: New file.
57684         * lib/spawn.in.h: New file, from GNU libc with modifications.
57685         * m4/spawn_h.m4: New file.
57686         * doc/posix-headers/spawn.texi: Mention the new module.
57687
57688 2008-09-28  Bruno Haible  <bruno@clisp.org>
57689
57690         * modules/sched-tests: New file.
57691         * tests/test-sched.c: New file.
57692
57693         New module 'sched'.
57694         * modules/sched: New file.
57695         * lib/sched.in.h: New file.
57696         * m4/sched_h.m4: New file.
57697         * doc/posix-headers/sched.texi: Mention the new module.
57698
57699 2008-09-27  Eric Blake  <ebb9@byu.net>
57700
57701         Fix previous patch, and tweak references to $0.
57702         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57703         (func_version, func_gnulib_dir): Don't call this program
57704         gnulib-tool.
57705         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57706         with using $0 in function.
57707         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57708         (func_fatal_error): Reuse the name the user invoked us with.
57709
57710 2008-09-27  Bruno Haible  <bruno@clisp.org>
57711
57712         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57713         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57714         (gl_ICONV_H): Not here.
57715         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57716         instead of assigning ICONV_H directly.
57717
57718         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57720         WCHAR_H directly.
57721
57722 2008-09-27  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57725         * modules/arpa_inet (Depends-on): Add link-warning.
57726         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57727         * modules/unistd (Makefile.am): Likewise.
57728
57729 2008-09-26  Bruno Haible  <bruno@clisp.org>
57730
57731         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57732         variables.
57733         (func_version): Essentially copied from gnulib-tool.
57734         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57735         func_readlink): Copied from gnulib-tool.
57736
57737 2008-09-26  Bruno Haible  <bruno@clisp.org>
57738
57739         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57740         invoking git-version-gen.
57741
57742 2008-09-26  Bruno Haible  <bruno@clisp.org>
57743
57744         * posix-modules: Update to directory names changed on 2008-01-19.
57745         Remove commas in output before splitting into words. No more need to
57746         avoid 'ftruncate' since 2007-02-19.
57747
57748 2008-09-26  Bruno Haible  <bruno@clisp.org>
57749
57750         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57751
57752 2008-09-26  Bruno Haible  <bruno@clisp.org>
57753
57754         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57755         * modules/fwriteerror (Depends-on): Add errno.
57756
57757 2008-09-26  Bruno Haible  <bruno@clisp.org>
57758
57759         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57760         * tests/test-vc-list-files-cvs.sh: Likewise.
57761
57762 2008-09-26  Bruno Haible  <bruno@clisp.org>
57763
57764         * doc/posix-headers/sys_resource.texi: Reorder items.
57765
57766 2008-09-26  Jim Meyering  <meyering@redhat.com>
57767
57768         fts: tweak inode comparison function
57769         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57770         inode numbers, as documented.
57771
57772         fts: sort dirent entries on inode number before traversing
57773         This avoids a quadratic, seek-related performance penalty when
57774         operating on a directory containing many entries (measurable at 10k;
57775         3.5 hours at 2 million entries with a cold cache) on certain types
57776         of file systems, including ext3 and ext4, but not tmpfs.
57777         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57778         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57779         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57780         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57781         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57782         (fts_build): Set the stat.st_ino member from D_INO.
57783         If it is likely to be useful, sort dirent entries on inode number.
57784
57785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57786         and the struct statfs.f_type member.
57787         * modules/fts (Depends-on): Add d-ino.
57788
57789 2008-09-26  Bruno Haible  <bruno@clisp.org>
57790
57791         * modules/sigpipe-die (Depends-on): Add sigpipe.
57792
57793         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57794         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57795         and GNULIB_STDIO_H_SIGPIPE are set.
57796         * lib/stdio-write.c: New file.
57797         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57798         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57799         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57800         REPLACE_STDIO_WRITE_FUNCS.
57801         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57802         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57803         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57804         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57805         * modules/stdio (Files): Add lib/stdio-write.c.
57806         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57807         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57808         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57809         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57810         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57811         REPLACE_FPRINTF_POSIX.
57812         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57813         REPLACE_PRINTF_POSIX.
57814         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57815         REPLACE_VFPRINTF_POSIX.
57816         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57817         REPLACE_VPRINTF_POSIX.
57818         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57819         SIGPIPE issue.
57820         * doc/posix-functions/fputc.texi: Likewise.
57821         * doc/posix-functions/fputs.texi: Likewise.
57822         * doc/posix-functions/fwrite.texi: Likewise.
57823         * doc/posix-functions/printf.texi: Likewise.
57824         * doc/posix-functions/putc.texi: Likewise.
57825         * doc/posix-functions/putchar.texi: Likewise.
57826         * doc/posix-functions/puts.texi: Likewise.
57827         * doc/posix-functions/vfprintf.texi: Likewise.
57828         * doc/posix-functions/vprintf.texi: Likewise.
57829
57830         * modules/safe-write (Depends-on): Add write.
57831
57832         * modules/sigpipe-tests: New file.
57833         * tests/test-sigpipe.c: New file.
57834         * tests/test-sigpipe.sh: New file.
57835
57836         * modules/write: New file.
57837         * lib/unistd.in.h: Include <sys/types.h>.
57838         (write): New declaration.
57839         * lib/write.c: New file.
57840         * m4/write.m4: New file.
57841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57842         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57843         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57844         GNULIB_WRITE, REPLACE_WRITE.
57845         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57846         and the SIGPIPE issue.
57847
57848         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57849         (raise): New declaration.
57850         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57851         (ext_signal): New function.
57852         (rpl_raise): New function.
57853         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57854         GNULIB_SIGNAL_H_SIGPIPE.
57855         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57856         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57857
57858         * modules/sigpipe: New file.
57859         * m4/sigpipe.m4: New file.
57860
57861 2008-09-25  Derek Price  <derek@ximbiot.com>
57862             Bruno Haible  <bruno@clisp.org>
57863
57864         * gnulib-tool (func_import): Report all license incompatibilities, not
57865         just the first one.
57866
57867 2008-09-25  Bruno Haible  <bruno@clisp.org>
57868
57869         * gnulib-tool (func_import): When computing the edits, consider not
57870         only the Makefile.ams that exist but also those that will be generated.
57871
57872 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57873
57874         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57875         fixes gnulib-tool --test warning about duplicate dependency.
57876
57877 2008-09-25  Bruno Haible  <bruno@clisp.org>
57878
57879         * gnulib-tool: Don't ask the user to perform edits in the generated
57880         Makefile.ams.
57881         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57882         apply to the Makefile.am being generated.
57883         (func_emit_tests_Makefile_am): Execute edits that apply to the
57884         Makefile.am being generated.
57885         (func_import): Setup list of Makefile.am edits before emitting the
57886         Makefile.ams, not at the end.
57887         (func_create_testdir): Update.
57888         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57889
57890 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57891
57892         * gnulib-tool (func_import): Store the --tests-base option in the
57893         comment in gnulib-cache.m4.
57894
57895 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57896
57897         * NEWS: Document increased portability that sys_select now provides.
57898
57899         * lib/sys_select.in.h: Install select wrapper.
57900         * lib/sys_socket.in.h: Use more descriptive name when there is no
57901         select wrapper.
57902         * lib/winsock-select.c: New.
57903         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57904         Require gl_HEADER_SYS_SOCKET.
57905         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57906         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57907         * tests/test-sys_select.c: Add functional tests.
57908
57909 2008-09-24  Eric Blake  <ebb9@byu.net>
57910
57911         open, fopen: close fd leak in last patch
57912         * lib/open.c (rpl_open): Close fd before returning error.
57913         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57914         * doc/posix-functions/open.texi (open): Document that Irix also
57915         has the bug.
57916         * doc/posix-functions/fopen.texi (fopen): Likewise.
57917         Reported by Paolo Bonzini.
57918
57919 2008-09-24  Bruno Haible  <bruno@clisp.org>
57920
57921         Ensure that a filename ending in a slash cannot be used to access a
57922         non-directory.
57923         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57924         to check whether it's really a directory.
57925         * lib/fopen.c: Include fcntl.h, unistd.h.
57926         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57927         and fdopen().
57928         * modules/fopen (Depends-on): Add unistd.
57929         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57930         * tests/test-fopen.c (main): Likewise.
57931         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57932         * doc/posix-functions/fopen.texi: Likewise.
57933         Reported by Eric Blake.
57934
57935 2008-09-23  Eric Blake  <ebb9@byu.net>
57936
57937         c-stack: avoid compiler optimizations when provoking overflow
57938         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57939         recursion harder to optimize, to ensure a stack overflow occurs.
57940         * tests/test-c-stack.c (recurse): Likewise.
57941         Borrowed from libsigsegv.
57942
57943         c-stack: work around Irix sigaltstack bug
57944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57945         whether sigaltstack uses wrong end of stack_t (copied in part from
57946         libsigsegv).
57947         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57948         Irix bug, without requiring an over-allocation.
57949         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57950         bug.
57951
57952         fopen: document mingw bug on directories
57953         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57954         not allowing a stream visiting a directory, even though reading
57955         from such a stream is not portable.
57956
57957 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57958
57959         * lib/poll.c: Rewrite.
57960         * modules/poll: Depend on alloca.
57961
57962 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57963
57964         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57965         instead define prototypes for a full set of wrappers.  Ensure
57966         that Cygwin does not use the compatibility code, which is only
57967         for MinGW.
57968         * lib/winsock.c: New.
57969         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57970         * modules/sys_socket: Add lib/winsock.c.
57971
57972         * modules/poll-tests: Add errno and perror.
57973         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57974
57975 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57976
57977         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57978
57979 2008-09-23  Bruno Haible  <bruno@clisp.org>
57980
57981         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57982         * doc/glibc-functions/*: Likewise.
57983
57984 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57985
57986         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57987         success.
57988
57989 2008-09-22  Eric Blake  <ebb9@byu.net>
57990             Bruno Haible  <bruno@clisp.org>
57991
57992         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57993         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57994         supply %A but mishandle pseudo-NaN.
57995         Reported by Simon Josefsson.
57996
57997 2008-09-21  Bruno Haible  <bruno@clisp.org>
57998
57999         * tests/test-lock.c (main): Tweak skip message.
58000         * tests/test-tls.c (main): Likewise.
58001
58002 2008-09-21  Bruno Haible  <bruno@clisp.org>
58003
58004         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58005         whether 'struct sigaction' has sa_sigaction here...
58006         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58007         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58008
58009 2008-09-21  Bruno Haible  <bruno@clisp.org>
58010
58011         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58012         section.
58013         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58014         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58015         the new section.
58016         (Support for obsolete systems lacking POSIX:2001): New section.
58017         (String handling <string.h>): Move strdup to the new section.
58018         Suggested by Simon Josefsson and Paolo Bonzini.
58019
58020 2008-09-21  Bruno Haible  <bruno@clisp.org>
58021
58022         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58023         exponents in %e and %g results on 'long double'. Needed for mingw's
58024         improved *printf functions.
58025         * tests/test-vasprintf-posix.c (test_function): Likewise.
58026         * tests/test-snprintf-posix.h (test_function): Likewise.
58027         * tests/test-sprintf-posix.h (test_function): Likewise.
58028         Reported by Eric Blake.
58029
58030 2008-09-21  Bruno Haible  <bruno@clisp.org>
58031
58032         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58033         * tests/test-sprintf-posix.h (test_function): Likewise.
58034
58035 2008-09-21  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/getpass (Depends-on): Add strdup-posix.
58038
58039         New module 'strdup-posix'.
58040         * modules/strdup-posix: New file.
58041         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58042         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58044         REPLACE_STRDUP.
58045         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58046         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58048         strdup-posix.
58049
58050         * modules/strdup (Depends-on): Remove malloc-posix.
58051
58052 2008-09-20  Bruno Haible  <bruno@clisp.org>
58053
58054         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58055         Wildenhues.
58056
58057 2008-09-20  Bruno Haible  <bruno@clisp.org>
58058
58059         Ensure that wint_t gets defined on IRIX 5.3.
58060         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58061         * lib/wctype.in.h (wint_t): Likewise.
58062         (__wctype_wint_t): Remove type.
58063         (isw*): Use wint_t instead of __wctype_wint_t.
58064         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58065         * modules/wchar (Files): Add m4/wint_t.m4.
58066         (Makefile.am): Substitute HAVE_WINT_T.
58067         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58068         * tests/test-wctype.c: Check that wint_t is defined.
58069         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58070         * doc/posix-headers/wctype.texi: Likewise.
58071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58072
58073 2008-09-18  Bruno Haible  <bruno@clisp.org>
58074
58075         * gnulib-tool (func_exit): Update comment.
58076
58077 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58078
58079         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58080         assumes strdup exists and does not depend on strdup to return
58081         ENOMEM on out of memory conditions.
58082
58083 2008-09-18  Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58086         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58087         digits for the exponent.
58088
58089 2008-09-18  Jim Meyering  <meyering@redhat.com>
58090             Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/vasnprintf.c (decimal_point_char): Define also if
58093         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58094
58095 2008-09-16  Bruno Haible  <bruno@clisp.org>
58096         and Eric Blake  <ebb9@byu.net>
58097
58098         vasnprintf: support Irix 5.3
58099         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58100         that mishandle long double infinity.
58101         Reported by Tom G. Christensen.
58102
58103 2008-09-16  Bruno Haible  <bruno@clisp.org>
58104
58105         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58106         Solaris 9.
58107         * doc/glibc-functions/alphasort.texi: Likewise.
58108         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58109
58110 2008-09-16  Jim Meyering  <meyering@redhat.com>
58111
58112         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58113         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58114         a umask modification leak out of a subshell.  Otherwise, the
58115         opensolaris /bin/sh would be accepted and thus cause unwarranted
58116         failures in the coreutils test suite.
58117
58118 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58119
58120         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58121         to succeed.
58122
58123 2008-09-16  Jim Meyering  <meyering@redhat.com>
58124
58125         avoid spurious test failure when library is built without ACL support
58126         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58127         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58128         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58129         * tests/test-copy-acl.sh: Likewise.
58130
58131 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58132
58133         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58134         based on character occurrence counts.
58135
58136 2008-09-15  Eric Blake  <ebb9@byu.net>
58137
58138         tests: avoid some compiler warnings
58139         * tests/test-memchr.c (main): Pass NULL indirectly.
58140         * tests/test-closein.c (main): Avoid unused variable.
58141
58142 2008-09-15  Bruno Haible  <bruno@clisp.org>
58143
58144         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58145         are missing on OpenBSD 4.0 individually.
58146         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58147
58148 2008-09-15  Bruno Haible  <bruno@clisp.org>
58149
58150         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58151         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58152         * doc/posix-functions/perror.texi: Likewise.
58153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58154         is missing.
58155         Reported by Eric Blake.
58156
58157         * lib/errno.in.h: Use replacement values >= 2000.
58158         Reported by Eric Blake.
58159
58160 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58161
58162         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58163         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58164         limit.
58165         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58166         compareseq was aborted.
58167
58168 2008-09-14  Bruno Haible  <bruno@clisp.org>
58169
58170         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58171         yvec_edit_count.
58172         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58173         (fstrcmp_bounded): Simplify result computation accordingly.
58174
58175 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58176
58177         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58178         (fstrcmp): Define in terms of fstrcmp_bounded.
58179         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58180         lower_bound argument.
58181         Return quickly if the result is certainly < lower_bound.
58182         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58183
58184 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58185
58186         * lib/diffseq.h (EARLY_ABORT): New macro.
58187         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58188         evaluates to true.
58189
58190 2008-09-14  Bruno Haible  <bruno@clisp.org>
58191
58192         * modules/perror-tests: New file.
58193         * tests/test-perror.sh: New file.
58194         * tests/test-perror.c: New file.
58195
58196         New module 'perror'.
58197         * lib/stdio.in.h (perror): New declaration.
58198         * lib/perror.c: New file.
58199         * m4/perror.m4: New file.
58200         * modules/perror: New file.
58201         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58202         * doc/posix-functions/perror.texi: Mention the perror module.
58203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58204         REPLACE_PERROR.
58205         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58206         REPLACE_PERROR.
58207
58208 2008-09-14  Bruno Haible  <bruno@clisp.org>
58209
58210         * modules/stdio (Makefile.am): Reorder to match the order in
58211         lib/stdio.in.h.
58212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58213
58214 2008-09-13  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58217
58218 2008-09-13  Bruno Haible  <bruno@clisp.org>
58219
58220         Extend strerror to cover the added errno values.
58221         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58222         (rpl_strerror): Provide error messages for the added errno values and
58223         for the WSA* values.
58224         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58225         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58226         strerror.
58227         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58228         * modules/strerror (Depends-on): Add errno.
58229         * doc/posix-functions/strerror.texi: Document the change.
58230         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58231         and EOVERFLOW.
58232
58233 2008-09-13  Bruno Haible  <bruno@clisp.org>
58234
58235         * modules/EOVERFLOW: Remove file.
58236         * m4/eoverflow.m4: Remove file.
58237         * modules/EOVERFLOW-tests: Remove file.
58238         * tests/test-EOVERFLOW.c: Remove file.
58239         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58240         * modules/ftell (Depends-on): Likewise.
58241         * modules/getdelim (Depends-on): Likewise.
58242         * modules/getugroups (Depends-on): Likewise.
58243         * modules/poll (Depends-on): Likewise.
58244         * modules/snprintf (Depends-on): Likewise.
58245         * modules/sprintf-posix (Depends-on): Likewise.
58246         * modules/vasnprintf (Depends-on): Likewise.
58247         * modules/vasprintf (Depends-on): Likewise.
58248         * modules/vfprintf-posix (Depends-on): Likewise.
58249         * modules/vsnprintf (Depends-on): Likewise.
58250         * modules/vsprintf-posix (Depends-on): Likewise.
58251         * modules/xvasprintf (Depends-on): Likewise.
58252         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58253         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58254         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58255         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58257         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58258         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58259         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58260         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58261         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58262         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58263         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58264         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58265         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58266         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58267         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58268         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58269         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58270         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58271         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58272         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58273         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58274         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58275         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58276         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58277         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58278         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58279         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58280         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58281         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58282         * MODULES.html.sh: Remove EOVERFLOW.
58283         * NEWS: Mention the change.
58284
58285 2008-09-13  Bruno Haible  <bruno@clisp.org>
58286
58287         * modules/errno-tests: New file.
58288         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58289
58290         * lib/errno.in.h: New file.
58291         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58292         * modules/errno: New file.
58293         * doc/posix-headers/errno.texi: Update documentation.
58294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58295
58296 2008-09-13  Bruno Haible  <bruno@clisp.org>
58297
58298         * tests/test-poll.c: Use #if for native Windows, rather than testing
58299         __MSVCRT__.
58300
58301 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58302             Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/glob.c: Don't include <pwd.h> on native Windows.
58305         (WINDOWS32): New macro.
58306         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58307
58308 2008-09-13  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58311         (ETIMEDOUT): Remove macro.
58312         (glthread_cond_timedwait_multithreaded): New declaration.
58313         (glthread_cond_timedwait): Use it.
58314         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58315         (glthread_cond_timedwait_multithreaded): New function.
58316
58317 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58318
58319         * modules/poll-tests: Do not check for io.h.
58320         * tests/test-poll.c: Check for __MSVCRT__ instead.
58321
58322 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58323
58324         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58325         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58326         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58327
58328 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58329
58330         * modules/poll-tests: New.
58331         * tests/test-poll.c: New.
58332
58333 2008-09-12  Eric Blake  <ebb9@byu.net>
58334
58335         frexp: test for NetBSD failure on -0.0
58336         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58337         not all, bugs from NetBSD 3.0 have been fixed.
58338         * doc/posix-functions/frexp.texi (frexp): Document bug.
58339         Reported by Thomas Klausner.
58340
58341         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58342         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58343         literal -0.0.
58344         Reported by Jonathan C. Patschke <jp@centtech.com>.
58345
58346 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58347
58348         * lib/glthread/cond.h: Use dummy implementation also if
58349         USE_WIN32_THREADS.
58350
58351 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58352
58353         * modules/fnmatch-posix (License): Change to LGPLv2+.
58354         * modules/fnmatch-gnu (License): Likewise.
58355
58356 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58357
58358         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58359
58360 2008-09-11  Jim Meyering  <meyering@redhat.com>
58361
58362         * users.txt: Add gtk-vnc.
58363
58364 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58365
58366         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58367         rotate amounts.
58368
58369         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58370         required for 16-bit and 8-bit rotates.
58371         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58372         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58373         UINT8_MAX instead of hard-coded constants.
58374         Suggested by Paul Eggert.
58375
58376 2008-09-07  Bruno Haible  <bruno@clisp.org>
58377
58378         * tests/test-striconveh.c (main): Check behaviour when converting from
58379         UTF-7.
58380
58381         Make striconveh work better with stateful encodings.
58382         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58383         that iconv does not increment the inptr when returning -1/EINVAL.
58384
58385 2008-09-07  Bruno Haible  <bruno@clisp.org>
58386
58387         * build-aux/config.rpath: Update according to libtool-2.2.6.
58388         * build-aux/config.libpath: Likewise.
58389
58390 2008-09-06  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58393         * lib/freadptr.c (freadptr): Likewise.
58394         * lib/freadseek.c (freadptrinc): Likewise.
58395         Reported by Simon Josefsson.
58396
58397 2008-09-06  Bruno Haible  <bruno@clisp.org>
58398
58399         * modules/freadptr (License): Change to LGPLv2+.
58400         * modules/freadseek (License): Likewise.
58401         Suggested by Eric Blake.
58402
58403         * modules/memchr2 (License): Change to LGPLv2+.
58404         Approved by Eric Blake.
58405
58406 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58407             Bruno Haible  <bruno@clisp.org>
58408
58409         Make gnulib-tool work with native 'sed' on AIX.
58410         * gnulib-tool (sed_noop): New variable.
58411         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58412         func_add_or_update, func_create_testdir): Use it to initialize sed
58413         script variables.
58414         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58415
58416 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58417             Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58420         also works after #include directives.
58421
58422 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58423
58424         getdate.y: reject an out-of-range timezone value
58425         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58426         the range [-24...+24].  When specified with only one or two digits,
58427         * tests/test-getdate.c: Tests for the fix.
58428         * doc/getdate.texi: Document this change.
58429
58430 2008-09-03  Bruno Haible  <bruno@clisp.org>
58431
58432         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58433
58434 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58435
58436         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58437         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58438         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58439         Blake <ebb9@byu.net>.
58440
58441         * tests/test-bitrotate.c: Add more test vectors.
58442
58443 2008-09-02  Eric Blake  <ebb9@byu.net>
58444
58445         vasnprintf-posix: handle large precision via %.*d
58446         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58447         when handling it ourselves.
58448         * tests/test-vasnprintf-posix.c (test_function): Add test.
58449         * tests/test-snprintf-posix.h (test_function): Likewise.
58450         * tests/test-sprintf-posix.h (test_function): Likewise.
58451         * tests/test-vasprintf-posix.c (test_function): Likewise.
58452         Reported by Alain Guibert.
58453
58454 2008-09-01  Eric Blake  <ebb9@byu.net>
58455
58456         c-stack: make configure-time check more robust
58457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58458         successful sigaction call.
58459         Reported by Tom G. Christensen.
58460
58461 2008-09-01  Bruno Haible  <bruno@clisp.org>
58462
58463         New module 'findprog-lgpl'.
58464         * modules/findprog-lgpl: New file.
58465         * lib/findprog-lgpl.c: New file.
58466         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58467         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58468         to decide whether to use strdup or xstrdup, concatenated_filename or
58469         xconcatenated_filename.
58470
58471 2008-09-01  Bruno Haible  <bruno@clisp.org>
58472
58473         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58474         'xconcat-filename' (GPL).
58475         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58476         (License): Change to LGPLv2+.
58477         * modules/xconcat-filename: New file.
58478         * lib/concat-filename.h (concatenated_filename): Change specification.
58479         (xconcatenated_filename): New declaration.
58480         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58481         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58482         memory situations.
58483         * lib/xconcat-filename.c: New file.
58484         * NEWS: Mention the change.
58485         * lib/findprog.c: Include concat-filename.h, not filename.h.
58486         (find_in_path): Use xconcatenated_filename instead of
58487         concatenated_filename.
58488         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58489         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58490         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58491         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58492         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58493         instead of concatenated_filename.
58494         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58495         (execute_java_class): Use xconcatenated_filename instead of
58496         concatenated_filename.
58497         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58498         * modules/javacomp (Depends-on): Likewise.
58499         * modules/javaexec (Depends-on): Likewise.
58500
58501 2008-09-01  Bruno Haible  <bruno@clisp.org>
58502
58503         Split module 'filename' into 'filename' and 'concat-filename'.
58504         * modules/filename: Keep only lib/filename.h.
58505         (License): Change to LGPLv2+.
58506         * modules/concat-filename: New file, extracted from modules/filename.
58507         * lib/filename.h (concatenated_filename): Remove declaration.
58508         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58509         * lib/concat-filename.c: Include concat-filename.h.
58510         * NEWS: Mention the change.
58511
58512 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58513
58514         * lib/bitrotate.h (rotl8, rotr8): Add.
58515
58516         * modules/bitrotate (configure.ac): Need
58517         AC_REQUIRE([AC_C_INLINE]).
58518         (Description): Mention stdint.h.  Reported by Bruno Haible
58519         <bruno@clisp.org>.
58520
58521         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58522         Paolo Bonzini <bonzini@gnu.org>.
58523
58524 2008-08-31  Bruno Haible  <bruno@clisp.org>
58525
58526         Assume Solaris specific bi-arch conventions on Solaris systems.
58527         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58528         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58530         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58531         like acl_libdirstem.
58532         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58533         acl_libdirstem.
58534         * NEWS: Mention the change.
58535         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58536
58537 2008-08-31  Jim Meyering  <meyering@redhat.com>
58538
58539         * lib/strftime.h: Add comments describing the two added arguments.
58540
58541         remove duplicate #include directives
58542         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58543         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58544
58545 2008-08-31  Bruno Haible  <bruno@clisp.org>
58546
58547         New module 'sigpipe-die'.
58548         * modules/sigpipe-die: New file.
58549         * lib/sigpipe-die.h: New file.
58550         * lib/sigpipe-die.c: New file.
58551         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58552
58553 2008-08-31  Bruno Haible  <bruno@clisp.org>
58554
58555         Don't override previously installed signal handlers.
58556         * lib/fatal-signal.c (saved_sigactions): New variable.
58557         (uninstall_handlers): Reset the signal to the saved handler, not
58558         to SIG_DFL (except when ignored).
58559         (install_handlers): Save the previous handlers.
58560
58561 2008-08-30  Bruno Haible  <bruno@clisp.org>
58562
58563         * gnulib-tool (func_reset_sigpipe): New function.
58564         (func_get_automake_snippet, func_modules_transitive_closure,
58565         func_import): Invoke it before a join command that reads from stdin,
58566         to avoid "echo: write error: Broken pipe" error messages on stderr.
58567         Reported by Sam Steingold <sds@gnu.org>.
58568
58569 2008-08-30  Bruno Haible  <bruno@clisp.org>
58570
58571         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58572         Code copied from m4/open.m4.
58573         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58574         access and the filename ends in a slash. Code copied from lib/open.c.
58575         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58576         * tests/test-fopen.c (main): Check against bug with trailing slash.
58577
58578 2008-08-29  Bruno Haible  <bruno@clisp.org>
58579
58580         Avoid some "gcc -pedantic" warnings.
58581         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58582         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58583         * lib/dirent.in.h: Likewise.
58584         * lib/fcntl.in.h: Likewise.
58585         * lib/float.in.h: Likewise.
58586         * lib/iconv.in.h: Likewise.
58587         * lib/inttypes.in.h: Likewise.
58588         * lib/locale.in.h: Likewise.
58589         * lib/math.in.h: Likewise.
58590         * lib/netinet_in.in.h: Likewise.
58591         * lib/search.in.h: Likewise.
58592         * lib/signal.in.h: Likewise.
58593         * lib/stdarg.in.h: Likewise.
58594         * lib/stdint.in.h: Likewise.
58595         * lib/stdio.in.h: Likewise.
58596         * lib/stdlib.in.h: Likewise.
58597         * lib/string.in.h: Likewise.
58598         * lib/strings.in.h: Likewise.
58599         * lib/sys_select.in.h: Likewise.
58600         * lib/sys_socket.in.h: Likewise.
58601         * lib/sys_stat.in.h: Likewise.
58602         * lib/sys_time.in.h: Likewise.
58603         * lib/sysexits.in.h: Likewise.
58604         * lib/time.in.h: Likewise.
58605         * lib/unistd.in.h: Likewise.
58606         * lib/wchar.in.h: Likewise.
58607         * lib/wctype.in.h: Likewise.
58608         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58609         * modules/fchdir (Makefile.am): Likewise.
58610         * modules/fcntl (Makefile.am): Likewise.
58611         * modules/float (Makefile.am): Likewise.
58612         * modules/iconv_open (Makefile.am): Likewise.
58613         * modules/inttypes (Makefile.am): Likewise.
58614         * modules/locale (Makefile.am): Likewise.
58615         * modules/math (Makefile.am): Likewise.
58616         * modules/netinet_in (Makefile.am): Likewise.
58617         * modules/search (Makefile.am): Likewise.
58618         * modules/signal (Makefile.am): Likewise.
58619         * modules/stdarg (Makefile.am): Likewise.
58620         * modules/stdint (Makefile.am): Likewise.
58621         * modules/stdio (Makefile.am): Likewise.
58622         * modules/stdlib (Makefile.am): Likewise.
58623         * modules/string (Makefile.am): Likewise.
58624         * modules/strings (Makefile.am): Likewise.
58625         * modules/sys_select (Makefile.am): Likewise.
58626         * modules/sys_socket (Makefile.am): Likewise.
58627         * modules/sys_stat (Makefile.am): Likewise.
58628         * modules/sys_time (Makefile.am): Likewise.
58629         * modules/sysexits (Makefile.am): Likewise.
58630         * modules/time (Makefile.am): Likewise.
58631         * modules/unistd (Makefile.am): Likewise.
58632         * modules/wchar (Makefile.am): Likewise.
58633         * modules/wctype (Makefile.am): Likewise.
58634         Reported by Reuben Thomas <rrt@sc3d.org>.
58635
58636 2008-08-29  Bruno Haible  <bruno@clisp.org>
58637
58638         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58639         any more.
58640
58641 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58642
58643         * MODULES.html.sh (Misc): Add bitrotate.
58644
58645         * modules/bitrotate: New file.
58646
58647         * lib/bitrotate.h: New file.
58648
58649         * modules/bitrotate-tests: New file.
58650
58651         * tests/test-bitrotate.c: New file.
58652
58653         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58654         on the bitrotate module.
58655
58656         * lib/arctwo.c: Use new bitrotate module.
58657
58658 2008-08-29  Jim Meyering  <meyering@redhat.com>
58659
58660         bootstrap: merge changes from coreutils
58661         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58662         of copied files.  Remove a kludge, now that this is fixed.
58663         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58664         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58665         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58666
58667 2008-08-29  Bruno Haible  <bruno@clisp.org>
58668
58669         * MODULES.html.sh: Remove --cvs-urls option.
58670
58671 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58672
58673         maint.mk: adjust to file name change
58674         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58675
58676 2008-08-28  Jim Meyering  <meyering@redhat.com>
58677
58678         * modules/getndelim2 (License): Relicense to LGPLv2+.
58679         Approved by Richard Stallman for the version of 1995, and by
58680         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58681
58682 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58683
58684         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58685         dummy if one is not available.  Do not touch them if
58686         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58687         (getc_maybe_unlocked): New.
58688         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58689
58690 2008-08-26  Eric Blake  <ebb9@byu.net>
58691
58692         doc/INSTALL: resync from autoconf
58693         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58694         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58695         moving...
58696         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58697         * INSTALL: Regenerate.
58698         * INSTALL.ISO: New file.
58699         * INSTALL.UTF-8: Likewise.
58700
58701 2008-08-26  Jim Meyering  <meyering@redhat.com>
58702
58703         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58704         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58705         these definitions conditional, so that they may be overridden, too.
58706
58707 2008-08-26  Bruno Haible  <bruno@clisp.org>
58708
58709         Generate INSTALL file variants with prettier quotes.
58710         * doc/Makefile (INSTALL_PRELUDE): New macro.
58711         (INSTALL): Use it.
58712         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58713
58714 2008-08-26  Bruno Haible  <bruno@clisp.org>
58715
58716         Run makeinfo in an English locale.
58717         * doc/Makefile (MAKEINFO): New variable.
58718
58719 2008-08-26  Bruno Haible  <bruno@clisp.org>
58720
58721         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58722         Suggested by Eric Blake.
58723
58724 2008-08-25  Bruno Haible  <bruno@clisp.org>
58725
58726         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58727
58728 2008-08-25  Eric Blake  <ebb9@byu.net>
58729
58730         c-stack: test that stack overflow can be caught
58731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58732         that platform allows handling stack overflow; at least OS/2 EMX
58733         has sigaltstack, but crashes before transferring control to
58734         handler on stack overflow.
58735         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58736         check for HAVE_STACK_OVERFLOW_HANDLING.
58737         Reported by Elbert Pol.
58738
58739 2008-08-25  Bruno Haible  <bruno@clisp.org>
58740
58741         * doc/posix-functions/strftime.texi: Fix description of strftime
58742         module.
58743
58744 2008-08-24  Bruno Haible  <bruno@clisp.org>
58745
58746         * tests/uniwidth/test-uc_width2.c: New file.
58747         * tests/uniwidth/test-uc_width2.sh: New file.
58748         * modules/uniwidth/width-tests (Files): Add the new files.
58749         (TESTS): Add uniwidth/test-uc_width2.sh.
58750         (TESTS_ENVIRONMENT): New variable.
58751         (check_PROGRAMS): Add test-uc_width2.
58752         (test_uc_width2_SOURCES): New variable.
58753
58754         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58755         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58756         not 0x00AB.
58757         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58758
58759 2008-08-22  Eric Blake  <ebb9@byu.net>
58760
58761         test-lock, test-tls: mention why a test is skipped
58762         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58763         skipped.
58764         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58765
58766         count-one-bits: relax license
58767         * modules/count-one-bits (License): Relicense to LGPLv2+.
58768         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58769
58770 2008-08-22  Andreas Schwab  <schwab@suse.de>
58771
58772         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58773         Remove spurious space in assignment.
58774
58775 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58776
58777         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58778         Paul Eggert <eggert@CS.UCLA.EDU>.
58779
58780 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58781
58782         * modules/gettext: Add m4/threadlib.m4.
58783
58784 2008-08-19  Eric Blake  <ebb9@byu.net>
58785
58786         test-c-stack: fix compilation failure on FreeBSD 5.0
58787         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58788         headers before <sys/resource.h>.
58789         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58790         the bug.
58791         Reported by Nelson H. F. Beebe.
58792
58793         strverscmp: migrate from "strverscmp.h" to <string.h>
58794         * modules/string (Makefile.am): Add new hooks.
58795         * modules/strverscmp (Files): Remove strverscmp.h.
58796         (Depends-on): Add string.
58797         (configure.ac): Add indicator.
58798         (Include): Mention new header.
58799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58800         defaults.
58801         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58802         results.
58803         * lib/strverscmp.h: Delete.
58804         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58805         * tests/test-strverscmp.c (includes): Adjust client.
58806         * lib/check-version.c (includes): Likewise.
58807         * NEWS: Document the change.
58808
58809         strverscmp: add unit test
58810         * modules/strverscmp-tests: New file.
58811         * tests/test-strverscmp.c: Likewise.
58812
58813 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58814
58815         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58816         regarding Windows crypto stuff, from Mono.
58817
58818 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58819
58820         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58821         if present, for intel RND.  Return error on failures.
58822
58823 2008-08-18  Ben Pfaff  <blp@gnu.org>
58824
58825         gitlog-to-changelog: give better diagnostic for failed pipe-open
58826         * build-aux/gitlog-to-changelog: Improve error message: suggest
58827         that the version of Git may be too old.
58828
58829 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58830
58831         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58832         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58833
58834 2008-08-18  Bruno Haible  <bruno@clisp.org>
58835
58836         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58837         pthread_in_use().
58838
58839 2008-08-18  Bruno Haible  <bruno@clisp.org>
58840
58841         * lib/glthread/threadlib.c: Include <pthread.h>.
58842
58843 2008-08-18  Bruno Haible  <bruno@clisp.org>
58844
58845         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58846         glthread_recursive_lock_* macros.
58847         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58848         Fix syntax error.
58849
58850 2008-08-18  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/glthread/thread.c: Avoid forcing a context switch right after
58853         thread creation.
58854
58855 2008-08-17  Bruno Haible  <bruno@clisp.org>
58856
58857         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58858         * lib/glthread/thread.h: Provide Win32 specific implementation.
58859         * modules/thread (Files): Add lib/glthread/thread.c.
58860         (Depends-on): Add lock.
58861         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58862
58863 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58864
58865         New module 'yield'.
58866         * modules/yield: New file.
58867         * lib/glthread/yield.h: New file.
58868         * m4/yield.m4: New file.
58869         * MODULES.html.sh (Multithreading): Add yield.
58870
58871 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58872
58873         New module 'thread'.
58874         * modules/thread: New file.
58875         * lib/glthread/thread.h: New file.
58876         * m4/thread.m4: New file.
58877         * MODULES.html.sh (Multithreading): Add thread.
58878
58879 2008-08-17  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/glthread/lock.h: Include <stdlib.h> always.
58882         * lib/glthread/tls.h: Likewise.
58883         * lib/glthread/cond.h: Likewise.
58884
58885 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58886
58887         New module 'cond'.
58888         * modules/cond: New file.
58889         * lib/glthread/cond.h: New file.
58890         * lib/glthread/cond.c: New file.
58891         * m4/cond.m4: New file.
58892         * MODULES.html.sh (Multithreading): Add cond.
58893
58894 2008-08-16  Eric Blake  <ebb9@byu.net>
58895
58896         c-stack: fix regression on Irix 5.3 from 2008-06-21
58897         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58898         sa_sigaction...
58899         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58900         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58901         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58902         * modules/signal (Makefile.am): Use the value.
58903         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58904         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58905         * doc/posix-headers/signal.texi (signal.h): Document this
58906         portability issue.
58907         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58908         Reported by Tom G. Christensen.
58909
58910 2008-08-17  Bruno Haible  <bruno@clisp.org>
58911
58912         New module 'threadlib'.
58913         * modules/threadlib: New file.
58914         * lib/glthread/threadlib.c: New file, extracted from
58915         lib/glthread/lock.c.
58916         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58917         functions.
58918         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58919         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58920         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58921         macros.
58922         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58923         (gl_DISABLE_THREADS): Remove macro.
58924         * modules/lock (Files): Remove build-aux/config.rpath.
58925         (Depends-on): Remove havelib. Add threadlib.
58926         (configure.ac-early): Remove section.
58927         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58928         * modules/tls (Depends-on): Remove lock. Add threadlib.
58929         (Link): New section, copied from threadlib.
58930         * MODULES.html.sh (Multithreading): Add threadlib.
58931
58932 2008-08-14  Bruno Haible  <bruno@clisp.org>
58933
58934         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58935         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58936         glthread_rwlock_unlock, glthread_rwlock_destroy,
58937         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58938         glthread_recursive_lock_destroy): Define as macros always.
58939         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58940         glthread_lock_lock.
58941         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58942         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58943         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58944         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58945         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58946         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58947         (glthread_recursive_lock_lock_func): Renamed from
58948         glthread_recursive_lock_lock.
58949         (glthread_recursive_lock_unlock_func): Renamed from
58950         glthread_recursive_lock_unlock.
58951         (glthread_recursive_lock_destroy_func): Renamed from
58952         glthread_recursive_lock_destroy.
58953
58954 2008-08-14  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/glthread/lock.h: Renamed from lib/lock.h.
58957         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58958         * lib/glthread/tls.h: Renamed from lib/tls.h.
58959         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58960         * lib/fstrcmp.c: Update includes.
58961         * lib/strsignal.c: Update includes.
58962         * modules/lock (Files, Makefile.am): Update.
58963         (Include): Change to "glthread/lock.h".
58964         * modules/tls (Files, Makefile.am): Update.
58965         (Include): Change to "glthread/tls.h".
58966         * tests/test-lock.c: Update includes.
58967         * tests/test-tls.c: Update includes.
58968         * NEWS: Mention the renamed header files.
58969
58970 2008-08-11  Jim Meyering  <meyering@redhat.com>
58971
58972         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58973
58974 2008-08-11  Eric Blake  <ebb9@byu.net>
58975
58976         test-c-stack: avoid C99-ism
58977         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58978         before statement.
58979         Reported by Alain Guibert.
58980
58981 2008-08-10  Jim Meyering  <meyering@redhat.com>
58982
58983         ensure that return value of uinttostr et al are not ignored
58984         * lib/inttostr.h (__GNUC_PREREQ): Define.
58985         (__attribute_warn_unused_result__): Define.
58986         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58987
58988 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58989
58990         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58991         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58992
58993 2008-08-07  Jim Meyering  <meyering@redhat.com>
58994
58995         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58996
58997         * modules/mkstemp (License): Relicense under LGPLv2+.
58998         * modules/tempname (License): Likewise.
58999
59000 2008-08-06  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/poll.c (poll): Further micro-optimization.
59003
59004 2008-08-06  Jim Meyering  <meyering@redhat.com>
59005
59006         inet_pton.c: use locale-independent tolower
59007         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59008         (inet_pton6): Use c_tolower rather than tolower.
59009         * modules/inet_pton (Depends-on): Add c-ctype.
59010
59011 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59012
59013         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59014         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59015
59016 2008-08-06  Jim Meyering  <meyering@redhat.com>
59017
59018         * modules/inet_pton (License): Relicense under LGPLv2+.
59019
59020 2008-08-03  Bruno Haible  <bruno@clisp.org>
59021
59022         Additional non-aborting API for lock and tls.
59023         * lib/lock.h: Include <errno.h>.
59024         (glthread_lock_init): New macro/function.
59025         (gl_lock_init): Define as wrapper around glthread_lock_init.
59026         (glthread_lock_lock): New macro/function.
59027         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59028         (glthread_lock_unlock): New macro/function.
59029         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59030         (glthread_lock_destroy): New macro/function.
59031         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59032         (glthread_rwlock_init): New macro/function.
59033         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59034         (glthread_rwlock_rdlock): New macro/function.
59035         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59036         (glthread_rwlock_wrlock): New macro/function.
59037         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59038         (glthread_rwlock_unlock): New macro/function.
59039         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59040         (glthread_rwlock_destroy): New macro/function.
59041         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59042         (glthread_recursive_lock_init): New macro/function.
59043         (gl_recursive_lock_init): Define as wrapper around
59044         glthread_recursive_lock_init.
59045         (glthread_recursive_lock_lock): New macro/function.
59046         (gl_recursive_lock_lock): Define as wrapper around
59047         glthread_recursive_lock_lock.
59048         (glthread_recursive_lock_unlock): New macro/function.
59049         (gl_recursive_lock_unlock): Define as wrapper around
59050         glthread_recursive_lock_unlock.
59051         (glthread_recursive_lock_destroy): New macro/function.
59052         (gl_recursive_lock_destroy): Define as wrapper around
59053         glthread_recursive_lock_destroy.
59054         (glthread_once): New macro/function.
59055         (gl_once): Define as wrapper around glthread_once.
59056         Update function declarations.
59057         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59058         glthread_rwlock_init. Return error code.
59059         (glthread_rwlock_rdlock_multithreaded): Renamed from
59060         glthread_rwlock_rdlock. Return error code.
59061         (glthread_rwlock_wrlock_multithreaded): Renamed from
59062         glthread_rwlock_wrlock. Return error code.
59063         (glthread_rwlock_unlock_multithreaded): Renamed from
59064         glthread_rwlock_unlock. Return error code.
59065         (glthread_rwlock_destroy_multithreaded): Renamed from
59066         glthread_rwlock_destroy. Return error code.
59067         (glthread_recursive_lock_init_multithreaded): Renamed from
59068         glthread_recursive_lock_init. Return error code.
59069         (glthread_recursive_lock_lock_multithreaded): Renamed from
59070         glthread_recursive_lock_lock. Return error code.
59071         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59072         glthread_recursive_lock_unlock. Return error code.
59073         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59074         glthread_recursive_lock_destroy. Return error code.
59075         (glthread_once_call): Make static.
59076         (glthread_once_multithreaded): Renamed from glthread_once.
59077         * lib/tls.h: Include <errno.h>.
59078         (glthread_tls_key_init): New macro/function.
59079         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59080         (glthread_tls_set): New macro/function.
59081         (gl_tls_set): Define as wrapper around glthread_tls_set.
59082         (glthread_tls_key_destroy): New macro/function.
59083         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59084         Update function declarations.
59085         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59086         glthread_tls_get.
59087         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59088
59089 2008-08-04  Eric Blake  <ebb9@byu.net>
59090
59091         gnumakefile: use space, not TAB, outside of targets
59092         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59093
59094 2008-08-02  Jim Meyering  <meyering@redhat.com>
59095
59096         getdate.y: avoid locale-dependent date parsing failure
59097         In Turkish locales, getdate would fail to recognize keywords
59098         containing a lowercase "i".  The solution is not to rely on
59099         locale-sensitive case-conversion.
59100         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59101         (lookup_word): Use c_toupper in place of toupper.
59102         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59103         Reported by Vefa Bicakci <bicave@superonline.com> in
59104         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59105         * modules/getdate (Depends-on): Add c-ctype.
59106
59107 2008-08-02  Bruno Haible  <bruno@clisp.org>
59108
59109         * gnulib-tool (func_import): When updating or creating a .gitignore
59110         file, prepend each added line with a slash, and ignore leading slashes
59111         from the existing lines.
59112         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59113
59114 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59115
59116         Portability fix for GNU make 3.79.1.
59117         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59118         versions do not understand.
59119
59120 2008-08-01  Bruno Haible  <bruno@clisp.org>
59121
59122         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59123         * tests/test-isnanf.h (zero): New variable.
59124         (main): Avoid literal -0.0f.
59125         * tests/test-isnand.h (zero): New variable.
59126         (main): Avoid literal -0.0.
59127         * tests/test-isnanl.h (zero): New variable.
59128         (main): Avoid literal -0.0L.
59129         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59130         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59131         -0.0, -0.0L.
59132         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59133         (test_signbitd): Avoid literal -0.0.
59134         (test_signbitl): Avoid literal -0.0L.
59135         * tests/test-ceilf1.c (zero): New variable.
59136         (main): Avoid literal -0.0f.
59137         * tests/test-ceill.c (zero): New variable.
59138         (main): Avoid literal -0.0L.
59139         * tests/test-floorf1.c (zero): New variable.
59140         (main): Avoid literal -0.0f.
59141         * tests/test-floorl.c (zero): New variable.
59142         (main): Avoid literal -0.0L.
59143         * tests/test-roundf1.c (zero): New variable.
59144         (main): Avoid literal -0.0f.
59145         * tests/test-round1.c (zero): New variable.
59146         (main): Avoid literal -0.0.
59147         * tests/test-roundl.c (zero): New variable.
59148         (main): Avoid literal -0.0L.
59149         * tests/test-truncf1.c (zero): New variable.
59150         (main): Avoid literal -0.0f.
59151         * tests/test-trunc1.c (zero): New variable.
59152         (main): Avoid literal -0.0.
59153         * tests/test-truncl.c (zero): New variable.
59154         (main): Avoid literal -0.0L.
59155         * tests/test-frexp.c (zero): New variable.
59156         (main): Avoid literal -0.0.
59157         * tests/test-frexpl.c (zero): New variable.
59158         (main): Avoid literal -0.0L.
59159         * tests/test-ldexpl.c (zero): New variable.
59160         (main): Avoid literal -0.0L.
59161         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59162         (zerod, zerol): New variables.
59163         (test_function): Avoid literals -0.0, -0.0L.
59164         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59165         (zerod, zerol): New variables.
59166         (test_function): Avoid literals -0.0, -0.0L.
59167         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59168         (zerod, zerol): New variables.
59169         (test_function): Avoid literals -0.0, -0.0L.
59170         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59171         (zerod, zerol): New variables.
59172         (test_function): Avoid literals -0.0, -0.0L.
59173         * tests/test-strtod.c (zero): New variable.
59174         (main): Avoid literal -0.0.
59175         Reported by Jonathan C. Patschke <jp@centtech.com>.
59176
59177 2008-07-31  Jim Meyering  <meyering@redhat.com>
59178
59179         sha256.h: correct definition of SHA224_DIGEST_SIZE
59180         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59181         Reported by Paulie Pena IV <paulie4@gmail.com>.
59182         Define as 224 / 8, rather than as a literal.
59183         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59184         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59185         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59186
59187 2008-07-31  Bruno Haible  <bruno@clisp.org>
59188
59189         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59190         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59191         Reported by Jonathan Patschke <jp@centtech.com>.
59192
59193 2008-07-31  Bruno Haible  <bruno@clisp.org>
59194
59195         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59196         Reported by Paolo Bonzini <bonzini@gnu.org>.
59197
59198 2008-07-30  Eric Blake  <ebb9@byu.net>
59199
59200         test-strtod: allow compilation without -lm
59201         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59202         Reported by Dennis Clarke <blastwave@gmail.com>.
59203
59204 2008-07-28  Jim Meyering  <meyering@redhat.com>
59205
59206         bootstrap: work also when there are no .po files in po/
59207         * build-aux/bootstrap (update_po_files): Complete the change
59208         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59209
59210 2008-07-27  Jim Meyering  <meyering@redhat.com>
59211
59212         * users.txt: Add zile.
59213
59214 2008-07-26  Ben Pfaff  <blp@gnu.org>
59215
59216         Add missing dependencies on new m4/exponent[fdl].m4 files.
59217         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59218         * modules/isnand-nolibm: Add m4/exponentd.m4.
59219         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59220         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59221         m4/isnan[fdl].m4, because the macros actually used moved.
59222         Reported by Jim Meyering.
59223
59224 2008-07-14  Ben Pfaff  <blp@gnu.org>
59225
59226         Add isinf module.
59227         * lib/isinf.c: New file.
59228         * lib/math.in.h: Define isinf macro if we have decided to replace
59229         it.
59230         * m4/isinf.m4: New file.
59231         * m4/math_h.m4: Initialize and substitute variables for isinf
59232         module.
59233         * modules/isinf: New file.
59234         * modules/isinf-tests: New file.
59235         * modules/math: Add substitutions for new module.
59236         * tests/test-isinf.c: New file.
59237         * doc/posix-functions/isinf.texi: Mention new module.
59238         * MODULES.html.sh: Mention new module.
59239
59240 2008-07-14  Ben Pfaff  <blp@gnu.org>
59241
59242         Factor out some macros for use by additional modules.
59243         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59244         exponentf.m4.
59245         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59246         exponentd.m4.
59247         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59248         file exponentl.m4.
59249         * m4/exponentf.m4: New file.
59250         * m4/exponentd.m4: New file.
59251         * m4/exponentl.m4: New file.
59252         * modules/isnanf: Use new file m4/exponentf.m4.
59253         * modules/isnand: Use new file m4/exponentd.m4.
59254         * modules/isnanl: Use new file m4/exponentl.m4.
59255
59256 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59257
59258         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59259         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59260         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59261         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59262
59263         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59264         readlink on platforms without PATH_MAX.
59265
59266 2008-07-21  Eric Blake  <ebb9@byu.net>
59267
59268         Warn, not fail, on stale version.
59269         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59270
59271         Don't allow installation with stale devel version number.
59272         * top/GNUmakefile (_is-install-target): New macro.
59273         (_curr-ver): Forbid installation with stale version number.
59274
59275 2008-07-20  Bruno Haible  <bruno@clisp.org>
59276
59277         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59278         TESTS_ENVIRONMENT.
59279         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59280
59281 2008-07-20  Bruno Haible  <bruno@clisp.org>
59282
59283         * lib/c-stack.h (c_stack_action): Add documentation.
59284         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59285
59286 2008-07-20  Bruno Haible  <bruno@clisp.org>
59287
59288         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59289         * modules/readlink (License): Likewise.
59290
59291 2008-07-17  Eric Blake  <ebb9@byu.net>
59292
59293         * modules/c-stack (Link): Fix typo.
59294
59295         Make c-stack use libsigsegv, when available.
59296         * modules/c-stack (Depends-on): Add libsigsegv.
59297         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59298         needed.
59299         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59300         (segv_handler, overflow_handler, c_stack_action)
59301         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59302         implementation when libsigsegv is available, but only when using
59303         the library is necessary.
59304         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59305         comment, explaining why XSI check fails on Linux.
59306         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59307         * tests/test-c-stack2.sh: Tweak skip message.
59308         * NEWS: Document new link-time requirements.
59309
59310 2008-07-16  Eric Blake  <ebb9@byu.net>
59311
59312         c-stack: Expose false positives when not using libsigsegv.
59313         * modules/c-stack-tests (Files): Expand test.
59314         * tests/test-c-stack.c (main): Add means to conditionally trigger
59315         non-overflow SIGSEGV.
59316         * tests/test-c-stack2.sh: New file.
59317
59318 2008-07-14  Bruno Haible  <bruno@clisp.org>
59319
59320         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59321         Reported by Eric Blake.
59322
59323 2008-07-14  Sam Steingold  <sds@gnu.org>
59324             Bruno Haible  <bruno@clisp.org>
59325
59326         New module libsigsegv.
59327         * modules/libsigsegv: New file.
59328         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59329         modifications.
59330         * MODULES.html.sh (Signal handling): New section.
59331
59332 2008-07-14  Bruno Haible  <bruno@clisp.org>
59333
59334         * modules/unictype/ctype-* (Description): Add the word "function".
59335         Improves the resulting doc in MODULES.html.
59336
59337 2008-07-12  Ben Pfaff  <blp@gnu.org>
59338
59339         Add longlong module.
59340         * modules/longlong: New file.
59341
59342 2008-07-12  Bruno Haible  <bruno@clisp.org>
59343
59344         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59345         to empty.
59346
59347 2008-07-10  Ben Pfaff  <blp@gnu.org>
59348
59349         Add isnan module.
59350         * doc/posix-functions/isnan.texi: Mention new module.
59351         * lib/math.in.h: Define isnan macro if we have decided to replace
59352         it.
59353         * m4/isnan.m4: New file.
59354         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59355         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59356         also.
59357         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59358         redundancy.
59359         * m4/math_h.m4: Initialize and substitute variables for isnan
59360         module.
59361         * modules/isnan: New file.
59362         * modules/isnan-tests: New file.
59363         * modules/math: Add substitutions for new module.
59364         * tests/test-isnan.c: New file.
59365         * MODULES.html.sh: Mention new module.
59366
59367 2008-07-10  Ben Pfaff  <blp@gnu.org>
59368
59369         Add isnanf module.
59370         * lib/isnanf.m4: New file.
59371         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59372         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59373         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59374         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59375         * modules/isnanf: New file.
59376         * modules/isnanf-tests: New file.
59377         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59378         files.
59379         * tests/test-isnanf-nolibm.c: factored most of its contents into
59380         new file tests/test-isnanf.h.
59381         * tests/test-isnanf.h: New file.
59382         * tests/test-isnanf.c: New file.
59383         * MODULES.html.sh: Mention new module.
59384         * doc/glibc-functions/isnanf.texi: Mention new module.
59385
59386 2008-07-10  Ben Pfaff  <blp@gnu.org>
59387
59388         Add isnand module.
59389         * lib/isnand.h: New file.
59390         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59391         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59392         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59393         functionality also.
59394         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59395         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59396         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59397         * modules/isnand: New file.
59398         * modules/isnand-tests: New file.
59399         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59400         files.
59401         * tests/test-isnand-nolibm.c: factored most of its contents into
59402         new file tests/test-isnand.h.
59403         * tests/test-isnand.h: New file.
59404         * tests/test-isnand.c: New file.
59405         * MODULES.html.sh: Mention new module.
59406
59407 2008-07-10  Ben Pfaff  <blp@gnu.org>
59408
59409         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59410         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59411         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59412         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59413         * modules/isnanf-nolibm: Update references to renamed files.
59414         * modules/isnand-nolibm: Likewise.
59415         * modules/isnanf-nolibm-tests: Likewise.
59416         * modules/isnand-nolibm-tests: Likewise.
59417         * lib/frexp.c: Likewise.
59418         * lib/isfinite.c: Likewise.
59419         * lib/signbitd.c: Likewise.
59420         * lib/signbitf.c: Likewise.
59421         * lib/vasnprintf.c: Likewise.
59422         * tests/test-ceilf1.c: Likewise.
59423         * tests/test-ceilf2.c: Likewise.
59424         * tests/test-floorf1.c: Likewise.
59425         * tests/test-floorf2.c: Likewise.
59426         * tests/test-frexp.c: Likewise.
59427         * tests/test-round1.c: Likewise.
59428         * tests/test-round2.c: Likewise.
59429         * tests/test-roundf1.c: Likewise.
59430         * tests/test-strtod.c: Likewise.
59431         * tests/test-trunc1.c: Likewise.
59432         * tests/test-trunc2.c: Likewise.
59433         * tests/test-truncf1.c: Likewise.
59434         * tests/test-truncf2.c: Likewise.
59435         * NEWS: Mention the renamed header files.
59436
59437 2008-07-11  Jim Meyering  <meyering@redhat.com>
59438
59439         vc-list-files: make the last-resort awk code more portable
59440         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59441         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59442         does not support it.
59443
59444 2008-07-10  Eric Blake  <ebb9@byu.net>
59445
59446         Work with tar's bootstrap.
59447         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59448         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59449         an m4 comment.
59450
59451 2008-07-09  Jim Meyering  <meyering@redhat.com>
59452
59453         posix-shell.m4: fix typo that made this test malfunction
59454         * m4/posix-shell.m4: Remove capitalization in variable name.
59455
59456 2008-07-08  Bruno Haible  <bruno@clisp.org>
59457
59458         * m4/onceonly.m4: Update comments.
59459         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59460
59461 2008-07-04  Jim Meyering  <meyering@redhat.com>
59462
59463         * users.txt: Add vc-dwim.
59464         (bison, coreutils): Use the gitweb URL.
59465
59466 2008-07-03  Jim Meyering  <meyering@redhat.com>
59467
59468         * users.txt: Add libffcall.  From Sam Steingold.
59469
59470 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59471
59472         getdate.y: do not ignore TZ with relative day, month or year offset
59473         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59474         relative-date-handling, since otherwise, the latter would clobber the
59475         sole output (an updated Start value) of the tz-handling block.
59476         * tests/test-getdate.c: Tests for the fix
59477
59478 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59479
59480         Recognize 'foo_LIBRARIES += libgnu.a'.
59481         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59482         makefile snippet has already specified an installation location,
59483         also using '+='.
59484
59485 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59486
59487         getdate.y: factor out common actions
59488         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59489         Use them in place of open-coded actions.
59490
59491 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59492
59493         Add self-test for getdate module.
59494         * modules/getdate-tests: New file.
59495         * tests/test-getdate.c: New file.
59496
59497 2008-06-29  Bruno Haible  <bruno@clisp.org>
59498
59499         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59500         .gitignore.
59501         Reported by Sylvain Beucler <beuc@beuc.net>.
59502
59503 2008-06-29  Bruno Haible  <bruno@clisp.org>
59504
59505         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59506         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59507
59508 2008-06-29  Bruno Haible  <bruno@clisp.org>
59509
59510         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59511         EXTRA_DIST.
59512         Reported by Sylvain Beucler <beuc@beuc.net>.
59513
59514 2008-06-26  Jim Meyering  <meyering@redhat.com>
59515
59516         make several modules depend on the "open" module
59517         This provides slightly increased consistency when opening-for-write
59518         the name of a non-directory spelled with a trailing slash.
59519         * modules/chdir-safer: Likewise.
59520         * modules/chown: Likewise.
59521         * modules/clean-temp: Likewise.
59522         * modules/copy-file: Likewise.
59523         * modules/fchdir: Likewise.
59524         * modules/fcntl-safer: Likewise.
59525         * modules/pipe: Likewise.
59526         * modules/utime: Likewise.
59527         Prompted by Eric Blake and Bruno Haible.
59528
59529 2008-06-24  Andreas Schwab  <schwab@suse.de>
59530
59531         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59532         literals can be used as initializers for global variables.
59533
59534 2008-06-23  Eric Blake  <ebb9@byu.net>
59535
59536         Make gnulib-cache.m4 easier to diff.
59537         * gnulib-tool (func_import): Allow newlines when reading cached
59538         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59539
59540 2008-06-23  Bruno Haible  <bruno@clisp.org>
59541
59542         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59543         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59544         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59545         m4/signalblocking.m4.
59546         (gl_PREREQ_SIGACTION): Don't invoke it.
59547         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59548         gl_PREREQ_SIG_HANDLER_H.
59549         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59550         Don't check for sigaction here.
59551
59552 2008-06-23  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59555         (install_handlers): Don't set the SA_RESETHAND flag.
59556
59557 2008-06-23  Bruno Haible  <bruno@clisp.org>
59558
59559         * m4/sigaction.m4: Comment fixes.
59560         * lib/signal.in.h: Likewise.
59561
59562 2008-06-23  Eric Blake  <ebb9@byu.net>
59563
59564         Fix typo.
59565         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59566
59567         Avoid SA_ namespace.
59568         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59569         Reported by Ralf Wildenhues.
59570
59571         Avoid test failure due to SA_RESTORER.
59572         * tests/test-sigaction.c (SA_MASK): New macro.
59573         (main): Avoid failing due to extension flags being set.
59574         Reported by Jim Meyering.
59575
59576         Revert use of sig-handler.h in sigprocmask.c.
59577         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59578         it requires the existence of struct sigaction.
59579         * lib/sigprocmask.c (handler_t): Restore typedef.
59580         (rpl_signal, old_handlers): Use local type.
59581
59582 2008-06-22  Bruno Haible  <bruno@clisp.org>
59583
59584         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59585         conditionally.
59586         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59587
59588 2008-06-22  Bruno Haible  <bruno@clisp.org>
59589
59590         * doc/posix-functions/siginterrupt.texi: Move note.
59591
59592         * lib/signal.in.h (SA_RESTART): New macro.
59593         * lib/sigaction.c: Update comment.
59594
59595         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59596
59597         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59598         (gl_PREREQ_SIGPROCMASK): Invoke it.
59599         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59600
59601         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59602
59603         * lib/sigprocmask.c: Update a comment.
59604
59605 2008-06-21  Eric Blake  <ebb9@byu.net>
59606
59607         Use sigaction module rather than signal().
59608         * modules/c-stack (Depends-on): Add sigaction.
59609         * modules/fatal-signal (Depends-on): Likewise.
59610         * modules/nanosleep (Depends-on): Likewise.
59611         * modules/sigprocmask (Files): Add sig-handler.h.
59612         * modules/sigaction (Files): Likewise.
59613         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59614         Eggert.
59615         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59616         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59617         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59618         (init_fatal_signals): Likewise.
59619         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59620         (siginterrupt): Delete fallback.
59621         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59622         instead.
59623         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59624         siginterrupt.
59625
59626         New module sigaction, for mingw.
59627         * modules/sigaction: New module...
59628         * modules/sigaction-tests: ...and its test.
59629         * m4/sigaction.m4: New file.
59630         * lib/sigaction.c: Likewise.
59631         * tests/test-sigaction.c: Likewise.
59632         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59633         * modules/signal (Makefile.am): Likewise.
59634         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59635         needed.
59636         * doc/posix-headers/signal.texi (signal.h): Mention provided
59637         types.
59638         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59639         that sigaction is preferable.
59640         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59641         module.
59642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59643         sigaction.
59644
59645         Improve robustness of sigprocmask by overriding signal.
59646         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59647         is in use.
59648         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59649         (SIGKILL, SIGSTOP): Provide fallbacks.
59650         (rpl_signal): Implement.
59651         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59652         signal can be called inside handlers.
59653
59654         Fix nanosleep module on mingw.
59655         * modules/nanosleep (Depends-on): Add sys_select.
59656         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59657
59658         Fix licensing of sigprocmask.
59659         * modules/raise (License): Relicense as LGPL.
59660
59661 2008-06-21  Bruno Haible  <bruno@clisp.org>
59662
59663         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59664         result if it contains question marks.
59665         Reported by Michael Geng <linux@michaelgeng.de>.
59666
59667 2008-06-19  Bruno Haible  <bruno@clisp.org>
59668
59669         Fix CVS-ism.
59670         * doc/gnulib.texi: Include updated-stamp.texi.
59671         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59672         (updated-stamp.texi): New rule.
59673         (gnulib.info): Depend on it.
59674         * doc/.gitignore: Add updated-stamp.texi.
59675         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59676
59677 2008-06-19  Bruno Haible  <bruno@clisp.org>
59678
59679         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59680         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59681
59682 2008-06-19  Eric Blake  <ebb9@byu.net>
59683
59684         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59685         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59686         Reported by Stepan Kasal.
59687
59688 2008-06-18  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59691         Reported by Eric Blake.
59692
59693 2008-06-18  Eric Blake  <ebb9@byu.net>
59694
59695         Work around cygwin 1.5.25 strsignal bug.
59696         * tests/test-strsignal.c: Allow for const char *.
59697         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59698
59699 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59700
59701         * users.txt: Update URL to article and add author/date
59702         information.
59703
59704 2008-06-17  Bruno Haible  <bruno@clisp.org>
59705
59706         New macro gl_DISABLE_THREADS.
59707         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59708         if the user did not pass --enable-threads or --disable-threads option.
59709         (gl_DISABLE_THREADS): New macro.
59710         Reported by Eric Blake <ebb9@byu.net>.
59711
59712 2008-06-17  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59715         when the macro ignores it.
59716         Based on a patch by Eric Blake <ebb9@byu.net>.
59717
59718 2008-06-17  Bruno Haible  <bruno@clisp.org>
59719
59720         * modules/tls (License): Change to LGPLv2+.
59721         Reported by Eric Blake.
59722
59723 2008-06-17  Eric Blake  <ebb9@byu.net>
59724
59725         Simplify c-stack prerequisites.
59726         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59728         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59729         check.
59730         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59731         <sys/resource.h>.
59732
59733         Move c-stack test into testsuite.
59734         * modules/c-stack-tests: New file.
59735         * lib/c-stack.c [DEBUG]: Move test program...
59736         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59737         fail test if sigaltstack is lacking.
59738         * tests/test-c-stack.sh: New driver file.
59739
59740 2008-06-16  Eric Blake  <ebb9@byu.net>
59741
59742         Use raise module consistently.
59743         * modules/fatal-signal (Depends-on): Add raise.
59744         * modules/sigprocmask (Depends-on): Likewise.
59745         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59746         * lib/sigprocmask.c (sigprocmask): Likewise.
59747         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59748         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59749
59750         Fix compliance bug in sigpending.
59751         * lib/sigprocmask.c (sigpending): Return pending array via
59752         parameter, not return value.
59753
59754 2008-06-14  Eric Blake  <ebb9@byu.net>
59755
59756         Improve obstack-printf test code.
59757         * tests/test-obstack-printf.c (test_function): Fix comment, and
59758         simplify usage of obstack_* in macros.  Add a test for coverage.
59759         Reported by Bruno Haible.
59760
59761 2008-06-14  Bruno Haible  <bruno@clisp.org>
59762
59763         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59764         array size as a constant, not as a const variable.
59765         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59766         AC_USE_SYSTEM_EXTENSIONS.
59767         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59768         Test whether the obstack_printf function actually exists.
59769         * modules/obstack-printf (Depends-on): Add extensions.
59770         (Include): Remove obstack.h.
59771         * modules/obstack-printf-posix (Depends-on): Add extensions.
59772         (Include): Remove obstack.h.
59773
59774 2008-06-13  Eric Blake  <ebb9@byu.net>
59775
59776         Add obstack-printf and obstack-printf-posix modules.
59777         * modules/obstack-printf: New file.
59778         * modules/obstack-printf-posix: Likewise.
59779         * MODULES.html.sh (Misc): Mention them.
59780         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59781         Likewise.
59782         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59783         Likewise.
59784         * modules/stdio (Makefile.am): Accomodate new modules.
59785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59786         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59787         Declare.
59788         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59789         functions.
59790         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59791         (gl_REPLACE_OBSTACK_PRINTF): New macros
59792         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59793         * tests/test-obstack-printf.c: New file.
59794         * modules/obstack-printf-tests: Likewise.
59795         * modules/obstack-printf-posix-tests: Likewise.
59796
59797 2008-06-11  Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59800         * lib/open.c: Include errno.h.
59801         (open): Fail when attempting to write to a file that has a trailing
59802         slash.
59803         * tests/test-open.c (main): Test against trailing slash bug.
59804         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59805
59806 2008-06-10  Bruno Haible  <bruno@clisp.org>
59807
59808         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59809         for $? to work inside the trap command, with various /bin/sh-s.
59810         * tests/test-vc-list-files-cvs.sh: Likewise.
59811
59812 2008-06-10  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/acl-internal.h: Don't include gettext.h here.
59815         * lib/set-mode-acl.c: Include gettext.h here.
59816         * lib/copy-acl.c: Likewise.
59817
59818 2008-06-10  Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59821         * lib/wait-process.c (wait_subprocess): Likewise.
59822         * lib/execute.h (execute): Add termsigp argument.
59823         * lib/execute.c (execute): Likewise.
59824         * lib/csharpcomp.c (compile_csharp_using_pnet,
59825         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59826         * lib/csharpexec.c (execute_csharp_using_pnet,
59827         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59828         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59829         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59830         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59831         is_jikes_present): Update.
59832         * lib/javaexec.c (execute_java_class): Update.
59833         * lib/javaversion.c (execute_and_read_line): Update.
59834         * NEWS: Document the changes.
59835         Reported by Eric Blake.
59836
59837 2008-06-10  Eric Blake  <ebb9@byu.net>
59838
59839         Add missing include.
59840         * tests/test-strstr.c (includes): Add <signal.h>.
59841         * tests/test-strcasestr.c (includes): Likewise.
59842         * tests/test-memmem.c (includes): Likewise.
59843
59844 2008-06-10  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/wait-process.c (wait_subprocess): Add an assertion.
59847
59848 2008-06-10  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59851
59852 2008-06-10  Bruno Haible  <bruno@clisp.org>
59853
59854         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59855         using alarm().
59856         * tests/test-strcasestr.c (main): Likewise.
59857         * tests/test-strstr.c (main): Likewise.
59858
59859 2008-06-09  Bruno Haible  <bruno@clisp.org>
59860
59861         Work around the Solaris 10 ACE ACLs ABI change.
59862         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59863         declare if ACL_NO_TRIVIAL is present.
59864         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59865         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59866         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59867         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59868         define if ACL_NO_TRIVIAL is present.
59869         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59870         and use the current ABI.
59871         (file_has_acl): Use same #if condition as elsewhere.
59872         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59873         in use, and use the current ABI.
59874         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59875         Reported by Jim Meyering.
59876
59877 2008-06-09  Eric Blake  <ebb9@byu.net>
59878
59879         Work around environments that (stupidly) ignore SIGALRM.
59880         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59881         before using alarm().
59882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59884         Reported by Ian Beckwith <ianb@erislabs.net>.
59885
59886         Produce autobuild blurb earlier in log.
59887         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59888
59889 2008-06-09  Jim Meyering  <meyering@redhat.com>
59890         and Ondřej Vašík  <ovasik@redhat.com>
59891
59892         utimens.c: correct kernel bug work-around
59893         Ondřej Vašík found that the invalid return value of 280 indicates
59894         failure, not success, and the kernel bug we're trying to work
59895         around affects not just the utimensat call, but also the fallback
59896         futimens call.
59897         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59898         not success.
59899         [HAVE_FUTIMENS]: Use the same work-around, here.
59900
59901 2008-06-09  Jim Meyering  <meyering@redhat.com>
59902
59903         add more guards around definition of ACE_-related code
59904         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59905         ALLOW and ACE_OWNER are also defined.
59906
59907 2008-06-08  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/acl-internal.h: Add me as co-author.
59910         * lib/file-has-acl.c: Likewise.
59911         * lib/set-mode-acl.c: Likewise.
59912         * lib/copy-acl.c: Likewise.
59913
59914 2008-06-08  Bruno Haible  <bruno@clisp.org>
59915
59916         Add support for AIX ACLs.
59917         * lib/acl-internal.h (acl_nontrivial): New declaration.
59918         * lib/file-has-acl.c (acl_nontrivial): New function.
59919         (file_has_acl): Add implementation using AIX 4 ACL API.
59920         * lib/set-mode-acl.c (qset_acl): Likewise.
59921         * lib/copy-acl.c (qcopy_acl): Likewise.
59922
59923 2008-06-08  Bruno Haible  <bruno@clisp.org>
59924
59925         Add support for HP-UX ACLs.
59926         * lib/acl-internal.h (acl_nontrivial): New declaration.
59927         * lib/file-has-acl.c (acl_nontrivial): New function.
59928         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59929         * lib/set-mode-acl.c (qset_acl): Likewise.
59930         * lib/copy-acl.c (qcopy_acl): Likewise.
59931
59932 2008-06-08  Bruno Haible  <bruno@clisp.org>
59933
59934         Add support for Cygwin ACLs.
59935         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59936         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59937         the chmod_or_fchmod call.
59938         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59939
59940 2008-06-08  Bruno Haible  <bruno@clisp.org>
59941
59942         Fix bug with setuid modes in Solaris 10+ code.
59943         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59944         succeeded, when the mode contains some special bits.
59945
59946 2008-06-08  Bruno Haible  <bruno@clisp.org>
59947
59948         Add support for Solaris 7..10 ACLs.
59949         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59950         declarations.
59951         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59952         functions.
59953         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59954         * lib/set-mode-acl.c (qset_acl): Likewise.
59955         * lib/copy-acl.c (qcopy_acl): Likewise.
59956
59957 2008-06-08  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59960         declaration.
59961         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59962         (acl_access_nontrivial): Remove MacOS X case.
59963         (file_has_acl): Use acl_extended_nontrivial.
59964         * lib/copy-acl.c (qcopy_acl): Likewise.
59965
59966 2008-06-08  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59969
59970 2008-06-08  Jim Meyering  <meyering@redhat.com>
59971
59972         * modules/acl (Maintainer): Add Bruno Haible.
59973
59974 2008-06-07  Bruno Haible  <bruno@clisp.org>
59975
59976         Improve support for Tru64 ACLs.
59977         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59978         ACL on OSF/1.
59979
59980 2008-06-07  Bruno Haible  <bruno@clisp.org>
59981
59982         Add support for MacOS X ACLs.
59983         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59984         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59985         * lib/set-mode-acl.c (qset_acl): Likewise.
59986         * lib/copy-acl.c (qcopy_acl): Likewise.
59987
59988 2008-06-07  Bruno Haible  <bruno@clisp.org>
59989
59990         Fix memory leak introduced on 2008-05-22.
59991         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59992         use.
59993
59994 2008-06-07  Bruno Haible  <bruno@clisp.org>
59995
59996         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59997         to construct an empty ACL.
59998
59999 2008-06-07  Bruno Haible  <bruno@clisp.org>
60000
60001         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60002         precisely.
60003         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60004
60005 2008-06-07  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60008         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60009
60010 2008-06-07  Bruno Haible  <bruno@clisp.org>
60011
60012         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60013         regardless of POSIX.
60014         * doc/posix-functions/_longjmp.texi: Likewise.
60015         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60016         SystemV platform in this case.
60017
60018 2008-06-06  Eric Blake  <ebb9@byu.net>
60019
60020         Document abort() bugs.
60021         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60022
60023         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60024         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60025         sigsetjmp.
60026         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60027         siglongjmp, but only as a macro.
60028         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60029         is obsolete.
60030         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60031
60032         Tweak documentation to cover cygwin argz bugs.
60033         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60034         argz bug fix; no code change needed since no cygwin releases
60035         occurred between the last fix and the bug being tested.
60036         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60037         module and recently fixed cygwin bugs.
60038         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60039         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60040         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60041         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60042         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60043         Likewise.
60044         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60045         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60046         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60047         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60048         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60049         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60050         Likewise.
60051
60052         Avoid gcc warning on cygwin.
60053         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60054         !ACL_NO_TRIVIAL]: Avoid unused variable.
60055
60056 2008-06-05  Eric Blake  <ebb9@byu.net>
60057
60058         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60059         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60060         git-version-gen fails to come up with a version.
60061         Reported by Simon Josefsson.
60062
60063 2008-06-05  Jim Meyering  <meyering@redhat.com>
60064             Paul Eggert  <eggert@cs.ucla.edu>
60065
60066         utimens.c: work around a probable Linux kernel bug
60067         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60068         appears to be a kernel bug that causes utimensat to return 280
60069         instead of 0, indicating success.
60070
60071 2008-06-04  Bruno Haible  <bruno@clisp.org>
60072
60073         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60074         2008-06-01 commit.
60075
60076 2008-06-04  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60079         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60080         (file_has_acl): Use it. Save errno afterwards.
60081         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60082
60083 2008-06-03  Bruno Haible  <bruno@clisp.org>
60084
60085         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60086         draft code. Simplify #ifs.
60087         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60088         Put Solaris code after POSIX-draft code. Fix comments regarding
60089         Solaris 10, HP-UX. Mention Cygwin.
60090         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60091
60092 2008-06-03  Eric Blake  <ebb9@byu.net>
60093
60094         Provide fallback for older kernels.
60095         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60096         Provide runtime fallback if kernel lacks support.
60097         Reported by Mike Frysinger.
60098
60099 2008-06-02  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60102         it exists.
60103
60104 2008-06-02  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60107         * lib/copy-acl.c (qcopy_acl): Update comment.
60108
60109 2008-06-02  Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60112         like ACL APIs.
60113
60114 2008-06-02  Bruno Haible  <bruno@clisp.org>
60115
60116         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60117         * tests/test-set-mode-acl.sh: Likewise.
60118         * tests/test-copy-acl.sh: Likewise.
60119         * tests/test-copy-file.sh: Likewise.
60120
60121 2008-06-02  Bruno Haible  <bruno@clisp.org>
60122
60123         * tests/test-file-has-acl.sh: Remove unused code.
60124
60125 2008-06-01  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60128         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60129         messages.
60130         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60131
60132 2008-06-01  Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60135         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60136         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60137         APIs.
60138         * modules/acl-tests (configure.ac): Remove tests now contained in
60139         m4/acl.m4.
60140
60141 2008-06-02  Jim Meyering  <meyering@redhat.com>
60142
60143         announce-gen: use a better key-server host name
60144         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60145         it may be more consistently reliable.  Suggested by Werner Koch
60146         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60147
60148 2008-06-01  Bruno Haible  <bruno@clisp.org>
60149
60150         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60151         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60152
60153 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60154
60155         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60156
60157 2008-06-01  Bruno Haible  <bruno@clisp.org>
60158
60159         New ACL tests.
60160         * tests/test-file-has-acl.sh: New file.
60161         * tests/test-file-has-acl.c: New file.
60162         * tests/test-set-mode-acl.sh: New file.
60163         * tests/test-set-mode-acl.c: New file.
60164         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60165         * tests/test-copy-acl.c: New file.
60166         * modules/acl-tests: New file, based on modules/copy-file-tests.
60167         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60168         (Depends-on): Add acl-tests.
60169         (configure.ac): Remove checks.
60170         (Makefile.am): Don't create test-sameacls program here any more.
60171
60172 2008-06-01  Bruno Haible  <bruno@clisp.org>
60173
60174         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60175         * tests/test-sameacls.c: Include progname.h.
60176         (main): Invoke set_program_name. Portability fixes for MacOS X,
60177         Solaris, HP-UX.
60178
60179 2008-06-01  Bruno Haible  <bruno@clisp.org>
60180
60181         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60182         function.
60183         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60184
60185 2008-06-01  Bruno Haible  <bruno@clisp.org>
60186
60187         * modules/rpmatch (Depends-on): Add strdup.
60188
60189 2008-06-01  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/pipe.c: Include unistd-safer.h.
60192         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60193         * modules/pipe (Depends-on): Add unistd-safer.
60194
60195 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60196
60197         * modules/autobuild (configure.ac): Call AB_INIT.
60198
60199 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60200
60201         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60202         Suggested by Bruno Haible <bruno@clisp.org>.
60203
60204 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60205
60206         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60207         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60208         <bruno@clisp.org>.
60209
60210 2008-05-29  Eric Blake  <ebb9@byu.net>
60211
60212         Prefer new POSIX 200x interfaces over futimesat.
60213         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60214         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60215         when available.
60216         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60217
60218 2008-05-28  Bruno Haible  <bruno@clisp.org>
60219
60220         * modules/stpcpy (License): Change to LGPLv2+.
60221         Requested by David Lutterkort <dlutter@redhat.com>.
60222
60223 2008-05-27  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60226         current mingw.
60227         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60228
60229 2008-05-27  Bruno Haible  <bruno@clisp.org>
60230
60231         * modules/iconv_open (Link): New section, from module 'iconv'.
60232         * modules/striconv (Link): Likewise.
60233         * modules/striconveh (Link): Likewise.
60234         * modules/xstriconv (Link): Likewise.
60235         * modules/unicodeio (Link): Likewise.
60236         * modules/propername (Link): Likewise.
60237         Reported by Jim Meyering.
60238
60239 2008-05-26  Jim Meyering  <meyering@redhat.com>
60240
60241         sha256: do not artificially restrict buffer length to be < 2^32
60242         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60243         uint32_t to size_t.
60244         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60245         to match.
60246
60247         avoid unaligned access errors, e.g., on sparc
60248         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60249         direct access through a possibly-unaligned uint64* pointer.
60250         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60251         direct access through a possibly-unaligned uint32* pointer.
60252         Prompted by this patch from Tom "spot" Callaway:
60253         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60254
60255         sha512.c: fix typo in comment
60256         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60257
60258 2008-05-25  Bruno Haible  <bruno@clisp.org>
60259
60260         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60261         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60262         (Makefile.am): Update lib_SOURCES.
60263
60264 2008-05-25  Bruno Haible  <bruno@clisp.org>
60265
60266         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60267
60268 2008-05-25  Jim Meyering  <meyering@redhat.com>
60269
60270         useless-if-before-free: freed expr may have white-space differences
60271         * build-aux/useless-if-before-free: Recognize cases in which the
60272         freed expression differs from the tested one in embedded white
60273         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60274         $1 was used, so we can't make any regexp shy.  Improved tests now
60275         detect this.
60276
60277         useless-if-before-free: accept white space in the expression.
60278         * build-aux/useless-if-before-free: For now, any white space
60279         in the expression must be identical in the free argument.
60280
60281         useless-if-before-free: efficiency tweak
60282         * build-aux/useless-if-before-free: Make the expression-matching
60283         regexp "shy".
60284         Make the *outer* regexp shy, not the expr-matching one.
60285
60286         update code-in-comment to accept cast of free arg
60287         * build-aux/useless-if-before-free: Update regexp.
60288
60289 2008-05-25  Bruno Haible  <bruno@clisp.org>
60290
60291         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60292         * modules/copy-file-tests (Files, Makefile.am): Update.
60293         * tests/test-copy-file.c (func_test_copy): Update.
60294
60295 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60296
60297         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60298
60299 2008-05-23  Bruno Haible  <bruno@clisp.org>
60300
60301         Improve support for ACLs on OSF/1.
60302         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60303         Remove fallback for unknown flavors of ACLs.
60304
60305 2008-05-22  Bruno Haible  <bruno@clisp.org>
60306
60307         Add support for ACLs on OSF/1.
60308         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60309         replacements.
60310         (acl_free_text): New macro fallback.
60311         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60312         acl_free.
60313         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60314         acl_free_text function. Require AC_C_INLINE.
60315
60316 2008-05-22  Bruno Haible  <bruno@clisp.org>
60317
60318         Make copy_acl work on MacOS X 10.5.
60319         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60320         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60321         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60322         If MODE_INSIDE_ACL, don't assume that every system has the same text
60323         representation for ACLs as FreeBSD.
60324         * lib/copy-acl.c (copy_acl): Add support for platforms with
60325         !MODE_INSIDE_ACL.
60326         * lib/file-has-acl.c (file_has_acl): Likewise.
60327         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60328         FreeBSD, MacOS X, or IRIX, respectively.
60329
60330 2008-05-22  Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/acl.h: Don't include <sys/acl.h>.
60333         (GETACLCNT): Move fallback to lib/acl-internal.h.
60334         * lib/acl-internal.h: Include <sys/acl.h> here.
60335         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60336
60337 2008-05-22  Bruno Haible  <bruno@clisp.org>
60338
60339         Split off copy_acl function to separate file.
60340         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60341         * lib/acl.c (copy_acl): Moved function to separate file.
60342         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60343         * modules/acl (Files): Add lib/copy-acl.c.
60344         (Makefiles.am): Augment lib_SOURCES.
60345
60346 2008-05-22  Bruno Haible  <bruno@clisp.org>
60347
60348         * modules/copy-file-tests: New file.
60349         * tests/test-copy-file.sh: New file.
60350         * tests/test-copy-file.c: New file.
60351         * tests/test-copy-file-sameacls.c: New file.
60352
60353 2008-05-22  Eric Blake  <ebb9@byu.net>
60354
60355         Avoid gcc warning.
60356         * tests/test-memcmp.c (main): Pass NULL indirectly.
60357
60358 2008-05-21  Bruno Haible  <bruno@clisp.org>
60359
60360         Add reference doc about ACLs.
60361         * doc/acl-resources.txt: New file.
60362         * doc/acl-cygwin.txt: New file.
60363
60364 2008-05-21  Bruno Haible  <bruno@clisp.org>
60365
60366         Avoid one more warning from gcc.
60367         * lib/vasnprintf.c (IF_LINT): Update comments.
60368         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60369
60370 2008-05-21  Jim Meyering  <meyering@redhat.com>
60371
60372         avoid a warning from gcc
60373         * lib/vasnprintf.c (IF_LINT): Define.
60374         (scale10_round_decimal_long_double):
60375         Use it to avoid a "may be used uninitialized" warning.
60376         (scale10_round_decimal_double): Likewise.
60377
60378 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60379
60380         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60381         declared.
60382
60383 2008-05-20  Bruno Haible  <bruno@clisp.org>
60384
60385         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60386         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60387
60388 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60389
60390         * modules/memcmp-tests: New file.
60391         * tests/test-memcmp.c: New file.
60392
60393 2008-05-19  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/propername (Notice, configure.ac): Put quoted "..." into
60396         --keyword option.
60397         * lib/propername.h: Update comments accordingly.
60398         Reported by Eric Blake.
60399
60400 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60401
60402         * modules/getpass-gnu (Depends-on): Add fseeko.
60403
60404 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60405
60406         * modules/base64-tests: New file.
60407
60408 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60409
60410         * lib/base64.c (base64_decode_ctx): If a decode context structure
60411         was passed in use it to ignore newlines.  If a context structure
60412         was _not_ passed in, continue to treat newlines as garbage (this
60413         is the historical behavior).  Formerly base64_decode.
60414         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60415         takes a decode context structure.
60416         * lib/base64.h (base64_decode): Macro for four-argument calls.
60417         (base64_decode_alloc): Likewise.
60418         * lib/base64.c (base64_decode_ctx): If a decode context structure
60419         was passed in use it to ignore newlines.  If a context structure
60420         was _not_ passed in, continue to treat newlines as garbage (this
60421         is the historical behavior).  Formerly base64_decode.
60422         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60423         takes a decode context structure.
60424         * lib/base64.h (base64_decode): Macro for four-argument calls.
60425         (base64_decode_alloc): Likewise.
60426
60427 2008-05-19  Jim Meyering  <meyering@redhat.com>
60428
60429         avoid a warning from gcc
60430         * lib/trim.c (IF_LINT): Define.
60431         (trim2): Use it to avoid a "may be used uninitialized" warning.
60432
60433         Fix doc typo.
60434         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60435
60436 2008-05-19  Bruno Haible  <bruno@clisp.org>
60437
60438         * doc/glibc-functions/getpass.texi: Document limits of other
60439         implementations.
60440
60441 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60442             Bruno Haible <bruno@clisp.org>
60443
60444         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60445
60446 2008-05-18  Bruno Haible  <bruno@clisp.org>
60447
60448         * modules/propername: New file, from GNU gettext.
60449         * lib/propername.h: New file, from GNU gettext.
60450         * lib/propername.c: New file, from GNU gettext.
60451         * MODULES.html.sh (Internationalization functions): Add propername.
60452
60453 2008-05-16  Jim Meyering  <meyering@redhat.com>
60454             Bruno Haible  <bruno@clisp.org>
60455
60456         Avoid some warnings from "gcc -Wshadow".
60457         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60458
60459 2008-05-15  Eric Blake  <ebb9@byu.net>
60460
60461         Extend previous patch to cygwin 1.7.0.
60462         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60463         fast implementation in cygwin >= 1.7.0.
60464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60466
60467 2008-05-15  Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60470         implementation in glibc >= 2.9.
60471         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60473
60474 2008-05-15  Bruno Haible  <bruno@clisp.org>
60475
60476         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60477         (Unicode string functions): Add unilbrk/*.
60478         Reported by Karl Berry.
60479
60480 2008-05-15  Eric Blake  <ebb9@byu.net>
60481
60482         Fix violation of <stdbool.h> replacement in regex.
60483         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60484         * lib/regexec.c (re_search_internal): Likewise.
60485         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60486
60487 2008-05-15  Jim Meyering  <meyering@redhat.com>
60488
60489         avoid distracting test output when git or cvs is not found
60490         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60491         * tests/test-vc-list-files-git.sh: Likewise.
60492
60493 2008-05-15  Eric Blake  <ebb9@byu.net>
60494
60495         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60496         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60497         glibc version.
60498         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60499         * doc/posix-functions/strstr.texi (strstr): Likewise.
60500         * lib/str-two-way.h (MAX): Sychronize with glibc.
60501
60502 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60503
60504         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60505         opr.ctx_type.
60506         (calc_first): Initialize constraint field.
60507         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60508         Fix grammar.
60509         (duplicate_node): Merge constraint field for all node types.
60510         (calc_eclosure_iter): Look at constraint field for all node types.
60511         * lib/regex_internal.c (create_cd_newstate): Don't look at
60512         opr.ctx_type.
60513
60514 2008-05-14  Bruno Haible  <bruno@clisp.org>
60515
60516         Help GCC to do better code generation.
60517         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60518         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60519         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60520         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60521         Declare with attribute 'malloc' if supported.
60522
60523 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60524
60525         use "echo STR|wc -c" rather than unportable "expr length STR"
60526         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60527         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60528
60529 2008-05-14  Jim Meyering  <meyering@redhat.com>
60530
60531         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60532         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60533         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60534         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60535         via Collin Lasse.
60536
60537 2008-05-14  Eric Blake  <ebb9@byu.net>
60538
60539         Avoid quadratic growth in gl_LIBSOURCES.
60540         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60541         Suggested by Bruno Haible.
60542
60543         Test xmemdup0.
60544         * modules/xmemdup0-tests: New file.
60545         * tests/test-xmemdup0.c: Likewise.
60546
60547 2008-05-13  Eric Blake  <ebb9@byu.net>
60548
60549         Split xmemdup0 into its own module.
60550         * modules/xmemdup0: New file.
60551         * lib/xmemdup0.h: Likewise.
60552         * lib/xmemdup0.c: Likewise.
60553         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60554         * lib/xalloc.h (xmemdup0): Remove.
60555         * lib/xmalloc.c (xmemdup0): Likewise.
60556
60557 2008-05-13  Eric Blake  <ebb9@byu.net>
60558             Bruno Haible  <bruno@clisp.org>
60559
60560         Reduce number of forks required during autoconf.
60561         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60562         and gl_LIBSOURCES_DIR.
60563         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60564         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60565         m4_syscmd per file.
60566         <m4_foreach_w>: Move...
60567         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60568
60569 2008-05-13  Eric Blake  <ebb9@byu.net>
60570
60571         * gnulib-tool: Fix various comment typos.
60572
60573 2008-05-12  Bruno Haible  <bruno@clisp.org>
60574
60575         Tailor the linebreaking algorithm.
60576         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60577
60578 2008-05-12  Bruno Haible  <bruno@clisp.org>
60579
60580         Update to Unicode 5.0.0.
60581         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60582         LBP_JV, LBP_JT. Redistribute values.
60583         (unilbrk_table): Change size.
60584         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60585         Unicode TR#14 rev. 22.
60586         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60587         LBP_JV, LBP_JT. Redistribute values.
60588         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60589         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60590         Update.
60591         * lib/unilbrk/lbrkprop1.h: Regenerated.
60592         * lib/unilbrk/lbrkprop2.h: Regenerated.
60593         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60594         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60595         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60596         Likewise.
60597         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60598         Likewise.
60599         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60600         result.
60601         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60602         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60603         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60604         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60605         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60606         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60607
60608 2008-05-11  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60611
60612 2008-05-11  Bruno Haible  <bruno@clisp.org>
60613
60614         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60615         * modules/unilbrk/gen-lbrk: New file.
60616
60617 2008-05-11  Bruno Haible  <bruno@clisp.org>
60618
60619         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60620         * m4/sha512.m4 (gl_SHA512): Likewise.
60621
60622 2008-05-11  Jim Meyering  <meyering@redhat.com>
60623
60624         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60625         * modules/crypto/sha256: New file.
60626         * modules/crypto/sha512: Likewise.
60627         * lib/sha256.c: Likewise.
60628         * lib/sha256.h: Likewise.
60629         * lib/sha512.c: Likewise.
60630         * lib/sha512.h: Likewise.
60631         * lib/u64.h: Likewise.
60632         * m4/sha256.m4: Likewise.
60633         * m4/sha512.m4: Likewise.
60634         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60635
60636 2008-05-10  Bruno Haible  <bruno@clisp.org>
60637
60638         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60639         (Input/Output <stdio.h>): Add xprintf.
60640         (Signal handling <signal.h>): Add strsignal.
60641         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60642         (Core language properties): Add func.
60643         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60644         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60645         strings.
60646         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60647         (Input/output): New section.
60648         (File system functions): Add openat-die, stat-macros.
60649         (Networking functions): Add sockets.
60650         (Unicode string functions): Add unictype/*.
60651         (Support for building libraries and executables): Add gperf.
60652         (Support for building documentation): Add agpl-3.0.
60653         (Misc): Add nocrash.
60654
60655 2008-05-10  Bruno Haible  <bruno@clisp.org>
60656
60657         * modules/unictype/gen-ctype: New file.
60658
60659 2008-05-10  Jim Meyering  <meyering@redhat.com>
60660
60661         Make chdir-safer.c more efficient on a system with no symlinks.
60662         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60663         also if ELOOP is zero.  Suggested by Bruno Haible.
60664
60665         Make chdir-safer.c slightly safer.
60666         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60667         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60668
60669         Avoid compile failure on systems without ELOOP (like mingw).
60670         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60671         Reported by Bruno Haible.
60672
60673 2008-05-10  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60676         (is_utf8_encoding): Use a case-insensitive comparison.
60677         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60678         streq.
60679
60680 2008-05-10  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60683         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60684         * lib/unilbrk/ulc-common.h (iconv_string_length,
60685         iconv_string_keeping_offsets): Remove declarations.
60686         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60687         Don't include <iconv.h>, streq.h, xsize.h.
60688         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60689         conversion.
60690         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60691         <iconv.h>, streq.h, xsize.h.
60692         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60693         conversion.
60694         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60695         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60696         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60697         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60698
60699 2008-05-10  Bruno Haible  <bruno@clisp.org>
60700
60701         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60702         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60703
60704         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60705         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60706
60707         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60708         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60709
60710         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60711         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60712
60713         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60714         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60715
60716         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60717         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60718
60719         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60720         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60721
60722         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60723         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60724
60725 2008-05-10  Bruno Haible  <bruno@clisp.org>
60726
60727         Split up 'linebreak' module.
60728         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60729         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60730         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60731         modifications.
60732         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60733         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60734         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60735         lib/linebreak.c.
60736         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60737         lib/linebreak.c.
60738         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60739         lib/linebreak.c.
60740         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60741         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60742         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60743         lib/linebreak.c.
60744         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60745         lib/linebreak.c.
60746         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60747         lib/linebreak.c.
60748         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60749         lib/linebreak.c.
60750         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60751         lib/linebreak.c.
60752         * modules/unilbrk/base: New file.
60753         * modules/unilbrk/tables: New file.
60754         * modules/unilbrk/u8-possible-linebreaks: New file.
60755         * modules/unilbrk/u16-possible-linebreaks: New file.
60756         * modules/unilbrk/u32-possible-linebreaks: New file.
60757         * modules/unilbrk/ulc-common: New file.
60758         * modules/unilbrk/ulc-possible-linebreaks: New file.
60759         * modules/unilbrk/u8-width-linebreaks: New file.
60760         * modules/unilbrk/u16-width-linebreaks: New file.
60761         * modules/unilbrk/u32-width-linebreaks: New file.
60762         * modules/unilbrk/ulc-width-linebreaks: New file.
60763         * lib/linebreak.h: Remove file.
60764         * lib/linebreak.c: Remove file.
60765         * m4/linebreak.m4: Remove file.
60766         * modules/linebreak: Remove file.
60767         * NEWS: Mention the changes.
60768
60769 2008-05-09  Eric Blake  <ebb9@byu.net>
60770
60771         Add xmemdup0.
60772         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60773         implementation.
60774         * lib/xmalloc.c (xmemdup0): New C implementation.
60775
60776 2008-05-08  Bruno Haible  <bruno@clisp.org>
60777
60778         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60779
60780 2008-05-07  Eric Blake  <ebb9@byu.net>
60781
60782         Support cross-compilation of <wctype.h>.
60783         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60784         AC_CACHE_CHECK.
60785
60786 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60787
60788         * build-aux/vc-list-files: Add support for bzr.
60789
60790 2008-05-03  Jim Meyering  <meyering@redhat.com>
60791
60792         avoid failed assertion with tight malloc
60793         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60794
60795 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60796
60797         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60798         are needed from arpa/inet.h.
60799         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60800         Reported by Bruno Haible.
60801
60802 2008-05-02  Jim Meyering  <meyering@redhat.com>
60803
60804         avoid compilation error on FreeBSD 6
60805         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60806
60807 2008-05-01  Jim Meyering  <meyering@redhat.com>
60808
60809         useless-if-before-free: correct --help's exit status description
60810         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60811         for one or more matches, etc.  Reported by Bruno Haible.
60812
60813         vc-list-files: make the stand-alone gnulib test work
60814         * modules/vc-list-files-tests (configure.ac):
60815         Define and AC_SUBST abs_aux_dir.
60816         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60817         $(abs_top_srcdir) to each script and having each of them
60818         duplicate the work of setting PATH, set PATH here, using
60819         the new variable, abs_aux_dir instead.
60820         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60821         * tests/test-vc-list-files-git.sh: Likewise.
60822         Reported by Bruno Haible.
60823
60824 2008-05-01  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60827         reallocation. Rename 'done' to 'found_delimiter'.
60828
60829 2008-05-01  Jim Meyering  <meyering@redhat.com>
60830
60831         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60832         * build-aux/vc-list-files: Use `...`, not $(...).
60833
60834 2008-04-30  Jim Meyering  <meyering@redhat.com>
60835
60836         add tests for vc-list-files
60837         * modules/vc-list-files-tests: New module.
60838         * tests/test-vc-list-files-cvs.sh: New file.
60839         * tests/test-vc-list-files-git.sh: New file.
60840
60841         avoid a warning from gcc
60842         * lib/getndelim2.c (IF_LINT): Define.
60843         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60844
60845         vc-list-files: work properly with build-aux/cvsu, too
60846         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60847         to all cvs-based clauses.
60848
60849         vc-list-files: work properly in the CVS+awk case, too
60850         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60851
60852         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60853         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60854         take more than one file argument, so .  Add quotes, just in case $dir
60855         ever contains a shell meta-character.  Prompted by Soren Hansen in
60856         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60857
60858 2008-04-29  Eric Blake  <ebb9@byu.net>
60859
60860         Optimize getndelim2 to use block operations when possible.
60861         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60862         freadseek, and memchr2.
60863         * lib/getndelim2.c (getndelim2): Use them for block reads.
60864
60865 2008-04-29  Bruno Haible  <bruno@clisp.org>
60866
60867         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60868         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60869         * modules/inet_ntop (Depends-on): Add extensions.
60870         * modules/inet_pton (Depends-on): Likewise.
60871         Reported by Simon Josefsson.
60872
60873 2008-04-29  Jim Meyering  <meyering@redhat.com>
60874
60875         When the is more than one match in a block, match all of them.
60876         * build-aux/useless-if-before-free: Iterate through each block
60877         until there are no more matches.
60878
60879         Fix broken useless-if-before-free script.
60880         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60881         the expression to match cast of argument to free-like function.
60882
60883 2008-04-29  Eric Blake  <ebb9@byu.net>
60884
60885         Use new header.
60886         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60887
60888 2008-04-29  Jim Meyering  <meyering@redhat.com>
60889
60890         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60891         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60892         by gnulib to exist and to declare e.g., inet_ntop.
60893         Don't include "inet_ntop.h", now removed.
60894
60895         * m4/arpa_inet_h.m4: Remove trailing blanks.
60896
60897 2008-04-29  Eric Blake  <ebb9@byu.net>
60898
60899         Silence valgrind on safe reads beyond potential array bounds.
60900         * lib/rawmemchr.valgrind: New file.
60901         * lib/strchrnul.valgrind: Likewise.
60902         * modules/rawmemchr (Files): Distribute new file.
60903         * modules/strchrnul (Files): Likewise.
60904         Suggested by Bruno Haible.
60905
60906 2008-04-29  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60909         (inet_ntop, inet_pton): Change portability warning's wording.
60910         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60911         Invoke gl_CHECK_NEXT_HEADERS.
60912         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60913         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60914         set ARPA_INET_H.
60915         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60916         * modules/arpa_inet (Description): No longer only for systems that
60917         lack it.
60918         (Depends-on): Add include_next.
60919         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60920         HAVE_ARPA_INET_H.
60921
60922 2008-04-29  Jim Meyering  <meyering@redhat.com>
60923
60924         * modules/mkdir (License): Re-license as LGPLv2+.
60925
60926 2008-04-29  Bruno Haible  <bruno@clisp.org>
60927
60928         * modules/rawmemchr (Maintainer): Set to Eric.
60929         * modules/strchrnul (Maintainer): Likewise.
60930
60931 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60932
60933         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60934         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60935
60936         * modules/arpa_inet (arpa/inet.h): Use them.
60937
60938 2008-04-28  Eric Blake  <ebb9@byu.net>
60939
60940         Test getndelim2.
60941         * modules/getndelim2-tests: New file.
60942         * tests/test-getndelim2.c: Likewise.
60943         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60944         stream.
60945         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60946
60947         * MODULES.html.sh: Document new module.
60948
60949 2008-04-20  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/c-stack.c (die): Use raise.
60952         * modules/c-stack (Depends-on): Add raise.
60953
60954 2008-04-28  Bruno Haible  <bruno@clisp.org>
60955
60956         Expect rpmatch to be declared.
60957         * lib/yesno.c (rpmatch): Remove declaration.
60958
60959         Declare rpmatch.
60960         * lib/stdlib.in.h (rpmatch): New declaration.
60961         * lib/rpmatch.c: Include <stdlib.h> first.
60962         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60963         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60965         HAVE_RPMATCH.
60966         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60968         (Include): Set to <stdlib.h>.
60969         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60970         HAVE_RPMATCH.
60971         * NEWS: Document the change.
60972
60973 2008-04-28  Bruno Haible  <bruno@clisp.org>
60974
60975         Change rpmatch to use nl_langinfo when appropriate.
60976         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60977         (N_): New macro.
60978         (localized_pattern): New function/macro.
60979         (try): Remove match, nomatch arguments. Copy the pattern into safe
60980         memory before caching it.
60981         (rpmatch): Use localized_pattern. Add translator comments.
60982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60983         Suggested by Eric Blake.
60984         * modules/rpmatch (Depends-on): Add stdbool.
60985
60986 2008-04-28  Eric Blake  <ebb9@byu.net>
60987
60988         Add rawmemchr module, matching glibc.
60989         * modules/string (Makefile.am): New indicator.
60990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60991         * lib/string.in.h (rawmemchr): Declare when appropriate.
60992         * modules/rawmemchr: New file.
60993         * m4/rawmemchr.m4: Likewise.
60994         * lib/rawmemchr.c: Likewise.
60995         * modules/rawmemchr-tests: Likewise.
60996         * tests/test-rawmemchr.c: Likewise.
60997         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60998         module.
60999         * modules/strchrnul (Depends-on): Add rawmemchr.
61000         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61001
61002         Whitespace cleanup.
61003         * tests/test-strchrnul.c: Reindent.
61004         * lib/strchrnul.c: Likewise.
61005
61006         Optimize and test strchrnul.
61007         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61008         * modules/strchrnul-tests: New file.
61009         * tests/test-strchrnul.c: Likewise.
61010
61011         Remove intprops dependency.
61012         * modules/memchr (Depends-on): Remove intprops.
61013         * modules/memrchr (Depends-on): Likewise.
61014         * modules/memchr2 (Depends-on): Likewise.
61015         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61016         * lib/memrchr.c (__memrchr): Likewise.
61017         * lib/memrchr2.c (memchr2): Likewise.
61018         Reported by Simon Josefsson.
61019
61020 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61021
61022         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61023         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61024
61025 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61026
61027         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61028
61029         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61030
61031         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61032
61033         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61034         declarations.
61035         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61036
61037         * m4/inet_pton.m4: Don't check for header files.
61038
61039         * m4/inet_ntop.m4: Don't check for header files.
61040
61041 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61042
61043         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61044         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61045         trigger for cygwin).
61046         Reported by Bruno Haible  <bruno@clisp.org>.
61047
61048 2008-04-28  Bruno Haible  <bruno@clisp.org>
61049
61050         * doc/posix-functions/strdup.texi: Mention mingw problem.
61051
61052 2008-04-27  Bruno Haible  <bruno@clisp.org>
61053
61054         * modules/stat-time-tests (Depends-on): Add sleep.
61055         * tests/test-stat-time.c (force_unlink): New function.
61056         (cleanup): Use it.
61057         (test_mtime): Remove the ctime related tests.
61058         (test_ctime): New function, containing the ctime related tests.
61059         (main): Call test_ctime, except on native Windows platforms.
61060
61061 2008-04-27  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/rpmatch.c (rpmatch): Add some comments.
61064         Reported by James Youngman <jay@gnu.org>.
61065
61066 2008-04-27  Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61069         quiet NaNs.
61070
61071 2008-04-27  Bruno Haible  <bruno@clisp.org>
61072
61073         Make test-yesno.sh work on mingw.
61074         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61075         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61076         (main): Set stdin to binary mode.
61077         * modules/yesno-tests (Depends-on): Add binary-io.
61078
61079 2008-04-27  Bruno Haible  <bruno@clisp.org>
61080
61081         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61082         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61083         argument that lie outside the IEEE 854 domain.
61084         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61085         (gl_ISFINITE): Use it.
61086         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61087
61088 2008-04-27  Bruno Haible  <bruno@clisp.org>
61089
61090         Allow local renaming in config.h.
61091         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61092
61093 2008-04-27  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/memchr.c (__memchr): Change type of 'i'.
61096         * lib/memchr2.c (memchr2): Likewise.
61097
61098 2008-04-26  Eric Blake  <ebb9@byu.net>
61099         and Bruno Haible  <bruno@clisp.org>
61100
61101         Optimize and test memrchr.
61102         * modules/memrchr (Depends-on): Add intprops.
61103         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61104         * modules/memrchr-tests: New file.
61105         * tests/test-memrchr.c: New file.
61106
61107 2008-04-26  Bruno Haible  <bruno@clisp.org>
61108
61109         Add tentative support for DragonFly BSD.
61110         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61111         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61112         fp.
61113         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61114         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61115         * lib/fpurge.c (fpurge): Likewise.
61116         * lib/freadable.c (freaadable): Likewise.
61117         * lib/freadahead.c (freadahead): Likewise.
61118         * lib/freading.c (freading): Likewise.
61119         * lib/freadptr.c (freadptr): Likewise.
61120         * lib/freadseek.c (freadptrinc): Likewise.
61121         * lib/fseeko.c (fseeko): Likewise.
61122         * lib/fseterr.c (fseterr): Likewise.
61123         * lib/fwritable.c (fwritable): Likewise.
61124         * lib/fwriting.c (fwriting): Likewise.
61125
61126 2008-04-26  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/stdio-impl.h: New file.
61129         * lib/fbufmode.c: Include stdio-impl.h.
61130         (fbufmode): Use fp_, remove redundant #defines.
61131         * lib/fflush.c: Include stdio-impl.h.
61132         (clear_ungetc_buffer): Remove redundant #defines.
61133         * lib/fpurge.c: Include stdio-impl.h.
61134         (fpurge): Remove redundant #defines.
61135         * lib/freadable.c: Include stdio-impl.h.
61136         (freadable): Remove redundant #defines.
61137         * lib/freadahead.c: Include stdio-impl.h.
61138         (freadahead): Remove redundant #defines.
61139         * lib/freading.c: Include stdio-impl.h.
61140         (freading): Remove redundant #defines.
61141         * lib/freadptr.c: Include stdio-impl.h.
61142         (freadptr): Remove redundant #defines.
61143         * lib/freadseek.c: Include stdio-impl.h.
61144         (freadptrinc): Remove redundant #defines.
61145         * lib/fseeko.c: Include stdio-impl.h.
61146         (rpl_fseeko): Remove redundant #defines.
61147         * lib/fseterr.c: Include stdio-impl.h.
61148         (fseterr): Remove redundant #defines.
61149         * lib/fwritable.c: Include stdio-impl.h.
61150         (fwritable: Remove redundant #defines.
61151         * lib/fwriting.c: Include stdio-impl.h.
61152         (fwriting): Remove redundant #defines.
61153         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61154         * modules/fflush (Files): Likewise.
61155         * modules/fpurge (Files): Likewise.
61156         * modules/freadable (Files): Likewise.
61157         * modules/freadahead (Files): Likewise.
61158         * modules/freading (Files): Likewise.
61159         * modules/freadptr (Files): Likewise.
61160         * modules/freadseek (Files): Likewise.
61161         * modules/fseeko (Files): Likewise.
61162         * modules/fseterr (Files): Likewise.
61163         * modules/fwritable (Files): Likewise.
61164         * modules/fwriting (Files): Likewise.
61165
61166 2008-04-26  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61169         restore_seek_optimization, update_fpos_cache): New functions, extracted
61170         from rpl_fflush.
61171         (rpl_fflush): Use them.
61172         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61173         (gl_REPLACE_FFLUSH): Use it.
61174
61175 2008-04-26  Bruno Haible  <bruno@clisp.org>
61176
61177         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61178         on Solaris.
61179         * tests/test-xstrtoimax.sh: Likewise.
61180         * tests/test-xstrtoumax.sh: Likewise.
61181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61182
61183 2008-04-26  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/memchr-tests: New file.
61186         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61187
61188 2008-04-26  Eric Blake  <ebb9@byu.net>
61189             Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/memchr.c: Include intprops.h.
61192         (__memchr): Optimize parallel detection of matching bytes. Rename local
61193         variables. Add explanatory comments.
61194
61195 2008-04-26  Bruno Haible  <bruno@clisp.org>
61196
61197         Fix module 'memchr', broken since 2000-10-28.
61198         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61199
61200 2008-04-26  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61203         comments.
61204
61205 2008-04-25  Eric Blake  <ebb9@byu.net>
61206
61207         Use native fstatat on cygwin 1.7.0.
61208         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61209         first.
61210
61211 2008-04-23  Eric Blake  <ebb9@byu.net>
61212
61213         Improve memchr2 performance.
61214         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61215         NUL bytes.
61216         * modules/memchr2 (Depends-on): Use intprops.h.
61217
61218 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61219
61220         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61221         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61222         <blp@cs.stanford.edu>.
61223
61224 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61225
61226         * lib/arpa_inet.in.h: New file.
61227
61228         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61229         (Makefile.am): Sed in substitute header file.
61230
61231         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61232         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61233
61234         * modules/inet_ntop (configure.ac): Use
61235         gl_ARPA_INET_MODULE_INDICATOR.
61236
61237         * modules/inet_pton (configure.ac): Use
61238         gl_ARPA_INET_MODULE_INDICATOR.
61239
61240 2008-04-22  Jim Meyering  <meyering@redhat.com>
61241
61242         * modules/verify (License): Re-license as LGPLv2+.
61243
61244 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61245
61246         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61247         parameter to void* as per POSIX standard (MinGW uses char*).
61248
61249 2008-04-21  Bruno Haible  <bruno@clisp.org>
61250
61251         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61252         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61253         Define to replacements if REPLACE_ISWCNTRL is 1.
61254         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61255         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61256         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61257         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61258         what it fixes.
61259         * doc/posix-functions/iswalpha.texi: Likewise.
61260         * doc/posix-functions/iswblank.texi: Likewise.
61261         * doc/posix-functions/iswcntrl.texi: Likewise.
61262         * doc/posix-functions/iswdigit.texi: Likewise.
61263         * doc/posix-functions/iswgraph.texi: Likewise.
61264         * doc/posix-functions/iswlower.texi: Likewise.
61265         * doc/posix-functions/iswprint.texi: Likewise.
61266         * doc/posix-functions/iswpunct.texi: Likewise.
61267         * doc/posix-functions/iswspace.texi: Likewise.
61268         * doc/posix-functions/iswupper.texi: Likewise.
61269         * doc/posix-functions/iswxdigit.texi: Likewise.
61270         Reported by Alain Guibert.
61271
61272 2008-04-21  Bruno Haible  <bruno@clisp.org>
61273
61274         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61275         Patch by Alain Guibert.
61276
61277 2008-04-21  Bruno Haible  <bruno@clisp.org>
61278
61279         Fix test failures on mingw.
61280         * tests/test-xstrtol.c (print_no_progname): New function.
61281         (main): Install it in error_print_progname hook.
61282         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61283         * tests/test-xstrtoimax.sh: Likewise.
61284         * tests/test-xstrtoumax.sh: Likewise.
61285
61286 2008-04-21  Bruno Haible  <bruno@clisp.org>
61287
61288         Fix test failure on mingw.
61289         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61290
61291 2008-04-21  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61294         Actually assign a value.
61295
61296 2008-04-20  Bruno Haible  <bruno@clisp.org>
61297
61298         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61299         take 2.
61300         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61301         'canonicalize-lgpl' module is also used.
61302         * lib/canonicalize-lgpl.c: Undo last change.
61303         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61304
61305 2008-04-20  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61308         config.h. Provide _mkdir based fallback for mingw.
61309         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61310         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61311         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61312         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61313         rather than defining mkdir in config.h.
61314         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61315         (gl_SYS_STAT_H_DEFAULTS): New macro.
61316         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61317         HAVE_IO_H any more.
61318         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61319         HAVE_DECL_MKDIR and HAVE_IO_H.
61320
61321 2008-04-20  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/isapipe.c: Port to native Windows platforms.
61324
61325 2008-04-20  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61328
61329 2008-04-21  Eric Blake  <ebb9@byu.net>
61330
61331         Work around preprocessors that don't handle UINTMAX_MAX.
61332         * lib/memchr2.c (memchr2): Avoid embedded #if.
61333         Reported by Alain Guibert, fix suggested by Bruno Haible.
61334
61335 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61336
61337         * doc/posix-functions/strftime.texi (strftime): Explain better
61338         Windows incompatibility.  Suggested by Micah Cowan
61339         <micah@cowan.name>.
61340
61341 2008-04-20  Bruno Haible  <bruno@clisp.org>
61342
61343         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61344         unistr/u8-mblen.
61345
61346 2008-04-20  Bruno Haible  <bruno@clisp.org>
61347
61348         Fix test failure on platforms with non-GNU iconv.
61349         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61350         (U_TO_U8): Use it, rather than u16_to_u8.
61351         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61352         units at the end of the input string.
61353         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61354
61355 2008-04-20  Bruno Haible  <bruno@clisp.org>
61356
61357         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61358         when the resulting length is 0.
61359         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61360
61361 2008-04-20  Bruno Haible  <bruno@clisp.org>
61362
61363         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61364         works.
61365         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61366
61367 2008-04-20  Bruno Haible  <bruno@clisp.org>
61368
61369         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61370         * modules/tsearch-tests (configure.ac): Test for initstate function.
61371
61372 2008-04-20  Bruno Haible  <bruno@clisp.org>
61373
61374         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61375         for nlink_t if missing.
61376         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61377
61378 2008-04-19  Bruno Haible  <bruno@clisp.org>
61379
61380         Work around snprintf bug on Linux libc5.
61381         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61383         gl_SNPRINTF_SIZE1.
61384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61385         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61386         that test failed.
61387         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61388         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61389         * modules/snprintf (Files): Add m4/printf.m4.
61390         * modules/vsnprintf (Files): Likewise.
61391         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61392         * doc/posix-functions/vsnprintf.texi: Likewise.
61393
61394 2008-04-19  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61397         from 0.0058 to less than 10^-7.
61398
61399 2008-04-19  Bruno Haible  <bruno@clisp.org>
61400
61401         Fix rounding when a precision is given.
61402         * lib/vasnprintf.c (is_borderline): New function.
61403         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61404         9...9x.
61405         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61406         %e, %g.
61407         * tests/test-vasprintf-posix.c (test_function): Likewise.
61408         * tests/test-snprintf-posix.h (test_function): Likewise.
61409         * tests/test-sprintf-posix.h (test_function): Likewise.
61410         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61411         * tests/test-printf-posix.h (test_function): Likewise.
61412         * tests/test-printf-posix.output: Update.
61413         Reported by John Darrington <john@darrington.wattle.id.au> via
61414         Ben Pfaff <blp@cs.stanford.edu>.
61415
61416 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61417
61418         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61419         Suggested by Bruno Haible <bruno@clisp.org>.
61420
61421 2008-04-17  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61424         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61425         implementation.
61426         Patch by Bruce Merry <bmerry@gmail.com>.
61427
61428 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61429
61430         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61431         doesn't work under Windows.
61432
61433 2008-04-16  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61436         New macros.
61437         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61438         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61439         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61440         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61441         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61442         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61443         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61444         macros.
61445         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61446         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61447         Northern Sotho, Uighur.
61448
61449 2008-04-16  Bruno Haible  <bruno@clisp.org>
61450
61451         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61452         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61453         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61454         Reported by Daniel Bergström <daniel@octocode.com>.
61455
61456 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61457             Bruno Haible  <bruno@clisp.org>
61458
61459         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61460         function.
61461         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61462         New functions, mostly extracted from gl_locale_name_default.
61463         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61464
61465 2008-04-16  Eric Blake  <ebb9@byu.net>
61466
61467         Adjust strtod detection to catch glibc 2.7 bug.
61468         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61469         Reported by John Gatewood Ham.
61470
61471 2008-04-16  Bruno Haible  <bruno@clisp.org>
61472
61473         Add tentative support for Linux libc5.
61474         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61475         * lib/fpurge.c (fpurge): Likewise.
61476         * lib/freadable.c (freadable): Likewise.
61477         * lib/freadahead.c (freadahead): Likewise.
61478         * lib/freading.c (freading): Likewise.
61479         * lib/freadptr.c (freadptr): Likewise.
61480         * lib/freadseek.c (freadptrinc): Likewise.
61481         * lib/fseeko.c (rpl_fseeko): Likewise.
61482         * lib/fseterr.c (fseterr): Likewise.
61483         * lib/fwritable.c (fwritable): Likewise.
61484         * lib/fwriting.c (fwriting): Likewise.
61485         Reported by Alain Guibert <alguibert+bts@free.fr>.
61486
61487 2008-04-15  Bruno Haible  <bruno@clisp.org>
61488
61489         * modules/mathl (configure.ac): Define module indicator.
61490
61491 2008-04-15  Bruno Haible  <bruno@clisp.org>
61492
61493         * lib/logl.c (logl): Remove unused variables.
61494
61495 2008-04-15  Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61498         fails.
61499
61500 2008-04-15  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/trim.c (trim2): Fix argument of isspace() macro.
61503
61504 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61505
61506         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61507         to 0.
61508         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61509
61510 2008-04-14  Bruno Haible  <bruno@clisp.org>
61511
61512         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61513         AC_LANG_PROGRAM argument.
61514         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61515         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61517         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61518         * m4/math_h.m4 (gl_MATH_H): Likewise.
61519         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61520         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61521         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61522         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61523         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61524         * m4/regex.m4 (gl_REGEX): Likewise.
61525         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61526         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61528         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61529         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61530         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61531         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61533
61534 2008-04-14  Jim Meyering  <meyering@redhat.com>
61535
61536         test-strtod: fix typos: s/abs/fabs/
61537         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61538
61539 2008-04-13  Bruno Haible  <bruno@clisp.org>
61540
61541         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61542         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61543         module is also used and while not building the reloc-wrapper.
61544
61545 2008-04-13  Bruno Haible  <bruno@clisp.org>
61546
61547         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61548
61549 2008-04-13  Bruno Haible  <bruno@clisp.org>
61550
61551         Fix AIX compilation failure introduced on 2008-04-02.
61552         * tests/test-frexp.c (exp): Undefine before redefining.
61553         * tests/test-frexpl.c (exp): Likewise.
61554
61555 2008-04-13  Bruno Haible  <bruno@clisp.org>
61556
61557         Work around a HP-UX stdio bug.
61558         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61559         * tests/test-ftello.c (main): Likewise.
61560         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61561         * doc/posix-functions/ftello.texi: Likewise.
61562
61563 2008-04-13  Bruno Haible  <bruno@clisp.org>
61564
61565         Make test-signbit pass on HP-UX/hppa.
61566         * tests/test-signbit.c (minus_zerol): New variable.
61567         (test_signbitl): Use it.
61568
61569 2008-04-13  Bruno Haible  <bruno@clisp.org>
61570
61571         Make truncl work on OSF/1 4.0.
61572         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61573         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61574         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61576         HAVE_DECL_TRUNCL.
61577         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61578         HAVE_DECL_TRUNCL.
61579         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61580
61581 2008-04-13  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61584
61585 2008-04-13  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61588         expression, so as to avoid HP-UX 11 cc compiler bug.
61589
61590 2008-04-13  Bruno Haible  <bruno@clisp.org>
61591
61592         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61593
61594 2008-04-13  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/git-merge-changelog.c: Remove empty declaration outside of
61597         functions.
61598
61599 2008-04-13  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61602
61603 2008-04-13  Bruno Haible  <bruno@clisp.org>
61604
61605         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61606         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61607         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61608         also if it exists but lacks definitions of the SHUT_* macros.
61609         * modules/sys_socket (Description): Update.
61610         Reported by Elbert Pol <e.pol@chello.nl>.
61611
61612 2008-04-13  Bruno Haible  <bruno@clisp.org>
61613
61614         * lib/localcharset.c (OS2): Don't redefine if already defined.
61615         Reported by Elbert Pol <e.pol@chello.nl>.
61616
61617 2008-04-13  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/binary-io.h [__EMX__]: Include <io.h>.
61620         Reported by Elbert Pol <e.pol@chello.nl>.
61621
61622 2008-04-12  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/fpucw.h: Enable the definitions also for x86_64.
61625         Needed for NetBSD/x86_64.
61626         Reported by Thomas Klausner <tk@giga.or.at>.
61627
61628 2008-04-12  Bruno Haible  <bruno@clisp.org>
61629
61630         * tests/test-strtod.c: Include isnand.h.
61631         (main): Use isnand instead of isnan.
61632         Reported by Jim Meyering.
61633
61634 2008-04-12  Bruno Haible  <bruno@clisp.org>
61635
61636         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61637         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61638
61639 2008-04-12  Jim Meyering  <meyering@redhat.com>
61640
61641         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61642
61643 2008-04-12  Bruno Haible  <bruno@clisp.org>
61644
61645         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61646         Reported by Elbert Pol <e.pol@chello.nl>.
61647
61648 2008-04-12  Eric Blake  <ebb9@byu.net>
61649
61650         Work around Solaris 10 math.h bug.
61651         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61652         (gl_MATH_H_DEFAULTS): Set up default.
61653         * modules/math (Makefile.am): Replace new indicators.
61654         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61655         * tests/test-math.c (main): Test this.
61656         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61657         * doc/posix-headers/math.texi (math.h): Mention bug.
61658         Reported by Nelson H. F. Beebe and Jim Meyering.
61659
61660 2008-04-11  Bruno Haible  <bruno@clisp.org>
61661
61662         Adapt to future versions of Apple GCC.
61663         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61664         Reported by Peter O'Gorman <peter@pogma.com>.
61665
61666 2008-04-11  Bruno Haible  <bruno@clisp.org>
61667
61668         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61669
61670 2008-04-11  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61673
61674         * modules/getaddrinfo-tests (Makefile.am): Define
61675         test_getaddrinfo_LDADD.
61676
61677 2008-04-11  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61680         (init): Fix syntax error.
61681         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61682         is declared.
61683
61684 2008-04-11  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61687         * modules/glob (Depends-on): Add stdbool.
61688
61689 2008-04-11  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/trim.c: Include <string.h>.
61692
61693 2008-04-11  Eric Blake  <ebb9@byu.net>
61694
61695         Avoid compile failure on OS/2.
61696         * lib/regex_internal.h (internal_function): Disable optimization
61697         on OS/2 (__EMX__), where it caused compiler error.
61698         Reported by Elbert Pol.
61699
61700 2008-04-11  Bruno Haible  <bruno@clisp.org>
61701
61702         Flush the standard error stream before aborting. Needed on mingw.
61703         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61704         * tests/test-array_list.c (ASSERT): Likewise.
61705         * tests/test-array_oset.c (ASSERT): Likewise.
61706         * tests/test-avltree_list.c (ASSERT): Likewise.
61707         * tests/test-avltree_oset.c (ASSERT): Likewise.
61708         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61709         * tests/test-binary-io.c (ASSERT): Likewise.
61710         * tests/test-byteswap.c (ASSERT): Likewise.
61711         * tests/test-c-ctype.c (ASSERT): Likewise.
61712         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61713         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61714         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61715         * tests/test-c-strstr.c (ASSERT): Likewise.
61716         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61717         * tests/test-canonicalize.c (ASSERT): Likewise.
61718         * tests/test-carray_list.c (ASSERT): Likewise.
61719         * tests/test-ceilf1.c (ASSERT): Likewise.
61720         * tests/test-ceilf2.c (ASSERT): Likewise.
61721         * tests/test-ceill.c (ASSERT): Likewise.
61722         * tests/test-count-one-bits.c (ASSERT): Likewise.
61723         * tests/test-fbufmode.c (ASSERT): Likewise.
61724         * tests/test-fflush2.c (ASSERT): Likewise.
61725         * tests/test-floorf1.c (ASSERT): Likewise.
61726         * tests/test-floorf2.c (ASSERT): Likewise.
61727         * tests/test-floorl.c (ASSERT): Likewise.
61728         * tests/test-fopen.c (ASSERT): Likewise.
61729         * tests/test-fpending.c (ASSERT): Likewise.
61730         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61731         * tests/test-fpurge.c (ASSERT): Likewise.
61732         * tests/test-freadable.c (ASSERT): Likewise.
61733         * tests/test-freadahead.c (ASSERT): Likewise.
61734         * tests/test-freading.c (ASSERT): Likewise.
61735         * tests/test-freadptr.c (ASSERT): Likewise.
61736         * tests/test-freadptr2.c (ASSERT): Likewise.
61737         * tests/test-freadseek.c (ASSERT): Likewise.
61738         * tests/test-freopen.c (ASSERT): Likewise.
61739         * tests/test-frexp.c (ASSERT): Likewise.
61740         * tests/test-frexpl.c (ASSERT): Likewise.
61741         * tests/test-fseek.c (ASSERT): Likewise.
61742         * tests/test-fseeko.c (ASSERT): Likewise.
61743         * tests/test-fstrcmp.c (ASSERT): Likewise.
61744         * tests/test-ftell.c (ASSERT): Likewise.
61745         * tests/test-ftello.c (ASSERT): Likewise.
61746         * tests/test-func.c (ASSERT): Likewise.
61747         * tests/test-fwritable.c (ASSERT): Likewise.
61748         * tests/test-fwriting.c (ASSERT): Likewise.
61749         * tests/test-getdelim.c (ASSERT): Likewise.
61750         * tests/test-getline.c (ASSERT): Likewise.
61751         * tests/test-i-ring.c (ASSERT): Likewise.
61752         * tests/test-iconv-utf.c (ASSERT): Likewise.
61753         * tests/test-iconv.c (ASSERT): Likewise.
61754         * tests/test-isfinite.c (ASSERT): Likewise.
61755         * tests/test-isnand.c (ASSERT): Likewise.
61756         * tests/test-isnanf.c (ASSERT): Likewise.
61757         * tests/test-isnanl.h (ASSERT): Likewise.
61758         * tests/test-ldexpl.c (ASSERT): Likewise.
61759         * tests/test-linked_list.c (ASSERT): Likewise.
61760         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61761         * tests/test-localename.c (ASSERT): Likewise.
61762         * tests/test-lseek.c (ASSERT): Likewise.
61763         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61764         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61765         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61766         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61767         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61768         * tests/test-mbschr.c (ASSERT): Likewise.
61769         * tests/test-mbscspn.c (ASSERT): Likewise.
61770         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61771         * tests/test-mbspbrk.c (ASSERT): Likewise.
61772         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61773         * tests/test-mbsrchr.c (ASSERT): Likewise.
61774         * tests/test-mbsspn.c (ASSERT): Likewise.
61775         * tests/test-mbsstr1.c (ASSERT): Likewise.
61776         * tests/test-mbsstr2.c (ASSERT): Likewise.
61777         * tests/test-mbsstr3.c (ASSERT): Likewise.
61778         * tests/test-memchr2.c (ASSERT): Likewise.
61779         * tests/test-memmem.c (ASSERT): Likewise.
61780         * tests/test-open.c (ASSERT): Likewise.
61781         * tests/test-printf-frexp.c (ASSERT): Likewise.
61782         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61783         * tests/test-printf-posix.c (ASSERT): Likewise.
61784         * tests/test-quotearg.c (ASSERT): Likewise.
61785         * tests/test-rbtree_list.c (ASSERT): Likewise.
61786         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61787         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61788         * tests/test-round1.c (ASSERT): Likewise.
61789         * tests/test-roundf1.c (ASSERT): Likewise.
61790         * tests/test-roundl.c (ASSERT): Likewise.
61791         * tests/test-signbit.c (ASSERT): Likewise.
61792         * tests/test-sleep.c (ASSERT): Likewise.
61793         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61794         * tests/test-snprintf.c (ASSERT): Likewise.
61795         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61796         * tests/test-stat-time.c (ASSERT): Likewise.
61797         * tests/test-strcasestr.c (ASSERT): Likewise.
61798         * tests/test-strerror.c (ASSERT): Likewise.
61799         * tests/test-striconv.c (ASSERT): Likewise.
61800         * tests/test-striconveh.c (ASSERT): Likewise.
61801         * tests/test-striconveha.c (ASSERT): Likewise.
61802         * tests/test-strsignal.c (ASSERT): Likewise.
61803         * tests/test-strstr.c (ASSERT): Likewise.
61804         * tests/test-strtod.c (ASSERT): Likewise.
61805         * tests/test-trunc1.c (ASSERT): Likewise.
61806         * tests/test-trunc2.c (ASSERT): Likewise.
61807         * tests/test-truncf1.c (ASSERT): Likewise.
61808         * tests/test-truncf2.c (ASSERT): Likewise.
61809         * tests/test-truncl.c (ASSERT): Likewise.
61810         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61811         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61812         * tests/test-vasnprintf.c (ASSERT): Likewise.
61813         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61814         * tests/test-vasprintf.c (ASSERT): Likewise.
61815         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61816         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61817         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61818         * tests/test-vsnprintf.c (ASSERT): Likewise.
61819         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61820         * tests/test-wcwidth.c (ASSERT): Likewise.
61821         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61822         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61823         * tests/test-xvasprintf.c (ASSERT): Likewise.
61824         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61825         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61826         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61827         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61828         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61829         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61830         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61831         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61832         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61833         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61834         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61835         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61836         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61837         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61838         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61839         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61840         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61841         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61842         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61843         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61844         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61845         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61846         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61847         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61848         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61849         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61850         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61851         * tests/unictype/test-combining.c (ASSERT): Likewise.
61852         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61853         * tests/unictype/test-digit.c (ASSERT): Likewise.
61854         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61855         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61856         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61857         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61858         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61859         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61860         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61861         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61862         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61863         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61864         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61865         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61866         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61867         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61868         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61869         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61870         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61871         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61872         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61873         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61874         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61875         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61876         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61877         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61878         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61879         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61880         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61881         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61882         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61883         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61884         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61885         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61886         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61887         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61888         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61889         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61890         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61891         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61892         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61893         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61894         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61895         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61896         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61897         Reported by Eric Blake.
61898
61899 2008-04-11  Bruno Haible  <bruno@clisp.org>
61900
61901         * lib/wchar.in.h: Tweak comment.
61902
61903 2008-04-11  Bruno Haible  <bruno@clisp.org>
61904
61905         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61906         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61907         gl_COMMON.
61908         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61909
61910 2008-04-11  Bruno Haible  <bruno@clisp.org>
61911
61912         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61913
61914 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61915
61916         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61917         of attempting to use non-existing /dev/*random.  Based on patch
61918         from Adam Strzelecki <ono@java.pl> in
61919         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61920
61921 2008-04-08  Bruno Haible  <bruno@clisp.org>
61922
61923         Add tentative support for emx+gcc.
61924         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61925         * lib/fpurge.c (fpurge): Likewise.
61926         * lib/freadable.c (freadable): Likewise.
61927         * lib/freadahead.c (freadahead): Likewise.
61928         * lib/freading.c (freading): Likewise.
61929         * lib/freadptr.c (freadptr): Likewise.
61930         * lib/freadseek.c (freadptrinc): Likewise.
61931         * lib/fseeko.c (rpl_fseeko): Likewise.
61932         * lib/fseterr.c (fseterr): Likewise.
61933         * lib/fwritable.c (fwritable): Likewise.
61934         * lib/fwriting.c (fwriting): Likewise.
61935         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61936
61937 2008-04-09  Eric Blake  <ebb9@byu.net>
61938
61939         Avoid some autoconf warnings.
61940         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61941         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61942         * m4/afs.m4 (gl_AFS): Likewise.
61943         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61944         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61946         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61947         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61948         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61949         (AC_CHECK_DECLS_ONCE): Likewise.
61950         Rename file...
61951         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61952         gnulib-tool requires autoconf 2.59 or better.
61953         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61954
61955 2008-04-08  Eric Blake  <ebb9@byu.net>
61956
61957         Use 'git describe --match' if present (added in git 1.5.5).
61958         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61959         if possible.
61960
61961 2008-04-08  Bruno Haible  <bruno@clisp.org>
61962
61963         Add tentative support for OpenServer.
61964         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61965         _ptr, _cnt.
61966         * lib/fpurge.c (fpurge): Likewise.
61967         * lib/freadable.c (freadable): Likewise.
61968         * lib/freadahead.c (freadahead): Likewise.
61969         * lib/freading.c (freading): Likewise.
61970         * lib/freadptr.c (freadptr): Likewise.
61971         * lib/freadseek.c (freadptrinc): Likewise.
61972         * lib/fseeko.c (rpl_fseeko): Likewise.
61973         * lib/fseterr.c (fseterr): Likewise.
61974         * lib/fwritable.c (fwritable): Likewise.
61975         * lib/fwriting.c (fwriting): Likewise.
61976         Reported by Roger Cornelius <rac@tenzing.org> and
61977         Brian K. White <brian@aljex.com>.
61978
61979 2008-04-06  Jim Meyering  <meyering@redhat.com>
61980
61981         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61982
61983 2008-04-06  Bruno Haible  <bruno@clisp.org>
61984
61985         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61986         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61987         * tests/test-printf-posix.sh: Likewise.
61988         * tests/test-vfprintf-posix.sh: Likewise.
61989         * tests/test-vprintf-posix.sh: Likewise.
61990         * tests/test-xprintf-posix.sh: Likewise.
61991
61992 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61993
61994         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61995         hide error from 'ls', needed on OS/2.
61996         Report by Elbert Pol <elbert.pol@gmail.com>.
61997
61998 2008-04-04  Eric Blake  <ebb9@byu.net>
61999
62000         Make test-fseeko.c failures meaningful.
62001         * tests/test-fseeko.c: Print line number on failure.
62002         * tests/test-fseek.c: Likewise.
62003         Reported by Nelson H. F. Beebe.
62004
62005         Improve strtod bug detection check.
62006         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62007         required for Solaris 10.
62008         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62009
62010 2008-04-04  Bruno Haible  <bruno@clisp.org>
62011
62012         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62013         by m4/setenv.m4.
62014
62015 2008-04-03  Eric Blake  <ebb9@byu.net>
62016
62017         Ensure sane .version contents.
62018         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62019         version string.
62020         * build-aux/git-version-gen: Improve documentation.
62021
62022         Make GNU make output nicer.
62023         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62024         MAKECMDGOALS to enforce message for all command line targets.  Set
62025         srcdir for use in maint.mk.
62026
62027         Another maintainer tweak.
62028         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62029         a target that regenerates version.
62030
62031 2008-04-03  Jim Meyering  <meyering@redhat.com>
62032
62033         vc-list-files: don't cause coreutils "make po-check" failure
62034         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62035
62036 2008-04-03  Eric Blake  <ebb9@byu.net>
62037
62038         Allow VPATH usage of vc-list-files.
62039         * build-aux/vc-list-files (scriptversion): Add timestamp.
62040         (options): Add --help, --version, -C.
62041         (CVS): Support installed cvsu.
62042
62043 2008-04-02  Bruno Haible  <bruno@clisp.org>
62044
62045         Avoid some "statement with no effect" warnings from gcc.
62046         * tests/test-wctype.c (main): Explicitly ignore unused values.
62047         Reported by Jim Meyering.
62048
62049 2008-04-02  Jim Meyering  <meyering@redhat.com>
62050
62051         Avoid some warnings from "gcc -Wshadow".
62052         * tests/test-frexp.c (exp): Define to a different identifier.
62053         * tests/test-frexpl.c (exp): Likewise.
62054
62055 2008-04-03  Jim Meyering  <meyering@redhat.com>
62056
62057         bootstrap: remove dangling *.[ch] symlinks from lib
62058         * build-aux/bootstrap [dangling symlink removal]: Move find's
62059         -depth option to precede all others, to avoid a warning.
62060         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62061
62062 2008-04-02  Bruno Haible  <bruno@clisp.org>
62063
62064         Avoid some warnings from "gcc -Wshadow".
62065         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62066         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62067         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62068         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62069         Reported by Jim Meyering.
62070
62071 2008-04-01  Bruno Haible  <bruno@clisp.org>
62072
62073         Fix test to work on IRIX 6.5 with cc.
62074         * tests/test-math.c (numeric_equal): New function.
62075         (main): Use it.
62076
62077 2008-04-01  Bruno Haible  <bruno@clisp.org>
62078
62079         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62080
62081 2008-04-01  Bruno Haible  <bruno@clisp.org>
62082
62083         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62084         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62085         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62086         (Depends-on): Remove math.
62087
62088         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62089         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62090         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62091         (Depends-on): Remove math.
62092
62093         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62094         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62095         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62096         (Depends-on): Remove math.
62097         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62098         (Depends-on): Remove math.
62099
62100         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62101         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62102         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62103         (Depends-on): Remove math.
62104         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62105         (Depends-on): Remove math.
62106
62107         * tests/test-round1.c: Include nan.h.
62108         (main): Use NaNd instead of NAN.
62109         * modules/round-tests (Files): Add tests/nan.h.
62110
62111         * tests/test-trunc1.c: Include nan.h.
62112         (main): Use NaNd instead of NAN.
62113         * modules/trunc-tests (Files): Add tests/nan.h.
62114
62115         * tests/test-roundf1.c: Include nan.h.
62116         (main): Use NaNf instead of NAN.
62117         * modules/roundf-tests (Files): Add tests/nan.h.
62118
62119         * tests/test-truncf1.c: Include nan.h.
62120         (main): Use NaNf instead of NAN.
62121         * modules/truncf-tests (Files): Add tests/nan.h.
62122
62123         * tests/test-ceilf1.c: Include nan.h.
62124         (main): Use NaNf instead of NAN.
62125         * modules/ceilf-tests (Files): Add tests/nan.h.
62126
62127         * tests/test-floorf1.c: Include nan.h.
62128         (main): Use NaNf instead of NAN.
62129         * modules/floorf-tests (Files): Add tests/nan.h.
62130
62131         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62132         (main): Use NaNf instead of NAN.
62133         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62134
62135         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62136         (main): Use NaNd instead of NAN.
62137         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62138
62139         * tests/test-frexp.c: Include nan.h.
62140         (main): Use NaNd instead of NAN.
62141         * modules/frexp-tests (Files): Add tests/nan.h.
62142
62143         * lib/isnan.c: Don't include <math.h>.
62144         (FUNC): Don't use NAN macro.
62145         * modules/isnand-nolibm (Depends-on): Remove math.
62146         * modules/isnanf-nolibm (Depends-on): Remove math.
62147         * modules/isnanl (Depends-on): Remove math.
62148         * modules/isnanl-nolibm (Depends-on): Remove math.
62149
62150         * tests/nan.h: New file.
62151
62152 2008-04-01  Eric Blake  <ebb9@byu.net>
62153
62154         Fix typos.
62155         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62156         values to be the right type.
62157
62158         For now, cater to gnulib strtod inaccuracies.
62159         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62160         fractional results.  While not as nice from a QoI perspective, it
62161         is a quicker patch than correctly implementing decimal to binary
62162         rounding.
62163
62164 2008-03-31  Eric Blake  <ebb9@byu.net>
62165
62166         Guarantee a definition of NAN.
62167         * lib/math.in.h (NAN): Define if missing.
62168         * tests/test-math.c (main): Test it.
62169         * doc/posix-headers/math.texi (math.h): Document this.
62170         * lib/isnan.c (rpl_isnand): Use it.
62171         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62172         * tests/test-floorf1.c (NaN): Likewise.
62173         * tests/test-frexp.c (NaN): Likewise.
62174         * tests/test-isnand.c (NaN): Likewise.
62175         * tests/test-isnanf.c (NaN): Likewise.
62176         * tests/test-round1.c (NaN): Likewise.
62177         * tests/test-roundf1.c (NaN): Likewise.
62178         * tests/test-snprintf-posix.h (NaN): Likewise.
62179         * tests/test-sprintf-posix.h (NaN): Likewise.
62180         * tests/test-trunc1.c (NaN): Likewise.
62181         * tests/test-truncf1.c (NaN): Likewise.
62182         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62183         * tests/test-vasprintf-posix.c (NaN): Likewise.
62184         * modules/isnand-nolibm (Depends-on): Add math.
62185         * modules/isnanf-nolibm (Depends-on): Likewise.
62186         * modules/isnanl (Depends-on): Likewise.
62187         * modules/isnanl-nolibm (Depends-on): Likewise.
62188         * modules/snprintf-posix-tests (Depends-on): Likewise.
62189         * modules/sprintf-posix-tests (Depends-on): Likewise.
62190         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62191         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62192         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62193         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62194
62195 2008-03-31  Bruno Haible  <bruno@clisp.org>
62196
62197         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62198         * doc/posix-functions/strtod.texi: Likewise.
62199
62200 2008-03-31  Bruno Haible  <bruno@clisp.org>
62201
62202         * tests/test-strtod.c (main): Don't use C99 syntax.
62203
62204 2008-03-31  Bruno Haible  <bruno@clisp.org>
62205
62206         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62207         Reported by Eric Blake.
62208
62209 2008-03-31  Jim Meyering  <meyering@redhat.com>
62210
62211         Don't compare actual signbit return values.
62212         * tests/test-strtod.c (main): Rather, compare only their
62213         zero/non-zero nature.
62214
62215 2008-03-31  Eric Blake  <ebb9@byu.net>
62216
62217         More strtod documentation.
62218         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62219         failures as distinct bugs.
62220
62221 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62224         Problem reported by Erik Benada in
62225         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62226
62227 2008-03-30  Bruno Haible  <bruno@clisp.org>
62228
62229         * tests/test-strtod.c: Add comments about which assertion fails on which
62230         platform.
62231         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62232
62233 2008-03-30  Eric Blake  <ebb9@byu.net>
62234
62235         Test signbit behavior on zeros.
62236         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62237         (test_signbitd, test_signbitl): Likewise.
62238
62239         More strtod touchups.
62240         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62241         sign of negative underflow, for now.  Use .5, not .1.
62242         * doc/posix-functions/strtod.texi (strtod): Mention these
62243         limitations.
62244         Reported by Jim Meyering.
62245
62246 2008-03-30  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62249         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62250
62251 2008-03-30  Bruno Haible  <bruno@clisp.org>
62252
62253         Avoid failure when attempting to return empty iconv results on some
62254         platforms.
62255         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62256         allocation, don't report ENOMEM when the resulting string is empty.
62257
62258 2008-03-30  Bruno Haible  <bruno@clisp.org>
62259
62260         Fix buffer overrun.
62261         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62262         Don't consider the width for tmp_length. Check count against tmp_length
62263         before doing the padding. Ensure enough allocation during padding.
62264
62265 2008-03-30  Eric Blake  <ebb9@byu.net>
62266
62267         strtod touchups.
62268         * lib/strtod.c (strtod): Avoid compiler warnings.
62269         Reported by Jim Meyering.
62270
62271 2008-03-30  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62274         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62275         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62276         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62277         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62278         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62279         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62280         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62281
62282         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62283         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62284         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62285         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62286         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62287         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62288         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62289         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62290
62291         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62292         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62293         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62294         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62295         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62296         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62297         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62298         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62299
62300         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62301         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62302
62303         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62304         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62305
62306         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62307         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62308
62309         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62311         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62312
62313         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62315         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62316
62317         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62319         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62320
62321         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62323         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62324
62325         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62326         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62328         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62329         (Depends-on): Add EOVERFLOW.
62330         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62331         (Depends-on): Add EOVERFLOW.
62332         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62333         (Depends-on): Add EOVERFLOW.
62334         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62335         (Depends-on): Add EOVERFLOW.
62336         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62337         (Depends-on): Add EOVERFLOW.
62338         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62339         (Depends-on): Add EOVERFLOW.
62340         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62341         (Depends-on): Add EOVERFLOW.
62342         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62343         (Depends-on): Add EOVERFLOW.
62344
62345         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62346         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62347         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62348
62349         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62350         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62351         * modules/snprintf (Depends-on): Add EOVERFLOW.
62352
62353         * lib/poll.c (EOVERFLOW): Remove fallback.
62354         * modules/poll (Depends-on): Add EOVERFLOW.
62355
62356         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62357         * modules/getugroups (Depends-on): Add EOVERFLOW.
62358
62359         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62360         * modules/getdelim (Depends-on): Add EOVERFLOW.
62361
62362         * lib/ftell.c (EOVERFLOW): Remove fallback.
62363         * modules/ftell (Depends-on): Add EOVERFLOW.
62364
62365         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62367         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62368
62369         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62370
62371         * modules/EOVERFLOW-tests: New file.
62372         * tests/test-EOVERFLOW.c: New file.
62373
62374         * modules/EOVERFLOW: New file.
62375         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62376
62377 2008-03-30  Bruno Haible  <bruno@clisp.org>
62378
62379         Fix bug introduced on 2007-06-10.
62380         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62381         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62382
62383 2008-03-30  Bruno Haible  <bruno@clisp.org>
62384
62385         Improve freadseek's efficiency after ungetc.
62386         * lib/freadseek.c: Include freadahead.h.
62387         (freadptrinc): New function, extracted from freadseek.
62388         (freadseek): Use it in a loop. Use freadahead to determine the number
62389         of loop iterations.
62390         * modules/freadseek (Depends-on): Add freadahead.
62391         (configure.ac): Require AC_C_INLINE.
62392
62393 2008-03-30  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/freadseek.c (freadseek): Don't ignore the return value of
62396         freadptr.
62397
62398 2008-03-29  Eric Blake  <ebb9@byu.net>
62399
62400         Add hex float support.
62401         * modules/strtod (Depends-on): Add c-ctype.
62402         (Link): Mention POW_LIB.
62403         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62404         whitespace between 'e' and exponent.
62405         * tests/test-strtod.c (main): Enable hex float tests.
62406         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62407         now provides.
62408
62409         Document various strtod bugs, with some fixes.
62410         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62411         "-0x", "inf", "nan", and hex constants.
62412         * doc/posix-functions/atof.texi (atof): Likewise.
62413         * modules/stdlib (Makefile.am): Support strtod.
62414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62415         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62416         detect additional strtod bugs.
62417         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62418         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62419         bool where appropriate.  Parse 'inf' and 'nan'.
62420         * tests/test-strtod.c: New file.
62421         * modules/strtod (Depends-on): Add stdbool, stdlib.
62422         (configure.ac): Turn on module indicator.
62423         * modules/strtod-tests: New module.
62424
62425 2008-03-29  Eric Blake  <ebb9@byu.net>
62426
62427         Fix ftell on mingw.
62428         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62429         * modules/ftell-tests (Depends-on): Add binary-io.
62430         * modules/ftello-tests (Depends-on): Likewise.
62431         * tests/test-ftell.c (main): Enhance test to cover behavior after
62432         ungetc.  Enforce binary mode.
62433         * tests/test-ftello.c (main): Likewise.
62434
62435         Pass test-freadseek on cygwin.
62436         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62437         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62438         ungetc buffer.
62439
62440         * tests/test-fflush2.c (main): Fix typo.
62441
62442 2008-03-29  Bruno Haible  <bruno@clisp.org>
62443
62444         * tests/test-fflush2.c (main): Temporarily disable the contents of
62445         this test.
62446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62447         Reported by Eric Blake.
62448
62449 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62450
62451         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62452         (GC_SHA224_DIGEST_SIZE): Add.
62453
62454         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62455         (gc_hash_digest_length): Likewise.
62456         (gc_hash_buffer): Likewise.
62457
62458 2008-03-25  Bruno Haible  <bruno@clisp.org>
62459
62460         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62461         detail which gettext release to use.
62462         Reported by Simon Josefsson.
62463
62464 2008-03-26  Jim Meyering  <meyering@redhat.com>
62465
62466         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62467         * modules/gnumakefile (clean-GNUmakefile): Also, use
62468         test ... && ... || : syntax rather than if-then ... fi.
62469
62470         gnumakefile: Don't double-quote-expand $(VPATH) value.
62471         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62472
62473 2008-03-24  Eric Blake  <ebb9@byu.net>
62474
62475         Alter GNUmakefile to install into top directory.
62476         * modules/maintainer-makefile: Split, and add dependency...
62477         * modules/gnumakefile: to this new module.
62478         * build-aux/GNUmakefile: Move...
62479         * top/GNUmakefile: ...here.
62480         * build-aux/maint.mk: Move...
62481         * top/maint.mk: ...here.
62482         * MODULES.html.sh (Support for maintaining...): Document new
62483         module.
62484
62485 2008-03-23  Bruno Haible  <bruno@clisp.org>
62486
62487         * gnulib-tool: New options --vc-files, --no-vc-files.
62488         (func_usage): Document them.
62489         (vc_files): New variable.
62490         (func_import): Consider vc_files.
62491         (func_create_testdir): Set vc_files to empty.
62492         Suggested by Jim Meyering and Karl Berry.
62493
62494 2008-03-23  Bruno Haible  <bruno@clisp.org>
62495
62496         Fix regex compilation error on HP-UX 11.
62497         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62498         * modules/regex (Files): Add m4/mbstate_t.m4.
62499         Reported by Ton Voon <ton.voon@altinity.com>.
62500
62501 2008-03-23  Bruno Haible  <bruno@clisp.org>
62502
62503         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62504
62505 2008-03-23  Eric Blake  <ebb9@byu.net>
62506             Bruno Haible  <bruno@clisp.org>
62507
62508         Install files from top/ in the destination directory.
62509         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62510         augmentation also for the files from top/.
62511         (func_import, func_create_testdir): Rewrite file names:
62512         top/filename -> filename.
62513
62514 2008-03-23  Bruno Haible  <bruno@clisp.org>
62515
62516         Tweak "gnulib --version" output.
62517         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62518
62519 2008-03-23  Bruno Haible  <bruno@clisp.org>
62520
62521         Tweak "gnulib --version" output.
62522         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62523         rather than contents of ChangeLog, when possible.
62524
62525 2008-03-21  Eric Blake  <ebb9@byu.net>
62526
62527         More --version tweaks.
62528         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62529         date of last ChangeLog entry.
62530
62531 2008-03-21  Jim Meyering  <meyering@redhat.com>
62532
62533         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62534
62535 2008-03-20  Eric Blake  <ebb9@byu.net>
62536
62537         VPATH fix.
62538         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62539
62540 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62541
62542         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62543         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62544
62545 2008-03-20  Eric Blake  <ebb9@byu.net>
62546
62547         Sync GNUmakefile with coreutils.
62548         * build-aux/GNUmakefile (have-Makefile): Rename...
62549         (_have-Makefile): ...to this, for namespace consideration.
62550         (GNUmakefile.cfg): Include, if present.
62551         (_autoreconf): Define a default.
62552         (_is-dist-target): New rule for rebuilds to pick up intra-release
62553         version.
62554         (maint-cfg.mk): Rename...
62555         (cfg.mk): ...to this.
62556
62557 2008-03-18  Jim Meyering  <meyering@redhat.com>
62558
62559         New script and module: mktempd
62560         * MODULES.html.sh (maint+release support): Add mktempd.
62561         * build-aux/mktempd: New file.
62562         * modules/mktempd: New file.
62563
62564 2008-03-15  Jim Meyering  <meyering@redhat.com>
62565
62566         Undo last change.
62567         * lib/sha1.c, lib/md5.c: 63 != ~63.
62568         Reported by Andreas Schwab.
62569
62570         sha1.c, md5.c: Hoist a redundant expression.
62571         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62572         "ctx->buflen" only once, before calling *_process_block.
62573         * lib/md5.c (md5_process_bytes): Likewise.
62574
62575 2008-03-14  Eric Blake  <ebb9@byu.net>
62576
62577         Bump copyright year in files generated by gnulib-tool.
62578         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62579         gnulib-tool, rather than hard-coding it.
62580
62581         Fix 'gnulib-tool --version' output to work with git.
62582         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62583         (startup): ...here.
62584         (func_version): Use it to invoke git-version-gen, rather than
62585         relying on CVS keyword expansion.  Modernize wording.
62586         (cvsdatestamp, last_checkin_date, version): Kill unused
62587         variables.
62588
62589 2008-03-12  Jim Meyering  <meyering@redhat.com>
62590
62591         Recognize optional cast of the argument to free.
62592         * build-aux/useless-if-before-free: Update regexps.
62593
62594         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62595
62596 2008-03-11  Bruno Haible  <bruno@clisp.org>
62597
62598         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62599         by a single package.
62600         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62601         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62602         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62603         Reported by Sam Steingold <sds@gnu.org>.
62604
62605 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62606
62607         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62608         repositories.
62609
62610 2008-03-11  Bruno Haible  <bruno@clisp.org>
62611
62612         Avoid conflicts between local macro definitions.
62613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62614         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62615
62616 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62617             Bruno Haible  <bruno@clisp.org>
62618
62619         Make va_copy work with some version of xlc on AIX 5.1.
62620         * lib/stdarg.in.h: New file.
62621         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62622         On AIX, use a <stdarg.h> file substitute.
62623         * modules/stdarg (Files): Add lib/stdarg.in.h.
62624         (Depends-on): Add include_next.
62625         (Makefile.am): Build a stdarg.h substitute if requested.
62626         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62627
62628 2008-03-10  Bruno Haible  <bruno@clisp.org>
62629
62630         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62632         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62633
62634 2008-03-10  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/stdlib (Depends-on): Add include_next, remove
62637         absolute-header.
62638
62639 2008-03-09  Bruno Haible  <bruno@clisp.org>
62640
62641         * lib/freadahead.h (freadahead): Document more precisely.
62642         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62643         the sum of both buffer sizes.
62644         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62645         * NEWS: Document the change.
62646
62647 2008-03-09  Bruno Haible  <bruno@clisp.org>
62648
62649         Extend freadptr to return also the buffer size.
62650         * lib/freadptr.h (freadptr): Add sizep argument.
62651         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62652         (freadptr): Add sizep argument. Determine buffer size like freadahead
62653         does.
62654         * tests/test-freadptr.c: Don't include freadahead.h.
62655         (main): Adapt for new calling convention of freadptr.
62656         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62657         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62658         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62659         tests/test-freadptr2.sh.
62660         (Depends): Remove freadahead.
62661         (TESTS): Add test-freadptr2.sh.
62662         (check_PROGRAMS): Add test-freadptr2.
62663
62664 2008-03-09  Bruno Haible  <bruno@clisp.org>
62665
62666         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62667         Report and solution by Simon Josefsson.
62668
62669 2008-03-06  Bruno Haible  <bruno@clisp.org>
62670
62671         Make fflush after ungetc work on BSD platforms.
62672         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62673         * tests/test-fflush2.c: New file.
62674         * tests/test-fflush2.sh: New file.
62675         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62676         tests/test-fflush2.c.
62677         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62678         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62679
62680 2008-03-06  Eric Blake  <ebb9@byu.net>
62681
62682         Likewise for ftello.
62683         * modules/ftello (Dependencies): Add extensions.
62684         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62685
62686 2008-03-06  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/fseeko (Dependencies): Add extensions.
62689         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62690         Needed on glibc systems.
62691
62692 2008-03-06  Bruno Haible  <bruno@clisp.org>
62693
62694         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62695         email address.
62696         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62697
62698 2008-03-06  Bruno Haible  <bruno@clisp.org>
62699
62700         * users.txt: Add libgnupdf.
62701
62702 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62703
62704         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62705         (Header File Substitutes, Function Substitutes,
62706         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62707         (Build robot for gnulib): Fix typo.
62708
62709 2008-03-06  Bruno Haible  <bruno@clisp.org>
62710
62711         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62712         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62713
62714 2008-03-06  Bruno Haible  <bruno@clisp.org>
62715
62716         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62717         * doc/gnulib.texi: Include it.
62718
62719 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62720
62721         * modules/func (License): Change license to unlimited; there was
62722         no LGPL parts in the module anyway.
62723
62724 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62725
62726         * modules/__func__: Renamed to modules/func.
62727         * modules/__func__-tests: Renamed to modules/func-tests.
62728         * tests/test-__func__.c: Renamed to tests/test-func.c.
62729         * m4/__func__.m4: Renamed to m4/func.m4.
62730         * doc/gnulib.texi (__func__): Section renamed to func.
62731         Suggested by Eric Blake <ebb9@byu.net>.
62732
62733 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62734
62735         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62736         about __func__.  Make example self-contained.  Suggested by Eric
62737         Blake <ebb9@byu.net>.
62738
62739         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62740         Suggested by Eric Blake <ebb9@byu.net>.
62741
62742 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62743
62744         * modules/__func__: New file.
62745         * modules/__func__-tests: New file.
62746         * tests/test-__func__.c: New file.
62747         * m4/__func__.m4: New file.
62748         * doc/gnulib.texi (__func__): Document __func__ module.
62749
62750 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62751
62752         * modules/byteswap (License): Re-license as LGPLv2+.
62753
62754 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62755
62756         * doc/Makefile: Add pdf target.
62757
62758 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62759
62760         * modules/inline (License): Use 'unlimited', since there are only
62761         *.m4 files in this module.
62762
62763 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62764             Bruno Haible  <bruno@clisp.org>
62765
62766         Add support for HP C 7.1 on OpenVMS 8.3.
62767         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62768
62769 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62770
62771         Update VMS specifics.
62772         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62773
62774 2008-03-02  Jim Meyering  <meyering@redhat.com>
62775
62776         Remove the last dependency on the "free" module.
62777         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62778         Reported by Bob Proulx.
62779
62780         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62781
62782         Remove useless "if" tests before free.  Deprecate "free" module.
62783         * doc/posix-functions/free.texi: Mention that this
62784         module is no longer useful.
62785         * modules/free (Notice): Say this module is obsolete.
62786         * modules/readutmp (Depends-on): Remove free.
62787         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62788         * lib/putenv.c (putenv): Likewise.
62789         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62790         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62791         * tests/test-c-strcasestr.c (main): Likewise.
62792         * tests/test-c-strstr.c (main): Likewise.
62793         * tests/test-mbscasestr1.c (main): Likewise.
62794         * tests/test-mbscasestr2.c (main): Likewise.
62795         * tests/test-mbsstr1.c (main): Likewise.
62796         * tests/test-mbsstr2.c (main): Likewise.
62797         * tests/test-memmem.c (main): Likewise.
62798         * tests/test-strcasestr.c (main): Likewise.
62799         * tests/test-striconv.c (main): Likewise.
62800         * tests/test-striconveh.c (main): Likewise.
62801         * tests/test-striconveha.c (main): Likewise.
62802         * tests/test-strstr.c (main): Likewise.
62803
62804         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62805
62806         bootstrap: sync from coreutils again
62807         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62808
62809 2008-03-01  Jim Meyering  <meyering@redhat.com>
62810
62811         bootstrap: sync from coreutils
62812         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62813         also when the target doesn't exist.
62814
62815 2008-03-01  Eric Blake  <ebb9@byu.net>
62816
62817         Fix bugs in last patch.
62818         * lib/memchr2.c (memchr2): Fix typo.
62819         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62820         extension.
62821         Reported by Bruce Korb.
62822
62823         New module 'memchr2'.
62824         * modules/memchr2: New file.
62825         * modules/memchr2-tests: Likewise.
62826         * lib/memchr2.h: Likewise.
62827         * lib/memchr2.c: Likewise, based on memchr.c.
62828         * tests/test-memchr2.c: New test.
62829         * MODULES.html.sh (String handling): Add memchr2.
62830
62831 2008-02-29  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/freadseek-tests: New file.
62834         * tests/test-freadseek.sh: New file.
62835         * tests/test-freadseek.c: New file.
62836
62837         New module 'freadseek'.
62838         * modules/freadseek: New file.
62839         * lib/freadseek.h: New file.
62840         * lib/freadseek.c: New file.
62841         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62842
62843 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62844
62845         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62846         wydawca.
62847
62848         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62849         program_invocation_name and program_invocation_short_name are
62850         present.
62851
62852 2008-02-28  Bruno Haible  <bruno@clisp.org>
62853
62854         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62855         * tests/test-freadptr.sh: Also test non-seekable stdin.
62856
62857 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62858
62859         * build-aux/bootstrap (source_base, m4_base)
62860         (doc_base, tests_base): New variables.
62861         (gnulib_tool_options): Do not hardcode base directories, use
62862         the above variables instead.
62863
62864 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62865
62866         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62867
62868 2008-02-28  Bruno Haible  <bruno@clisp.org>
62869
62870         * modules/freadptr-tests: New file.
62871         * tests/test-freadptr.sh: New file.
62872         * tests/test-freadptr.c: New file.
62873
62874         New module 'freadptr'.
62875         * modules/freadptr: New file.
62876         * lib/freadptr.h: New file.
62877         * lib/freadptr.c: New file.
62878         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62879
62880 2008-02-26  Karl Berry  <karl@freefriends.org>
62881
62882         Sync from Libtool:
62883         * libltdl/argz.c (argz_add, argz_count): New functions.
62884         * libltdl/argz.in.h: Declare them.
62885         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62886
62887 2008-02-22  Bruno Haible  <bruno@clisp.org>
62888
62889         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62890         is a pointer type.  Needed for HP-UX 10.
62891         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62892         * doc/posix-functions/gmtime_r.texi: Likewise.
62893         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62894
62895 2008-02-24  Bruno Haible  <bruno@clisp.org>
62896
62897         * modules/environ-tests: New file.
62898         * tests/test-environ.c: New file.
62899
62900         New module 'environ'.
62901         * modules/environ: New file.
62902         * lib/unistd.in.h (environ): New declaration.
62903         * m4/environ.m4: New file.
62904         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62905         after use.
62906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62907         HAVE_DECL_ENVIRON.
62908         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62909         HAVE_DECL_ENVIRON.
62910         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62911         wrong claim that 'environ' is missing on some systems.
62912         * modules/execute (Depends-on): Add environ.
62913         * lib/execute.c (environ): Remove fallback declaration.
62914         * modules/pipe (Depends-on): Add environ.
62915         * lib/pipe.c (environ): Remove fallback declaration.
62916         * modules/setenv (Depends-on): Add environ.
62917         * lib/setenv.c (environ): Remove fallback declaration.
62918         * modules/unsetenv (Depends-on): Add environ.
62919         * lib/unsetenv.c (environ): Remove fallback declaration.
62920         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62921         m4/environ.m4.
62922         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62923         (gl_PREREQ_UNSETENV): Likewise.
62924
62925 2008-02-24  Bruno Haible  <bruno@clisp.org>
62926
62927         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62928
62929 2008-02-20  Bob Proulx  <bob@proulx.com>
62930
62931         Enable use of older two part flavor 'git describe'.
62932         * build-aux/git-version-gen: If using the older two part flavor of
62933         git version then recreate the third part now present in the
62934         newer three part flavor of git describe.
62935
62936 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62937
62938         * lib/fts.c (fts_build): Typo correction to comment.
62939
62940 2008-02-17  Bruno Haible  <bruno@clisp.org>
62941
62942         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62943         generating no-op conflicts.
62944
62945 2008-02-17  Bruno Haible  <bruno@clisp.org>
62946
62947         Speed up by 10%.
62948         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62949         result_entries, rather than an index-based loop.
62950
62951 2008-02-17  Bruno Haible  <bruno@clisp.org>
62952
62953         Speed up by 25%.
62954         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62955         'hashcode_cached'.
62956         (entry_create): New function.
62957         (entry_hashcode): Use the cached hashcode if possible.
62958         (read_changelog_file, try_split_merged_entry): Use entry_create.
62959
62960 2008-02-17  Bruno Haible  <bruno@clisp.org>
62961
62962         Speed up from O(n^2) to O(n) for long ChangeLog files.
62963         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62964         (read_changelog_file): Change implementation of entries_reversed list
62965         to rbtreehash.
62966         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62967
62968 2008-02-17  Bruno Haible  <bruno@clisp.org>
62969
62970         New option --split-merged-entry.
62971         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62972         (find_paragraph_end, try_split_merged_entry): New functions.
62973         (long_options): Add option --split-merged-entry.
62974         (usage): Document option --split-merged-entry.
62975         (main): Implement option --split-merged-entry.
62976         Reported by Eric Blake.
62977
62978 2008-02-17  Bruno Haible  <bruno@clisp.org>
62979
62980         * lib/git-merge-changelog.c: Include c-strstr.h.
62981         (main): Support the "git pull --rebase" situation.
62982         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62983         Reported by Eric Blake.
62984
62985 2008-02-16  Eric Blake  <ebb9@byu.net>
62986
62987         Avoid doubling \ in common case of "c-maybe" quoting style.
62988         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62989         eliding outer quotes.
62990         * lib/quotearg.h: Document this.
62991         * tests/test-quotearg.c (result_strings, inputs, results_g)
62992         (flag_results, locale_results): Test it by adding a new string to
62993         each test group.
62994         (compare_strings): Test new string.
62995
62996 2008-02-13  Eric Blake  <ebb9@byu.net>
62997
62998         Avoid trigraph quoting in default output.
62999         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63000         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63001         unless explicitly requested.
63002         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63003
63004 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63005
63006         Don't rely on signed integer overflowing to negative value.
63007         * lib/getugroups.c (getugroups): Include <limits.h>.
63008         Instead, compare against INT_MAX, and increment only if the test passes.
63009
63010 2008-02-13  Jim Meyering  <meyering@redhat.com>
63011         and Eric Blake  <ebb9@byu.net>
63012
63013         Avoid shadowing warning and compile errors on Linux.
63014         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63015         forwarding macros on Linux.
63016         (dcgettext): Define a stub, for Linux.
63017         (results_g, main): Avoid warnings.
63018
63019 2008-02-12  Eric Blake  <ebb9@byu.net>
63020
63021         Silence warning in last patch.
63022         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63023
63024         Quotearg part 4: add tests, fix c-maybe colon quoting.
63025         * lib/quotearg.h: Improve documentation.
63026         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63027         escapes when adding outer quotes.  When quoting trigraphs, use
63028         valid C notation.  When quoting NUL, omit extra characters if next
63029         character is not digit.  Alter prototype.
63030         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63031         callers.
63032         * modules/quotearg-tests: New module.
63033         * tests/test-quotearg.c: New test.
63034
63035 2008-02-07  Eric Blake  <ebb9@byu.net>
63036
63037         Quotearg part 3: add flag to control outer quote elision.
63038         * lib/quotearg.h (c_maybe_quoting_style): New style.
63039         (enum quoting_flags): Better documentation of flags.
63040         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63041         c-maybe style.
63042         (quotearg_buffer_restyled): Handle new flag to elide outer
63043         quotes.
63044
63045         Quotearg part 2: add flag that can control NUL elision.
63046         * lib/quotearg.h (set_quoting_flags): New prototype.
63047         * lib/quotearg.c (struct quoting_options): Add flag field.
63048         (set_quoting_flags): New function.
63049         (quotearg_buffer_restyled): Add flags parameter.
63050         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63051         (quotearg_n_options): Set the flag, since length cannot be
63052         returned.
63053         (quoting_options_from_style): Default flags correctly.
63054
63055         Quotearg part 1: more wrappers, restore quotearg_char state.
63056         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63057         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63058         (quotearg_colon_mem): New wrappers.
63059         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63060         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63061         functions.
63062         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63063         (quotearg_colon_mem): New functions.
63064
63065 2008-02-11  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63068         library in the current directory: it does not work with parallel make.
63069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63070
63071 2008-02-11  Bruno Haible  <bruno@clisp.org>
63072
63073         * .gitattributes: New file.
63074
63075 2008-02-11  Jim Meyering  <meyering@redhat.com>
63076
63077         useless-if-before-free: Fix reversed exit values.
63078         * build-aux/useless-if-before-free: Use correct values
63079         for EXIT_MATCH and EXIT_NO_MATCH.
63080
63081         * build-aux/useless-if-before-free: Close stdout carefully.
63082
63083 2008-02-10  Bruno Haible  <bruno@clisp.org>
63084
63085         New module 'git-merge-changelog'.
63086         * modules/git-merge-changelog: New file.
63087         * lib/git-merge-changelog.c: New file.
63088
63089 2008-02-10  Jim Meyering  <meyering@redhat.com>
63090
63091         useless-if-before-free: New option: --list (-l).
63092
63093         useless-if-before-free: Don't exit immediately upon open failure.
63094         * build-aux/useless-if-before-free: Exit 2 for errors.
63095         Upon failure to open a file, don't exit immediately.
63096         Rather, just warn and continue with any remaining files.
63097
63098 2008-02-10  Bruno Haible  <bruno@clisp.org>
63099
63100         New abstract list operation 'node_set_value'.
63101         * lib/gl_list.h (gl_list_node_set_value): New function.
63102         (struct gl_list_implementation): New field node_set_value.
63103         * lib/gl_list.c (gl_list_node_set_value): New function.
63104         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63105         (gl_array_list_implementation): Update.
63106         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63107         (gl_carray_list_implementation): Update.
63108         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63109         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63110         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63111         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63112         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63113         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63114         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63115         Update.
63116         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63117         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63118         (gl_sublist_list_implementation): Update.
63119
63120 2008-02-10  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63123         Needed when ELEMENT is #defined to 'some_type *'.
63124
63125 2008-02-10  Jim Meyering  <meyering@redhat.com>
63126
63127         New script and module: useless-if-before-free
63128         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63129         * build-aux/useless-if-before-free: New file.
63130         * modules/useless-if-before-free: New file.
63131
63132         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63133
63134         xstrtol_error: Fix typo.
63135         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63136         s/exit_failure/exit_status/.
63137
63138 2008-02-09  Jim Meyering  <meyering@redhat.com>
63139
63140         New script and module: gitlog-to-changelog
63141         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63142         * modules/gitlog-to-changelog: New file.
63143         * build-aux/gitlog-to-changelog: New file.
63144
63145 2008-02-08  Jim Meyering  <meyering@redhat.com>
63146
63147         Avoid two "parameter unused" warnings.
63148         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63149         Mark "st" as used.
63150
63151         Use "git COMMAND", not "git-COMMAND".
63152         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63153         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63154         * build-aux/git-version-gen: Use "git status", not "git-status".
63155
63156 2008-02-07  Bruno Haible  <bruno@clisp.org>
63157
63158         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63159         Avoids a crash on Windows Vista.
63160         Reported by Adam Strzelecki <ono@java.pl> via
63161         Simon Josefsson <simon@josefsson.org>.
63162
63163 2008-02-06  Bruno Haible  <bruno@clisp.org>
63164
63165         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63166         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63167         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63169         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63171         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63172         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63174         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63175         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63180         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63181         left-adjust flag.
63182         * tests/test-snprintf-posix.h (test_function): Likewise.
63183         * tests/test-sprintf-posix.h (test_function): Likewise.
63184         * tests/test-vasprintf-posix.c (test_function): Likewise.
63185         * doc/posix-functions/fprintf.texi: Update.
63186         * doc/posix-functions/printf.texi: Update.
63187         * doc/posix-functions/snprintf.texi: Update.
63188         * doc/posix-functions/sprintf.texi: Update.
63189         * doc/posix-functions/vfprintf.texi: Update.
63190         * doc/posix-functions/vprintf.texi: Update.
63191         * doc/posix-functions/vsnprintf.texi: Update.
63192         * doc/posix-functions/vsprintf.texi: Update.
63193         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63194
63195 2008-02-06  Bruno Haible  <bruno@clisp.org>
63196
63197         Fix bug introduced on 2008-01-26.
63198         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63199
63200 2008-02-06  Bruno Haible  <bruno@clisp.org>
63201
63202         Fix bug introduced on 2007-06-10.
63203         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63204         !NEED_PRINTF_FLAG_ZERO.
63205
63206 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63207
63208         getloadavg: use libperfstat on AIX5
63209         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63210
63211 2008-02-03  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/diffseq.h: Add comments about required #includes.
63214         Reported by Michael Biggs <gnulib@doubleplum.net>.
63215
63216 2008-02-01  Bruno Haible  <bruno@clisp.org>
63217
63218         * users.txt: Add gnuit.
63219
63220 2008-01-31  Bruno Haible  <bruno@clisp.org>
63221
63222         * lib/md4.c (set_uint32): Mark as inline.
63223         * lib/md5.c (set_uint32): Likewise.
63224         * lib/sha1.c (set_uint32): Likewise.
63225         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63226         * m4/md5.m4 (gl_MD5): Likewise.
63227         * m4/sha1.m4 (gl_SHA1): Likewise.
63228
63229 2008-01-31  Jim Meyering  <meyering@redhat.com>
63230
63231         Use "sizeof VAR", rather than a literal "4".
63232         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63233         * lib/md4.c (md4_read_ctx): Likewise.
63234         * lib/sha1.c (sha1_read_ctx): Likewise.
63235
63236 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63237
63238         * tests/test-sha1.c: New file, based on test-md5.c.
63239
63240         * modules/crypto/sha1-tests: New file.
63241
63242 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63243
63244         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63245
63246 2008-01-31  Jim Meyering  <meyering@redhat.com>
63247
63248         Prefer "sizeof v" over the equivalent "4".
63249         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63250         * lib/md5.c (set_uint32): Likewise.
63251         * lib/sha1.c (set_uint32): Likewise.
63252
63253 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63254
63255         * lib/sha1.c (set_uint32): Mark function as static.
63256
63257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63258
63259         md2: clarify comments to say that alignment is not required.
63260         * lib/md2.h: Remove warning about alignment in comment.
63261         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63262         never been required.
63263
63264 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63265
63266         md4: adapt alignment constraint fix from sha1.
63267         * lib/md4.c (set_uint32): New function, from sha1.c
63268         (md4_read_ctx): Use it.
63269         (md4_finish_ctx): Doc fix.
63270         * lib/md4.h: Doc fix.
63271
63272 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63273
63274         md5: adapt alignment constraint fix from sha1.
63275         * lib/md5.c (set_uint32): New function, from sha1.c
63276         (md5_read_ctx): Use it.
63277         (md5_finish_ctx): Doc fix.
63278         * lib/md5.h: Doc fix.
63279
63280 2008-01-30  Peter Palfrader  <weasel@debian.org>
63281
63282         sha1: remove the result buffer alignment constraint
63283         * lib/sha1.c (set_uint32): New function.
63284         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63285         constraint.
63286         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63287         * lib/sha1.h: Likewise.
63288
63289 2008-01-30  Andreas Schwab  <schwab@suse.de>
63290             Bruno Haible  <bruno@clisp.org>
63291
63292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63293         correct definition of LDBL_MIN_EXP.
63294
63295 2008-01-30  Karl Berry  <karl@gnu.org>
63296
63297         * config/srclist-update: try to preserve x bit on updates.
63298         * config/srclistvars.sh: update for karl.
63299
63300 2008-01-29  Jim Meyering  <meyering@redhat.com>
63301
63302         vasnprintf.c: Avoid warning about unused label
63303         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63304         "overflow" label definition and associated code with the
63305         same cpp condition that guards the sole use of that label.
63306
63307 2008-01-26  Bruno Haible  <bruno@clisp.org>
63308
63309         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63310         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63311         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63312         * lib/isnanl-nolibm.h (isnanl): Likewise.
63313         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63314
63315 2008-01-26  Bruno Haible  <bruno@clisp.org>
63316
63317         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63318         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63319
63320 2008-01-26  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63323         GCC >= 4.0 built-in.
63324         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63325
63326 2008-01-26  Bruno Haible  <bruno@clisp.org>
63327
63328         Rename isnan, applicable to 'double' only, to isnand.
63329         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63330         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63331         (configure.ac): Update.
63332         (Include): Replace "isnan.h" with "isnand.h".
63333         * m4/isnand.m4: Renamed from m4/isnan.m4.
63334         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63335         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63336         instead of isnan.c.
63337         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63338         instead of HAVE_ISNAN_IN_LIBC.
63339         (isnand): Renamed from isnan.
63340         * lib/isnand.c: New file.
63341         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63342         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63343         (Makefile.am): Update.
63344         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63345         Include isnand.h instead of isnan.h.
63346         (main): Test isnand instead of isnan.
63347         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63348         isnan-nolibm.
63349         * modules/frexp (Depends-on): Likewise.
63350         * modules/frexp-tests (Depends-on): Likewise.
63351         * modules/frexp-nolibm (Depends-on): Likewise.
63352         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63353         * modules/isfinite (Depends-on): Likewise.
63354         * modules/round-tests (Depends-on): Likewise.
63355         * modules/signbit (Depends-on): Likewise.
63356         * modules/signbit-tests (Depends-on): Likewise.
63357         * modules/snprintf-posix (Depends-on): Likewise.
63358         * modules/sprintf-posix (Depends-on): Likewise.
63359         * modules/trunc-tests (Depends-on): Likewise.
63360         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63361         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63362         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63363         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63364         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63365         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63366         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63367         * modules/vasnprintf-posix (Depends-on): Likewise.
63368         * modules/vasprintf-posix (Depends-on): Likewise.
63369         * modules/vfprintf-posix (Depends-on): Likewise.
63370         * modules/vsnprintf-posix (Depends-on): Likewise.
63371         * modules/vsprintf-posix (Depends-on): Likewise.
63372         * lib/frexp.c: Include isnand.h instead of isnan.h.
63373         (ISNAN): Set to isnand instead of isnan.
63374         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63375         (gl_isfinited): Use isnand instead of isnan.
63376         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63377         (gl_signbitd): Use isnand instead of isnan.
63378         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63379         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63380         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63381         (main): Use isnand instead of isnan.
63382         * tests/test-round1.c: Include isnand.h.
63383         (main): Use isnand instead of isnan.
63384         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63385         (ISNAN): Set to isnand instead of isnan.
63386         * tests/test-trunc1.c: Include isnand.h.
63387         (main): Use isnand instead of isnan.
63388         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63389         (equal): Use isnand instead of isnan.
63390         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63391         isnand-nolibm.
63392         * NEWS: Mention the change.
63393
63394 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63395             Bruno Haible  <bruno@clisp.org>
63396
63397         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63398         the GCC builtins for signbits are present and set
63399         REPLACE_SIGNBIT_USING_GCC if so.
63400         * lib/math.in.h (signbit): Define using GCC builtins if
63401         REPLACE_SIGNBIT_USING_GCC is set.
63402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63403         REPLACE_SIGNBIT_USING_GCC.
63404         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63405
63406 2008-01-25  Jim Meyering  <meyering@redhat.com>
63407
63408         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63409         * lib/poll.c: Include <config.h>, not "config.h".
63410         * tests/test-getaddrinfo.c: Likewise.
63411
63412 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63413
63414         * modules/sockets-tests: New file.
63415
63416 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63417
63418         * modules/sockets: New module, can be used to call WSA_Startup and
63419         WSA_Cleanup when needed.
63420
63421         * lib/sockets.h, lib/sockets.c: New files.
63422
63423         * m4/sockets.m4: New file.
63424
63425         * tests/test-sockets.c: New file.
63426
63427 2008-01-19  Bruno Haible  <bruno@clisp.org>
63428
63429         * doc/posix-headers: Renamed from doc/headers.
63430         * doc/posix-functions: Renamed from doc/functions.
63431         * doc/gnulib.texi: Update.
63432
63433 2008-01-19  Bruno Haible  <bruno@clisp.org>
63434
63435         * doc/glibc-functions/strcasestr.texi: Include contents of
63436         doc/functions/strcasestr.texi, fixing the list of platforms.
63437         * doc/functions/strcasestr.texi: Remove file.
63438
63439 2008-01-19  Bruno Haible  <bruno@clisp.org>
63440
63441         * doc/glibc-functions/memmem.texi: Include contents of
63442         doc/functions/memmem.texi.
63443         * doc/functions/memmem.texi: Remove file.
63444
63445 2008-01-18  Bruno Haible  <bruno@clisp.org>
63446
63447         * doc/glibc-functions/*.texi: New files.
63448         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63449         to use the new files.
63450
63451 2008-01-17  Bruno Haible  <bruno@clisp.org>
63452
63453         * tests/test-gethostname.c (main): Fix printf statement.
63454
63455 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63456
63457         * modules/gethostname-tests: New file.
63458
63459         * tests/test-gethostname.c: New file.
63460
63461 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63462
63463         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63464         used by the UNAME case.  Reported by Bruno Haible
63465         <bruno@clisp.org>.
63466
63467 2008-01-17  Eric Blake  <ebb9@byu.net>
63468
63469         Convert c-strcasestr to be more efficient.
63470         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63471         (Depends-on): Add c-strcase, remove malloca, strnlen.
63472         * tests/test-c-strcasestr.c (main): Enhance test.
63473         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63474
63475 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63476
63477         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63478         Use it in creating po/Makevars.
63479
63480 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63481
63482         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63483         Applications that requires it should initialize libgcrypt
63484         manually.
63485
63486 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63487
63488         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63489
63490 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         Fix problem with getdate on mingw32 reported by Simon Josefsson
63493         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63494         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63495         tzname", when deciding whether to declare tzname.
63496         * lib/strftime.c (tzname): Likewise.
63497
63498 2008-01-15  Bruno Haible  <bruno@clisp.org>
63499
63500         Work around a MacOS X 10.5 bug in frexpl().
63501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63502         * doc/functions/frexpl.texi: Document the bug.
63503         Reported by Elias Pipping <pipping@gentoo.org>.
63504
63505 2008-01-14  Eric Blake  <ebb9@byu.net>
63506
63507         Touch up previous patch.
63508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63509         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63510
63511         Convert strcasestr module to use Two-Way algorithm.
63512         * modules/strcasestr-simple: New module, based on the old
63513         strcasestr, but with Two-Way rather than KMP.
63514         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63515         * lib/string.in.h (rpl_strcasestr): Declare.
63516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63517         performance.
63518         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63519         * modules/string (Makefile.am): Support strcasestr.
63520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63521         * modules/strcasestr-tests (Depends-on): Check for alarm.
63522         * tests/test-strcasestr.c: Augment test.
63523         * lib/str-two-way.h: Clean up stray macro.
63524         * NEWS: Document new module.
63525         * MODULES.html.sh (string handling): Likewise.
63526         * doc/functions/strcasestr.texi: New file.
63527         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63528         here, since it is not a POSIX function.
63529
63530 2008-01-14  Colin Watson  <cjwatson@debian.org>
63531             Bruno Haible  <bruno@clisp.org>
63532
63533         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63534         works fine; if not, set REPLACE_STRSIGNAL.
63535         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63537         REPLACE_STRSIGNAL.
63538         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63539         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63540         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63541
63542 2008-01-14  Bruno Haible  <bruno@clisp.org>
63543
63544         * modules/strsignal (Include): Change to <string.h>.
63545
63546 2008-01-14  Colin Watson  <cjwatson@debian.org>
63547
63548         * modules/argp (Notice): Add a notice recommending to change
63549         XGETTEXT_OPTIONS.
63550         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63551
63552 2008-01-13  Colin Watson  <cjwatson@debian.org>
63553
63554         * modules/strsignal-tests: New file.
63555         * tests/test-strsignal.c: New file.
63556
63557         * lib/strsignal.c: New file, from glibc with modifications.
63558         * lib/siglist.h: New file, from glibc with modifications.
63559         * lib/string.in.h (strsignal): New declaration.
63560         * m4/strsignal.m4: New file.
63561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63562         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63563         * modules/strsignal: New file.
63564         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63565         HAVE_DECL_STRSIGNAL.
63566
63567 2008-01-13  Bruno Haible  <bruno@clisp.org>
63568
63569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63570         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63571         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63572         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63573
63574 2008-01-13  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63577         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63578         * lib/argp.h (__attribute__): Likewise.
63579         * lib/c-stack.c (__attribute__): Likewise.
63580         * lib/error.h (__attribute__): Likewise.
63581         * lib/fts.c (__attribute__): Likewise.
63582         * lib/openat.h (__attribute__): Likewise.
63583         * lib/stdio.in.h (__attribute__): Likewise.
63584         * lib/string.in.h (__attribute__): Likewise.
63585         * lib/utimens.c (__attribute__): Likewise.
63586         * lib/vasnprintf.h (__attribute__): Likewise.
63587         * lib/xalloc.h (__attribute__): Likewise.
63588         * lib/xprintf.h (__attribute__): Likewise.
63589         * lib/xstrtol.h (__attribute__): Likewise.
63590         * lib/xvasprintf.h (__attribute__): Likewise.
63591
63592 2008-01-12  Bruno Haible  <bruno@clisp.org>
63593
63594         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63595         * doc/glibc-headers/a.out.texi: New file.
63596         * doc/glibc-headers/aliases.texi: New file.
63597         * doc/glibc-headers/alloca.texi: New file.
63598         * doc/glibc-headers/ar.texi: New file.
63599         * doc/glibc-headers/argp.texi: New file.
63600         * doc/glibc-headers/argz.texi: New file.
63601         * doc/glibc-headers/byteswap.texi: New file.
63602         * doc/glibc-headers/crypt.texi: New file.
63603         * doc/glibc-headers/endian.texi: New file.
63604         * doc/glibc-headers/envz.texi: New file.
63605         * doc/glibc-headers/err.texi: New file.
63606         * doc/glibc-headers/error.texi: New file.
63607         * doc/glibc-headers/execinfo.texi: New file.
63608         * doc/glibc-headers/fpu_control.texi: New file.
63609         * doc/glibc-headers/fstab.texi: New file.
63610         * doc/glibc-headers/fts.texi: New file.
63611         * doc/glibc-headers/getopt.texi: New file.
63612         * doc/glibc-headers/ieee754.texi: New file.
63613         * doc/glibc-headers/ifaddrs.texi: New file.
63614         * doc/glibc-headers/libintl.texi: New file.
63615         * doc/glibc-headers/mcheck.texi: New file.
63616         * doc/glibc-headers/mntent.texi: New file.
63617         * doc/glibc-headers/obstack.texi: New file.
63618         * doc/glibc-headers/paths.texi: New file.
63619         * doc/glibc-headers/printf.texi: New file.
63620         * doc/glibc-headers/pty.texi: New file.
63621         * doc/glibc-headers/resolv.texi: New file.
63622         * doc/glibc-headers/shadow.texi: New file.
63623         * doc/glibc-headers/sysexits.texi: New file.
63624         * doc/glibc-headers/ttyent.texi: New file.
63625
63626 2008-01-12  Jim Meyering  <meyering@redhat.com>
63627
63628         announce-gen: emit Gnulib's git-based version string.
63629         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63630         New option --gnulib-version=V, where V is expected to be
63631         the output of running git describe in the gnulib directory.
63632         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63633         not useful, and plan to stop publishing an xdelta file with each
63634         coreutils release.
63635
63636         * build-aux/announce-gen: Also check for lzma-compressed files.
63637
63638 2008-01-11  Bruno Haible  <bruno@clisp.org>
63639
63640         * tests/test-memmem.c (main): Increase maximum allowed time.
63641         * tests/test-strstr.c (main): Likewise.
63642
63643 2008-01-11  Bruno Haible  <bruno@clisp.org>
63644
63645         * doc/functions/memmem.texi: Add more precisions about platforms.
63646         * doc/functions/strstr.texi: Likewise.
63647
63648 2008-01-10  Eric Blake  <ebb9@byu.net>
63649
63650         * m4/strstr.m4: Delete cruft from copy-n-paste.
63651         Reported by Bruno Haible.
63652
63653 2008-01-10  Bruno Haible  <bruno@clisp.org>
63654
63655         Make c-strstr rely on strstr.
63656         * lib/c-strstr.c: Don't include str-kmp.h.
63657         (c_strstr): Define in terms of strstr.
63658         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63659         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63660
63661 2008-01-10  Bruno Haible  <bruno@clisp.org>
63662
63663         * doc/gnulib.texi (String Functions in C Locale): New section.
63664         * doc/c-ctype.texi: New file.
63665         * doc/c-strcase.texi: New file.
63666         * doc/c-strcaseeq.texi: New file.
63667         * doc/c-strcasestr.texi: New file.
63668         * doc/c-strstr.texi: New file.
63669         * doc/c-strtod.texi: New file.
63670         * doc/c-strtold.texi: New file.
63671
63672 2008-01-10  Eric Blake  <ebb9@byu.net>
63673
63674         * lib/relocatable.h: Fix a comment.
63675
63676 2008-01-10  Eric Blake  <ebb9@byu.net>
63677
63678         Share two-way algorithm.
63679         * lib/str-two-way.h: New file, merged from...
63680         * lib/memmem.c: ...here...
63681         * lib/strstr.c: ...and here.
63682         * modules/memmem (Files): Use it.
63683         * modules/strstr (Files): Likewise.
63684
63685         Avoid quadratic strstr implementations.
63686         * lib/strstr.c: New file.
63687         * m4/strstr.m4: Likewise.
63688         * modules/strstr: Likewise.
63689         * modules/strstr-tests: Likewise.
63690         * tests/test-strstr.c: Likewise.
63691         * lib/string.in.h (rpl_strstr): Declare.
63692         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63694         * modules/string (Makefile.am): Likewise.
63695         * MODULES.html.sh (string handling): Mention new module.
63696         * doc/functions/strstr.texi (strstr): Document the bug.
63697
63698 2008-01-10  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/relocatable.h (relocate): State whether result is freshly
63701         allocated or not.
63702         * lib/relocatable.c (relocate): Return a freshly allocated string
63703         instead of a pointer to a privately held string.
63704         Reported by Sylvain Beucler <beuc@gnu.org>.
63705
63706 2008-01-10  Colin Watson  <cjwatson@debian.org>
63707
63708         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63709         s/S_ISNLK/S_ISLNK/.
63710
63711 2008-01-09  Bruno Haible  <bruno@clisp.org>
63712
63713         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63714         and other files.
63715         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63716         if it's only a guess.
63717         * modules/memmem: Simplify by depending on memmem-simple.
63718
63719 2008-01-09  Bruno Haible  <bruno@clisp.org>
63720
63721         Work around OpenBSD 4.0 tdelete() bug.
63722         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63723         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63724         macros and don't redefine the enum values.
63725         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63726         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63727         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63728
63729 2008-01-09  Bruno Haible  <bruno@clisp.org>
63730
63731         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63732         (main): Don't perform the tests if setlocale did not install a UTF-8
63733         locale. Needed on OpenBSD 4.0.
63734         * modules/wcwidth-tests (Depends-on): Add localcharset.
63735
63736 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63737
63738         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63739         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63740         * NEWS: announce this.
63741         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63742
63743 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63744         and Eric Blake  <ebb9@byu.net>
63745
63746         Add memmem-simple module.
63747         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63748         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63749         * modules/memmem-simple: New file.
63750         * modules/memmem (Description): Tweak.
63751         * MODULES.html.sh (string handling): Mention new module.
63752         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63753         addressed by memmem-simple.
63754         * NEWS: Document the difference.
63755
63756 2008-01-09  Eric Blake  <ebb9@byu.net>
63757
63758         Give gcc some memmem optimization hints.
63759         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63760         (strcasestr): Declare as pure.
63761         * modules/memmem (Maintainer): Claim my implementation.
63762
63763 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63764
63765         Support AIX 6.1 and higher.
63766         * build-aux/config.libpath: Likewise.
63767         * build-aux/config.rpath: Likewise.
63768
63769 2008-01-08  Jim Meyering  <meyering@redhat.com>
63770             Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63773         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63774         Reported by Peter Fales in
63775         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63776
63777 2008-01-08  Bruno Haible  <bruno@clisp.org>
63778
63779         * modules/unictype/category-of (Depends-on): Add
63780         unictype/category-none.
63781         * modules/unictype/category-and-tests (Depends-on): Add
63782         unictype/category-{L,N,Lu,Nd}.
63783         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63784         * modules/unictype/category-or-tests (Depends-on): Add
63785         unictype/category-{L,N}.
63786         * modules/unictype/category-name-tests (Depends-on): Add
63787         unictype/category-{Z,Nl}.
63788         Reported by Simon Josefsson.
63789
63790 2008-01-08  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63793         convention better.
63794         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63795         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63796         Reported by Peter Miller <millerp@canb.auug.org.au>.
63797
63798 2008-01-08  Eric Blake  <ebb9@byu.net>
63799
63800         Rewrite memmem to guarantee linear complexity without malloc.
63801         * lib/memmem.c (memmem): Use Two-Way rather than
63802         Knuth-Morris-Pratt, to allow O(1) space usage.
63803         (critical_factorization, two_way_short_needle)
63804         (two_way_long_needle): New functions.
63805         (knuth_morris_pratt): Delete.
63806         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63807         Add stdint.
63808         * tests/test-memmem.c (main): Add tests for periodic needle and
63809         sublinear performance.
63810         * doc/functions/memmem.texi (memmem): Document other deficiencies
63811         in cygwin and older glibc.
63812
63813 2008-01-08  Bruno Haible  <bruno@clisp.org>
63814
63815         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63816         augmentation.
63817
63818 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63819
63820         Add a configure time option: --disable-acl.
63821         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63822         AC_ARG_ENABLE(acl).
63823
63824 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63825
63826         * tests/test-localename.c: Don't include obsolete "setenv.h".
63827
63828         * modules/localename-tests (Depends-on): Need unsetenv.
63829
63830 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63831
63832         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63833
63834 2008-01-06  Colin Watson  <cjwatson@debian.org>
63835
63836         * users.txt: Add man-db.
63837
63838 2008-01-07  Bruno Haible  <bruno@clisp.org>
63839
63840         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63841         previous section name.
63842
63843 2008-01-07  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/progname.c (set_program_name): Don't strip off a leading
63846         "lt-" prefix outside a .libs directory.
63847         Suggested by Paul Eggert.
63848
63849 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63850             Bruno Haible  <bruno@clisp.org>
63851
63852         Improve memory cleanup in 'relocatable' module.
63853         * lib/relocatable.h (compute_curr_prefix): Change return type to
63854         'char *'.
63855         * lib/relocatable.c (compute_curr_prefix): Change return type to
63856         'char *'. Free curr_installdir after use.
63857         (relocate): Free curr_prefix_better after use.
63858         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63859
63860 2008-01-01  Bruno Haible  <bruno@clisp.org>
63861
63862         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63863         failure on older glibc systems.
63864         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63865
63866 2008-01-05  Eric Blake  <ebb9@byu.net>
63867
63868         Avoid quadratic system memmem.
63869         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63870         Reported by Ralf Wildenhues.
63871
63872         Fix memmem test for mingw.
63873         * modules/memmem-tests (configure.ac): Check for alarm.
63874         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63875         it.
63876         * doc/functions/memmem.texi: New file.
63877         * doc/gnulib.texi (Function Substitutes): Add memmem.
63878         Reported by Bruno Haible.
63879
63880 2008-01-04  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63883         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63884         gl_HEADER_STRING_H_DEFAULTS.
63885
63886 2008-01-04  Eric Blake  <ebb9@byu.net>
63887
63888         Shorten duration of memmem test.
63889         * tests/test-memmem.c (main): Use alarm to declare failure if test
63890         is taking too long.
63891         Reported by Ralf Wildenhues.
63892
63893 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63894
63895         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63896         string, needed by strerror.
63897
63898 2008-01-03  Colin Watson  <cjwatson@debian.org>
63899             Bruno Haible  <bruno@clisp.org>
63900
63901         * doc/gnulib-tool.texi (Localization): New section.
63902
63903 2008-01-02  Bruno Haible  <bruno@clisp.org>
63904
63905         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63906         variables to 'unsigned char *' type.
63907         Reported by Paul Eggert.
63908
63909 2008-01-02  Jim Meyering  <jim@meyering.net>
63910
63911         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63912
63913 2007-12-31  Jim Meyering  <jim@meyering.net>
63914
63915         Avoid use of private FTS type name.
63916         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63917
63918 2007-12-30  Karl Berry  <karl@gnu.org>
63919
63920         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63921         work around defect in Texinfo and/or the standalone Info browser.
63922
63923 2007-12-30  Bruno Haible  <bruno@clisp.org>
63924
63925         Unify 5 copies of the KMP code.
63926         * lib/str-kmp.h: New file.
63927         * lib/c-strcasestr.c: Include str-kmp.h.
63928         (knuth_morris_pratt): Remove function.
63929         (c_strcasestr): Update.
63930         * lib/c-strstr.c: Include str-kmp.h.
63931         (knuth_morris_pratt): Remove function.
63932         (c_strcasestr): Update.
63933         * lib/mbscasestr.c: Include str-kmp.h.
63934         (knuth_morris_pratt_unibyte): Remove function.
63935         * lib/mbsstr.c: Include str-kmp.h.
63936         (knuth_morris_pratt_unibyte): Remove function.
63937         * lib/strcasestr.c: Include str-kmp.h.
63938         (knuth_morris_pratt): Remove function.
63939         (strcasestr): Update.
63940         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63941         * modules/c-strstr (Files): Likewise.
63942         * modules/mbscasestr (Files): Likewise.
63943         * modules/mbsstr (Files): Likewise.
63944         * modules/strcasestr (Files): Likewise.
63945         Suggested by Paul Eggert.
63946
63947 2007-12-30  Bruno Haible  <bruno@clisp.org>
63948
63949         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63950         defined.
63951
63952 2007-12-30  Bruno Haible  <bruno@clisp.org>
63953
63954         * lib/xmalloca.h: Include xalloc.h.
63955         (xnmalloca): New macro.
63956
63957 2007-12-30  Bruno Haible  <bruno@clisp.org>
63958
63959         * lib/malloca.h (nmalloca): New macro.
63960         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63961         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63962         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63963         knuth_morris_pratt_multibyte): Likewise.
63964         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63965         knuth_morris_pratt_multibyte): Likewise.
63966         * lib/memmem.c (knuth_morris_pratt): Likewise.
63967         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63968
63969 2007-12-25  Bruno Haible  <bruno@clisp.org>
63970
63971         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63972         * lib/glob.c: Don't include openat.h.
63973         (link_exists2_p): Add back the code that deals with the
63974         !GLOB_ALTDIRFUNC case.
63975         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63976         let it do the filename concatenation.
63977         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63978         * modules/glob (Depends-on): Remove openat.
63979
63980 2007-12-31  Bruno Haible  <bruno@clisp.org>
63981
63982         * modules/dirfd (License): Change to LGPLv2+.
63983         Approved by Jim Meyering.
63984
63985 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63988         when multiplying M by sizeof (size_t).
63989
63990 2007-12-10  Martin Lambers  <marlam@marlam.de>
63991
63992         Override getpagesize on mingw.
63993         * lib/getpagesize.c: New file.
63994         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63995         * modules/getpagesize (Files): Add lib/getpagesize.c.
63996         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63998         REPLACE_GETPAGESIZE.
63999         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64000
64001 2007-12-25  Bruno Haible  <bruno@clisp.org>
64002
64003         * modules/localcharset (Notice): New field.
64004         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64005         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64006
64007 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64008             Bruno Haible  <bruno@clisp.org>
64009
64010         Avoid using the syntax symbol() in formatted documentation.
64011         * MODULES.html.sh (func_module): When replacing symbol() with a
64012         hyperlink, remove the parentheses. Show an error if some remain.
64013         Recognize and render the '...' syntax.
64014         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64015         Rework. Add paragraph about GCC's inlining.
64016         * doc/alloca.texi: Likewise.
64017         * doc/error.texi: Remove parentheses from symbol reference.
64018         * doc/gnulib-intro.texi: Likewise.
64019         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64020         * modules/fnmatch (Description): Reword to say "the ... function".
64021         * modules/full-read (Description): Likewise.
64022         * modules/full-write (Description): Likewise.
64023         * modules/safe-read (Description): Likewise.
64024         * modules/safe-write (Description): Likewise.
64025         * modules/strchrnul (Description): Likewise.
64026         * modules/trim (Description): Likewise.
64027         * modules/error (Description): Remove parentheses from symbol
64028         references.
64029         * modules/verror (Description): Likewise.
64030         Reported by Karl Berry.
64031
64032 2007-12-25  Bruno Haible  <bruno@clisp.org>
64033
64034         Fixup after 2007-10-16 commit.
64035         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64036
64037 2007-12-24  Bruno Haible  <bruno@clisp.org>
64038
64039         Make --enable-relocatable work with DESTDIR.
64040         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64041         to compute installdir from destprog.
64042         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64043         also set the RELOC_DESTDIR variable.
64044         Reported by Левашев Иван <octagram@bluebottle.com>.
64045
64046 2007-12-24  Bruno Haible  <bruno@clisp.org>
64047
64048         Fix link error due to xalloc_die().
64049         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64050         of xreadlink.
64051         * lib/relocwrapper.c: Update comments.
64052         * build-aux/install-reloc: Remove xreadlink.c from file list.
64053         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64054         xreadlink.c.
64055         Reported by Левашев Иван <octagram@bluebottle.com>.
64056
64057 2007-12-24  Bruno Haible  <bruno@clisp.org>
64058
64059         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64060         * lib/setenv.h: Remove file.
64061         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64062         lib/setenv.h.
64063         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64064         (Depends-on): Add stdlib.
64065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64066         gl_FUNC_UNSETENV.
64067         (Include): Replace setenv.h with <stdlib.h>.
64068         * modules/unsetenv: New file.
64069         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64070         * lib/unsetenv.c: Include <stdlib.h> first.
64071         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64072         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64073         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64074         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64075         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64076         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64078         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64079         * doc/functions/unsetenv.texi: Update.
64080         * modules/xsetenv (Depends-on): Add unsetenv.
64081         * modules/getdate (Depends-on): Likewise.
64082         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64083         * lib/xsetenv.c: Don't include setenv.h.
64084         * lib/getdate.y: Likewise.
64085         * lib/relocwrapper.c: Likewise.
64086         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64087         (Depends-on): Add stdlib.
64088         * NEWS: Mention the changes.
64089         Reported by Левашев Иван <octagram@bluebottle.com>.
64090
64091 2007-12-23  Bruno Haible  <bruno@clisp.org>
64092
64093         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64094         indentation.
64095
64096 2007-12-23  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/c-strcasestr.c: Add more comments.
64099         * lib/c-strstr.c: Likewise.
64100         * lib/mbscasestr.c: Likewise.
64101         * lib/mbsstr.c: Likewise.
64102         * lib/strcasestr.c: Likewise.
64103         * lib/memmem.c: Likewise.
64104
64105 2007-12-23  Bruno Haible  <bruno@clisp.org>
64106
64107         * tests/test-memmem.c: Include <string.h> first.
64108
64109 2007-12-22  Bruno Haible  <bruno@clisp.org>
64110
64111         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64112         the contents of $testsbase.
64113         Reported by Ralf Wildenhues.
64114
64115 2007-12-22  Bruno Haible  <bruno@clisp.org>
64116
64117         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64118         two variables local_ldadd_before, local_ldadd_last.
64119
64120 2007-12-20  Eric Blake  <ebb9@byu.net>
64121
64122         Work around circular library issue when cross-compiling.
64123         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64124         that progname.o does not need to pull in rpl_memcmp.
64125
64126 2007-12-19  Eric Blake  <ebb9@byu.net>
64127
64128         Fix memmem to avoid O(n^2) worst-case complexity.
64129         * lib/memmem.c (knuth_morris_pratt): New function.
64130         (memmem): Use it if first few naive iterations fail.
64131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64132         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64133         * modules/memchr (License): Likewise.
64134         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64135         malloca.
64136         * tests/test-memmem.c: Rewrite, borrowing ideas from
64137         test-mbsstr1.c; the old version wouldn't even compile!
64138         * modules/memmem-tests: New file.
64139         * lib/string.in.h (rpl_memmem): Add declaration.
64140         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64142         REPLACE_MEMMEM.
64143
64144 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64145
64146         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64147         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64148         before any system include files, and undef after them all.  This
64149         should fix a problem on VMS reported by John E. Malmberg in
64150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64151
64152 2007-12-17  Eric Blake  <ebb9@byu.net>
64153
64154         Revert addition of verify, for BSD/OS.
64155         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64156         can't handle large files, for the sake of obsolete platforms.
64157         * modules/fseeko (Depends-on): Remove verify.
64158         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64159         * doc/functions/ftello.texi (ftello): Likewise.
64160         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64161         Reported by Larry Jones.
64162
64163 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64164
64165         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64166         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64167
64168 2007-12-17  Jim Meyering  <meyering@redhat.com>
64169
64170         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64171         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64172         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64173         * modules/getcwd (Depends-on): Add openat.
64174         Reported by Petr Salinger.
64175
64176 2007-12-17  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64179         avoid a segmentation fault of the configure test on x86_64 systems.
64180
64181 2007-12-15  Jim Meyering  <meyering@redhat.com>
64182
64183         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64184
64185 2007-12-13  Eric Blake  <ebb9@byu.net>
64186
64187         Another fseek test.
64188         * tests/test-fseek.c (main): Also test ungetc handling.
64189         * tests/test-fseeko.c (main): Likewise.
64190         * modules/fseeko (Depends-on): Add verify.
64191         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64192         large.
64193         Reported by Larry Jones.
64194
64195         Fix fseeko on mingw.
64196         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64197         seek.
64198
64199         Beef up fseek tests.
64200         * tests/test-fseek.c (main): Also test eof handling.
64201         * tests/test-fseeko.c (main): Likewise.
64202         Reported by Larry Jones.
64203
64204 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64205
64206         Fix fseeko on BSD-based platforms.
64207         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64208         successful seek.
64209
64210 2007-12-12  Eric Blake  <ebb9@byu.net>
64211
64212         Allow circular dependency of separate libtests.a
64213         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64214         when use_libtests.
64215
64216 2007-12-11  Eric Blake  <ebb9@byu.net>
64217
64218         Fix bug with -0.0L in previous patch.
64219         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64220         * tests/test-isnan.c (main): Also test on zeroes.
64221         * tests/test-isnanf.c (main): Likewise.
64222         * tests/test-isnanl.h (main): Likewise.
64223
64224         Detect pseudo-denormals on x86 even when cross-compiling.
64225         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64226         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64227         invalid bit patterns that happen to satisfy ==.
64228
64229         Avoid link failures with separate libtests.a.
64230         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64231         last, to satisfy circular dependencies.
64232
64233 2007-12-11  Eric Blake  <ebb9@byu.net>
64234         and Bruno Haible  <bruno@clisp.org>
64235
64236         Fix OpenBSD 4.0 <float.h> handling of long double.
64237         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64238         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64239         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64240
64241 2007-12-11  Jim Meyering  <meyering@redhat.com>
64242
64243         * users.txt: Add libvirt.
64244
64245         Support versions of autoconf prior to 2.59c.
64246         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64247         if it is not already defined.
64248
64249 2007-12-09  Bruno Haible  <bruno@clisp.org>
64250
64251         Let 'gnulib-tool --import' collect sources needed for the tests in
64252         tests/ rather than in lib/.
64253         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64254         argument. If true, add rules to generate libtests.a, and put libtests.a
64255         into $(LDADD). Consider source files in subdirectories and set
64256         uses_subdirs.
64257         (func_emit_initmacro_start, func_emit_initmacro_end,
64258         func_emit_initmacro_done): Pass all arguments explicitly.
64259         (func_import): Determine two module lists main_modules,
64260         testsrelated_modules. Determine use_libtests. Determine two variables
64261         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64262         instead of just sed_transform_lib_file. Determine two variables
64263         main_files and testsrelated_files. Compute 'files' as the union of
64264         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64265         func_add_or_update. In the generated gnulib-comp.m4, collect the
64266         object files for tests/ in different variables than those for lib/.
64267         Substitute LIBTESTS_LIBDEPS.
64268         (func_create_testdir): Combine the uses_subdirs results from
64269         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64270
64271 2007-12-09  Bruno Haible  <bruno@clisp.org>
64272
64273         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64274         the build-aux directory.
64275
64276 2007-12-09  Bruno Haible  <bruno@clisp.org>
64277
64278         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64279         introduced on 2006-09-09.
64280
64281 2007-12-07  Jim Meyering  <meyering@redhat.com>
64282
64283         Let these macros work also with autoconf-2.59.
64284         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64285         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64286         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64287
64288 2007-12-06  Jim Meyering  <meyering@redhat.com>
64289
64290         Avoid a configure-time syntax error in gl_FUNC_ACL.
64291         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64292         function in each branch, before testing the cache variable.
64293
64294 2007-12-04  Eric Blake  <ebb9@byu.net>
64295
64296         Make scripts executable.
64297         * build-aux/config.guess: Add execute permissions.
64298         * build-aux/config.sub: Likewise.
64299         * build-aux/gendocs.sh: Likewise.
64300
64301         Fix frexp on mingw.
64302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64303         cross-compiling.
64304         * doc/functions/frexp.texi (frexp): Document the bug.
64305
64306         Make cygwin fseeko check more reliable.
64307         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64308         version numbers, rather than unrelated feature check.
64309         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64310         * doc/functions/ftello.texi (ftello): Likewise.
64311         Reported by Bruno Haible.
64312
64313         * m4/strerror.m4: Bump version number.
64314
64315 2007-12-03  Bruno Haible  <bruno@clisp.org>
64316
64317         * doc/functions/mprotect.texi: Mention the mingw problem.
64318
64319 2007-12-03  Eric Blake  <ebb9@byu.net>
64320
64321         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64322         REPLACE_STRERROR is initialized before this macro.
64323
64324 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64327         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64328         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64329         put -lsec in even for programs other than 'ls'.  This fixes a problem
64330         for gettext reported by Bruno Haible in
64331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64332         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64333         Add support for Solaris 10.  This isn't efficient, but should get the
64334         job done for now.
64335
64336 2007-12-03  James Youngman  <jay@gnu.org>
64337
64338         * doc/regexprops-generic.texi: change "an close-group" to "a
64339         close-group" and "illegal" to "not allowed".
64340
64341 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64342
64343         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64344         pr_byname.h. Needed for the rare case when the maintainer has done
64345         "make maintainer-clean" in the source directory and then attempts a
64346         build outside the source directory.
64347         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64348         scripts_byname.h.
64349
64350 2007-12-02  Martin Lambers <marlam@marlam.de>
64351             Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/getpagesize.h: Remove file.
64354         * lib/unistd.in.h: Include declaration of getpagesize here.
64355         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64356         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64357         HAVE_SYS_PARAM_H.
64358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64359         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64360         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64361         (Depends-on): Add unistd.
64362         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64363         (Include): Use <unistd.h> instead of getpagesize.h.
64364         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64365         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64366         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64367         gl_GETPAGESIZE invocation, already handled by module dependency.
64368         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64369
64370 2007-12-02  Bruno Haible  <bruno@clisp.org>
64371
64372         * modules/strings-tests: New file.
64373         * tests/test-strings.c: New file.
64374
64375         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64376         * lib/strings.in.h: New file.
64377         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64378         * m4/strings_h.m4: New file.
64379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64380         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64381         * modules/strings: New file.
64382         * modules/string (Makefile.am): Update.
64383         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64384         Reported by Karl Berry.
64385
64386 2007-12-01  Eric Blake  <ebb9@byu.net>
64387
64388         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64389         accommodate fix in cygwin 1.5.25.
64390
64391 2007-12-01  Jim Meyering  <meyering@redhat.com>
64392
64393         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64394         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64395         that would inhibit utf8-optimization of a regexp containing line-
64396         or buffer-anchors, e.g., `^', `$'.
64397
64398 2007-11-30  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64401         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64402         glthread_recursive_lock_init.
64403         * lib/lock.c (glthread_recursive_lock_init)
64404         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64405         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64406
64407 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64408
64409         New function qset_acl, like set_acl but with syscall semantics.
64410         * lib/acl.h (qset_acl): New decl.
64411         * lib/acl.c (qset_acl): New function.
64412         (set_acl): Use new function.  Use more-consistent diagnostics.
64413
64414 2007-11-28  Jim Meyering  <meyering@redhat.com>
64415
64416         * modules/physmem (License): Change from GPL to LGPLv2+.
64417
64418 2007-11-26  Bruno Haible  <bruno@clisp.org>
64419
64420         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64421         'long double' type has excess precision.
64422         Reported by Jim Meyering in
64423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64424
64425 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64426
64427         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64428         Sync from <http://gnu.org/licenses>.
64429         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64430         with license text from same location.
64431         * doc/maintain.texi, doc/standards.texi:  Sync from
64432         <http://savannah.gnu.org/projects/gnustandards>.
64433
64434 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64435         and Jim Meyering  <meyering@redhat.com>
64436
64437         Adjust getdate' grammar to accept a slightly more regular language.
64438         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64439         Before, the former was rejected.
64440         * lib/getdate.y (digits_to_date_time): New function, factored
64441         out of ...
64442         (number): ...here.  Just call digits_to_date_time.
64443         (hybrid): New non-terminal to handle an <unsigned number,
64444         signed relative offset> sequence consistently.
64445
64446 2007-11-18  Jim Meyering  <meyering@redhat.com>
64447
64448         Pull my changes from coreutils:
64449         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64450         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64451         use of $gnulib_tool_option_extras, so that it's separated from the
64452         preceding argument.
64453
64454         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64455         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64456         parent destination directories before copying a file into place.
64457
64458 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64459
64460         bootstrap: work also with 4-argument variant of AC_INIT
64461         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64462
64463 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         Port test-getaddrinfo to Solaris.
64466         Problem reported by Bruno Haible in
64467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64468         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64469         explanation of setting 'hints'.
64470         Don't reject an implementation merely because it returns EAI_SERVICE.
64471         (EAI_SERVICE): Define to 0 if not defined.
64472
64473 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         The license of gnu-make and posix-shell is now "GPLed build tool".
64476         * modules/gnu-make (License): Likewise.
64477         * modules/posix-shell (License): Likewise.
64478
64479         New module posix-shell, for determining a POSIX shell
64480         or perhaps something that is close enough to a POSIX shell.
64481         * m4/posix-shell.m4: New file.
64482         * modules/posix-shell: New file.
64483
64484         * MODULES.html.sh: Mention new module.
64485
64486         New module gnu-make, for determining whether we're using GNU Make.
64487         * m4/gnu-make.m4: New file.
64488         * modules/gnu-make: New file.
64489         * MODULES.html.sh: Mention new module.
64490
64491 2007-11-14  Jim Meyering  <meyering@redhat.com>
64492
64493         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64494         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64495         use this macro to create a function _definition_.
64496         Remove useless "#undef ARGMATCH_DIE".
64497
64498 2007-11-14  Bruno Haible  <bruno@clisp.org>
64499
64500         * lib/config.charset: Update for OpenBSD 4.1.
64501         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64502
64503 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64504
64505         Document 64-bit #if problems in stdint.texi.
64506         * doc/headers/stdint.texi (stdint.h): Mention problems with
64507         64-bit-#if, and how to work around them.
64508
64509         Don't insist on 'long long int' support in the preprocessor.  It
64510         breaks too many things.  For example, PRIdMAX still uses a 'long
64511         long int' format with the latest Sun compiler, even though
64512         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64513         preprocessor problem.  This causes the latest coreutils to dump
64514         core on Solaris 10 sparc with the Sun C compiler.
64515         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64516         the troublesome expressions at configure-time, not at #if-time.
64517         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64518         preprocessor.
64519         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64520         compile-time C checks, done at 'configure'-time.
64521         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64522         * modules/inttypes (Makefile): Substitute the new symbols that
64523         gl_INTTYPES_H now generates.
64524         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64525
64526 2007-11-12  Bruno Haible  <bruno@clisp.org>
64527
64528         Tests for Unicode character classification functions.
64529
64530         * modules/unictype/bidicategory-byname-tests: New file.
64531         * modules/unictype/bidicategory-name-tests: New file.
64532         * modules/unictype/bidicategory-of-tests: New file.
64533         * modules/unictype/bidicategory-test-tests: New file.
64534         * modules/unictype/block-list-tests: New file.
64535         * modules/unictype/block-of-tests: New file.
64536         * modules/unictype/block-test-tests: New file.
64537         * modules/unictype/category-C-tests: New file.
64538         * modules/unictype/category-Cc-tests: New file.
64539         * modules/unictype/category-Cf-tests: New file.
64540         * modules/unictype/category-Cn-tests: New file.
64541         * modules/unictype/category-Co-tests: New file.
64542         * modules/unictype/category-Cs-tests: New file.
64543         * modules/unictype/category-L-tests: New file.
64544         * modules/unictype/category-Ll-tests: New file.
64545         * modules/unictype/category-Lm-tests: New file.
64546         * modules/unictype/category-Lo-tests: New file.
64547         * modules/unictype/category-Lt-tests: New file.
64548         * modules/unictype/category-Lu-tests: New file.
64549         * modules/unictype/category-M-tests: New file.
64550         * modules/unictype/category-Mc-tests: New file.
64551         * modules/unictype/category-Me-tests: New file.
64552         * modules/unictype/category-Mn-tests: New file.
64553         * modules/unictype/category-N-tests: New file.
64554         * modules/unictype/category-Nd-tests: New file.
64555         * modules/unictype/category-Nl-tests: New file.
64556         * modules/unictype/category-No-tests: New file.
64557         * modules/unictype/category-P-tests: New file.
64558         * modules/unictype/category-Pc-tests: New file.
64559         * modules/unictype/category-Pd-tests: New file.
64560         * modules/unictype/category-Pe-tests: New file.
64561         * modules/unictype/category-Pf-tests: New file.
64562         * modules/unictype/category-Pi-tests: New file.
64563         * modules/unictype/category-Po-tests: New file.
64564         * modules/unictype/category-Ps-tests: New file.
64565         * modules/unictype/category-S-tests: New file.
64566         * modules/unictype/category-Sc-tests: New file.
64567         * modules/unictype/category-Sk-tests: New file.
64568         * modules/unictype/category-Sm-tests: New file.
64569         * modules/unictype/category-So-tests: New file.
64570         * modules/unictype/category-Z-tests: New file.
64571         * modules/unictype/category-Zl-tests: New file.
64572         * modules/unictype/category-Zp-tests: New file.
64573         * modules/unictype/category-Zs-tests: New file.
64574         * modules/unictype/category-and-not-tests: New file.
64575         * modules/unictype/category-and-tests: New file.
64576         * modules/unictype/category-byname-tests: New file.
64577         * modules/unictype/category-name-tests: New file.
64578         * modules/unictype/category-none-tests: New file.
64579         * modules/unictype/category-of-tests: New file.
64580         * modules/unictype/category-or-tests: New file.
64581         * modules/unictype/category-test-withtable-tests: New file.
64582         * modules/unictype/combining-class-tests: New file.
64583         * modules/unictype/ctype-alnum-tests: New file.
64584         * modules/unictype/ctype-alpha-tests: New file.
64585         * modules/unictype/ctype-blank-tests: New file.
64586         * modules/unictype/ctype-cntrl-tests: New file.
64587         * modules/unictype/ctype-digit-tests: New file.
64588         * modules/unictype/ctype-graph-tests: New file.
64589         * modules/unictype/ctype-lower-tests: New file.
64590         * modules/unictype/ctype-print-tests: New file.
64591         * modules/unictype/ctype-punct-tests: New file.
64592         * modules/unictype/ctype-space-tests: New file.
64593         * modules/unictype/ctype-upper-tests: New file.
64594         * modules/unictype/ctype-xdigit-tests: New file.
64595         * modules/unictype/decimal-digit-tests: New file.
64596         * modules/unictype/digit-tests: New file.
64597         * modules/unictype/mirror-tests: New file.
64598         * modules/unictype/numeric-tests: New file.
64599         * modules/unictype/property-alphabetic-tests: New file.
64600         * modules/unictype/property-ascii-hex-digit-tests: New file.
64601         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64602         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64603         * modules/unictype/property-bidi-block-separator-tests: New file.
64604         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64605         * modules/unictype/property-bidi-common-separator-tests: New file.
64606         * modules/unictype/property-bidi-control-tests: New file.
64607         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64608         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64609         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64610         * modules/unictype/property-bidi-european-digit-tests: New file.
64611         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64612         * modules/unictype/property-bidi-left-to-right-tests: New file.
64613         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64614         * modules/unictype/property-bidi-other-neutral-tests: New file.
64615         * modules/unictype/property-bidi-pdf-tests: New file.
64616         * modules/unictype/property-bidi-segment-separator-tests: New file.
64617         * modules/unictype/property-bidi-whitespace-tests: New file.
64618         * modules/unictype/property-byname-tests: New file.
64619         * modules/unictype/property-combining-tests: New file.
64620         * modules/unictype/property-composite-tests: New file.
64621         * modules/unictype/property-currency-symbol-tests: New file.
64622         * modules/unictype/property-dash-tests: New file.
64623         * modules/unictype/property-decimal-digit-tests: New file.
64624         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64625         * modules/unictype/property-deprecated-tests: New file.
64626         * modules/unictype/property-diacritic-tests: New file.
64627         * modules/unictype/property-extender-tests: New file.
64628         * modules/unictype/property-format-control-tests: New file.
64629         * modules/unictype/property-grapheme-base-tests: New file.
64630         * modules/unictype/property-grapheme-extend-tests: New file.
64631         * modules/unictype/property-grapheme-link-tests: New file.
64632         * modules/unictype/property-hex-digit-tests: New file.
64633         * modules/unictype/property-hyphen-tests: New file.
64634         * modules/unictype/property-id-continue-tests: New file.
64635         * modules/unictype/property-id-start-tests: New file.
64636         * modules/unictype/property-ideographic-tests: New file.
64637         * modules/unictype/property-ids-binary-operator-tests: New file.
64638         * modules/unictype/property-ids-trinary-operator-tests: New file.
64639         * modules/unictype/property-ignorable-control-tests: New file.
64640         * modules/unictype/property-iso-control-tests: New file.
64641         * modules/unictype/property-join-control-tests: New file.
64642         * modules/unictype/property-left-of-pair-tests: New file.
64643         * modules/unictype/property-line-separator-tests: New file.
64644         * modules/unictype/property-logical-order-exception-tests: New file.
64645         * modules/unictype/property-lowercase-tests: New file.
64646         * modules/unictype/property-math-tests: New file.
64647         * modules/unictype/property-non-break-tests: New file.
64648         * modules/unictype/property-not-a-character-tests: New file.
64649         * modules/unictype/property-numeric-tests: New file.
64650         * modules/unictype/property-other-alphabetic-tests: New file.
64651         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64652         * modules/unictype/property-other-grapheme-extend-tests: New file.
64653         * modules/unictype/property-other-id-continue-tests: New file.
64654         * modules/unictype/property-other-id-start-tests: New file.
64655         * modules/unictype/property-other-lowercase-tests: New file.
64656         * modules/unictype/property-other-math-tests: New file.
64657         * modules/unictype/property-other-uppercase-tests: New file.
64658         * modules/unictype/property-paired-punctuation-tests: New file.
64659         * modules/unictype/property-paragraph-separator-tests: New file.
64660         * modules/unictype/property-pattern-syntax-tests: New file.
64661         * modules/unictype/property-pattern-white-space-tests: New file.
64662         * modules/unictype/property-private-use-tests: New file.
64663         * modules/unictype/property-punctuation-tests: New file.
64664         * modules/unictype/property-quotation-mark-tests: New file.
64665         * modules/unictype/property-radical-tests: New file.
64666         * modules/unictype/property-sentence-terminal-tests: New file.
64667         * modules/unictype/property-soft-dotted-tests: New file.
64668         * modules/unictype/property-space-tests: New file.
64669         * modules/unictype/property-terminal-punctuation-tests: New file.
64670         * modules/unictype/property-test-tests: New file.
64671         * modules/unictype/property-titlecase-tests: New file.
64672         * modules/unictype/property-unassigned-code-value-tests: New file.
64673         * modules/unictype/property-unified-ideograph-tests: New file.
64674         * modules/unictype/property-uppercase-tests: New file.
64675         * modules/unictype/property-variation-selector-tests: New file.
64676         * modules/unictype/property-white-space-tests: New file.
64677         * modules/unictype/property-xid-continue-tests: New file.
64678         * modules/unictype/property-xid-start-tests: New file.
64679         * modules/unictype/property-zero-width-tests: New file.
64680         * modules/unictype/scripts-tests: New file.
64681         * modules/unictype/syntax-c-ident-tests: New file.
64682         * modules/unictype/syntax-c-whitespace-tests: New file.
64683         * modules/unictype/syntax-java-ident-tests: New file.
64684         * modules/unictype/syntax-java-whitespace-tests: New file.
64685         * tests/unictype/test-bidi_byname.c: New file.
64686         * tests/unictype/test-bidi_name.c: New file.
64687         * tests/unictype/test-bidi_of.c: New file.
64688         * tests/unictype/test-bidi_test.c: New file.
64689         * tests/unictype/test-block_list.c: New file.
64690         * tests/unictype/test-block_of.c: New file.
64691         * tests/unictype/test-block_test.c: New file.
64692         * tests/unictype/test-categ_and.c: New file.
64693         * tests/unictype/test-categ_and_not.c: New file.
64694         * tests/unictype/test-categ_byname.c: New file.
64695         * tests/unictype/test-categ_name.c: New file.
64696         * tests/unictype/test-categ_none.c: New file.
64697         * tests/unictype/test-categ_of.c: New file.
64698         * tests/unictype/test-categ_or.c: New file.
64699         * tests/unictype/test-categ_test_withtable.c: New file.
64700         * tests/unictype/test-combining.c: New file.
64701         * tests/unictype/test-decdigit.c: New file.
64702         * tests/unictype/test-digit.c: New file.
64703         * tests/unictype/test-mirror.c: New file.
64704         * tests/unictype/test-numeric.c: New file.
64705         * tests/unictype/test-pr_byname.c: New file.
64706         * tests/unictype/test-pr_test.c: New file.
64707         * tests/unictype/test-predicate-part1.h: New file.
64708         * tests/unictype/test-predicate-part2.h: New file.
64709         * tests/unictype/test-scripts.c: New file.
64710         * tests/unictype/test-sy_c_ident.c: New file.
64711         * tests/unictype/test-sy_java_ident.c: New file.
64712
64713         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64714         for Unicode 5.0.0.
64715         * tests/unictype/test-categ_Cc.c: Likewise.
64716         * tests/unictype/test-categ_Cf.c: Likewise.
64717         * tests/unictype/test-categ_Cn.c: Likewise.
64718         * tests/unictype/test-categ_Co.c: Likewise.
64719         * tests/unictype/test-categ_Cs.c: Likewise.
64720         * tests/unictype/test-categ_L.c: Likewise.
64721         * tests/unictype/test-categ_Ll.c: Likewise.
64722         * tests/unictype/test-categ_Lm.c: Likewise.
64723         * tests/unictype/test-categ_Lo.c: Likewise.
64724         * tests/unictype/test-categ_Lt.c: Likewise.
64725         * tests/unictype/test-categ_Lu.c: Likewise.
64726         * tests/unictype/test-categ_M.c: Likewise.
64727         * tests/unictype/test-categ_Mc.c: Likewise.
64728         * tests/unictype/test-categ_Me.c: Likewise.
64729         * tests/unictype/test-categ_Mn.c: Likewise.
64730         * tests/unictype/test-categ_N.c: Likewise.
64731         * tests/unictype/test-categ_Nd.c: Likewise.
64732         * tests/unictype/test-categ_Nl.c: Likewise.
64733         * tests/unictype/test-categ_No.c: Likewise.
64734         * tests/unictype/test-categ_P.c: Likewise.
64735         * tests/unictype/test-categ_Pc.c: Likewise.
64736         * tests/unictype/test-categ_Pd.c: Likewise.
64737         * tests/unictype/test-categ_Pe.c: Likewise.
64738         * tests/unictype/test-categ_Pf.c: Likewise.
64739         * tests/unictype/test-categ_Pi.c: Likewise.
64740         * tests/unictype/test-categ_Po.c: Likewise.
64741         * tests/unictype/test-categ_Ps.c: Likewise.
64742         * tests/unictype/test-categ_S.c: Likewise.
64743         * tests/unictype/test-categ_Sc.c: Likewise.
64744         * tests/unictype/test-categ_Sk.c: Likewise.
64745         * tests/unictype/test-categ_Sm.c: Likewise.
64746         * tests/unictype/test-categ_So.c: Likewise.
64747         * tests/unictype/test-categ_Z.c: Likewise.
64748         * tests/unictype/test-categ_Zl.c: Likewise.
64749         * tests/unictype/test-categ_Zp.c: Likewise.
64750         * tests/unictype/test-categ_Zs.c: Likewise.
64751         * tests/unictype/test-ctype_alnum.c: Likewise.
64752         * tests/unictype/test-ctype_alpha.c: Likewise.
64753         * tests/unictype/test-ctype_blank.c: Likewise.
64754         * tests/unictype/test-ctype_cntrl.c: Likewise.
64755         * tests/unictype/test-ctype_digit.c: Likewise.
64756         * tests/unictype/test-ctype_graph.c: Likewise.
64757         * tests/unictype/test-ctype_lower.c: Likewise.
64758         * tests/unictype/test-ctype_print.c: Likewise.
64759         * tests/unictype/test-ctype_punct.c: Likewise.
64760         * tests/unictype/test-ctype_space.c: Likewise.
64761         * tests/unictype/test-ctype_upper.c: Likewise.
64762         * tests/unictype/test-ctype_xdigit.c: Likewise.
64763         * tests/unictype/test-decdigit.h: Likewise.
64764         * tests/unictype/test-digit.h: Likewise.
64765         * tests/unictype/test-numeric.h: Likewise.
64766         * tests/unictype/test-pr_alphabetic.c: Likewise.
64767         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64768         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64769         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64770         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64771         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64772         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64773         * tests/unictype/test-pr_bidi_control.c: Likewise.
64774         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64775         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64776         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64777         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64778         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64779         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64780         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64781         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64782         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64783         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64784         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64785         * tests/unictype/test-pr_combining.c: Likewise.
64786         * tests/unictype/test-pr_composite.c: Likewise.
64787         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64788         * tests/unictype/test-pr_dash.c: Likewise.
64789         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64790         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64791         * tests/unictype/test-pr_deprecated.c: Likewise.
64792         * tests/unictype/test-pr_diacritic.c: Likewise.
64793         * tests/unictype/test-pr_extender.c: Likewise.
64794         * tests/unictype/test-pr_format_control.c: Likewise.
64795         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64796         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64797         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64798         * tests/unictype/test-pr_hex_digit.c: Likewise.
64799         * tests/unictype/test-pr_hyphen.c: Likewise.
64800         * tests/unictype/test-pr_id_continue.c: Likewise.
64801         * tests/unictype/test-pr_id_start.c: Likewise.
64802         * tests/unictype/test-pr_ideographic.c: Likewise.
64803         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64804         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64805         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64806         * tests/unictype/test-pr_iso_control.c: Likewise.
64807         * tests/unictype/test-pr_join_control.c: Likewise.
64808         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64809         * tests/unictype/test-pr_line_separator.c: Likewise.
64810         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64811         * tests/unictype/test-pr_lowercase.c: Likewise.
64812         * tests/unictype/test-pr_math.c: Likewise.
64813         * tests/unictype/test-pr_non_break.c: Likewise.
64814         * tests/unictype/test-pr_not_a_character.c: Likewise.
64815         * tests/unictype/test-pr_numeric.c: Likewise.
64816         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64817         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64818         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64819         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64820         * tests/unictype/test-pr_other_id_start.c: Likewise.
64821         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64822         * tests/unictype/test-pr_other_math.c: Likewise.
64823         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64824         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64825         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64826         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64827         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64828         * tests/unictype/test-pr_private_use.c: Likewise.
64829         * tests/unictype/test-pr_punctuation.c: Likewise.
64830         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64831         * tests/unictype/test-pr_radical.c: Likewise.
64832         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64833         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64834         * tests/unictype/test-pr_space.c: Likewise.
64835         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64836         * tests/unictype/test-pr_titlecase.c: Likewise.
64837         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64838         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64839         * tests/unictype/test-pr_uppercase.c: Likewise.
64840         * tests/unictype/test-pr_variation_selector.c: Likewise.
64841         * tests/unictype/test-pr_white_space.c: Likewise.
64842         * tests/unictype/test-pr_xid_continue.c: Likewise.
64843         * tests/unictype/test-pr_xid_start.c: Likewise.
64844         * tests/unictype/test-pr_zero_width.c: Likewise.
64845         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64846         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64847
64848 2007-11-12  Bruno Haible  <bruno@clisp.org>
64849
64850         Unicode character classification functions.
64851         * lib/unictype.h: New file.
64852         * modules/unictype/base: New file.
64853         * modules/unictype/category-L: New file.
64854         * modules/unictype/category-Lu: New file.
64855         * modules/unictype/category-Ll: New file.
64856         * modules/unictype/category-Lt: New file.
64857         * modules/unictype/category-Lm: New file.
64858         * modules/unictype/category-Lo: New file.
64859         * modules/unictype/category-M: New file.
64860         * modules/unictype/category-Mn: New file.
64861         * modules/unictype/category-Mc: New file.
64862         * modules/unictype/category-Me: New file.
64863         * modules/unictype/category-N: New file.
64864         * modules/unictype/category-Nd: New file.
64865         * modules/unictype/category-Nl: New file.
64866         * modules/unictype/category-No: New file.
64867         * modules/unictype/category-P: New file.
64868         * modules/unictype/category-Pc: New file.
64869         * modules/unictype/category-Pd: New file.
64870         * modules/unictype/category-Ps: New file.
64871         * modules/unictype/category-Pe: New file.
64872         * modules/unictype/category-Pi: New file.
64873         * modules/unictype/category-Pf: New file.
64874         * modules/unictype/category-Po: New file.
64875         * modules/unictype/category-S: New file.
64876         * modules/unictype/category-Sm: New file.
64877         * modules/unictype/category-Sc: New file.
64878         * modules/unictype/category-Sk: New file.
64879         * modules/unictype/category-So: New file.
64880         * modules/unictype/category-Z: New file.
64881         * modules/unictype/category-Zs: New file.
64882         * modules/unictype/category-Zl: New file.
64883         * modules/unictype/category-Zp: New file.
64884         * modules/unictype/category-C: New file.
64885         * modules/unictype/category-Cc: New file.
64886         * modules/unictype/category-Cf: New file.
64887         * modules/unictype/category-Cs: New file.
64888         * modules/unictype/category-Co: New file.
64889         * modules/unictype/category-Cn: New file.
64890         * modules/unictype/category-or: New file.
64891         * modules/unictype/category-of: New file.
64892         * modules/unictype/category-test: New file.
64893         * modules/unictype/category-test-withtable: New file.
64894         * modules/unictype/category-byname: New file.
64895         * modules/unictype/category-none: New file.
64896         * modules/unictype/category-and: New file.
64897         * modules/unictype/category-and-not: New file.
64898         * modules/unictype/category-name: New file.
64899         * modules/unictype/combining-class: New file.
64900         * modules/unictype/category-all: New file.
64901         * modules/unictype/bidicategory-all: New file.
64902         * modules/unictype/bidicategory-byname: New file.
64903         * modules/unictype/bidicategory-name: New file.
64904         * modules/unictype/bidicategory-of: New file.
64905         * modules/unictype/bidicategory-test: New file.
64906         * modules/unictype/decimal-digit: New file.
64907         * modules/unictype/digit: New file.
64908         * modules/unictype/numeric: New file.
64909         * modules/unictype/mirror: New file.
64910         * modules/unictype/property-white-space: New file.
64911         * modules/unictype/property-alphabetic: New file.
64912         * modules/unictype/property-other-alphabetic: New file.
64913         * modules/unictype/property-not-a-character: New file.
64914         * modules/unictype/property-default-ignorable-code-point: New file.
64915         * modules/unictype/property-other-default-ignorable-code-point: New
64916         file.
64917         * modules/unictype/property-deprecated: New file.
64918         * modules/unictype/property-logical-order-exception: New file.
64919         * modules/unictype/property-variation-selector: New file.
64920         * modules/unictype/property-private-use: New file.
64921         * modules/unictype/property-unassigned-code-value: New file.
64922         * modules/unictype/property-uppercase: New file.
64923         * modules/unictype/property-other-uppercase: New file.
64924         * modules/unictype/property-lowercase: New file.
64925         * modules/unictype/property-other-lowercase: New file.
64926         * modules/unictype/property-titlecase: New file.
64927         * modules/unictype/property-soft-dotted: New file.
64928         * modules/unictype/property-id-start: New file.
64929         * modules/unictype/property-other-id-start: New file.
64930         * modules/unictype/property-id-continue: New file.
64931         * modules/unictype/property-other-id-continue: New file.
64932         * modules/unictype/property-xid-start: New file.
64933         * modules/unictype/property-xid-continue: New file.
64934         * modules/unictype/property-pattern-white-space: New file.
64935         * modules/unictype/property-pattern-syntax: New file.
64936         * modules/unictype/property-join-control: New file.
64937         * modules/unictype/property-grapheme-base: New file.
64938         * modules/unictype/property-grapheme-extend: New file.
64939         * modules/unictype/property-other-grapheme-extend: New file.
64940         * modules/unictype/property-grapheme-link: New file.
64941         * modules/unictype/property-bidi-control: New file.
64942         * modules/unictype/property-bidi-left-to-right: New file.
64943         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64944         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64945         * modules/unictype/property-bidi-european-digit: New file.
64946         * modules/unictype/property-bidi-eur-num-separator: New file.
64947         * modules/unictype/property-bidi-eur-num-terminator: New file.
64948         * modules/unictype/property-bidi-arabic-digit: New file.
64949         * modules/unictype/property-bidi-common-separator: New file.
64950         * modules/unictype/property-bidi-block-separator: New file.
64951         * modules/unictype/property-bidi-segment-separator: New file.
64952         * modules/unictype/property-bidi-whitespace: New file.
64953         * modules/unictype/property-bidi-non-spacing-mark: New file.
64954         * modules/unictype/property-bidi-boundary-neutral: New file.
64955         * modules/unictype/property-bidi-pdf: New file.
64956         * modules/unictype/property-bidi-embedding-or-override: New file.
64957         * modules/unictype/property-bidi-other-neutral: New file.
64958         * modules/unictype/property-hex-digit: New file.
64959         * modules/unictype/property-ascii-hex-digit: New file.
64960         * modules/unictype/property-ideographic: New file.
64961         * modules/unictype/property-unified-ideograph: New file.
64962         * modules/unictype/property-radical: New file.
64963         * modules/unictype/property-ids-binary-operator: New file.
64964         * modules/unictype/property-ids-trinary-operator: New file.
64965         * modules/unictype/property-zero-width: New file.
64966         * modules/unictype/property-space: New file.
64967         * modules/unictype/property-non-break: New file.
64968         * modules/unictype/property-iso-control: New file.
64969         * modules/unictype/property-format-control: New file.
64970         * modules/unictype/property-dash: New file.
64971         * modules/unictype/property-hyphen: New file.
64972         * modules/unictype/property-punctuation: New file.
64973         * modules/unictype/property-line-separator: New file.
64974         * modules/unictype/property-paragraph-separator: New file.
64975         * modules/unictype/property-quotation-mark: New file.
64976         * modules/unictype/property-sentence-terminal: New file.
64977         * modules/unictype/property-terminal-punctuation: New file.
64978         * modules/unictype/property-currency-symbol: New file.
64979         * modules/unictype/property-math: New file.
64980         * modules/unictype/property-other-math: New file.
64981         * modules/unictype/property-paired-punctuation: New file.
64982         * modules/unictype/property-left-of-pair: New file.
64983         * modules/unictype/property-combining: New file.
64984         * modules/unictype/property-composite: New file.
64985         * modules/unictype/property-decimal-digit: New file.
64986         * modules/unictype/property-numeric: New file.
64987         * modules/unictype/property-diacritic: New file.
64988         * modules/unictype/property-extender: New file.
64989         * modules/unictype/property-ignorable-control: New file.
64990         * modules/unictype/property-test: New file.
64991         * modules/unictype/property-byname: New file.
64992         * modules/unictype/property-all: New file.
64993         * modules/unictype/scripts: New file.
64994         * modules/unictype/scripts-all: New file.
64995         * modules/unictype/block-of: New file.
64996         * modules/unictype/block-test: New file.
64997         * modules/unictype/block-list: New file.
64998         * modules/unictype/block-all: New file.
64999         * modules/unictype/syntax-c-whitespace: New file.
65000         * modules/unictype/syntax-java-whitespace: New file.
65001         * modules/unictype/syntax-c-ident: New file.
65002         * modules/unictype/syntax-java-ident: New file.
65003         * modules/unictype/ctype-alnum: New file.
65004         * modules/unictype/ctype-alpha: New file.
65005         * modules/unictype/ctype-cntrl: New file.
65006         * modules/unictype/ctype-digit: New file.
65007         * modules/unictype/ctype-graph: New file.
65008         * modules/unictype/ctype-lower: New file.
65009         * modules/unictype/ctype-print: New file.
65010         * modules/unictype/ctype-punct: New file.
65011         * modules/unictype/ctype-space: New file.
65012         * modules/unictype/ctype-upper: New file.
65013         * modules/unictype/ctype-xdigit: New file.
65014         * modules/unictype/ctype-blank: New file.
65015         * lib/unictype/bidi_byname.c: New file.
65016         * lib/unictype/bidi_name.c: New file.
65017         * lib/unictype/bidi_of.c: New file.
65018         * lib/unictype/bidi_test.c: New file.
65019         * lib/unictype/bitmap.h: New file.
65020         * lib/unictype/block_test.c: New file.
65021         * lib/unictype/blocks.c: New file.
65022         * lib/unictype/categ_C.c: New file.
65023         * lib/unictype/categ_Cc.c: New file.
65024         * lib/unictype/categ_Cf.c: New file.
65025         * lib/unictype/categ_Cn.c: New file.
65026         * lib/unictype/categ_Co.c: New file.
65027         * lib/unictype/categ_Cs.c: New file.
65028         * lib/unictype/categ_L.c: New file.
65029         * lib/unictype/categ_Ll.c: New file.
65030         * lib/unictype/categ_Lm.c: New file.
65031         * lib/unictype/categ_Lo.c: New file.
65032         * lib/unictype/categ_Lt.c: New file.
65033         * lib/unictype/categ_Lu.c: New file.
65034         * lib/unictype/categ_M.c: New file.
65035         * lib/unictype/categ_Mc.c: New file.
65036         * lib/unictype/categ_Me.c: New file.
65037         * lib/unictype/categ_Mn.c: New file.
65038         * lib/unictype/categ_N.c: New file.
65039         * lib/unictype/categ_Nd.c: New file.
65040         * lib/unictype/categ_Nl.c: New file.
65041         * lib/unictype/categ_No.c: New file.
65042         * lib/unictype/categ_P.c: New file.
65043         * lib/unictype/categ_Pc.c: New file.
65044         * lib/unictype/categ_Pd.c: New file.
65045         * lib/unictype/categ_Pe.c: New file.
65046         * lib/unictype/categ_Pf.c: New file.
65047         * lib/unictype/categ_Pi.c: New file.
65048         * lib/unictype/categ_Po.c: New file.
65049         * lib/unictype/categ_Ps.c: New file.
65050         * lib/unictype/categ_S.c: New file.
65051         * lib/unictype/categ_Sc.c: New file.
65052         * lib/unictype/categ_Sk.c: New file.
65053         * lib/unictype/categ_Sm.c: New file.
65054         * lib/unictype/categ_So.c: New file.
65055         * lib/unictype/categ_Z.c: New file.
65056         * lib/unictype/categ_Zl.c: New file.
65057         * lib/unictype/categ_Zp.c: New file.
65058         * lib/unictype/categ_Zs.c: New file.
65059         * lib/unictype/categ_and.c: New file.
65060         * lib/unictype/categ_and_not.c: New file.
65061         * lib/unictype/categ_byname.c: New file.
65062         * lib/unictype/categ_name.c: New file.
65063         * lib/unictype/categ_none.c: New file.
65064         * lib/unictype/categ_of.c: New file.
65065         * lib/unictype/categ_or.c: New file.
65066         * lib/unictype/categ_test.c: New file.
65067         * lib/unictype/combining.c: New file.
65068         * lib/unictype/ctype_alnum.c: New file.
65069         * lib/unictype/ctype_alpha.c: New file.
65070         * lib/unictype/ctype_blank.c: New file.
65071         * lib/unictype/ctype_cntrl.c: New file.
65072         * lib/unictype/ctype_digit.c: New file.
65073         * lib/unictype/ctype_graph.c: New file.
65074         * lib/unictype/ctype_lower.c: New file.
65075         * lib/unictype/ctype_print.c: New file.
65076         * lib/unictype/ctype_punct.c: New file.
65077         * lib/unictype/ctype_space.c: New file.
65078         * lib/unictype/ctype_upper.c: New file.
65079         * lib/unictype/ctype_xdigit.c: New file.
65080         * lib/unictype/decdigit.c: New file.
65081         * lib/unictype/digit.c: New file.
65082         * lib/unictype/identsyntaxmap.h: New file.
65083         * lib/unictype/mirror.c: New file.
65084         * lib/unictype/numeric.c: New file.
65085         * lib/unictype/pr_alphabetic.c: New file.
65086         * lib/unictype/pr_ascii_hex_digit.c: New file.
65087         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65088         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65089         * lib/unictype/pr_bidi_block_separator.c: New file.
65090         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65091         * lib/unictype/pr_bidi_common_separator.c: New file.
65092         * lib/unictype/pr_bidi_control.c: New file.
65093         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65094         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65095         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65096         * lib/unictype/pr_bidi_european_digit.c: New file.
65097         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65098         * lib/unictype/pr_bidi_left_to_right.c: New file.
65099         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65100         * lib/unictype/pr_bidi_other_neutral.c: New file.
65101         * lib/unictype/pr_bidi_pdf.c: New file.
65102         * lib/unictype/pr_bidi_segment_separator.c: New file.
65103         * lib/unictype/pr_bidi_whitespace.c: New file.
65104         * lib/unictype/pr_byname.c: New file.
65105         * lib/unictype/pr_byname.gperf: New file.
65106         * lib/unictype/pr_combining.c: New file.
65107         * lib/unictype/pr_composite.c: New file.
65108         * lib/unictype/pr_currency_symbol.c: New file.
65109         * lib/unictype/pr_dash.c: New file.
65110         * lib/unictype/pr_decimal_digit.c: New file.
65111         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65112         * lib/unictype/pr_deprecated.c: New file.
65113         * lib/unictype/pr_diacritic.c: New file.
65114         * lib/unictype/pr_extender.c: New file.
65115         * lib/unictype/pr_format_control.c: New file.
65116         * lib/unictype/pr_grapheme_base.c: New file.
65117         * lib/unictype/pr_grapheme_extend.c: New file.
65118         * lib/unictype/pr_grapheme_link.c: New file.
65119         * lib/unictype/pr_hex_digit.c: New file.
65120         * lib/unictype/pr_hyphen.c: New file.
65121         * lib/unictype/pr_id_continue.c: New file.
65122         * lib/unictype/pr_id_start.c: New file.
65123         * lib/unictype/pr_ideographic.c: New file.
65124         * lib/unictype/pr_ids_binary_operator.c: New file.
65125         * lib/unictype/pr_ids_trinary_operator.c: New file.
65126         * lib/unictype/pr_ignorable_control.c: New file.
65127         * lib/unictype/pr_iso_control.c: New file.
65128         * lib/unictype/pr_join_control.c: New file.
65129         * lib/unictype/pr_left_of_pair.c: New file.
65130         * lib/unictype/pr_line_separator.c: New file.
65131         * lib/unictype/pr_logical_order_exception.c: New file.
65132         * lib/unictype/pr_lowercase.c: New file.
65133         * lib/unictype/pr_math.c: New file.
65134         * lib/unictype/pr_non_break.c: New file.
65135         * lib/unictype/pr_not_a_character.c: New file.
65136         * lib/unictype/pr_numeric.c: New file.
65137         * lib/unictype/pr_other_alphabetic.c: New file.
65138         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65139         * lib/unictype/pr_other_grapheme_extend.c: New file.
65140         * lib/unictype/pr_other_id_continue.c: New file.
65141         * lib/unictype/pr_other_id_start.c: New file.
65142         * lib/unictype/pr_other_lowercase.c: New file.
65143         * lib/unictype/pr_other_math.c: New file.
65144         * lib/unictype/pr_other_uppercase.c: New file.
65145         * lib/unictype/pr_paired_punctuation.c: New file.
65146         * lib/unictype/pr_paragraph_separator.c: New file.
65147         * lib/unictype/pr_pattern_syntax.c: New file.
65148         * lib/unictype/pr_pattern_white_space.c: New file.
65149         * lib/unictype/pr_private_use.c: New file.
65150         * lib/unictype/pr_punctuation.c: New file.
65151         * lib/unictype/pr_quotation_mark.c: New file.
65152         * lib/unictype/pr_radical.c: New file.
65153         * lib/unictype/pr_sentence_terminal.c: New file.
65154         * lib/unictype/pr_soft_dotted.c: New file.
65155         * lib/unictype/pr_space.c: New file.
65156         * lib/unictype/pr_terminal_punctuation.c: New file.
65157         * lib/unictype/pr_test.c: New file.
65158         * lib/unictype/pr_titlecase.c: New file.
65159         * lib/unictype/pr_unassigned_code_value.c: New file.
65160         * lib/unictype/pr_unified_ideograph.c: New file.
65161         * lib/unictype/pr_uppercase.c: New file.
65162         * lib/unictype/pr_variation_selector.c: New file.
65163         * lib/unictype/pr_white_space.c: New file.
65164         * lib/unictype/pr_xid_continue.c: New file.
65165         * lib/unictype/pr_xid_start.c: New file.
65166         * lib/unictype/pr_zero_width.c: New file.
65167         * lib/unictype/scripts.c: New file.
65168         * lib/unictype/sy_c_ident.c: New file.
65169         * lib/unictype/sy_c_whitespace.c: New file.
65170         * lib/unictype/sy_java_ident.c: New file.
65171         * lib/unictype/sy_java_whitespace.c: New file.
65172
65173         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65174         Unicode 5.0.0.
65175         * lib/unictype/blocks.h: Likewise.
65176         * lib/unictype/categ_C.h: Likewise.
65177         * lib/unictype/categ_Cc.h: Likewise.
65178         * lib/unictype/categ_Cf.h: Likewise.
65179         * lib/unictype/categ_Cn.h: Likewise.
65180         * lib/unictype/categ_Co.h: Likewise.
65181         * lib/unictype/categ_Cs.h: Likewise.
65182         * lib/unictype/categ_L.h: Likewise.
65183         * lib/unictype/categ_Ll.h: Likewise.
65184         * lib/unictype/categ_Lm.h: Likewise.
65185         * lib/unictype/categ_Lo.h: Likewise.
65186         * lib/unictype/categ_Lt.h: Likewise.
65187         * lib/unictype/categ_Lu.h: Likewise.
65188         * lib/unictype/categ_M.h: Likewise.
65189         * lib/unictype/categ_Mc.h: Likewise.
65190         * lib/unictype/categ_Me.h: Likewise.
65191         * lib/unictype/categ_Mn.h: Likewise.
65192         * lib/unictype/categ_N.h: Likewise.
65193         * lib/unictype/categ_Nd.h: Likewise.
65194         * lib/unictype/categ_Nl.h: Likewise.
65195         * lib/unictype/categ_No.h: Likewise.
65196         * lib/unictype/categ_P.h: Likewise.
65197         * lib/unictype/categ_Pc.h: Likewise.
65198         * lib/unictype/categ_Pd.h: Likewise.
65199         * lib/unictype/categ_Pe.h: Likewise.
65200         * lib/unictype/categ_Pf.h: Likewise.
65201         * lib/unictype/categ_Pi.h: Likewise.
65202         * lib/unictype/categ_Po.h: Likewise.
65203         * lib/unictype/categ_Ps.h: Likewise.
65204         * lib/unictype/categ_S.h: Likewise.
65205         * lib/unictype/categ_Sc.h: Likewise.
65206         * lib/unictype/categ_Sk.h: Likewise.
65207         * lib/unictype/categ_Sm.h: Likewise.
65208         * lib/unictype/categ_So.h: Likewise.
65209         * lib/unictype/categ_Z.h: Likewise.
65210         * lib/unictype/categ_Zl.h: Likewise.
65211         * lib/unictype/categ_Zp.h: Likewise.
65212         * lib/unictype/categ_Zs.h: Likewise.
65213         * lib/unictype/categ_of.h: Likewise.
65214         * lib/unictype/combining.h: Likewise.
65215         * lib/unictype/ctype_alnum.h: Likewise.
65216         * lib/unictype/ctype_alpha.h: Likewise.
65217         * lib/unictype/ctype_blank.h: Likewise.
65218         * lib/unictype/ctype_cntrl.h: Likewise.
65219         * lib/unictype/ctype_digit.h: Likewise.
65220         * lib/unictype/ctype_graph.h: Likewise.
65221         * lib/unictype/ctype_lower.h: Likewise.
65222         * lib/unictype/ctype_print.h: Likewise.
65223         * lib/unictype/ctype_punct.h: Likewise.
65224         * lib/unictype/ctype_space.h: Likewise.
65225         * lib/unictype/ctype_upper.h: Likewise.
65226         * lib/unictype/ctype_xdigit.h: Likewise.
65227         * lib/unictype/decdigit.h: Likewise.
65228         * lib/unictype/digit.h: Likewise.
65229         * lib/unictype/mirror.h: Likewise.
65230         * lib/unictype/numeric.h: Likewise.
65231         * lib/unictype/pr_alphabetic.h: Likewise.
65232         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65233         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65234         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65235         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65236         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65237         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65238         * lib/unictype/pr_bidi_control.h: Likewise.
65239         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65240         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65241         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65242         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65243         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65244         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65245         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65246         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65247         * lib/unictype/pr_bidi_pdf.h: Likewise.
65248         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65249         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65250         * lib/unictype/pr_combining.h: Likewise.
65251         * lib/unictype/pr_composite.h: Likewise.
65252         * lib/unictype/pr_currency_symbol.h: Likewise.
65253         * lib/unictype/pr_dash.h: Likewise.
65254         * lib/unictype/pr_decimal_digit.h: Likewise.
65255         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65256         * lib/unictype/pr_deprecated.h: Likewise.
65257         * lib/unictype/pr_diacritic.h: Likewise.
65258         * lib/unictype/pr_extender.h: Likewise.
65259         * lib/unictype/pr_format_control.h: Likewise.
65260         * lib/unictype/pr_grapheme_base.h: Likewise.
65261         * lib/unictype/pr_grapheme_extend.h: Likewise.
65262         * lib/unictype/pr_grapheme_link.h: Likewise.
65263         * lib/unictype/pr_hex_digit.h: Likewise.
65264         * lib/unictype/pr_hyphen.h: Likewise.
65265         * lib/unictype/pr_id_continue.h: Likewise.
65266         * lib/unictype/pr_id_start.h: Likewise.
65267         * lib/unictype/pr_ideographic.h: Likewise.
65268         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65269         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65270         * lib/unictype/pr_ignorable_control.h: Likewise.
65271         * lib/unictype/pr_iso_control.h: Likewise.
65272         * lib/unictype/pr_join_control.h: Likewise.
65273         * lib/unictype/pr_left_of_pair.h: Likewise.
65274         * lib/unictype/pr_line_separator.h: Likewise.
65275         * lib/unictype/pr_logical_order_exception.h: Likewise.
65276         * lib/unictype/pr_lowercase.h: Likewise.
65277         * lib/unictype/pr_math.h: Likewise.
65278         * lib/unictype/pr_non_break.h: Likewise.
65279         * lib/unictype/pr_not_a_character.h: Likewise.
65280         * lib/unictype/pr_numeric.h: Likewise.
65281         * lib/unictype/pr_other_alphabetic.h: Likewise.
65282         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65283         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65284         * lib/unictype/pr_other_id_continue.h: Likewise.
65285         * lib/unictype/pr_other_id_start.h: Likewise.
65286         * lib/unictype/pr_other_lowercase.h: Likewise.
65287         * lib/unictype/pr_other_math.h: Likewise.
65288         * lib/unictype/pr_other_uppercase.h: Likewise.
65289         * lib/unictype/pr_paired_punctuation.h: Likewise.
65290         * lib/unictype/pr_paragraph_separator.h: Likewise.
65291         * lib/unictype/pr_pattern_syntax.h: Likewise.
65292         * lib/unictype/pr_pattern_white_space.h: Likewise.
65293         * lib/unictype/pr_private_use.h: Likewise.
65294         * lib/unictype/pr_punctuation.h: Likewise.
65295         * lib/unictype/pr_quotation_mark.h: Likewise.
65296         * lib/unictype/pr_radical.h: Likewise.
65297         * lib/unictype/pr_sentence_terminal.h: Likewise.
65298         * lib/unictype/pr_soft_dotted.h: Likewise.
65299         * lib/unictype/pr_space.h: Likewise.
65300         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65301         * lib/unictype/pr_titlecase.h: Likewise.
65302         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65303         * lib/unictype/pr_unified_ideograph.h: Likewise.
65304         * lib/unictype/pr_uppercase.h: Likewise.
65305         * lib/unictype/pr_variation_selector.h: Likewise.
65306         * lib/unictype/pr_white_space.h: Likewise.
65307         * lib/unictype/pr_xid_continue.h: Likewise.
65308         * lib/unictype/pr_xid_start.h: Likewise.
65309         * lib/unictype/pr_zero_width.h: Likewise.
65310         * lib/unictype/scripts.h: Likewise.
65311         * lib/unictype/scripts_byname.gperf: Likewise.
65312         * lib/unictype/sy_c_ident.h: Likewise.
65313         * lib/unictype/sy_c_whitespace.h: Likewise.
65314         * lib/unictype/sy_java_ident.h: Likewise.
65315         * lib/unictype/sy_java_whitespace.h: Likewise.
65316
65317         * lib/unictype/Makefile: New file.
65318         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65319         glibc.
65320         * lib/unictype/3level.h: New file, copied from glibc.
65321         * lib/unictype/3levelbit.h: New file.
65322
65323 2007-11-11  Bruno Haible  <bruno@clisp.org>
65324
65325         * modules/gperf: New file.
65326         * modules/iconv_open (Depends-on): Add it.
65327         (Makefile.am): Remove the GPERF definition.
65328
65329 2007-11-11  Bruno Haible  <bruno@clisp.org>
65330
65331         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65332         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65333
65334 2007-11-11  Bruno Haible  <bruno@clisp.org>
65335
65336         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65337         (usage): Remove function.
65338
65339 2007-11-11  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65342         gl_FUNC_CEILF_LIBS.
65343         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65344         gl_FUNC_CEIL_LIBS.
65345         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65346         gl_FUNC_CEILL_LIBS.
65347         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65348         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65349         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65350
65351 2007-11-11  Bruno Haible  <bruno@clisp.org>
65352
65353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65354         roundf were declared but do not exist on functions.
65355         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65356         roundl were declared but do not exist on functions.
65357         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65358         HAVE_FLOORL_AND_CEILL, respectively.
65359         Needed for Sun C on Solaris 10.
65360
65361 2007-11-11  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65364         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65365         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65366         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65367         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65368         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65369         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65370         HAVE_DECL_ROUNDF.
65371         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65372         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65374         of HAVE_DECL_ROUND*.
65375         * modules/math (Makefile.am): Update.
65376
65377 2007-11-10  Bruno Haible  <bruno@clisp.org>
65378
65379         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65380         ptrdiff_t as m4/intl.m4.
65381
65382 2007-11-10  Jim Meyering  <meyering@redhat.com>
65383
65384         Avoid link failure for the argmatch test.
65385         * tests/test-argmatch.c (usage): Define function to avoid a link
65386         failure: argmatch_die requires a usage function.
65387
65388 2007-11-09  Bruno Haible  <bruno@clisp.org>
65389
65390         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65391         * doc/functions/vsnprintf.texi: Likewise.
65392         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65393         with a size argument < 2.
65394
65395 2007-11-09  Bruno Haible  <bruno@clisp.org>
65396
65397         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65398         buffer. Fixes an inefficiency introduced on 2007-11-03.
65399
65400 2007-11-09  Bruno Haible  <bruno@clisp.org>
65401
65402         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65403         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65404
65405 2007-11-08  Jim Meyering  <meyering@redhat.com>
65406
65407         Change cache variable name prefix "jm_" to "gl_" everywhere.
65408         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65409         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65410         * m4/uptime.m4: s/gl_/jm_/
65411
65412 2007-11-07  Bruno Haible  <bruno@clisp.org>
65413
65414         Update to GNU gettext 0.17.
65415         * m4/intl.m4: Update to GNU gettext 0.17.
65416         * m4/po.m4: Likewise.
65417         * modules/gettext (Files): Remove m4/ulonglong.m4.
65418         (configure.ac): Require gettext infrastructure from version 0.17.
65419
65420 2007-11-06  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65423         symbolic values are not defined in a public header.
65424         * lib/freadable.c (freadable) [QNX]: Likewise.
65425         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65426         * lib/freading.c (freading) [QNX]: Likewise.
65427         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65428         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65429         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65430         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65431         Reported by Alain Magloire.
65432
65433         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65434
65435 2007-11-05  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65438         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65439         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65440         Reported by Eric Blake.
65441
65442 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65443             Bruno Haible  <bruno@clisp.org>
65444
65445         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65446         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65447         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65448         (malloc): Undefine also before including <stdlib.h>.
65449         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65450         Needed on OSF/1 4.0.
65451
65452 2007-11-05  Jim Meyering  <meyering@redhat.com>
65453
65454         git-version-gen: sync from coreutils.
65455         * build-aux/git-version-gen: Add comments.
65456         Change the first '-' to '.' in the snapshot version string,
65457         e.g., 6.9-377-08144 -> 6.9.377-08144
65458         Remove first parameter.
65459         Don't declare a version "-dirty" merely because a time
65460         stamp has changed.
65461
65462 2007-11-04  Bruno Haible  <bruno@clisp.org>
65463
65464         * lib/lock.h: Protect all macro definitions containing an 'if'
65465         statement through a "do { ... } while (0)".
65466         * lib/tls.h: Likewise.
65467
65468 2007-11-04  Bruno Haible  <bruno@clisp.org>
65469
65470         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65471
65472 2007-11-04  Bruno Haible  <bruno@clisp.org>
65473
65474         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65475         * modules/fprintf-posix (Depends-on): Add nocrash.
65476         * modules/snprintf-posix (Depends-on): Likewise.
65477         * modules/sprintf-posix (Depends-on): Likewise.
65478         * modules/vasnprintf-posix (Depends-on): Likewise.
65479         * modules/vasprintf-posix (Depends-on): Likewise.
65480         * modules/vfprintf-posix (Depends-on): Likewise.
65481         * modules/vsnprintf-posix (Depends-on): Likewise.
65482         * modules/vsprintf-posix (Depends-on): Likewise.
65483         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65484         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65485         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65486         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65487         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65488         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65489         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65490
65491 2007-11-04  Bruno Haible  <bruno@clisp.org>
65492
65493         * modules/nocrash: New file.
65494         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65495         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65496
65497 2007-11-04  Bruno Haible  <bruno@clisp.org>
65498
65499         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65500         precision handling.
65501         * tests/test-vasprintf-posix.c (test_function): Likewise.
65502         * tests/test-snprintf-posix.h (test_function): Likewise.
65503         * tests/test-sprintf-posix.h (test_function): Likewise.
65504
65505         Fix *printf behaviour for large precisions on mingw and BeOS.
65506         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65507         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65509         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65511         gl_PRINTF_PRECISION and test its result. Invoke
65512         gl_PREREQ_VASNPRINTF_PRECISION.
65513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65520         * doc/functions/fprintf.texi: Update.
65521         * doc/functions/printf.texi: Update.
65522         * doc/functions/snprintf.texi: Update.
65523         * doc/functions/sprintf.texi: Update.
65524         * doc/functions/vfprintf.texi: Update.
65525         * doc/functions/vprintf.texi: Update.
65526         * doc/functions/vsnprintf.texi: Update.
65527         * doc/functions/vsprintf.texi: Update.
65528
65529 2007-11-04  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65532
65533 2007-11-04  Bruno Haible  <bruno@clisp.org>
65534
65535         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65536         Reported by Sylvain Beucler <beuc@gnu.org>.
65537
65538 2007-11-03  Bruno Haible  <bruno@clisp.org>
65539
65540         * tests/test-fprintf-posix2.sh: New file.
65541         * tests/test-fprintf-posix2.c: New file.
65542         * modules/fprintf-posix-tests (Files): Add them.
65543         (TESTS): Add test-fprintf-posix2.sh.
65544         (configure.ac): Check for getrlimit and setrlimit.
65545         (check_PROGRAMS): Add test-fprintf-posix2.
65546
65547         * tests/test-printf-posix2.sh: New file.
65548         * tests/test-printf-posix2.c: New file.
65549         * modules/printf-posix-tests (Files): Add them.
65550         (TESTS): Add test-printf-posix2.sh.
65551         (configure.ac): Check for getrlimit and setrlimit.
65552         (check_PROGRAMS): Add test-printf-posix2.
65553
65554         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65555         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65556         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65557         (decode_double): New function, copied from decode_long_double.
65558         (scale10_round_decimal_decoded): New function, extracted from
65559         scale10_round_decimal_long_double.
65560         (scale10_round_decimal_long_double): Use it.
65561         (scale10_round_decimal_double): New function.
65562         (floorlog10): New function.
65563         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65565         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65567         gl_PRINTF_ENOMEM and test its result. Invoke
65568         gl_PREREQ_VASNPRINTF_ENOMEM.
65569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65575         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65576         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65577         * modules/snprintf-posix (Depends-on): Likewise.
65578         * modules/sprintf-posix (Depends-on): Likewise.
65579         * modules/vasnprintf-posix (Depends-on): Likewise.
65580         * modules/vasprintf-posix (Depends-on): Likewise.
65581         * modules/vfprintf-posix (Depends-on): Likewise.
65582         * modules/vsnprintf-posix (Depends-on): Likewise.
65583         * modules/vsprintf-posix (Depends-on): Likewise.
65584         * doc/functions/fprintf.texi: Update.
65585         * doc/functions/printf.texi: Update.
65586         * doc/functions/snprintf.texi: Update.
65587         * doc/functions/sprintf.texi: Update.
65588         * doc/functions/vfprintf.texi: Update.
65589         * doc/functions/vprintf.texi: Update.
65590         * doc/functions/vsnprintf.texi: Update.
65591         * doc/functions/vsprintf.texi: Update.
65592
65593 2007-11-03  Bruno Haible  <bruno@clisp.org>
65594
65595         * modules/frexp-nolibm-tests: New file.
65596
65597         * modules/frexp-nolibm: New file.
65598         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65599
65600 2007-11-03  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65603         value is C99 compliant.
65604         Needed for OSF/1 5.1.
65605
65606 2007-11-03  Bruno Haible  <bruno@clisp.org>
65607
65608         Fix out-of-memory handling of vasnprintf.
65609         * lib/printf-parse.c: Include <errno.h>.
65610         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65611         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65612         is already set.
65613
65614 2007-11-02  Eric Blake  <ebb9@byu.net>
65615
65616         Fix tests on cygwin.
65617         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65618
65619 2007-11-01  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65622         warning.
65623         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65624         needed for POSIX compatibility.
65625
65626 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65627
65628         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65629         for compatibility with GNU.
65630
65631 2007-11-01  Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65634         (putenv): Renamed from rpl_putenv. Change argument type from
65635         'const char *' to 'char *'.
65636         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65637         of defining putenv in config.h, just set REPLACE_PUTENV.
65638         * modules/putenv (Depends-on): Add stdlib.
65639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65640         (Include): Use <stdlib.h>.
65641         * lib/stdlib.in.h (putenv): New declaration.
65642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65643         REPLACE_PUTENV.
65644         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65645         REPLACE_PUTENV.
65646         Needed for MacOS X 10.5.0.
65647         Reported by Peter O'Gorman <peter@pogma.com>.
65648
65649 2007-11-01  Jim Meyering  <meyering@redhat.com>
65650
65651         Treat an empty date string exactly like "0".
65652         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65653         if the remaining date string (to be parsed) is empty, use "0".
65654         Reported by Mischa Molhoek and discussed in this thread:
65655         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65656
65657 2007-10-31  Bruno Haible  <bruno@clisp.org>
65658
65659         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65660         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65661         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65662         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65663         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65664         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65665
65666 2007-10-31  Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65669         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65670         (AC_TYPE_LONG_LONG_INT): Use it.
65671         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65672         it as well.
65673         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65674         to m4/longlong.m4.
65675         * modules/stdint (Files): Remove m4/ulonglong.m4.
65676         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65677         m4/ulonglong.m4.
65678         * modules/strtoumax (Files): Likewise.
65679
65680 2007-10-30  Bruno Haible  <bruno@clisp.org>
65681
65682         * modules/xvasprintf-posix: New file.
65683         Suggested by Eric Blake.
65684
65685 2007-10-30  Bruno Haible  <bruno@clisp.org>
65686
65687         * modules/xprintf-posix-tests: New file.
65688         * tests/test-xprintf-posix.sh: New file.
65689         * tests/test-xprintf-posix.c: New file.
65690         * tests/test-xfprintf-posix.c: New file.
65691
65692         * modules/xprintf-posix: New file.
65693
65694 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65695
65696         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65697         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65698         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65699
65700 2007-10-29  Bruno Haible  <bruno@clisp.org>
65701
65702         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65703         contain the special marker '_cv_'.
65704         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65705         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65706         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65707         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65708         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65709         Reported by Ralf Wildenhues.
65710
65711 2007-10-29  Bruno Haible  <bruno@clisp.org>
65712
65713         * gnulib-tool (func_import): When --lgpl is not specified, set
65714         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65715         GPLv3.
65716         Reported by Simon Josefsson.
65717
65718 2007-10-28  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65721         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65722         HAVE_DECL_ISFINITE.
65723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65724         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65725         HAVE_DECL_ISFINITE.
65726
65727 2007-10-28  Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65730         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65731
65732 2007-10-28  Bruno Haible  <bruno@clisp.org>
65733
65734         Fix link errors with Sun C 5.0 on Solaris 10.
65735         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65736         function is declared but not present in the compiler's libm.
65737         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65738         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65739         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65740         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65741         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65742         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65743         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65745         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65746         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65747         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65748         HAVE_DECL_FLOORL.
65749
65750 2007-10-28  Bruno Haible  <bruno@clisp.org>
65751
65752         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65753         gl_FUNC_FLOORL. Cache the result.
65754         (gl_FUNC_FLOORL): Use it.
65755         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65756         gl_FUNC_CEILL. Cache the result.
65757         (gl_FUNC_CEILL): Use it.
65758
65759         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65760         gl_FUNC_FLOOR. Cache the result.
65761         (gl_FUNC_FLOOR): Use it.
65762         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65763         gl_FUNC_CEIL. Cache the result.
65764         (gl_FUNC_CEIL): Use it.
65765
65766         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65767         gl_FUNC_FLOORF. Cache the result.
65768         (gl_FUNC_FLOORF): Use it.
65769         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65770         gl_FUNC_CEILF. Cache the result.
65771         (gl_FUNC_CEILF): Use it.
65772
65773 2007-10-28  Bruno Haible  <bruno@clisp.org>
65774
65775         * gnulib-tool: Allow specifying the LGPL version number through
65776         --lgpl=2 or --lgpl=3.
65777         (func_usage): Document --lgpl with argument.
65778         Handle --lgpl=... arguments.
65779         (func_import): Recognize also gl_LGPL calls with an argument. When
65780         --lgpl=2 is used and the module's license is just LGPL, report an
65781         error. Set sed_transform_lib_file according to the lgpl variable. In
65782         the generated files, use --lgpl or gl_LGPL invocations with argument,
65783         if necessary.
65784         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65785         an LGPv2+ license.
65786         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65787         gl_LGPL macro.
65788
65789 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65790             Bruno Haible  <bruno@clisp.org>
65791
65792         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65793         (u16_uctomb_aux): Likewise.
65794         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65795         !HAVE_INLINE.
65796         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65797
65798 2007-10-28  Bruno Haible  <bruno@clisp.org>
65799
65800         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65801         Invoke AM_GETTEXT_OPTION if it exists.
65802         * modules/vasprintf: Likewise.
65803         * modules/verror: Likewise.
65804         * modules/xprintf: Likewise.
65805         * modules/xvasprintf: Likewise.
65806
65807 2007-10-27  Ben Pfaff  <blp@gnu.org>
65808
65809         * lib/math.in.h: Define isfinite macro and prototypes for
65810         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65811         implementations.
65812         * m4/math_h.m4: New substitutions for isfinite module.
65813         * lib/isfinite.c: New file.
65814         * m4/isfinite.m4: New file.
65815         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65816         * modules/isfinite: New file.
65817         * modules/isfinite-tests: New file.
65818         * tests/tests-isfinite.c: New file.
65819         * doc/functions/isfinite.texi: Mention isfinite module.
65820         * MODULES.html.sh: Mention new module.
65821
65822 2007-10-27  Ben Pfaff  <blp@gnu.org>
65823
65824         Ralf Wildenhues reported that Tru64 4.0D declares the round
65825         functions but does not have definitions.
65826         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65827         cannot be found in any library, set the output variable to
65828         "missing" instead of "".
65829         * m4/round.m4: Also use our substitute if we cannot find round in
65830         any library, even if it is declared.
65831         * m4/roundf.m4: Likewise for roundf.
65832         * m4/roundl.m4: Likewise for roundl.
65833         * lib/math.in.h: Undefine roundf, round, roundl before defining
65834         their replacements, to allow for hypothetical systems where these
65835         may be defined as macros but not available in libraries.
65836
65837 2007-10-27  Bruno Haible  <bruno@clisp.org>
65838
65839         * doc/gnulib.texi: Invoke @firstparagraphindent.
65840         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65841         changes in gnulib.
65842         (Source changes): New section.
65843
65844 2007-10-26  Bruno Haible  <bruno@clisp.org>
65845
65846         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65847         borrowed from autoconf.
65848
65849 2007-10-26  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65852         strerror returned the empty string. Needed on HP-UX 11.00.
65853
65854 2007-10-24  Micah Cowan  <micah@cowan.name>
65855
65856         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65857         * build-aux/bootstrap: Remove support for now-unnecessary option,
65858         --cvs-user, and envvars CVS_USER, CVS_RSH.
65859
65860 2007-10-24  Jim Meyering  <meyering@redhat.com>
65861
65862         Avoid diagnostics from sha1sum when there is no cached checksum.
65863         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65864         if the po.s1 file hasn't been created yet.
65865
65866         * build-aux/bootstrap: Sync from coreutils:
65867         2007-10-24  Jim Meyering  <meyering@redhat.com>
65868         Get gnulib from the git repository, not from an obsolete cvs one.
65869         * build-aux/bootstrap: Suggestion from Micah Cowan.
65870         2007-10-04  Jim Meyering  <jim@meyering.net>
65871         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65872         (update_po_files): Work also when there are no .po files in po/.
65873
65874 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * README: Append ".git" to git and cg examples.
65877         Problem reported by Benoit Sigoure.
65878
65879 2007-10-23  Micah Cowan  <micah@cowan.name>
65880
65881         * users.txt: Add wget.
65882
65883 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65884
65885         Fix linking of some unistdio tests on FreeBSD.
65886         * modules/unistdio/u16-vsnprintf-tests
65887         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65888         * modules/unistdio/u16-vsprintf-tests
65889         (test_u16_vsnprintf1_LDADD): Likewise.
65890         * modules/unistdio/u32-vsnprintf-tests
65891         (test_u32_vsnprintf1_LDADD): Likewise.
65892         * modules/unistdio/u32-vsprintf-tests
65893         (test_u32_vsprintf1_LDADD): Likewise.
65894         * modules/unistdio/u8-vsnprintf-tests
65895         (test_u8_vsnprintf1_LDADD): Likewise.
65896         * modules/unistdio/u8-vsprintf-tests
65897         (test_u8_vsprintf1_LDADD): Likewise.
65898         * modules/unistdio/ulc-vsnprintf-tests
65899         (test_ulc_vsnprintf1_LDADD): Likewise.
65900         * modules/unistdio/ulc-vsprintf-tests
65901         (test_ulc_vsprintf1_LDADD): Likewise.
65902
65903         Fix linking of some uniconv tests on FreeBSD.
65904         * modules/uniconv/u16-conv-from-enc-tests
65905         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65906         * modules/uniconv/u16-conv-to-enc-tests
65907         (test_u16_conv_to_enc_LDADD): Likewise.
65908         * modules/uniconv/u16-strconv-from-enc-tests
65909         (test_u16_strconv_from_enc_LDADD): Likewise.
65910         * modules/uniconv/u16-strconv-to-enc-tests
65911         (test_u16_strconv_to_enc_LDADD): Likewise.
65912         * modules/uniconv/u32-conv-from-enc-tests
65913         (test_u32_conv_from_enc_LDADD): Likewise.
65914         * modules/uniconv/u32-conv-to-enc-tests
65915         (test_u32_conv_to_enc_LDADD): Likewise.
65916         * modules/uniconv/u32-strconv-from-enc-tests
65917         (test_u32_strconv_from_enc_LDADD): Likewise.
65918         * modules/uniconv/u32-strconv-to-enc-tests
65919         (test_u32_strconv_to_enc_LDADD): Likewise.
65920         * modules/uniconv/u8-conv-from-enc-tests
65921         (test_u8_conv_from_enc_LDADD): Likewise.
65922         * modules/uniconv/u8-conv-to-enc-tests
65923         (test_u8_conv_to_enc_LDADD): Likewise.
65924         * modules/uniconv/u8-strconv-from-enc-tests
65925         (test_u8_strconv_from_enc_LDADD): Likewise.
65926         * modules/uniconv/u8-strconv-to-enc-tests
65927         (test_u8_strconv_to_enc_LDADD): Likewise.
65928
65929 2007-10-22  Bruno Haible  <bruno@clisp.org>
65930
65931         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65932         size.
65933
65934 2007-10-22  Eric Blake  <ebb9@byu.net>
65935
65936         Tweak x*printf documentation.
65937         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65938         variable name and comments.
65939         Suggested by Bruno Haible.
65940
65941 2007-10-22  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/acl.c (copy_acl): Fix file name in comment.
65944
65945 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         Fix Tru64 problem with stdbool.h.
65948         * lib/stdbool.in.h (false, true):
65949         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65950         Don't declare as an enum in this situation; it runs afoul of Tru64.
65951         Problem reported by Steven M. Schweda in
65952         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65953
65954 2007-10-22  Eric Blake  <ebb9@byu.net>
65955
65956         Also wrap vf?printf.
65957         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65958         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65959         (xvprintf, xvfprintf): New functions.
65960
65961 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65962
65963         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65964         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65965
65966         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65967         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65968
65969 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65972         by Bruno Haible.
65973
65974 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65975
65976         * lib/getloadavg.c
65977         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65978         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65979
65980         * tests/test-i-ring.c: Work for C89.
65981
65982 2007-10-22  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65985         -1u, in preprocessor expression, so that we don't test for the bug
65986         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65988
65989 2007-10-22  Eric Blake  <ebb9@byu.net>
65990
65991         * tests/test-yesno.sh: Silence stderr during test.
65992
65993 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65994
65995         * modules/crypto/gc-camellia: New file.
65996
65997         * m4/gc-camellia.m4: New file.
65998
65999         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66000
66001         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66002
66003 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66004
66005         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66006         --help to stdout.  Reported by sms@antinode.org (Steven
66007         M. Schweda).
66008
66009 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66010
66011         * users.txt: Fix link to libksba.
66012
66013 2007-10-21  Ben Pfaff  <blp@gnu.org>
66014
66015         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66016         round.c roundf implementation that depends on floorf and ceilf to
66017         be tested unconditionally.
66018
66019 2007-10-21  Ben Pfaff  <blp@gnu.org>
66020
66021         * m4/check-libm-func.m4: Removed.
66022         * m4/check-math-lib.m4: New file.
66023         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66024         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66025         definition and lack of AC_LIBOBJ([roundf]).
66026         * m4/roundl.m4: Ditto, and similarly for roundl.
66027         * modules/round: Reference new m4 file.
66028         * modules/roundf: Ditto.
66029         * modules/roundl: Ditto.
66030         * tests/test-round2.c (main): Use ROUND instead of round.
66031         Bug report from Bruno Haible.
66032
66033 2007-10-21  Bruno Haible  <bruno@clisp.org>
66034
66035         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66036         context.
66037
66038 2007-10-21  Bruno Haible  <bruno@clisp.org>
66039
66040         * tests/test-wcwidth.c (main): Allow negative result for some control
66041         characters.
66042
66043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66044         Needed on OSF/1 5.1.
66045
66046 2007-10-21  Bruno Haible  <bruno@clisp.org>
66047
66048         * tests/test-floorf1.c: Include isnanf.h.
66049         (main): Use isnanf() instead of isnan().
66050         * tests/test-ceilf1.c: Include isnanf.h.
66051         (main): Use isnanf() instead of isnan().
66052         * tests/test-truncf1.c: Include isnanf.h.
66053         (main): Use isnanf() instead of isnan().
66054         * tests/test-roundf1.c: Include isnanf.h.
66055         (main): Use isnanf() instead of isnan().
66056
66057 2007-10-21  Eric Blake  <ebb9@byu.net>
66058
66059         * users.txt: Update URL for m4.
66060
66061 2007-10-21  Bruno Haible  <bruno@clisp.org>
66062
66063         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66064
66065 2007-10-21  Bruno Haible  <bruno@clisp.org>
66066
66067         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66068         Git's management files if the CVS files are not present.
66069
66070 2007-10-20  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66073         gcc-3.4.x.
66074
66075 2007-10-20  Ben Pfaff  <blp@gnu.org>
66076
66077         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66078         implementations.
66079         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66080         * lib/round.c: New file.
66081         * lib/roundf.c: New file.
66082         * lib/roundl.c: New file.
66083         * m4/round.m4: New file.
66084         * m4/roundf.m4: New file.
66085         * m4/roundl.m4: New file.
66086         * m4/check-libm-func-m4: New file.
66087         * modules/math: Replace round, roundf, roundl related @VARS@ in
66088         math.in.h.
66089         * modules/round: New file.
66090         * modules/round-tests: New file.
66091         * modules/roundf: New file.
66092         * modules/roundf-tests: New file.
66093         * modules/roundl: New file.
66094         * modules/roundl-tests: New file.
66095         * tests/test-round1.c: New file.
66096         * tests/test-round2.c: New file.
66097         * tests/test-roundf1.c: New file.
66098         * tests/test-roundf2.c: New file.
66099         * tests/test-roundl.c: New file.
66100         * doc/functions/round.texi: Mention round module.
66101         * doc/functions/roundf.texi: Mention roundf module.
66102         * doc/functions/roundl.texi: Mention roundl module.
66103         * MODULES.html.sh: Mention new modules.
66104         Thanks to Bruno Haible for suggestions.
66105
66106 2007-10-20  Jim Meyering  <meyering@redhat.com>
66107
66108         * lib/xprintf.c: Include <config.h> unconditionally.
66109
66110         Change xprintf's license to GPL.
66111         * modules/xprintf (License): s/LGPL/GPL/, since this module
66112         depends on modules (exit and exitfail) which are GPL.
66113         Suggestion from Bruno Haible.
66114
66115         xprintf fixes.
66116         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66117         Use a clearer diagnostic.
66118         Patch from Bruno Haible.
66119
66120 2007-10-20  Bruno Haible  <bruno@clisp.org>
66121
66122         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66123         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66125
66126 2007-10-20  Bruno Haible  <bruno@clisp.org>
66127
66128         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66129         precision in the comparison result > x - 1 or similar.
66130         * tests/test-ceilf2.c (correct_result_p): Likewise.
66131         * tests/test-truncf2.c (correct_result_p): Likewise.
66132         * tests/test-trunc2.c (correct_result_p): Likewise.
66133         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66134
66135 2007-10-20  Bruno Haible  <bruno@clisp.org>
66136
66137         * modules/ceil: New file.
66138         * m4/ceil.m4: New file.
66139         * doc/functions/ceil.texi: Mention the 'ceil' module.
66140
66141 2007-10-20  Bruno Haible  <bruno@clisp.org>
66142
66143         * modules/floor: New file.
66144         * m4/floor.m4: New file.
66145         * doc/functions/floor.texi: Mention the 'floor' module.
66146
66147 2007-10-20  Bruno Haible  <bruno@clisp.org>
66148
66149         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66150         of %a.
66151         * modules/floorf-tests (Depends-on): Likewise.
66152         * modules/truncf-tests (Depends-on): Likewise.
66153         * modules/trunc-tests (Depends-on): Likewise.
66154         Reported by Ben Pfaff.
66155
66156 2007-10-19  Jim Meyering  <meyering@redhat.com>
66157
66158         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66159         Don't bother testing specific errno values.  Just test ferror.
66160
66161         New module: xprintf
66162         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66163
66164 2007-10-19  Bruno Haible  <bruno@clisp.org>
66165
66166         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66167         syntax.
66168         * modules/javaexec (Makefile.am): Likewise.
66169         * modules/relocatable-prog (Makefile.am): Likewise.
66170         Suggested by Jim Meyering.
66171
66172 2007-10-18  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66175         Reported by Jim Meyering.
66176
66177 2007-10-18  Eric Blake  <ebb9@byu.net>
66178
66179         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66180
66181 2007-10-18  Bruno Haible  <bruno@clisp.org>
66182
66183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66184         the format string into writable memory. Needed in Fortify conditions.
66185
66186 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66187             Bruno Haible  <bruno@clisp.org>
66188
66189         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66190         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66191         * modules/trim (Depends-on): Add mbchar.
66192         (configure.ac): Add gl_FUNC_MBRTOWC.
66193         (Makefile.am): Augment lib_SOURCES.
66194
66195 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66196
66197         Modify glob.c to use fstatat and dirfd, to simplify it.
66198         Suggested by Eric Blake.
66199         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66200         Don't include <stdbool.h>; not used.
66201         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66202         (link_exists_p): Simplify implementation, since we can now assume
66203         dirfd and fstatat.
66204         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66205
66206 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66207
66208         * gnulib-tool (func_get_dependencies): Fix sed script to
66209         match only tests.
66210
66211 2007-10-17  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66214         allow locale names without encoding suffix.
66215         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66216         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66217
66218 2007-10-16  Bruno Haible  <bruno@clisp.org>
66219
66220         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66221         * lib/getgroups.c (getgroups): Likewise.
66222         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66223
66224 2007-10-16  Bruno Haible  <bruno@clisp.org>
66225
66226         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66227         * modules/malloc-posix (License): Likewise.
66228         * modules/realloc-posix (License): Likewise.
66229         * modules/calloc-posix (License): Likewise.
66230         * modules/intprops (License): Change from GPL to LGPL, with
66231         Paul Eggert's approval.
66232
66233 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66234
66235         Merge glibc changes into lib/glob.c.
66236
66237         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66238         2007-10-15 04:59:03 UTC.  Here are the changes:
66239
66240         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66241
66242         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66243
66244         * lib/glob.c: Add some branch prediction throughout.
66245
66246         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66247
66248         [BZ #5103]
66249         * lib/glob.c (glob): Recognize patterns starting \/.
66250
66251         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66252
66253         [BZ #3996]
66254         * lib/glob.c (attribute_hidden): Define if not defined.
66255         (glob): Unescape dirname, filename or username when needed and not
66256         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66257         is NULL.  Handle unescaped [ in pattern without closing ].
66258         Don't pass GLOB_CHECK down to recursive glob for directories.
66259         (__glob_pattern_type): New function.
66260         (__glob_pattern_p): Implement using __glob_pattern_type.
66261         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66262         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66263         Remove unreachable code.
66264
66265         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66266
66267         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66268         explain why there are no leaks.
66269
66270         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66271
66272         [BZ #3253]
66273         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66274         time, rather allocate increasingly bigger arrays of pointers, if
66275         possible with alloca, if too large with malloc.
66276
66277 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66280         Problem reported by H.Merijn Brand in
66281         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66282         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66283         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66284
66285 2007-10-15  Bruno Haible  <bruno@clisp.org>
66286
66287         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66288         with explicit rpl_ prefix.
66289         * lib/fopen.c (fopen): Likewise.
66290         * lib/freopen.c (freopen): Likewise.
66291         * lib/iconv.c (iconv): Likewise.
66292         * lib/iconv_close.c (iconv_close): Likewise.
66293
66294 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66295
66296         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66297
66298 2007-10-15  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66301         <stddef.h> instead of <stdlib.h> since we only need NULL.
66302         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66303
66304 2007-10-15  Bruno Haible  <bruno@clisp.org>
66305
66306         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66307         Replace paragraph talking about LIBOBJS.
66308         Reported by Colin Watson <cjwatson@debian.org>.
66309
66310 2007-10-15  Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66313         <stdlib.h> before using NULL.
66314
66315 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66316
66317         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66318         Reported by Albert Chin <china@thewrittenword.com>.
66319
66320 2007-10-14  Bruno Haible  <bruno@clisp.org>
66321
66322         * modules/iconv_open-utf-tests: New file.
66323         * tests/test-iconv-utf.c: New file.
66324
66325         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66326         * modules/iconv_open-utf: New file.
66327         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66328         (iconv, iconv_close): New declarations.
66329         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66330         be defined.
66331         (iconv_open): Add special handling of conversion between UTF-8 and
66332         UTF-{16,32}{BE,LE}.
66333         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66334         * lib/iconv_close.c: New file.
66335         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66336         gl_FUNC_ICONV_OPEN.
66337         (gl_FUNC_ICONV_OPEN): Use it.
66338         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66339         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66340         and REPLACE_ICONV_UTF.
66341         * modules/iconv_open (Depends-on): Add c-strcase.
66342         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66343         ICONV_CONST.
66344         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66345
66346 2007-10-13  Albert Chin  <china@thewrittenword.com>
66347             Bruno Haible  <bruno@clisp.org>
66348
66349         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66350         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66351
66352 2007-10-13  Bruno Haible  <bruno@clisp.org>
66353
66354         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66355         defined, use the ISO C99 inline semantics.
66356         * lib/argp.h (ARGP_EI): Likewise.
66357
66358 2007-10-13  Bruno Haible  <bruno@clisp.org>
66359
66360         Handle 'inline' change in gcc 4.3.0.
66361         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66362         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66363         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66364         argp_fmtstream_point): Disable 'extern' declaration if the function
66365         definition is going to be provided inline.
66366         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66367         semantics, not the ISO C99 inline semantics.
66368         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66369         'extern' declaration if the function definition is going to be provided
66370         inline.
66371         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66372         the GNU C inline semantics, not the ISO C99 inline semantics. With
66373         GCC 4.2, avoid a warning.
66374
66375 2007-10-13  Bruno Haible  <bruno@clisp.org>
66376
66377         * lib/freading.h (freading): Enable the use of __freading for
66378         glibc >= 2.7.
66379         * lib/freading.c (freading): Likewise.
66380
66381 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66384         "warning: C99 inline functions are not supported; using GNU89".
66385
66386 2007-10-12  Bruno Haible  <bruno@clisp.org>
66387
66388         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66389         of 2.
66390         * tests/test-ceilf2.c: New file.
66391         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66392
66393         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66394         * modules/ceilf-tests: Update.
66395
66396 2007-10-12  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66399         of 2.
66400         * tests/test-floorf2.c: New file.
66401         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66402
66403         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66404         * modules/floorf-tests: Update.
66405
66406 2007-10-12  Bruno Haible  <bruno@clisp.org>
66407
66408         * tests/test-trunc2.c: New file.
66409         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66410
66411         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66412         * modules/trunc-tests: Update.
66413
66414 2007-10-12  Bruno Haible  <bruno@clisp.org>
66415
66416         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66417         of 2.
66418         * tests/test-truncf2.c: New file.
66419         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66420
66421         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66422         * modules/truncf-tests: Update.
66423
66424 2007-10-11  Eric Blake  <ebb9@byu.net>
66425
66426         Don't claim strerror is broken on Interix.
66427         * doc/functions/strerror.texi (strerror): Known broken systems are
66428         now Solaris 8, and not Interix.
66429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66430         Interix on cross-compile.
66431         Reported by Martin Koeppe in
66432         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66433
66434 2007-10-11  Bruno Haible  <bruno@clisp.org>
66435
66436         * modules/i-ring-tests: New file.
66437         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66438         instead of assert.
66439
66440 2007-10-11  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/filenamecat-tests: New file.
66443         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66444         * lib/filenamecat.c: Remove test code.
66445
66446 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66449
66450         * lib/strerror.c: Include <string.h> always, to test interface,
66451         and to remove the need for the dummy.
66452         Include intprops.h to compute width instead of doing it ourselves
66453         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66454         (strerror): Define it to return NULL if there's no system strerror.
66455         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66456         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66457         ancient pre-strerror Unix systems well any more.  Saying "unknown
66458         system error" is enough.
66459         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66460         simpler strerror.c implementation.
66461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66462         Simplify the tests to reflect the simpler strerror implementation.
66463         * modules/strerror (Depends-on): Add intprops.
66464
66465 2007-10-09  Eric Blake  <ebb9@byu.net>
66466
66467         Silence test-fpending.
66468         * modules/fpending-tests (Files): Add wrapper script.
66469         * tests/test-fpending.sh: New file.
66470
66471 2007-10-09  Bruno Haible  <bruno@clisp.org>
66472
66473         * MODULES.html.sh (func_module): Don't create a hyperlink for
66474         function names like 'printf_frexp'.
66475         (Misc): Add crc, memxor.
66476         (Characteristics of floating types): New section.
66477         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66478         isnanf-nolibm, signbit, trunc, truncf, truncl.
66479         (Enhancements for ISO C 99 functions): New subsection Input/output.
66480         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66481         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66482         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66483         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66484         (Enhancements for POSIX:2001 functions): Add chdir-long.
66485         (File system functions): Add areadlink, chdir-safer, read-file.
66486         Remove cycle-check.
66487         (File system as inode set): New section.
66488         (Date and time): Add gethrxtime.
66489         (Multithreading): Add openmp.
66490         (Internationalization functions): Add localename.
66491         (Unicode string functions): Add unistr/u*-mbsnlen.
66492         (Support for maintaining and releasing projects): Add git-version-gen.
66493         (Lone files): Remove directories.
66494
66495 2007-10-08  Ben Pfaff  <blp@gnu.org>
66496
66497         * lib/xmalloca.h: Fix typo in comment.
66498
66499 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66502         when avoiding problems with integer overflow.  Use a portable test
66503         instead.
66504
66505 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66506
66507         * modules/dummy (License): Change to LGPLv2+.
66508         * modules/float (License): Likewise
66509         * modules/realloc (License): Likewise
66510         * modules/stdlib (License): Likewise
66511
66512 2007-10-07  Bruno Haible  <bruno@clisp.org>
66513
66514         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66515         * floor.c (TWO_MANT_DIG): Likewise.
66516         * ceil.c (TWO_MANT_DIG): Likewise.
66517         Reported by Ben Pfaff.
66518
66519 2007-10-07  Bruno Haible  <bruno@clisp.org>
66520
66521         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66522         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66523         * lib/frexp.c (FUNC): Likewise.
66524         * lib/printf-frexp.h (printf_frexp): Likewise.
66525         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66526         * lib/printf-frexp.c (FUNC): Likewise.
66527         Suggested by Jim Meyering.
66528
66529 2007-10-07  Jim Meyering  <meyering@redhat.com>
66530
66531         Make xnanosleep's integer overflow test more robust.
66532         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66533         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66534
66535 2007-10-07  Bruno Haible  <bruno@clisp.org>
66536
66537         * NEWS: Mention the license change.
66538
66539         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66540         abbreviations in the modules files.
66541
66542         Change copyright notice from GPLv2+ to GPLv3+.
66543         * README: Change copyright notice.
66544         * MODULES.html.sh: Likewise.
66545         * build-aux/bootstrap.conf: Likewise.
66546         * build-aux/config.libpath: Likewise.
66547         * build-aux/csharpcomp.sh.in: Likewise.
66548         * build-aux/csharpexec.sh.in: Likewise.
66549         * build-aux/install-reloc: Likewise.
66550         * build-aux/javacomp.sh.in: Likewise.
66551         * build-aux/javaexec.sh.in: Likewise.
66552         * build-aux/ldd.sh.in: Likewise.
66553         * build-aux/reloc-ldflags: Likewise.
66554         * build-aux/relocatable.sh.in: Likewise.
66555         * build-aux/x-to-1.in: Likewise.
66556         * check-module: Likewise.
66557         * config/srclistvars.sh: Likewise.
66558         * gnulib-tool: Likewise.
66559         * lib/acl-internal.h: Likewise.
66560         * lib/acl.c: Likewise.
66561         * lib/acl.h: Likewise.
66562         * lib/acl_entries.c: Likewise.
66563         * lib/areadlink-with-size.c: Likewise.
66564         * lib/areadlink.c: Likewise.
66565         * lib/areadlink.h: Likewise.
66566         * lib/argmatch.c: Likewise.
66567         * lib/argmatch.h: Likewise.
66568         * lib/argp-ba.c: Likewise.
66569         * lib/argp-eexst.c: Likewise.
66570         * lib/argp-fmtstream.c: Likewise.
66571         * lib/argp-fmtstream.h: Likewise.
66572         * lib/argp-fs-xinl.c: Likewise.
66573         * lib/argp-help.c: Likewise.
66574         * lib/argp-namefrob.h: Likewise.
66575         * lib/argp-parse.c: Likewise.
66576         * lib/argp-pin.c: Likewise.
66577         * lib/argp-pv.c: Likewise.
66578         * lib/argp-pvh.c: Likewise.
66579         * lib/argp-xinl.c: Likewise.
66580         * lib/argp.h: Likewise.
66581         * lib/at-func.c: Likewise.
66582         * lib/atanl.c: Likewise.
66583         * lib/backupfile.c: Likewise.
66584         * lib/backupfile.h: Likewise.
66585         * lib/basename.c: Likewise.
66586         * lib/binary-io.h: Likewise.
66587         * lib/byteswap.in.h: Likewise.
66588         * lib/c-stack.c: Likewise.
66589         * lib/c-stack.h: Likewise.
66590         * lib/c-strcasestr.c: Likewise.
66591         * lib/c-strcasestr.h: Likewise.
66592         * lib/c-strstr.c: Likewise.
66593         * lib/c-strstr.h: Likewise.
66594         * lib/c-strtod.c: Likewise.
66595         * lib/calloc.c: Likewise.
66596         * lib/canon-host.c: Likewise.
66597         * lib/canon-host.h: Likewise.
66598         * lib/canonicalize-lgpl.c: Likewise.
66599         * lib/canonicalize.c: Likewise.
66600         * lib/canonicalize.h: Likewise.
66601         * lib/ceil.c: Likewise.
66602         * lib/ceilf.c: Likewise.
66603         * lib/ceill.c: Likewise.
66604         * lib/chdir-long.c: Likewise.
66605         * lib/chdir-long.h: Likewise.
66606         * lib/chdir-safer.c: Likewise.
66607         * lib/chdir-safer.h: Likewise.
66608         * lib/chown.c: Likewise.
66609         * lib/classpath.c: Likewise.
66610         * lib/classpath.h: Likewise.
66611         * lib/clean-temp.c: Likewise.
66612         * lib/clean-temp.h: Likewise.
66613         * lib/cloexec.c: Likewise.
66614         * lib/close-stream.c: Likewise.
66615         * lib/closein.c: Likewise.
66616         * lib/closein.h: Likewise.
66617         * lib/closeout.c: Likewise.
66618         * lib/closeout.h: Likewise.
66619         * lib/concat-filename.c: Likewise.
66620         * lib/copy-file.c: Likewise.
66621         * lib/copy-file.h: Likewise.
66622         * lib/count-one-bits.h: Likewise.
66623         * lib/crc.c: Likewise.
66624         * lib/crc.h: Likewise.
66625         * lib/creat-safer.c: Likewise.
66626         * lib/csharpcomp.c: Likewise.
66627         * lib/csharpcomp.h: Likewise.
66628         * lib/csharpexec.c: Likewise.
66629         * lib/csharpexec.h: Likewise.
66630         * lib/cycle-check.c: Likewise.
66631         * lib/cycle-check.h: Likewise.
66632         * lib/diacrit.c: Likewise.
66633         * lib/diacrit.h: Likewise.
66634         * lib/diffseq.h: Likewise.
66635         * lib/dirchownmod.c: Likewise.
66636         * lib/dirent.in.h: Likewise.
66637         * lib/dirfd.c: Likewise.
66638         * lib/dirfd.h: Likewise.
66639         * lib/dirname.c: Likewise.
66640         * lib/dirname.h: Likewise.
66641         * lib/dummy.c: Likewise.
66642         * lib/dup-safer.c: Likewise.
66643         * lib/dup2.c: Likewise.
66644         * lib/eealloc.h: Likewise.
66645         * lib/error.c: Likewise.
66646         * lib/error.h: Likewise.
66647         * lib/euidaccess.c: Likewise.
66648         * lib/exclude.c: Likewise.
66649         * lib/exclude.h: Likewise.
66650         * lib/execute.c: Likewise.
66651         * lib/execute.h: Likewise.
66652         * lib/exitfail.c: Likewise.
66653         * lib/exitfail.h: Likewise.
66654         * lib/expl.c: Likewise.
66655         * lib/fatal-signal.c: Likewise.
66656         * lib/fatal-signal.h: Likewise.
66657         * lib/fbufmode.c: Likewise.
66658         * lib/fbufmode.h: Likewise.
66659         * lib/fchdir.c: Likewise.
66660         * lib/fchmodat.c: Likewise.
66661         * lib/fchownat.c: Likewise.
66662         * lib/fcntl--.h: Likewise.
66663         * lib/fcntl-safer.h: Likewise.
66664         * lib/fcntl.in.h: Likewise.
66665         * lib/fd-safer.c: Likewise.
66666         * lib/fflush.c: Likewise.
66667         * lib/file-has-acl.c: Likewise.
66668         * lib/file-set.c: Likewise.
66669         * lib/file-type.c: Likewise.
66670         * lib/file-type.h: Likewise.
66671         * lib/fileblocks.c: Likewise.
66672         * lib/filemode.c: Likewise.
66673         * lib/filemode.h: Likewise.
66674         * lib/filename.h: Likewise.
66675         * lib/filenamecat.c: Likewise.
66676         * lib/filenamecat.h: Likewise.
66677         * lib/findprog.c: Likewise.
66678         * lib/findprog.h: Likewise.
66679         * lib/float.in.h: Likewise.
66680         * lib/floor.c: Likewise.
66681         * lib/floorf.c: Likewise.
66682         * lib/floorl.c: Likewise.
66683         * lib/fopen-safer.c: Likewise.
66684         * lib/fopen.c: Likewise.
66685         * lib/fpending.c: Likewise.
66686         * lib/fpending.h: Likewise.
66687         * lib/fprintf.c: Likewise.
66688         * lib/fprintftime.h: Likewise.
66689         * lib/fpucw.h: Likewise.
66690         * lib/fpurge.c: Likewise.
66691         * lib/fpurge.h: Likewise.
66692         * lib/freadable.c: Likewise.
66693         * lib/freadable.h: Likewise.
66694         * lib/freadahead.c: Likewise.
66695         * lib/freadahead.h: Likewise.
66696         * lib/freading.c: Likewise.
66697         * lib/freading.h: Likewise.
66698         * lib/free.c: Likewise.
66699         * lib/freopen.c: Likewise.
66700         * lib/frexp.c: Likewise.
66701         * lib/frexpl.c: Likewise.
66702         * lib/fseek.c: Likewise.
66703         * lib/fseterr.c: Likewise.
66704         * lib/fseterr.h: Likewise.
66705         * lib/fstatat.c: Likewise.
66706         * lib/fstrcmp.c: Likewise.
66707         * lib/fstrcmp.h: Likewise.
66708         * lib/fsusage.c: Likewise.
66709         * lib/fsusage.h: Likewise.
66710         * lib/ftell.c: Likewise.
66711         * lib/ftello.c: Likewise.
66712         * lib/fts-cycle.c: Likewise.
66713         * lib/fts.c: Likewise.
66714         * lib/fts_.h: Likewise.
66715         * lib/full-read.c: Likewise.
66716         * lib/full-read.h: Likewise.
66717         * lib/full-write.c: Likewise.
66718         * lib/full-write.h: Likewise.
66719         * lib/fwritable.c: Likewise.
66720         * lib/fwritable.h: Likewise.
66721         * lib/fwriteerror.c: Likewise.
66722         * lib/fwriteerror.h: Likewise.
66723         * lib/fwriting.c: Likewise.
66724         * lib/fwriting.h: Likewise.
66725         * lib/gcd.c: Likewise.
66726         * lib/gcd.h: Likewise.
66727         * lib/getcwd.c: Likewise.
66728         * lib/getdate.h: Likewise.
66729         * lib/getdate.y: Likewise.
66730         * lib/getdomainname.c: Likewise.
66731         * lib/getdomainname.h: Likewise.
66732         * lib/getgroups.c: Likewise.
66733         * lib/gethostname.c: Likewise.
66734         * lib/gethrxtime.c: Likewise.
66735         * lib/gethrxtime.h: Likewise.
66736         * lib/getloadavg.c: Likewise.
66737         * lib/getndelim2.c: Likewise.
66738         * lib/getndelim2.h: Likewise.
66739         * lib/getnline.c: Likewise.
66740         * lib/getnline.h: Likewise.
66741         * lib/getopt.c: Likewise.
66742         * lib/getopt.in.h: Likewise.
66743         * lib/getopt1.c: Likewise.
66744         * lib/getopt_int.h: Likewise.
66745         * lib/getpagesize.h: Likewise.
66746         * lib/getsubopt.c: Likewise.
66747         * lib/gettime.c: Likewise.
66748         * lib/getugroups.c: Likewise.
66749         * lib/getugroups.h: Likewise.
66750         * lib/getusershell.c: Likewise.
66751         * lib/gl_anyavltree_list1.h: Likewise.
66752         * lib/gl_anyavltree_list2.h: Likewise.
66753         * lib/gl_anyhash_list1.h: Likewise.
66754         * lib/gl_anyhash_list2.h: Likewise.
66755         * lib/gl_anylinked_list1.h: Likewise.
66756         * lib/gl_anylinked_list2.h: Likewise.
66757         * lib/gl_anyrbtree_list1.h: Likewise.
66758         * lib/gl_anyrbtree_list2.h: Likewise.
66759         * lib/gl_anytree_list1.h: Likewise.
66760         * lib/gl_anytree_list2.h: Likewise.
66761         * lib/gl_anytree_oset.h: Likewise.
66762         * lib/gl_anytreehash_list1.h: Likewise.
66763         * lib/gl_anytreehash_list2.h: Likewise.
66764         * lib/gl_array_list.c: Likewise.
66765         * lib/gl_array_list.h: Likewise.
66766         * lib/gl_array_oset.c: Likewise.
66767         * lib/gl_array_oset.h: Likewise.
66768         * lib/gl_avltree_list.c: Likewise.
66769         * lib/gl_avltree_list.h: Likewise.
66770         * lib/gl_avltree_oset.c: Likewise.
66771         * lib/gl_avltree_oset.h: Likewise.
66772         * lib/gl_avltreehash_list.c: Likewise.
66773         * lib/gl_avltreehash_list.h: Likewise.
66774         * lib/gl_carray_list.c: Likewise.
66775         * lib/gl_carray_list.h: Likewise.
66776         * lib/gl_linked_list.c: Likewise.
66777         * lib/gl_linked_list.h: Likewise.
66778         * lib/gl_linkedhash_list.c: Likewise.
66779         * lib/gl_linkedhash_list.h: Likewise.
66780         * lib/gl_list.c: Likewise.
66781         * lib/gl_list.h: Likewise.
66782         * lib/gl_oset.c: Likewise.
66783         * lib/gl_oset.h: Likewise.
66784         * lib/gl_rbtree_list.c: Likewise.
66785         * lib/gl_rbtree_list.h: Likewise.
66786         * lib/gl_rbtree_oset.c: Likewise.
66787         * lib/gl_rbtree_oset.h: Likewise.
66788         * lib/gl_rbtreehash_list.c: Likewise.
66789         * lib/gl_rbtreehash_list.h: Likewise.
66790         * lib/gl_sublist.c: Likewise.
66791         * lib/gl_sublist.h: Likewise.
66792         * lib/group-member.c: Likewise.
66793         * lib/group-member.h: Likewise.
66794         * lib/hard-locale.c: Likewise.
66795         * lib/hard-locale.h: Likewise.
66796         * lib/hash-pjw.c: Likewise.
66797         * lib/hash-pjw.h: Likewise.
66798         * lib/hash-triple.c: Likewise.
66799         * lib/hash.c: Likewise.
66800         * lib/hash.h: Likewise.
66801         * lib/human.c: Likewise.
66802         * lib/human.h: Likewise.
66803         * lib/i-ring.c: Likewise.
66804         * lib/i-ring.h: Likewise.
66805         * lib/idcache.c: Likewise.
66806         * lib/imaxabs.c: Likewise.
66807         * lib/imaxdiv.c: Likewise.
66808         * lib/inet_pton.c: Likewise.
66809         * lib/inet_pton.h: Likewise.
66810         * lib/intprops.h: Likewise.
66811         * lib/inttostr.c: Likewise.
66812         * lib/inttostr.h: Likewise.
66813         * lib/inttypes.in.h: Likewise.
66814         * lib/isapipe.c: Likewise.
66815         * lib/isdir.c: Likewise.
66816         * lib/isnan.c: Likewise.
66817         * lib/isnan.h: Likewise.
66818         * lib/isnanf.c: Likewise.
66819         * lib/isnanf.h: Likewise.
66820         * lib/isnanl-nolibm.h: Likewise.
66821         * lib/isnanl.c: Likewise.
66822         * lib/isnanl.h: Likewise.
66823         * lib/javacomp.c: Likewise.
66824         * lib/javacomp.h: Likewise.
66825         * lib/javaexec.c: Likewise.
66826         * lib/javaexec.h: Likewise.
66827         * lib/javaversion.c: Likewise.
66828         * lib/javaversion.h: Likewise.
66829         * lib/javaversion.java: Likewise.
66830         * lib/lbrkprop.h: Likewise.
66831         * lib/lchmod.h: Likewise.
66832         * lib/lchown.c: Likewise.
66833         * lib/ldexpl.c: Likewise.
66834         * lib/linebreak.c: Likewise.
66835         * lib/linebreak.h: Likewise.
66836         * lib/linebuffer.c: Likewise.
66837         * lib/linebuffer.h: Likewise.
66838         * lib/locale.in.h: Likewise.
66839         * lib/logl.c: Likewise.
66840         * lib/long-options.c: Likewise.
66841         * lib/long-options.h: Likewise.
66842         * lib/lstat.c: Likewise.
66843         * lib/lstat.h: Likewise.
66844         * lib/math.in.h: Likewise.
66845         * lib/mbchar.c: Likewise.
66846         * lib/mbchar.h: Likewise.
66847         * lib/mbfile.h: Likewise.
66848         * lib/mbiter.h: Likewise.
66849         * lib/mbscasecmp.c: Likewise.
66850         * lib/mbscasestr.c: Likewise.
66851         * lib/mbschr.c: Likewise.
66852         * lib/mbscspn.c: Likewise.
66853         * lib/mbslen.c: Likewise.
66854         * lib/mbsncasecmp.c: Likewise.
66855         * lib/mbsnlen.c: Likewise.
66856         * lib/mbspbrk.c: Likewise.
66857         * lib/mbspcasecmp.c: Likewise.
66858         * lib/mbsrchr.c: Likewise.
66859         * lib/mbssep.c: Likewise.
66860         * lib/mbsspn.c: Likewise.
66861         * lib/mbsstr.c: Likewise.
66862         * lib/mbstok_r.c: Likewise.
66863         * lib/mbswidth.c: Likewise.
66864         * lib/mbswidth.h: Likewise.
66865         * lib/mbuiter.h: Likewise.
66866         * lib/memcasecmp.c: Likewise.
66867         * lib/memcasecmp.h: Likewise.
66868         * lib/memchr.c: Likewise.
66869         * lib/memcmp.c: Likewise.
66870         * lib/memcoll.c: Likewise.
66871         * lib/memcoll.h: Likewise.
66872         * lib/memcpy.c: Likewise.
66873         * lib/memrchr.c: Likewise.
66874         * lib/mkancesdirs.c: Likewise.
66875         * lib/mkdir-p.c: Likewise.
66876         * lib/mkdir-p.h: Likewise.
66877         * lib/mkdir.c: Likewise.
66878         * lib/mkdirat.c: Likewise.
66879         * lib/mkdtemp.c: Likewise.
66880         * lib/mkstemp-safer.c: Likewise.
66881         * lib/mkstemp.c: Likewise.
66882         * lib/modechange.c: Likewise.
66883         * lib/modechange.h: Likewise.
66884         * lib/mountlist.c: Likewise.
66885         * lib/mountlist.h: Likewise.
66886         * lib/mpsort.c: Likewise.
66887         * lib/nanosleep.c: Likewise.
66888         * lib/obstack.c: Likewise.
66889         * lib/obstack.h: Likewise.
66890         * lib/open-safer.c: Likewise.
66891         * lib/open.c: Likewise.
66892         * lib/openat-die.c: Likewise.
66893         * lib/openat-priv.h: Likewise.
66894         * lib/openat-proc.c: Likewise.
66895         * lib/openat.c: Likewise.
66896         * lib/openat.h: Likewise.
66897         * lib/pagealign_alloc.c: Likewise.
66898         * lib/pagealign_alloc.h: Likewise.
66899         * lib/physmem.c: Likewise.
66900         * lib/physmem.h: Likewise.
66901         * lib/pipe-safer.c: Likewise.
66902         * lib/pipe.c: Likewise.
66903         * lib/pipe.h: Likewise.
66904         * lib/posixtm.c: Likewise.
66905         * lib/posixtm.h: Likewise.
66906         * lib/posixver.c: Likewise.
66907         * lib/printf-frexp.c: Likewise.
66908         * lib/printf-frexp.h: Likewise.
66909         * lib/printf-frexpl.c: Likewise.
66910         * lib/printf-frexpl.h: Likewise.
66911         * lib/printf.c: Likewise.
66912         * lib/progname.c: Likewise.
66913         * lib/progname.h: Likewise.
66914         * lib/progreloc.c: Likewise.
66915         * lib/putenv.c: Likewise.
66916         * lib/quote.c: Likewise.
66917         * lib/quote.h: Likewise.
66918         * lib/quotearg.c: Likewise.
66919         * lib/quotearg.h: Likewise.
66920         * lib/raise.c: Likewise.
66921         * lib/readline.c: Likewise.
66922         * lib/readline.h: Likewise.
66923         * lib/readlink.c: Likewise.
66924         * lib/readtokens.c: Likewise.
66925         * lib/readtokens.h: Likewise.
66926         * lib/readtokens0.c: Likewise.
66927         * lib/readtokens0.h: Likewise.
66928         * lib/readutmp.c: Likewise.
66929         * lib/readutmp.h: Likewise.
66930         * lib/realloc.c: Likewise.
66931         * lib/relocwrapper.c: Likewise.
66932         * lib/rename-dest-slash.c: Likewise.
66933         * lib/rename.c: Likewise.
66934         * lib/rmdir.c: Likewise.
66935         * lib/rpmatch.c: Likewise.
66936         * lib/safe-read.c: Likewise.
66937         * lib/safe-read.h: Likewise.
66938         * lib/safe-write.c: Likewise.
66939         * lib/safe-write.h: Likewise.
66940         * lib/same-inode.h: Likewise.
66941         * lib/same.c: Likewise.
66942         * lib/same.h: Likewise.
66943         * lib/save-cwd.c: Likewise.
66944         * lib/save-cwd.h: Likewise.
66945         * lib/savedir.c: Likewise.
66946         * lib/savedir.h: Likewise.
66947         * lib/savewd.c: Likewise.
66948         * lib/savewd.h: Likewise.
66949         * lib/search.in.h: Likewise.
66950         * lib/setenv.c: Likewise.
66951         * lib/setenv.h: Likewise.
66952         * lib/settime.c: Likewise.
66953         * lib/sh-quote.c: Likewise.
66954         * lib/sh-quote.h: Likewise.
66955         * lib/sig2str.c: Likewise.
66956         * lib/sig2str.h: Likewise.
66957         * lib/signal.in.h: Likewise.
66958         * lib/signbitd.c: Likewise.
66959         * lib/signbitf.c: Likewise.
66960         * lib/signbitl.c: Likewise.
66961         * lib/sigprocmask.c: Likewise.
66962         * lib/sincosl.c: Likewise.
66963         * lib/sleep.c: Likewise.
66964         * lib/sprintf.c: Likewise.
66965         * lib/sqrtl.c: Likewise.
66966         * lib/stat-time.h: Likewise.
66967         * lib/stdio--.h: Likewise.
66968         * lib/stdio-safer.h: Likewise.
66969         * lib/stdlib--.h: Likewise.
66970         * lib/stdlib-safer.h: Likewise.
66971         * lib/stdlib.in.h: Likewise.
66972         * lib/stpcpy.c: Likewise.
66973         * lib/stpncpy.c: Likewise.
66974         * lib/strchrnul.c: Likewise.
66975         * lib/strcspn.c: Likewise.
66976         * lib/strerror.c: Likewise.
66977         * lib/strftime.c: Likewise.
66978         * lib/strftime.h: Likewise.
66979         * lib/striconveh.c: Likewise.
66980         * lib/striconveh.h: Likewise.
66981         * lib/striconveha.c: Likewise.
66982         * lib/striconveha.h: Likewise.
66983         * lib/stripslash.c: Likewise.
66984         * lib/strnlen1.c: Likewise.
66985         * lib/strnlen1.h: Likewise.
66986         * lib/strtod.c: Likewise.
66987         * lib/strtoimax.c: Likewise.
66988         * lib/strtok_r.c: Likewise.
66989         * lib/strtol.c: Likewise.
66990         * lib/strtoll.c: Likewise.
66991         * lib/strtoul.c: Likewise.
66992         * lib/strtoull.c: Likewise.
66993         * lib/sysexits.in.h: Likewise.
66994         * lib/tempname.c: Likewise.
66995         * lib/tempname.h: Likewise.
66996         * lib/timespec.h: Likewise.
66997         * lib/tls.c: Likewise.
66998         * lib/tls.h: Likewise.
66999         * lib/tmpdir.c: Likewise.
67000         * lib/tmpdir.h: Likewise.
67001         * lib/tmpfile-safer.c: Likewise.
67002         * lib/tmpfile.c: Likewise.
67003         * lib/trigl.c: Likewise.
67004         * lib/trigl.h: Likewise.
67005         * lib/trim.c: Likewise.
67006         * lib/trim.h: Likewise.
67007         * lib/trunc.c: Likewise.
67008         * lib/truncf.c: Likewise.
67009         * lib/truncl.c: Likewise.
67010         * lib/tsearch.c: Likewise.
67011         * lib/unicodeio.c: Likewise.
67012         * lib/unicodeio.h: Likewise.
67013         * lib/unistd--.h: Likewise.
67014         * lib/unistd-safer.h: Likewise.
67015         * lib/unistdio/ulc-fprintf.c: Likewise.
67016         * lib/unistdio/ulc-vfprintf.c: Likewise.
67017         * lib/unlinkdir.c: Likewise.
67018         * lib/unlinkdir.h: Likewise.
67019         * lib/unlocked-io.h: Likewise.
67020         * lib/unsetenv.c: Likewise.
67021         * lib/userspec.c: Likewise.
67022         * lib/utime.c: Likewise.
67023         * lib/utimecmp.c: Likewise.
67024         * lib/utimecmp.h: Likewise.
67025         * lib/utimens.c: Likewise.
67026         * lib/verify.h: Likewise.
67027         * lib/verror.c: Likewise.
67028         * lib/verror.h: Likewise.
67029         * lib/version-etc-fsf.c: Likewise.
67030         * lib/version-etc.c: Likewise.
67031         * lib/version-etc.h: Likewise.
67032         * lib/vfprintf.c: Likewise.
67033         * lib/vprintf.c: Likewise.
67034         * lib/vsprintf.c: Likewise.
67035         * lib/w32spawn.h: Likewise.
67036         * lib/wait-process.c: Likewise.
67037         * lib/wait-process.h: Likewise.
67038         * lib/wcwidth.c: Likewise.
67039         * lib/write-any-file.c: Likewise.
67040         * lib/xalloc-die.c: Likewise.
67041         * lib/xalloc.h: Likewise.
67042         * lib/xasprintf.c: Likewise.
67043         * lib/xgetcwd.c: Likewise.
67044         * lib/xgetcwd.h: Likewise.
67045         * lib/xgetdomainname.c: Likewise.
67046         * lib/xgetdomainname.h: Likewise.
67047         * lib/xgethostname.c: Likewise.
67048         * lib/xmalloc.c: Likewise.
67049         * lib/xmalloca.c: Likewise.
67050         * lib/xmalloca.h: Likewise.
67051         * lib/xmemcoll.c: Likewise.
67052         * lib/xnanosleep.c: Likewise.
67053         * lib/xreadlink.c: Likewise.
67054         * lib/xreadlink.h: Likewise.
67055         * lib/xsetenv.c: Likewise.
67056         * lib/xsetenv.h: Likewise.
67057         * lib/xstriconv.c: Likewise.
67058         * lib/xstriconv.h: Likewise.
67059         * lib/xstrndup.c: Likewise.
67060         * lib/xstrndup.h: Likewise.
67061         * lib/xstrtod.c: Likewise.
67062         * lib/xstrtod.h: Likewise.
67063         * lib/xstrtol-error.c: Likewise.
67064         * lib/xstrtol.c: Likewise.
67065         * lib/xstrtol.h: Likewise.
67066         * lib/xtime.h: Likewise.
67067         * lib/xvasprintf.c: Likewise.
67068         * lib/xvasprintf.h: Likewise.
67069         * lib/yesno.c: Likewise.
67070         * lib/yesno.h: Likewise.
67071         * posix-modules: Likewise.
67072         * tests/test-alloca-opt.c: Likewise.
67073         * tests/test-arcfour.c: Likewise.
67074         * tests/test-arctwo.c: Likewise.
67075         * tests/test-argmatch.c: Likewise.
67076         * tests/test-argp-2.sh: Likewise.
67077         * tests/test-argp.c: Likewise.
67078         * tests/test-arpa_inet.c: Likewise.
67079         * tests/test-array_list.c: Likewise.
67080         * tests/test-array_oset.c: Likewise.
67081         * tests/test-atexit.c: Likewise.
67082         * tests/test-avltree_list.c: Likewise.
67083         * tests/test-avltree_oset.c: Likewise.
67084         * tests/test-avltreehash_list.c: Likewise.
67085         * tests/test-base64.c: Likewise.
67086         * tests/test-binary-io.c: Likewise.
67087         * tests/test-byteswap.c: Likewise.
67088         * tests/test-c-ctype.c: Likewise.
67089         * tests/test-c-strcasecmp.c: Likewise.
67090         * tests/test-c-strcasestr.c: Likewise.
67091         * tests/test-c-strncasecmp.c: Likewise.
67092         * tests/test-c-strstr.c: Likewise.
67093         * tests/test-canonicalize-lgpl.c: Likewise.
67094         * tests/test-canonicalize.c: Likewise.
67095         * tests/test-carray_list.c: Likewise.
67096         * tests/test-ceilf.c: Likewise.
67097         * tests/test-ceill.c: Likewise.
67098         * tests/test-count-one-bits.c: Likewise.
67099         * tests/test-crc.c: Likewise.
67100         * tests/test-dirname.c: Likewise.
67101         * tests/test-fbufmode.c: Likewise.
67102         * tests/test-fcntl.c: Likewise.
67103         * tests/test-fflush.c: Likewise.
67104         * tests/test-floorf.c: Likewise.
67105         * tests/test-floorl.c: Likewise.
67106         * tests/test-fopen.c: Likewise.
67107         * tests/test-fprintf-posix.c: Likewise.
67108         * tests/test-fprintf-posix.h: Likewise.
67109         * tests/test-fpurge.c: Likewise.
67110         * tests/test-freadable.c: Likewise.
67111         * tests/test-freadahead.c: Likewise.
67112         * tests/test-freading.c: Likewise.
67113         * tests/test-freopen.c: Likewise.
67114         * tests/test-frexp.c: Likewise.
67115         * tests/test-frexpl.c: Likewise.
67116         * tests/test-fseek.c: Likewise.
67117         * tests/test-fseeko.c: Likewise.
67118         * tests/test-fseterr.c: Likewise.
67119         * tests/test-fstrcmp.c: Likewise.
67120         * tests/test-ftell.c: Likewise.
67121         * tests/test-ftello.c: Likewise.
67122         * tests/test-fwritable.c: Likewise.
67123         * tests/test-fwriting.c: Likewise.
67124         * tests/test-getaddrinfo.c: Likewise.
67125         * tests/test-getpass.c: Likewise.
67126         * tests/test-gettimeofday.c: Likewise.
67127         * tests/test-hmac-md5.c: Likewise.
67128         * tests/test-hmac-sha1.c: Likewise.
67129         * tests/test-iconv.c: Likewise.
67130         * tests/test-iconvme.c: Likewise.
67131         * tests/test-inttypes.c: Likewise.
67132         * tests/test-isnan.c: Likewise.
67133         * tests/test-isnanf.c: Likewise.
67134         * tests/test-isnanl-nolibm.c: Likewise.
67135         * tests/test-isnanl.c: Likewise.
67136         * tests/test-isnanl.h: Likewise.
67137         * tests/test-ldexpl.c: Likewise.
67138         * tests/test-linked_list.c: Likewise.
67139         * tests/test-linkedhash_list.c: Likewise.
67140         * tests/test-locale.c: Likewise.
67141         * tests/test-localename.c: Likewise.
67142         * tests/test-lock.c: Likewise.
67143         * tests/test-lseek.c: Likewise.
67144         * tests/test-malloca.c: Likewise.
67145         * tests/test-math.c: Likewise.
67146         * tests/test-mbscasecmp.c: Likewise.
67147         * tests/test-mbscasestr1.c: Likewise.
67148         * tests/test-mbscasestr2.c: Likewise.
67149         * tests/test-mbscasestr3.c: Likewise.
67150         * tests/test-mbscasestr4.c: Likewise.
67151         * tests/test-mbschr.c: Likewise.
67152         * tests/test-mbscspn.c: Likewise.
67153         * tests/test-mbsncasecmp.c: Likewise.
67154         * tests/test-mbspbrk.c: Likewise.
67155         * tests/test-mbspcasecmp.c: Likewise.
67156         * tests/test-mbsrchr.c: Likewise.
67157         * tests/test-mbsspn.c: Likewise.
67158         * tests/test-mbsstr1.c: Likewise.
67159         * tests/test-mbsstr2.c: Likewise.
67160         * tests/test-mbsstr3.c: Likewise.
67161         * tests/test-md5.c: Likewise.
67162         * tests/test-memmem.c: Likewise.
67163         * tests/test-netinet_in.c: Likewise.
67164         * tests/test-open.c: Likewise.
67165         * tests/test-printf-frexp.c: Likewise.
67166         * tests/test-printf-frexpl.c: Likewise.
67167         * tests/test-printf-posix.c: Likewise.
67168         * tests/test-printf-posix.h: Likewise.
67169         * tests/test-rbtree_list.c: Likewise.
67170         * tests/test-rbtree_oset.c: Likewise.
67171         * tests/test-rbtreehash_list.c: Likewise.
67172         * tests/test-read-file.c: Likewise.
67173         * tests/test-rijndael.c: Likewise.
67174         * tests/test-search.c: Likewise.
67175         * tests/test-signbit.c: Likewise.
67176         * tests/test-sleep.c: Likewise.
67177         * tests/test-snprintf-posix.c: Likewise.
67178         * tests/test-snprintf-posix.h: Likewise.
67179         * tests/test-snprintf.c: Likewise.
67180         * tests/test-sprintf-posix.c: Likewise.
67181         * tests/test-sprintf-posix.h: Likewise.
67182         * tests/test-stat-time.c: Likewise.
67183         * tests/test-stdbool.c: Likewise.
67184         * tests/test-stdint.c: Likewise.
67185         * tests/test-stdio.c: Likewise.
67186         * tests/test-stdlib.c: Likewise.
67187         * tests/test-stpncpy.c: Likewise.
67188         * tests/test-strcasestr.c: Likewise.
67189         * tests/test-striconv.c: Likewise.
67190         * tests/test-striconveh.c: Likewise.
67191         * tests/test-striconveha.c: Likewise.
67192         * tests/test-string.c: Likewise.
67193         * tests/test-sys_select.c: Likewise.
67194         * tests/test-sys_socket.c: Likewise.
67195         * tests/test-sys_stat.c: Likewise.
67196         * tests/test-sys_time.c: Likewise.
67197         * tests/test-sysexits.c: Likewise.
67198         * tests/test-time.c: Likewise.
67199         * tests/test-tls.c: Likewise.
67200         * tests/test-trunc.c: Likewise.
67201         * tests/test-truncf.c: Likewise.
67202         * tests/test-truncl.c: Likewise.
67203         * tests/test-unistd.c: Likewise.
67204         * tests/test-vasnprintf-posix.c: Likewise.
67205         * tests/test-vasnprintf-posix2.c: Likewise.
67206         * tests/test-vasnprintf.c: Likewise.
67207         * tests/test-vasprintf-posix.c: Likewise.
67208         * tests/test-vasprintf.c: Likewise.
67209         * tests/test-verify.c: Likewise.
67210         * tests/test-vfprintf-posix.c: Likewise.
67211         * tests/test-vprintf-posix.c: Likewise.
67212         * tests/test-vsnprintf-posix.c: Likewise.
67213         * tests/test-vsnprintf.c: Likewise.
67214         * tests/test-vsprintf-posix.c: Likewise.
67215         * tests/test-wchar.c: Likewise.
67216         * tests/test-wctype.c: Likewise.
67217         * tests/test-wcwidth.c: Likewise.
67218         * tests/test-xstrtol.c: Likewise.
67219         * tests/test-xvasprintf.c: Likewise.
67220         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67221         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67222         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67223         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67224         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67225         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67226         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67227         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67228         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67229         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67230         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67231         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67232         * tests/uniname/test-uninames.c: Likewise.
67233         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67234         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67235         * tests/unistdio/test-u16-printf1.h: Likewise.
67236         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67237         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67238         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67239         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67240         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67241         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67242         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67243         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67244         * tests/unistdio/test-u32-printf1.h: Likewise.
67245         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67246         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67247         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67248         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67249         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67250         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67251         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67252         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67253         * tests/unistdio/test-u8-printf1.h: Likewise.
67254         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67255         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67256         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67257         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67258         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67259         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67260         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67261         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67262         * tests/unistdio/test-ulc-printf1.h: Likewise.
67263         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67264         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67265         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67266         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67267         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67268         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67269         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67270         * tests/uniwidth/test-u16-width.c: Likewise.
67271         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67272         * tests/uniwidth/test-u32-width.c: Likewise.
67273         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67274         * tests/uniwidth/test-u8-width.c: Likewise.
67275         * tests/uniwidth/test-uc_width.c: Likewise.
67276         * config/srclist-update: Likewise.
67277         (fixlicense): Update to GPLv3+.
67278
67279         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67280         * tests/test-tsearch.c: Change copyright notice.
67281
67282         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67283         * lib/c-strcaseeq.h: Change copyright notice.
67284         * lib/streq.h: Likewise.
67285         * lib/uniconv.h: Likewise.
67286         * lib/uniconv/u-conv-from-enc.h: Likewise.
67287         * lib/uniconv/u-conv-to-enc.h: Likewise.
67288         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67289         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67290         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67291         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67292         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67293         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67294         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67295         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67296         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67297         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67298         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67299         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67300         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67301         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67302         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67303         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67304         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67305         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67306         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67307         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67308         * lib/uniname.h: Likewise.
67309         * lib/uniname/uniname.c: Likewise.
67310         * lib/unistdio.h: Likewise.
67311         * lib/unistdio/u-asnprintf.h: Likewise.
67312         * lib/unistdio/u-asprintf.h: Likewise.
67313         * lib/unistdio/u-printf-args.c: Likewise.
67314         * lib/unistdio/u-printf-args.h: Likewise.
67315         * lib/unistdio/u-printf-parse.h: Likewise.
67316         * lib/unistdio/u-snprintf.h: Likewise.
67317         * lib/unistdio/u-sprintf.h: Likewise.
67318         * lib/unistdio/u-vasprintf.h: Likewise.
67319         * lib/unistdio/u-vsnprintf.h: Likewise.
67320         * lib/unistdio/u-vsprintf.h: Likewise.
67321         * lib/unistdio/u16-asnprintf.c: Likewise.
67322         * lib/unistdio/u16-asprintf.c: Likewise.
67323         * lib/unistdio/u16-printf-parse.c: Likewise.
67324         * lib/unistdio/u16-snprintf.c: Likewise.
67325         * lib/unistdio/u16-sprintf.c: Likewise.
67326         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67327         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67328         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67329         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67330         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67331         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67332         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67333         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67334         * lib/unistdio/u16-vasnprintf.c: Likewise.
67335         * lib/unistdio/u16-vasprintf.c: Likewise.
67336         * lib/unistdio/u16-vsnprintf.c: Likewise.
67337         * lib/unistdio/u16-vsprintf.c: Likewise.
67338         * lib/unistdio/u32-asnprintf.c: Likewise.
67339         * lib/unistdio/u32-asprintf.c: Likewise.
67340         * lib/unistdio/u32-printf-parse.c: Likewise.
67341         * lib/unistdio/u32-snprintf.c: Likewise.
67342         * lib/unistdio/u32-sprintf.c: Likewise.
67343         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67344         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67345         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67346         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67347         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67348         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67349         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67350         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67351         * lib/unistdio/u32-vasnprintf.c: Likewise.
67352         * lib/unistdio/u32-vasprintf.c: Likewise.
67353         * lib/unistdio/u32-vsnprintf.c: Likewise.
67354         * lib/unistdio/u32-vsprintf.c: Likewise.
67355         * lib/unistdio/u8-asnprintf.c: Likewise.
67356         * lib/unistdio/u8-asprintf.c: Likewise.
67357         * lib/unistdio/u8-printf-parse.c: Likewise.
67358         * lib/unistdio/u8-snprintf.c: Likewise.
67359         * lib/unistdio/u8-sprintf.c: Likewise.
67360         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67361         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67362         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67363         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67364         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67365         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67366         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67367         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67368         * lib/unistdio/u8-vasnprintf.c: Likewise.
67369         * lib/unistdio/u8-vasprintf.c: Likewise.
67370         * lib/unistdio/u8-vsnprintf.c: Likewise.
67371         * lib/unistdio/u8-vsprintf.c: Likewise.
67372         * lib/unistdio/ulc-asnprintf.c: Likewise.
67373         * lib/unistdio/ulc-asprintf.c: Likewise.
67374         * lib/unistdio/ulc-printf-parse.c: Likewise.
67375         * lib/unistdio/ulc-snprintf.c: Likewise.
67376         * lib/unistdio/ulc-sprintf.c: Likewise.
67377         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67378         * lib/unistdio/ulc-vasprintf.c: Likewise.
67379         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67380         * lib/unistdio/ulc-vsprintf.c: Likewise.
67381         * lib/unistr.h: Likewise.
67382         * lib/unistr/u-cpy-alloc.h: Likewise.
67383         * lib/unistr/u-cpy.h: Likewise.
67384         * lib/unistr/u-endswith.h: Likewise.
67385         * lib/unistr/u-move.h: Likewise.
67386         * lib/unistr/u-set.h: Likewise.
67387         * lib/unistr/u-startswith.h: Likewise.
67388         * lib/unistr/u-stpcpy.h: Likewise.
67389         * lib/unistr/u-stpncpy.h: Likewise.
67390         * lib/unistr/u-strcat.h: Likewise.
67391         * lib/unistr/u-strcpy.h: Likewise.
67392         * lib/unistr/u-strcspn.h: Likewise.
67393         * lib/unistr/u-strdup.h: Likewise.
67394         * lib/unistr/u-strlen.h: Likewise.
67395         * lib/unistr/u-strncat.h: Likewise.
67396         * lib/unistr/u-strncpy.h: Likewise.
67397         * lib/unistr/u-strnlen.h: Likewise.
67398         * lib/unistr/u-strpbrk.h: Likewise.
67399         * lib/unistr/u-strspn.h: Likewise.
67400         * lib/unistr/u-strstr.h: Likewise.
67401         * lib/unistr/u-strtok.h: Likewise.
67402         * lib/unistr/u16-check.c: Likewise.
67403         * lib/unistr/u16-chr.c: Likewise.
67404         * lib/unistr/u16-cmp.c: Likewise.
67405         * lib/unistr/u16-cpy-alloc.c: Likewise.
67406         * lib/unistr/u16-cpy.c: Likewise.
67407         * lib/unistr/u16-endswith.c: Likewise.
67408         * lib/unistr/u16-mblen.c: Likewise.
67409         * lib/unistr/u16-mbsnlen.c: Likewise.
67410         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67411         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67412         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67413         * lib/unistr/u16-mbtouc.c: Likewise.
67414         * lib/unistr/u16-mbtoucr.c: Likewise.
67415         * lib/unistr/u16-move.c: Likewise.
67416         * lib/unistr/u16-next.c: Likewise.
67417         * lib/unistr/u16-prev.c: Likewise.
67418         * lib/unistr/u16-set.c: Likewise.
67419         * lib/unistr/u16-startswith.c: Likewise.
67420         * lib/unistr/u16-stpcpy.c: Likewise.
67421         * lib/unistr/u16-stpncpy.c: Likewise.
67422         * lib/unistr/u16-strcat.c: Likewise.
67423         * lib/unistr/u16-strchr.c: Likewise.
67424         * lib/unistr/u16-strcmp.c: Likewise.
67425         * lib/unistr/u16-strcpy.c: Likewise.
67426         * lib/unistr/u16-strcspn.c: Likewise.
67427         * lib/unistr/u16-strdup.c: Likewise.
67428         * lib/unistr/u16-strlen.c: Likewise.
67429         * lib/unistr/u16-strmblen.c: Likewise.
67430         * lib/unistr/u16-strmbtouc.c: Likewise.
67431         * lib/unistr/u16-strncat.c: Likewise.
67432         * lib/unistr/u16-strncmp.c: Likewise.
67433         * lib/unistr/u16-strncpy.c: Likewise.
67434         * lib/unistr/u16-strnlen.c: Likewise.
67435         * lib/unistr/u16-strpbrk.c: Likewise.
67436         * lib/unistr/u16-strrchr.c: Likewise.
67437         * lib/unistr/u16-strspn.c: Likewise.
67438         * lib/unistr/u16-strstr.c: Likewise.
67439         * lib/unistr/u16-strtok.c: Likewise.
67440         * lib/unistr/u16-to-u32.c: Likewise.
67441         * lib/unistr/u16-to-u8.c: Likewise.
67442         * lib/unistr/u16-uctomb-aux.c: Likewise.
67443         * lib/unistr/u16-uctomb.c: Likewise.
67444         * lib/unistr/u32-check.c: Likewise.
67445         * lib/unistr/u32-chr.c: Likewise.
67446         * lib/unistr/u32-cmp.c: Likewise.
67447         * lib/unistr/u32-cpy-alloc.c: Likewise.
67448         * lib/unistr/u32-cpy.c: Likewise.
67449         * lib/unistr/u32-endswith.c: Likewise.
67450         * lib/unistr/u32-mblen.c: Likewise.
67451         * lib/unistr/u32-mbsnlen.c: Likewise.
67452         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67453         * lib/unistr/u32-mbtouc.c: Likewise.
67454         * lib/unistr/u32-mbtoucr.c: Likewise.
67455         * lib/unistr/u32-move.c: Likewise.
67456         * lib/unistr/u32-next.c: Likewise.
67457         * lib/unistr/u32-prev.c: Likewise.
67458         * lib/unistr/u32-set.c: Likewise.
67459         * lib/unistr/u32-startswith.c: Likewise.
67460         * lib/unistr/u32-stpcpy.c: Likewise.
67461         * lib/unistr/u32-stpncpy.c: Likewise.
67462         * lib/unistr/u32-strcat.c: Likewise.
67463         * lib/unistr/u32-strchr.c: Likewise.
67464         * lib/unistr/u32-strcmp.c: Likewise.
67465         * lib/unistr/u32-strcpy.c: Likewise.
67466         * lib/unistr/u32-strcspn.c: Likewise.
67467         * lib/unistr/u32-strdup.c: Likewise.
67468         * lib/unistr/u32-strlen.c: Likewise.
67469         * lib/unistr/u32-strmblen.c: Likewise.
67470         * lib/unistr/u32-strmbtouc.c: Likewise.
67471         * lib/unistr/u32-strncat.c: Likewise.
67472         * lib/unistr/u32-strncmp.c: Likewise.
67473         * lib/unistr/u32-strncpy.c: Likewise.
67474         * lib/unistr/u32-strnlen.c: Likewise.
67475         * lib/unistr/u32-strpbrk.c: Likewise.
67476         * lib/unistr/u32-strrchr.c: Likewise.
67477         * lib/unistr/u32-strspn.c: Likewise.
67478         * lib/unistr/u32-strstr.c: Likewise.
67479         * lib/unistr/u32-strtok.c: Likewise.
67480         * lib/unistr/u32-to-u16.c: Likewise.
67481         * lib/unistr/u32-to-u8.c: Likewise.
67482         * lib/unistr/u32-uctomb.c: Likewise.
67483         * lib/unistr/u8-check.c: Likewise.
67484         * lib/unistr/u8-chr.c: Likewise.
67485         * lib/unistr/u8-cmp.c: Likewise.
67486         * lib/unistr/u8-cpy-alloc.c: Likewise.
67487         * lib/unistr/u8-cpy.c: Likewise.
67488         * lib/unistr/u8-endswith.c: Likewise.
67489         * lib/unistr/u8-mblen.c: Likewise.
67490         * lib/unistr/u8-mbsnlen.c: Likewise.
67491         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67492         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67493         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67494         * lib/unistr/u8-mbtouc.c: Likewise.
67495         * lib/unistr/u8-mbtoucr.c: Likewise.
67496         * lib/unistr/u8-move.c: Likewise.
67497         * lib/unistr/u8-next.c: Likewise.
67498         * lib/unistr/u8-prev.c: Likewise.
67499         * lib/unistr/u8-set.c: Likewise.
67500         * lib/unistr/u8-startswith.c: Likewise.
67501         * lib/unistr/u8-stpcpy.c: Likewise.
67502         * lib/unistr/u8-stpncpy.c: Likewise.
67503         * lib/unistr/u8-strcat.c: Likewise.
67504         * lib/unistr/u8-strchr.c: Likewise.
67505         * lib/unistr/u8-strcmp.c: Likewise.
67506         * lib/unistr/u8-strcpy.c: Likewise.
67507         * lib/unistr/u8-strcspn.c: Likewise.
67508         * lib/unistr/u8-strdup.c: Likewise.
67509         * lib/unistr/u8-strlen.c: Likewise.
67510         * lib/unistr/u8-strmblen.c: Likewise.
67511         * lib/unistr/u8-strmbtouc.c: Likewise.
67512         * lib/unistr/u8-strncat.c: Likewise.
67513         * lib/unistr/u8-strncmp.c: Likewise.
67514         * lib/unistr/u8-strncpy.c: Likewise.
67515         * lib/unistr/u8-strnlen.c: Likewise.
67516         * lib/unistr/u8-strpbrk.c: Likewise.
67517         * lib/unistr/u8-strrchr.c: Likewise.
67518         * lib/unistr/u8-strspn.c: Likewise.
67519         * lib/unistr/u8-strstr.c: Likewise.
67520         * lib/unistr/u8-strtok.c: Likewise.
67521         * lib/unistr/u8-to-u16.c: Likewise.
67522         * lib/unistr/u8-to-u32.c: Likewise.
67523         * lib/unistr/u8-uctomb-aux.c: Likewise.
67524         * lib/unistr/u8-uctomb.c: Likewise.
67525         * lib/unitypes.h: Likewise.
67526         * lib/uniwidth.h: Likewise.
67527         * lib/uniwidth/cjk.h: Likewise.
67528         * lib/uniwidth/u16-strwidth.c: Likewise.
67529         * lib/uniwidth/u16-width.c: Likewise.
67530         * lib/uniwidth/u32-strwidth.c: Likewise.
67531         * lib/uniwidth/u32-width.c: Likewise.
67532         * lib/uniwidth/u8-strwidth.c: Likewise.
67533         * lib/uniwidth/u8-width.c: Likewise.
67534         * lib/uniwidth/width.c: Likewise.
67535
67536 2007-10-07  Bruno Haible  <bruno@clisp.org>
67537
67538         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67539         The file is still under LGPL (see modules/inttypes).
67540
67541 2007-10-06  Bruno Haible  <bruno@clisp.org>
67542
67543         * modules/trunc (Dependencies): Add 'extensions'.
67544         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67545         Reported by Ben Pfaff <blp@gnu.org>.
67546
67547 2007-10-06  Bruno Haible  <bruno@clisp.org>
67548
67549         * modules/freopen-tests: New file.
67550         * tests/test-freopen.c: New file.
67551
67552         * modules/fopen-tests: New file.
67553         * tests/test-fopen.c: New file.
67554
67555         * modules/fopen: New file.
67556         * lib/fopen.c: New file.
67557         * m4/fopen.m4: New file.
67558         * modules/freopen: New file.
67559         * lib/freopen.c: New file.
67560         * m4/freopen.m4: New file.
67561         * lib/stdio.in.h (fopen, freopen): New declarations.
67562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67563         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67564         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67565         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67566         * doc/functions/fopen.texi: Mention the 'fopen' module.
67567         * doc/functions/freopen.texi: Mention the 'freopen' module.
67568
67569 2007-10-06  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/open-tests: New file.
67572         * tests/test-open.c: New file.
67573
67574         * modules/open: New file.
67575         * lib/open.c: New file.
67576         * m4/open.m4: New file.
67577         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67578         lib/open.c does.
67579         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67580         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67581         macros.
67582         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67583         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67584         REPLACE_OPEN.
67585         * doc/functions/open.texi: Mention the 'open' module.
67586
67587 2007-10-04  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/ceill-tests: New file.
67590         * tests/test-ceill.c: New file.
67591
67592         * modules/ceill: New file.
67593         * lib/ceill.c: Replace entire file.
67594         * m4/ceill.m4: New file.
67595         * lib/math.in.h (ceill): Replace declaration.
67596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67597         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67598         * doc/functions/ceill.texi: Mention the 'ceill' module.
67599         * modules/mathl (Files): Remove lib/ceill.c.
67600         (Depends-on): Add ceill.
67601
67602 2007-10-04  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/ceilf-tests: New file.
67605         * tests/test-ceilf.c: New file.
67606
67607         * modules/ceilf: New file.
67608         * lib/ceil.c: New file.
67609         * lib/ceilf.c: New file.
67610         * m4/ceilf.m4: New file.
67611         * lib/math.in.h (ceilf): New declaration.
67612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67613         HAVE_DECL_CEILF.
67614         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67615         HAVE_DECL_CEILF.
67616         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67617
67618 2007-10-04  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/floorl-tests: New file.
67621         * tests/test-floorl.c: New file.
67622
67623         * modules/floorl: New file.
67624         * lib/floorl.c: Replace entire file.
67625         * m4/floorl.m4: New file.
67626         * lib/math.in.h (floorl): Replace declaration.
67627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67628         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67629         * doc/functions/floorl.texi: Mention the 'floorl' module.
67630         * modules/mathl (Files): Remove lib/floorl.c.
67631         (Depends-on): Add floorl.
67632
67633 2007-10-04  Bruno Haible  <bruno@clisp.org>
67634
67635         * modules/floorf-tests: New file.
67636         * tests/test-floorf.c: New file.
67637
67638         * modules/floorf: New file.
67639         * lib/floor.c: New file.
67640         * lib/floorf.c: New file.
67641         * m4/floorf.m4: New file.
67642         * lib/math.in.h (floorf): New declaration.
67643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67644         HAVE_DECL_FLOORF.
67645         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67646         HAVE_DECL_FLOORF.
67647         * doc/functions/floorf.texi: Mention the 'floorf' module.
67648
67649 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67650             Bruno Haible  <bruno@clisp.org>
67651
67652         Advertise for the Git server instead of the CVS server.
67653         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67654         repository instead of the CVS one.
67655         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67656         about all VCS systems generically.
67657         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67658
67659 2007-10-04  Bruno Haible  <bruno@clisp.org>
67660
67661         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67662         means.
67663         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67664
67665 2007-10-04  Bruno Haible  <bruno@clisp.org>
67666
67667         * modules/truncl-tests: New file.
67668         * tests/test-truncl.c: New file.
67669
67670         * modules/truncl: New file.
67671         * lib/truncl.c: New file.
67672         * m4/truncl.m4: New file.
67673         * lib/math.in.h (truncl): New declaration.
67674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67675         HAVE_DECL_TRUNCL.
67676         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67677         HAVE_DECL_TRUNCL.
67678         * doc/functions/truncl.texi: Mention the 'truncl' module.
67679
67680 2007-10-04  Bruno Haible  <bruno@clisp.org>
67681
67682         * modules/truncf-tests: New file.
67683         * tests/test-truncf.c: New file.
67684
67685         * modules/truncf: New file.
67686         * lib/trunc.c: Make paramerizable through USE_* macros.
67687         * lib/truncf.c: New file.
67688         * m4/truncf.m4: New file.
67689         * lib/math.in.h (truncf): New declaration.
67690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67691         HAVE_DECL_TRUNCF.
67692         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67693         HAVE_DECL_TRUNCF.
67694         * doc/functions/truncf.texi: Mention the 'truncf' module.
67695
67696 2007-10-03  Bruno Haible  <bruno@clisp.org>
67697
67698         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67699         augmentation also for tests modules.
67700         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67701         * modules/atexit-tests (Makefile.am): Likewise.
67702         * modules/binary-io-tests (Makefile.am): Likewise.
67703         * modules/c-strcase-tests (Makefile.am): Likewise.
67704         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67705         * modules/canonicalize-tests (Makefile.am): Likewise.
67706         * modules/closein-tests (Makefile.am): Likewise.
67707         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67708         * modules/freadahead-tests (Makefile.am): Likewise.
67709         * modules/fseek-tests (Makefile.am): Likewise.
67710         * modules/fseeko-tests (Makefile.am): Likewise.
67711         * modules/ftell-tests (Makefile.am): Likewise.
67712         * modules/ftello-tests (Makefile.am): Likewise.
67713         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67714         * modules/isnanl-tests (Makefile.am): Likewise.
67715         * modules/lseek-tests (Makefile.am): Likewise.
67716         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67717         * modules/mbscasestr-tests (Makefile.am): Likewise.
67718         * modules/mbschr-tests (Makefile.am): Likewise.
67719         * modules/mbscspn-tests (Makefile.am): Likewise.
67720         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67721         * modules/mbspbrk-tests (Makefile.am): Likewise.
67722         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67723         * modules/mbsrchr-tests (Makefile.am): Likewise.
67724         * modules/mbsspn-tests (Makefile.am): Likewise.
67725         * modules/mbsstr-tests (Makefile.am): Likewise.
67726         * modules/printf-posix-tests (Makefile.am): Likewise.
67727         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67728         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67729         * modules/tsearch-tests (Makefile.am): Likewise.
67730         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67731         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67732         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67733         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67734         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67735         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67736         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67737         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67738         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67739         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67740         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67741         * modules/xstrtol-tests (Makefile.am): Likewise.
67742         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67743         * modules/yesno-tests (Makefile.am): Likewise.
67744
67745 2007-10-03  Bruno Haible  <bruno@clisp.org>
67746
67747         * modules/trunc-tests: New file.
67748         * tests/test-trunc.c: New file.
67749
67750         * modules/trunc: New file.
67751         * lib/trunc.c: New file.
67752         * m4/trunc.m4: New file.
67753         * lib/math.in.h (trunc): New declaration.
67754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67755         HAVE_DECL_TRUNC.
67756         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67757         HAVE_DECL_TRUNC.
67758         * doc/functions/trunc.texi: Mention the 'trunc' module.
67759
67760 2007-10-03  Bruno Haible  <bruno@clisp.org>
67761
67762         * tests/test-fpending.c: New file, mostly copied
67763         from coreutils/lib/t-fpending.c.
67764         * modules/fpending-tests: New file.
67765
67766 2007-10-03  Bruno Haible  <bruno@clisp.org>
67767
67768         Port the stdio extensions to QNX (untested).
67769         * lib/fseterr.c (fseterr): Add support for QNX.
67770         * lib/fbufmode.c (fbufmode): Likewise.
67771         * lib/freadable.c (freadable): Likewise.
67772         * lib/fwritable.c (fwritable): Likewise.
67773         * lib/freading.c (freading): Likewise.
67774         * lib/fwriting.c (fwriting): Likewise.
67775         * lib/freadahead.c (freadahed): Likewise.
67776         * lib/fpurge.c (fpurge): Likewise.
67777         * lib/fseeko.c (rpl_fseeko): Likewise.
67778
67779 2007-10-03  Bruno Haible  <bruno@clisp.org>
67780             Jim Meyering  <jim@meyering.net>
67781             Eric Blake  <ebb9@byu.net>
67782
67783         * doc/relocatable.texi: Use @command instead of @program.
67784
67785 2007-10-02  Jim Meyering  <jim@meyering.net>
67786
67787         Perform one more "_.h" -> ".in.h" substitution.
67788         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67789         instead of unistd_.h here, too.
67790
67791 2007-10-01  Bruno Haible  <bruno@clisp.org>
67792
67793         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67794         Needed for the alloca-opt module.
67795
67796 2007-09-30  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67799         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67800         alloca_.h.
67801         * lib/argz.in.h: Renamed from lib/argz_.h.
67802         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67803         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67804         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67805         byteswap_.h.
67806         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67807         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67808         dirent_.h.
67809         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67810         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67811         fcntl_.h.
67812         * lib/float.in.h: Renamed from lib/float_.h.
67813         * modules/float (Files, Makefile.am): Use float.in.h instead of
67814         float_.h.
67815         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67816         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67817         fnmatch_.h.
67818         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67819         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67820         getopt_.h.
67821         * lib/glob.in.h: Renamed from lib/glob_.h.
67822         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67823         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67824         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67825         iconv_.h.
67826         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67827         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67828         inttypes_.h.
67829         * lib/locale.in.h: Renamed from lib/locale_.h.
67830         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67831         locale_.h.
67832         * lib/math.in.h: Renamed from lib/math_.h.
67833         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67834         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67835         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67836         of netinet_in_.h. Add dependency.
67837         * lib/poll.in.h: Renamed from lib/poll_.h.
67838         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67839         * lib/search.in.h: Renamed from lib/search_.h.
67840         * modules/search (Files, Makefile.am): Use search.in.h instead of
67841         search_.h.
67842         * lib/signal.in.h: Renamed from lib/signal_.h.
67843         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67844         _signal.h.
67845         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67846         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67847         stdbool_.h.
67848         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67849         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67850         stdint_.h.
67851         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67852         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67853         stdio_.h.
67854         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67855         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67856         stdlib_.h.
67857         * lib/string.in.h: Renamed from lib/string_.h.
67858         * modules/string (Files, Makefile.am): Use string.in.h instead of
67859         string_.h.
67860         * doc/gnulib-tool.texi (Initial import): Update.
67861         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67862         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67863         of sys_select_.h. Add dependency.
67864         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67865         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67866         of sys_socket_.h.
67867         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67868         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67869         sys_stat_.h.
67870         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67871         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67872         sys_time_.h.
67873         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67874         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67875         sysexits_.h.
67876         * lib/time.in.h: Renamed from lib/time_.h.
67877         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67878         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67879         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67880         unistd_.h.
67881         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67882         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67883         wchar_.h.
67884         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67885         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67886         wctype_.h.
67887         * build-aux/bootstrap (slurp): Update.
67888         * lib/.cppi-disable: Update.
67889
67890 2007-09-30  Bruno Haible  <bruno@clisp.org>
67891
67892         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67893         Needed on BeOS.
67894
67895 2007-09-30  Bruno Haible  <bruno@clisp.org>
67896
67897         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67898
67899 2007-09-29  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67902
67903 2007-09-29  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67906         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67907         * build-aux/install-reloc: Compile also areadlink.c.
67908         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67909
67910 2007-09-29  Bruno Haible  <bruno@clisp.org>
67911
67912         * gnulib-tool (func_emit_initmacro_done): Indentation.
67913
67914 2007-09-29  Bruno Haible  <bruno@clisp.org>
67915
67916         * README: Add CVS checkout update instructions.
67917         Info from Bob Proulx <bob@proulx.com>.
67918
67919 2007-09-28  Eric Blake  <ebb9@byu.net>
67920
67921         Provide move-if-change.
67922         * build-aux/move-if-change: New file, based on best practice
67923         rather than any canonical upstream location.
67924
67925 2007-09-28  Jim Meyering  <jim@meyering.net>
67926
67927         Fix canonicalize loop-detection corner case.
67928         Do not attempt to stat the symlink values stored via seen_triple.
67929         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67930         on linux-2.6.18, (but not 2.6.22).
67931         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67932         triple_compare.  The former compares dev,ino,filename, while the latter
67933         would actually stat dirname(filename) when dev and ino were equal.
67934         * lib/hash-triple.c: Install <string.h>.
67935         (STREQ): Define.
67936         (triple_compare_ino_str): New function.
67937         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67938
67939 2007-09-28  Eric Blake  <ebb9@byu.net>
67940
67941         Enforce that AC_REPLACE_FUNCS files exist.
67942         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67943         override check for typos.
67944
67945         Fix test-closein on Solaris 10.
67946         * tests/test-closein.c (main): Don't assume stdin can be inherited
67947         closed on all systems.
67948         * tests/test-closein.sh: Likewise.
67949         Reported by Piotr Tarnowski.
67950
67951 2007-09-28  Jim Meyering  <jim@meyering.net>
67952
67953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67954
67955 2007-09-27  Jim Meyering  <jim@meyering.net>
67956
67957         canonicalize: Avoid a false-positive cycle failure.
67958         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67959         Sort.  Remove cycle-check.
67960         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67961         not cycle-check.h.
67962         (seen_triple): New function.
67963         (canonicalize_filename_mode): Use it instead of cycle-check.
67964         * tests/test-canonicalize.c: Add a test for this bug.
67965         * tests/test-canonicalize.sh: Set up and run the test.
67966
67967         New module, file-set, from coreutils.
67968         * modules/file-set: Define it.
67969         * lib/file-set.c, lib/file-set.h: Implement.
67970
67971         New module, hash-triple, from coreutils.
67972         * modules/hash-triple: Define it.
67973         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67974
67975 2007-09-25  Eric Blake  <ebb9@byu.net>
67976
67977         Fix strerror on Interix.
67978         * lib/string_.h (strerror): Declare replacement.
67979         * doc/functions/strerror.texi (strerror): Document the Interix
67980         shortcoming.
67981         * modules/string (Makefile.am): Support new hooks.
67982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67983         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67984         gl_FUNC_STRERROR_SEPARATE.
67985         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67986         * lib/strerror.c (rpl_strerror): Provide replacement.
67987         * modules/strerror (Depends-on): Add string.
67988         (configure.ac): Detect use of module.
67989         * tests/test-strerror.c: New file.
67990         * modules/strerror-tests: New test module.
67991         * modules/argp (Depends-on): Add strerror.
67992         * modules/error (Depends-on): Likewise.
67993         Reported by Martin Koeppe.
67994
67995 2007-09-24  Bruno Haible  <bruno@clisp.org>
67996
67997         * README: Update git instructions.
67998
67999 2007-09-24  Eric Blake  <ebb9@byu.net>
68000
68001         Revert fpending breakage from 2007-09-08.
68002         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68003         __fpending.c.
68004
68005 2007-09-24  Jim Meyering  <jim@meyering.net>
68006
68007         filenamecat.c: Add a test.
68008         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68009         showing how the function works when DIR is the empty string.
68010
68011 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68012
68013         * tests/test-canonicalize.sh: Turn on executable bit.
68014
68015 2007-09-19  Eric Blake  <ebb9@byu.net>
68016
68017         * README: Update CVS instructions.
68018
68019 2007-09-18  Bruno Haible  <bruno@clisp.org>
68020
68021         * modules/areadlink: New file.
68022         * lib/areadlink.h (areadlink): New declaration.
68023         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68024
68025 2007-09-17  Jim Meyering  <jim@meyering.net>
68026
68027         * lib/savewd.c (ESTALE) [!defined]: Define.
68028         Reported to be required on Interix by Martin Koeppe.
68029
68030 2007-09-17  Bruno Haible  <bruno@clisp.org>
68031
68032         * gnulib-tool (func_version): Use $version.
68033
68034 2007-09-16  Bruno Haible  <bruno@clisp.org>
68035
68036         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68037         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68038         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68039         Reported by Greg Schafer <gschafer@zip.com.au>.
68040
68041 2007-09-15  Bruno Haible  <bruno@clisp.org>
68042
68043         * gnulib-tool (sed): Try a little harder to make bash understand the
68044         alias.
68045         Reported by Bruce Korb <bruce.korb@gmail.com>.
68046
68047 2007-09-13  Eric Blake  <ebb9@byu.net>
68048
68049         * ChangeLog: Remove conflict markers.
68050
68051 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68052
68053         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68054         Reported by Bruno Haible <bruno@clisp.org>.
68055
68056 2007-09-12  Bruno Haible  <bruno@clisp.org>
68057
68058         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68059         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68060         is not defined.
68061
68062 2007-09-12  Eric Blake  <ebb9@byu.net>
68063
68064         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68066         Autoconf definition.
68067         * modules/euidaccess (Depends-on): Add extensions, for
68068         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68069         * modules/fnmatch (Depends-on): Likewise.
68070         * modules/getaddrinfo (Depends-on): Likewise.
68071         * modules/getdelim (Depends-on): Likewise.
68072         * modules/getline (Depends-on): Likewise.
68073         * modules/getsubopt (Depends-on): Likewise.
68074         * modules/gettext (Depends-on): Likewise.
68075         * modules/group-member (Depends-on): Likewise.
68076         * modules/mbchar (Depends-on): Likewise.
68077         * modules/memmem (Depends-on): Likewise.
68078         * modules/mempcpy (Depends-on): Likewise.
68079         * modules/memrchr (Depends-on): Likewise.
68080         * modules/pagealign_alloc (Depends-on): Likewise.
68081         * modules/readutmp (Depends-on): Likewise.
68082         * modules/stpcpy (Depends-on): Likewise.
68083         * modules/stpncpy (Depends-on): Likewise.
68084         * modules/strchrnul (Depends-on): Likewise.
68085         * modules/strndup (Depends-on): Likewise.
68086         * modules/strsep (Depends-on): Likewise.
68087         * modules/strverscmp (Depends-on): Likewise.
68088         * modules/vasprintf (Depends-on): Likewise.
68089         * modules/wcwidth (Depends-on): Likewise.
68090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68091         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68092         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68093         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68094         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68095         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68096         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68097         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68098         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68099         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68100         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68101         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68102         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68103         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68104         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68105         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68106         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68107         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68109         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68110         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68111         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68112         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68113         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68114         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68116         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68117         so that lock.m4 can be used in gettext without extensions module.
68118
68119 2007-09-11  Bruno Haible  <bruno@clisp.org>
68120
68121         * m4/isc-posix.m4: Remove file.
68122         Suggested by Eric Blake.
68123
68124 2007-09-11  Eric Blake  <ebb9@byu.net>
68125
68126         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68127
68128 2007-09-10  Bruno Haible  <bruno@clisp.org>
68129
68130         * posix-modules: Fix typo in error message.
68131         Reported by Matt <mkraai@beckman.com>.
68132
68133 2007-09-09  Bruno Haible  <bruno@clisp.org>
68134
68135         * doc/functions/getdelim.texi: Update list of platforms lacking the
68136         function.
68137         * doc/functions/getline.texi: Likewise.
68138
68139 2007-09-09  Jim Meyering  <jim@meyering.net>
68140
68141         * lib/hash.c (hash_initialize): Detect calloc failure.
68142         Reported by Bruno Haible.
68143
68144 2007-09-09  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68147         malloc or realloc fails.
68148
68149 2007-09-09  Bruno Haible  <bruno@clisp.org>
68150
68151         * modules/getcwd (Depends-on): Add malloc-posix.
68152         * modules/glob (Depends-on): Likewise.
68153         * modules/putenv (Depends-on): Likewise.
68154         * modules/strdup (Depends-on): Likewise.
68155         * modules/getdelim (Depends-on): Add realloc-posix.
68156         * modules/read-file (Depends-on): Likewise.
68157
68158 2007-09-09  Bruno Haible  <bruno@clisp.org>
68159
68160         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68161         (gl_FUNC_MALLOC_POSIX): Require it.
68162         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68163         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68164         * modules/realloc (Files): Add m4/malloc.m4.
68165         * modules/calloc (Files): Likewise.
68166
68167 2007-09-09  Bruno Haible  <bruno@clisp.org>
68168
68169         * modules/malloc-posix: New file.
68170         * modules/malloc (Depends-on): Add malloc-posix.
68171         * lib/malloc.c: Include errno.h.
68172         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68173         and a POSIX-compatible malloc into a single function. Set ENOMEM
68174         when returning NULL.
68175         * m4/malloc.m4: New file.
68176         * doc/functions/malloc.texi: Mention the malloc-posix module.
68177         * lib/stdlib_.h (malloc): New declaration.
68178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68179         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68180         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68181         and HAVE_MALLOC_POSIX.
68182
68183 2007-09-09  Bruno Haible  <bruno@clisp.org>
68184
68185         * modules/realloc-posix: New file.
68186         * modules/realloc (Depends-on): Add realloc-posix.
68187         * lib/realloc.c: Include errno.h.
68188         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68189         and a POSIX-compatible realloc into a single function. Set ENOMEM
68190         when returning NULL.
68191         * m4/realloc.m4: New file.
68192         * doc/functions/realloc.texi: Mention the realloc-posix module.
68193         * lib/stdlib_.h (realloc): New declaration.
68194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68195         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68196         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68197         and HAVE_REALLOC_POSIX.
68198
68199 2007-09-09  Bruno Haible  <bruno@clisp.org>
68200
68201         * modules/calloc-posix: New file.
68202         * modules/calloc (Depends-on): Add calloc-posix.
68203         * lib/calloc.c: Include errno.h.
68204         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68205         and a POSIX-compatible calloc into a single function. Set ENOMEM
68206         when returning NULL.
68207         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68208         * doc/functions/calloc.texi: Mention the calloc-posix module.
68209         * lib/stdlib_.h (calloc): New declaration.
68210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68211         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68212         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68213         and HAVE_CALLOC_POSIX.
68214
68215 2007-09-09  Bruno Haible  <bruno@clisp.org>
68216
68217         Allow for modules to show an arbitrary notice.
68218         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68219         * gnulib-tool: New option --extract-notice.
68220         (func_usage): Document it.
68221         (sed_extract_prog): Update.
68222         (func_get_notice): New function.
68223         (func_modules_notice): New function.
68224         (func_import, func_create_testdir): Invoke it.
68225         Suggested by Jim Meyering.
68226
68227 2007-09-09  Bruno Haible  <bruno@clisp.org>
68228
68229         * gnulib-tool: New options --verbose, --quiet.
68230         (func_usage): Document them.
68231         (verbose): New variable.
68232         (func_execute_command): New function.
68233         (func_import): Don't show the module list and the file list if
68234         $verbose < 0.
68235         (func_create_testdir): Likewise. Use func_execute_command.
68236         (func_create_megatestdir): Use func_execute_command.
68237
68238 2007-09-08  Bruno Haible  <bruno@clisp.org>
68239
68240         * gnulib-tool (func_import): Prefer rsync over wget when available,
68241         for fetching the PO files.
68242
68243 2007-09-08  Bruno Haible  <bruno@clisp.org>
68244
68245         * posix-modules: New file. Portions copied from gnulib-tool.
68246         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68247
68248 2007-09-08  Jim Meyering  <jim@meyering.net>
68249
68250         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68251         * lib/fpending.h: Rename from __fpending.h.
68252         * lib/fpending.c: Rename from __fpending.c.
68253         Include "fpending.h", not "__fpending.h".
68254         * lib/__fpending.h, lib/__fpending.c: Remove files.
68255         * modules/fpending (Files): Reflect new file names.
68256         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68257
68258 2007-09-08  Bruno Haible  <bruno@clisp.org>
68259
68260         * m4/inttypes-h.m4: Remove stub file.
68261
68262 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68263
68264         * doc/headers/stdint.texi: Discuss #include_next issue.
68265
68266 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68269
68270 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68271
68272         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68273         in variable name.
68274
68275 2007-09-03  Jim Meyering  <jim@meyering.net>
68276
68277         New module: git-version-gen.
68278         * modules/git-version-gen: New file.
68279
68280         Import changes from coreutils for bootstrap script.
68281
68282         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68283
68284         bootstrap: uses rsync to download the .po files
68285         * build-aux/bootstrap (po_download_command_format): New global.
68286         (download_po_files): Use rsync.
68287         (update_po_files): Don't remove .po files after download,
68288         so future rsync runs can take advantage of the copies.
68289
68290         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68291
68292         Solve the unnecessary-.po-file-regeneration problem once and for all.
68293         * build-aux/bootstrap (download_po_files): New function, renamed from
68294         get_translations.  Now, downloads, but doesn't update LINGUAS.
68295         (update_po_files): New function.
68296
68297         bootstrap: Ignore more.
68298         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68299         uniwidth to e.g., lib/.gitignore.
68300         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68301
68302         * build-aux/bootstrap: New setting: vc_ignore.
68303         (insert_sorted_if_absent): Create $file if absent.
68304         Adapt to new, possibly empty, list: $vc_ignore.
68305
68306         bootstrap: generate more ignorable names
68307         * build-aux/bootstrap (slurp): When generating ignorable names,
68308         also map .sin to .sed, .gperf to .c, and .y to .c.
68309
68310 2007-09-03  Jim Meyering  <jim@meyering.net>
68311
68312         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68313         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68314
68315 2007-09-02  Bruno Haible  <bruno@clisp.org>
68316
68317         Fix mis-recognition of 'mcs' on QNX 6.
68318         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68319         output contains the string "Mono".
68320         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68321         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68322
68323 2007-09-01  Bruno Haible  <bruno@clisp.org>
68324
68325         Fix collision between uniwidth/* and linebreak modules.
68326         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68327         u32_width): Remove declarations.
68328         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68329         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68330         streq3, streq2, streq1, streq0): Remove functions.
68331         (STREQ): Remove macro.
68332         (is_cjk_encoding): Remove function.
68333         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68334         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68335         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68336         * NEWS: Document the change.
68337
68338 2007-09-01  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/streq.h: Add double-inclusion guard.
68341
68342 2007-09-01  Karl Berry  <karl@gnu.org>
68343
68344         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68345
68346 2007-08-28  Jim Meyering  <jim@meyering.net>
68347
68348         Rename mreadlink_with_size to areadlink_with_size.
68349         * NEWS: Document the change.
68350         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68351         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68352         * lib/mreadlink.h: Rename this to...
68353         * lib/areadlink.h: ...this.
68354         * modules/mreadlink-with-size: Rename this to...
68355         * modules/areadlink-with-size: ...this.
68356         * lib/canonicalize.c: Reflect the renaming.
68357         * modules/canonicalize: Likewise.
68358
68359 2007-08-26  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool (func_import): When deciding which files to remove,
68362         consider also dangling symbolic links.
68363         Reported by Eric Blake.
68364
68365 2007-08-26  Bruno Haible  <bruno@clisp.org>
68366
68367         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68368
68369 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68370
68371         * lib/readline.c: Don't include getline.h, the prototype is now
68372         found in stdio.h.
68373
68374 2007-08-23  Jim Meyering  <jim@meyering.net>
68375
68376         Getdelim touchup.
68377         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68378         around the funlockfile call, since funlockfile never sets errno.
68379         Don't set errno upon failed realloc.
68380
68381 2007-08-22  Eric Blake  <ebb9@byu.net>
68382
68383         Getline touchups.
68384         * lib/getdelim.c (getdelim): Revert regression that required *n to
68385         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68386         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68387         getdelim, rather than whether implementation is missing.
68388         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68389         * lib/stdio_.h (getline): Also declare if replacement is
68390         required.
68391         * doc/functions/getdelim.texi: New file.
68392         * doc/functions/getline.texi: Likewise.
68393         * doc/gnulib.texi (Function Substitutes): Add new files.
68394         Reported by Bruno Haible.
68395
68396 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68397
68398         * users.txt: Add Guile.
68399
68400 2007-08-22  Eric Blake  <ebb9@byu.net>
68401
68402         * tests/test-getdelim.c (main): Use remove, not unlink.
68403         * tests/test-getline.c (main): Likewise.
68404
68405         Move getline and getdelim into stdio.h, per POSIX 200x.
68406         * modules/getline (Files): Remove getline.h.
68407         (Depends-on): Add stdio.
68408         (configure.ac): Add module indicator.
68409         * modules/getdelim (Files): Remove getdelim.h.
68410         (Depends-on): Add stdio.
68411         (configure.ac): Add module indicator.
68412         * modules/stdio (Makefile.am): Work with new indicators.
68413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68414         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68415         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68416         * lib/getdelim.h: Delete.
68417         * lib/getline.h: Delete.
68418         * lib/stdio_.h (getdelim, getline): Declare.
68419         * modules/getdelim-tests: New module.
68420         * modules/getline-tests: Likewise.
68421         * tests/test-getdelim.c: New file.
68422         * tests/test-getline.c: Likewise.
68423         * NEWS: Document the change.
68424         * lib/getline.c: Update choice of header.
68425         * lib/csharpcomp.c: Likewise.
68426         * lib/getpass.c: Likewise.
68427         * lib/javacomp.c: Likewise.
68428         * lib/javaversion.c: Likewise.
68429         * lib/yesno.c: Likewise.
68430         * lib/getdelim.c: Likewise.
68431         (getdelim): Set errno on failure, and avoid memory leak.
68432
68433 2007-08-19  Bruno Haible  <bruno@clisp.org>
68434
68435         * modules/closein (Depends-on): Add freadahead.
68436         * lib/closein.c: Include freadahead.h.
68437         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68438         is zero.
68439
68440 2007-08-19  Bruno Haible  <bruno@clisp.org>
68441
68442         * modules/freadahead-tests: New file.
68443         * tests/test-freadahead.sh: New file.
68444         * tests/test-freadahead.c: New file.
68445
68446         * modules/freadahead: New file.
68447         * lib/freadahead.h: New file.
68448         * lib/freadahead.c: New file.
68449         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68450         fbufmode, fpurge, freadable, fwritable.
68451
68452 2007-08-19  Eric Blake  <ebb9@byu.net>
68453
68454         Test yesno in combination with closein.
68455         * lib/yesno.c (yesno): Document use of stdin.
68456         * modules/yesno-tests (Files): New module.
68457         * tests/test-yesno.c (main): New file.
68458         * tests/test-yesno.sh: Likewise.
68459
68460 2007-08-19  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68463         * lib/fseeko.c (rpl_fseeko): Likewise.
68464         * lib/fseterr.c (fseterr): Likewise.
68465
68466 2007-08-19  Bruno Haible  <bruno@clisp.org>
68467
68468         * tests/test-lseek.c (main): Disable a test for BeOS.
68469         * doc/functions/lseek.texi: Document the BeOS bug.
68470
68471 2007-08-19  Bruno Haible  <bruno@clisp.org>
68472             Eric Blake  <ebb9@byu.net>
68473
68474         * lib/lseek.c: Include <sys/stat.h>.
68475         (rpl_lseek): Add workaround code also for Unix platforms.
68476         Needed for BeOS.
68477         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68478         * doc/functions/lseek.texi: Document BeOS definiency.
68479
68480 2007-08-18  Bruno Haible  <bruno@clisp.org>
68481
68482         * modules/fstrcmp-tests: New file.
68483         * tests/test-fstrcmp.c: New file.
68484
68485 2007-08-18  Bruno Haible  <bruno@clisp.org>
68486
68487         * modules/fstrcmp: New file, from GNU gettext with modifications.
68488         * lib/fstrcmp.h: New file, from GNU gettext.
68489         * lib/fstrcmp.c: New file, from GNU gettext.
68490         * MODULES.html.sh (String handling): Add fstrcmp.
68491
68492 2007-08-18  Bruno Haible  <bruno@clisp.org>
68493
68494         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68495         'bool'.
68496         (diag, compareseq): Remove const from the ctxt argument.
68497         (USE_HEURISTIC): Undefine at the end.
68498
68499 2007-08-18  Jim Meyering  <jim@meyering.net>
68500
68501         New file: lib/idcache.h
68502         * NEWS: Mention the addition.
68503         * modules/idcache (Files): Add lib/idcache.h
68504         * lib/idcache.c: Include "idcache.h".
68505         Don't include <sys/types.h>.
68506         Add a FIXME comment.
68507         Move file-scoped "static" declarations to the top.
68508         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68509
68510 2007-08-17  Bruno Haible  <bruno@clisp.org>
68511         and Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         * MODULES.html.sh: Add diffseq.
68514         * modules/diffseq: New file.
68515         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68516         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68517
68518 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         Import changes from coreutils for bootstrap script.
68521
68522         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * build-aux/bootstrap (slurp): Work even in environments where
68525         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68526         current code does not slurp files whose names start with ".", and
68527         this looks like it might be a troublesome area.
68528
68529         2007-07-11  Jim Meyering  <jim@meyering.net>
68530
68531         If there's a GPL vN copyright comment, require that N == 3.
68532
68533         2007-07-08  Jim Meyering  <jim@meyering.net>
68534
68535         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68536         * build-aux/bootstrap (mam_template): Move definition out of loop.
68537
68538         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68539
68540         * build-aux/bootstrap (symlink_to_dir): Rename function from
68541         symlink_to_gnulib.  Add a directory parameter.  Update all
68542         callers.
68543         (cp_mark_as_generated): Also check for -- and link to -- files in
68544         gl/.
68545
68546         2007-07-08  Jim Meyering  <jim@meyering.net>
68547
68548         Adapt to deeper hierarchy in gnulib.
68549         * build-aux/bootstrap (symlink_to_dir): If the destination
68550         directory doesn't exist, create it. This is required at least for
68551         "lib/uniwidth/cjk.h".
68552
68553         2007-05-15  Jim Meyering  <jim@meyering.net>
68554
68555         * build-aux/bootstrap: Now that generated Makefile.am files
68556         are no longer under version control, they must be created at
68557         bootstrap time.
68558
68559 2007-08-14  Ben Pfaff  <blp@gnu.org>
68560
68561         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68562
68563 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68566         given the changes below.
68567         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68568         even on hosts that have padding bits beyond the supported 64.
68569
68570 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68573         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68574         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68575         depends on it.
68576         (xstrtol_error): Remove.
68577         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68578         but with a different signature.
68579         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68580         * lib/xstrtol-error.c: Include exitfail.h.
68581         (xstrtol_fatal): New function, with a different signature from the
68582         old xstrtol_error, so that the caller need not worry about passing
68583         in an exit status, or about storage management of the option argument.
68584         (xstrtol_error): Now a static function.  Redo signature to
68585         implement xstrtol_fatal.  Output the correct number of hyphens in
68586         front of the option so that the caller need not worry about
68587         storage management.
68588         (N_): New macro.
68589         (_): Remove; not used now.
68590         * modules/xstrtol: Depend on getopt.
68591         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68592         of old STRTOL_FATAL_ERROR macro.
68593         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68594         of test program.
68595         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68596         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68597
68598 2007-08-08  Eric Blake  <ebb9@byu.net>
68599
68600         * lib/xstrtol-error.c: Add missing include.
68601
68602         Move xstrtol messages into gnulib domain, when --pobase is used.
68603         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68604         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68605         * modules/xstrtol (Files): Distribute new file.
68606         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68607         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68608         * tests/test-xstrtol.c: ...into new file.
68609         * tests/test-xstrtoul.c: Also test xstrtoul.
68610         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68611         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68612         * tests/test-xstrtol.sh: Drive the tests.
68613         * tests/test-xstrtoimax.sh: Likewise.
68614         * tests/test-xstrtoumax.sh: Likewise.
68615         * modules/xstrtol-tests: New module.
68616         * modules/xstrtoimax-tests: Likewise.
68617         * modules/xstrtoumax-tests: Likewise.
68618
68619 2007-08-08  Jim Meyering  <jim@meyering.net>
68620
68621         New function: mfile_name_concat.
68622         * lib/filenamecat.c (mfile_name_concat): New function, just like
68623         file_name_concat, but return NULL upon failure rather than exiting
68624         with a diagnostic.
68625         * lib/filenamecat.h: Declare it.
68626
68627 2007-08-07  Bruno Haible  <bruno@clisp.org>
68628
68629         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68630         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68631         warning from gcc.
68632         Reported by Eric Blake.
68633
68634 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68635
68636         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68637         * modules/crypto/arcfour (License): Likewise.
68638         * modules/crypto/des-tests (License): Likewise.
68639         * modules/crypto/gc-arctwo-tests (License): Likewise.
68640         * modules/crypto/gc-des-tests (License): Likewise.
68641         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68642         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68643         * modules/crypto/gc-md2-tests (License): Likewise.
68644         * modules/crypto/gc-md4-tests (License): Likewise.
68645         * modules/crypto/gc-md5-tests (License): Likewise.
68646         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68647         * modules/crypto/gc-rijndael-tests (License): Likewise.
68648         * modules/crypto/gc-sha1-tests (License): Likewise.
68649         * modules/crypto/gc-tests (License): Likewise.
68650         * modules/crypto/hmac-md5 (License): Likewise.
68651         * modules/crypto/hmac-sha1 (License): Likewise.
68652         * modules/crypto/md2-tests (License): Likewise.
68653         * modules/crypto/md4-tests (License): Likewise.
68654         * modules/crypto/md5 (License): Likewise.
68655         * modules/crypto/rijndael (License): Likewise.
68656         * modules/crypto/sha1 (License): Likewise.
68657         * modules/memxor (License): Likewise.
68658
68659 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68660         and Bruno Haible  <bruno@clisp.org>
68661
68662         * NEWS: Describe interface changes to human, xstrtol.
68663         * lib/human.h: Include <xstrtol.h>.
68664         (human_options): Return enum strtol_error, not int.  Remove
68665         bool arg; take int * instead.
68666         * lib/human.c: Don't include "gettext.h".
68667         (_): Remove; no longer used.
68668         Don't include <xstrtol.h>, since human.h does it.
68669         (human_options): Adjust to abovementioned interface changes.
68670         Do not report error to stderr; that's now the caller's
68671         responsibility.
68672         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68673         interface change.
68674         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68675         Str, Argument_type_string.  All uses changed.  Put " argument"
68676         in diagnostics to make them clearer.  Change wording of suffix
68677         message for clarity.
68678         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68679         Argument_type_string.
68680         (STRTOL_FATAL_WARN): Remove; no longer used.
68681         * modules/human (Depends-on): Remove gettext-h.
68682
68683 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68684
68685         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68686
68687 2007-07-31  Bruno Haible  <bruno@clisp.org>
68688
68689         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68690         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68691         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68692
68693 2007-07-31  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68696         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68697
68698 2007-07-30  Bruno Haible  <bruno@clisp.org>
68699
68700         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68701         * modules/c-ctype (License): Likewise.
68702         * modules/c-strcase (License): Likewise.
68703         * modules/check-version (License): Likewise.
68704         * modules/iconv (License): Likewise.
68705         * modules/iconv_open (License): Likewise.
68706         * modules/read-file (License): Likewise.
68707         * modules/striconv (License): Likewise.
68708         * modules/strverscmp (License): Likewise.
68709         * modules/vasprintf (License): Likewise.
68710         * modules/crypto/des (License): Likewise.
68711         * modules/crypto/gc (License): Likewise.
68712         * modules/crypto/gc-arcfour (License): Likewise.
68713         * modules/crypto/gc-arctwo (License): Likewise.
68714         * modules/crypto/gc-des (License): Likewise.
68715         * modules/crypto/gc-hmac-md5 (License): Likewise.
68716         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68717         * modules/crypto/gc-md2 (License): Likewise.
68718         * modules/crypto/gc-md4 (License): Likewise.
68719         * modules/crypto/gc-md5 (License): Likewise.
68720         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68721         * modules/crypto/gc-random (License): Likewise.
68722         * modules/crypto/gc-rijndael (License): Likewise.
68723         * modules/crypto/gc-sha1 (License): Likewise.
68724         * modules/crypto/md2 (License): Likewise.
68725         * modules/crypto/md4 (License): Likewise.
68726
68727 2007-07-30  Jim Meyering  <jim@meyering.net>
68728
68729         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68730         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68731         it has valid stat data.  This bug would cause du not to count the
68732         sizes of inaccessible directories.
68733         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68734         in <http://bugzilla.redhat.com/250077>.
68735
68736 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68737             Bruno Haible  <bruno@clisp.org>
68738
68739         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68740         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68741         #include_next, gives a diagnostic about it, but reports no error in
68742         the exit code.
68743         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68744
68745 2007-07-24  Ben Pfaff  <blp@gnu.org>
68746
68747         Improve name: "count-one-bits" is better than "popcount".
68748         * MODULES.html.sh: Update name.
68749         * lib/popcount.h: Renamed lib/count-one-bits.h.
68750         (popcount): Renamed count_one_bits.
68751         (popcountl): Renamed count_one_bits_l.
68752         (popcountll): Renamed count_one_bits_ll.
68753         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68754         * modules/popcount: Renamed module/count-one-bits.
68755         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68756         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68757
68758 2007-07-23  Ben Pfaff  <blp@gnu.org>
68759
68760         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68761         better code generation, and add U to large constants to avoid
68762         warnings, in non-GCC case.
68763         Suggested by Bruno Haible.
68764
68765 2007-07-23  Ben Pfaff  <blp@gnu.org>
68766
68767         * lib/popcount.h: Use verify_true instead of if...abort.
68768         * modules/popcount: Depend on verify module.
68769         Suggested by Jim Meyering.
68770
68771 2007-07-23  Bruno Haible  <bruno@clisp.org>
68772
68773         * gnulib-tool (func_import): Create a .cvsignore file also when the
68774         directory is not yet in CVS but the toplevel directory is. When
68775         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68776         Reported by Karl Berry.
68777
68778 2007-07-22  Ben Pfaff  <blp@gnu.org>
68779
68780         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68781         case.
68782         Suggested by Eric Blake.
68783
68784 2007-07-22  Ben Pfaff  <blp@gnu.org>
68785
68786         New module: popcount.
68787         * MODULES.html.sh: Add popcount.
68788         * modules/popcount: New file.
68789         * modules/popcount-tests: New file.
68790         * tests/test-popcount.c: New file.
68791         * lib/popcount.h: New file.
68792         * m4/popcount.m4: New file.
68793
68794 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * build-aux/announce-gen: Update to GPLv3.
68797
68798         * build-aux/config.guess: Update from config.
68799
68800 2007-07-21  Bruno Haible  <bruno@clisp.org>
68801
68802         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68803         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68804
68805 2007-07-20  Jim Meyering  <jim@meyering.net>
68806
68807         * check-module: Diagnose a self-dependency.
68808
68809 2007-07-19  Bruno Haible  <bruno@clisp.org>
68810
68811         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68812         empty.
68813         Reported by Eric Blake.
68814
68815 2007-07-18  Bruno Haible  <bruno@clisp.org>
68816
68817         * gnulib-tool: New options --po-base, --po-domain.
68818         (func_usage): Document them.
68819         (pobase, po_domain): New variables.
68820         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68821         DEFAULT_TEXT_DOMAIN.
68822         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68823         (func_import): Consider pobase and po_domain. Create a po/ directory.
68824         (func_create_testdir): Set pobase and po_domain to empty.
68825         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68826         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68827
68828 2007-07-18  Bruno Haible  <bruno@clisp.org>
68829
68830         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68831         EXTRA_DIST augmentation for files in build-aux/.
68832
68833 2007-07-16  Bruno Haible  <bruno@clisp.org>
68834
68835         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68836         * modules/getdelim (License): Likewise.
68837
68838 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68839
68840         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68841         * modules/d-type (License): Likewise.
68842         * modules/extensions (License): Likewise.
68843         * modules/fnmatch (License): Likewise.
68844         * modules/fseeko (License): Likewise.
68845         * modules/getaddrinfo (License): Likewise.
68846         * modules/getline (License): Likewise.
68847         * modules/getlogin_r (License): Likewise.
68848         * modules/getpass (License): Likewise.
68849         * modules/gettimeofday (License): Likewise.
68850         * modules/glob (License): Likewise.
68851         * modules/inet_ntop (License): Likewise.
68852         * modules/malloc (License): Likewise.
68853         * modules/malloca (License): Likewise.
68854         * modules/memmem (License): Likewise.
68855         * modules/mempcpy (License): Likewise.
68856         * modules/memset (License): Likewise.
68857         * modules/minmax (License): Likewise.
68858         * modules/mktime (License): Likewise.
68859         * modules/netinet_in (License): Likewise.
68860         * modules/pathmax (License): Likewise.
68861         * modules/poll (License): Likewise.
68862         * modules/regex (License): Likewise.
68863         * modules/snprintf (License): Likewise.
68864         * modules/stdbool (License): Likewise.
68865         * modules/stdint (License): Likewise.
68866         * modules/stdio (License): Likewise.
68867         * modules/strcase (License): Likewise.
68868         * modules/strcasestr (License): Likewise.
68869         * modules/strdup (License): Likewise.
68870         * modules/string (License): Likewise.
68871         * modules/strndup (License): Likewise.
68872         * modules/strnlen (License): Likewise.
68873         * modules/strpbrk (License): Likewise.
68874         * modules/strptime (License): Likewise.
68875         * modules/strsep (License): Likewise.
68876         * modules/sys_select (License): Likewise.
68877         * modules/sys_socket (License): Likewise.
68878         * modules/sys_stat (License): Likewise.
68879         * modules/sys_time (License): Likewise.
68880         * modules/time (License): Likewise.
68881         * modules/time_r (License): Likewise.
68882         * modules/timegm (License): Likewise.
68883         * modules/unistd (License): Likewise.
68884         * modules/vsnprintf (License): Likewise.
68885         * modules/wctype (License): Likewise.
68886
68887 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68888
68889         * modules/argz (License): LGPLv2+.
68890
68891 2007-07-15  Karl Berry  <karl@gnu.org>
68892
68893         * doc/gnulib.texi: revise node structure per new fdl.texi.
68894
68895 2007-07-14  Bruno Haible  <bruno@clisp.org>
68896
68897         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68898         the output file.
68899         * lib/uniname/uninames.h: Regenerated.
68900
68901 2007-07-14  Karl Berry  <karl@gnu.org>
68902
68903         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68904         omitting sectioning and index commands.
68905
68906 2007-07-13  Bruno Haible  <bruno@clisp.org>
68907
68908         New gnulib-tool option --more-symlinks.
68909         * gnulib-tool (func_usage): Document --more-symlinks.
68910         (do_copyrights): New variable.
68911         Recognize option --more-symlinks.
68912         (func_import): Don't add a copyright notice transform to
68913         sed_transform_lib_file if do_copyrights is empty.
68914
68915 2007-07-13  Bruno Haible  <bruno@clisp.org>
68916
68917         * lib/vasnprintf.c (decimal_point_char): Define also if
68918         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68919         && !NEED_PRINTF_DIRECTIVE_A.
68920         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68921         Gary V. Vaughan <gary@gnu.org>.
68922
68923 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/inttypes_.h: Undo previous change, since it was fixed
68926         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68927
68928 2007-07-13  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68931         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68932
68933 2007-07-13  Jim Meyering  <jim@meyering.net>
68934
68935         df: Don't fail for Tru64's "file-on-file mount".
68936         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68937         so we fall through and use statfs instead.  Details here:
68938         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68939         Reported by Albert Chin.
68940
68941 2007-07-13  Bruno Haible  <bruno@clisp.org>
68942
68943         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68944         * modules/configmake (License): Likewise.
68945         * modules/gettext (License): Likewise.
68946         * modules/gettext-h (License): Likewise.
68947         * modules/include_next (License): Likewise.
68948         * modules/link-warning (License): Likewise.
68949         * modules/localcharset (License): Likewise.
68950         * modules/localename (License): Likewise.
68951         * modules/lock (License): Likewise.
68952         * modules/relocatable-lib-lgpl (License): Likewise.
68953         * modules/size_max (License): Likewise.
68954         * modules/vasnprintf (License): Likewise.
68955         * modules/wchar (License): Likewise.
68956         * modules/xsize (License): Likewise.
68957
68958 2007-07-13  Bruno Haible  <bruno@clisp.org>
68959
68960         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68961         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68962
68963 2007-07-12  Bruno Haible  <bruno@clisp.org>
68964
68965         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68966         in the modules files.
68967
68968 2007-07-11  Karl Berry  <karl@gnu.org>
68969
68970         * MODULES.html.sh (func_module): use
68971          sed -e '\|^'"${includefile}"'$|d'
68972          instead of /.../d, to avoid errors on $includefile's containing /.
68973
68974 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68975
68976         * gnulib-tool (func_import): Avoid duplication of --avoid
68977         statements
68978         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68979         names to `_' in variable names.
68980
68981 2007-07-10  Eric Blake  <ebb9@byu.net>
68982
68983         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68984         * NEWS: Document this change.
68985
68986 2007-07-08  Bruno Haible  <bruno@clisp.org>
68987
68988         Update to Unicode 5.0.
68989         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68990         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68991         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68992         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68993         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68994         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68995         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68996         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68997         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68998         U+10A3F, U+1D242..U+1D244.
68999         (nonspacing_table_ind): Update.
69000         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69001         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69002
69003 2007-07-08  Bruno Haible  <bruno@clisp.org>
69004
69005         Update to Unicode 5.0.
69006         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69007         code transform. Extend the name index field of unicode_name_to_code and
69008         unicode_code_to_name from 16 to 24 bits.
69009         * lib/uniname/uniname.c (unicode_character_name,
69010         unicode_name_character): Add the range 0x12xxx to the code transform.
69011         * lib/uniname/uninames.h: Regenerated.
69012         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69013
69014 2007-07-07  Bruno Haible  <bruno@clisp.org>
69015
69016         * modules/wcwidth-tests: New file.
69017         * tests/test-wcwidth.c: New file.
69018
69019         Work around MacOS X wcwidth() bug.
69020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69021         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69022         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69023         original wcwidth in non-UTF-8 locales.
69024         * modules/wcwidth (Depends-on): Add localcharset, streq,
69025         uniwidth/width.
69026         * doc/functions/wcwidth.texi: Update.
69027
69028 2007-07-07  Bruno Haible  <bruno@clisp.org>
69029
69030         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69031         (wcwidth): New declaration.
69032         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69033         macros.
69034         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69035         here. Prepare for creating <wchar.h> unconditionally.
69036         * modules/wchar (Depends-on): Add link-warning.
69037         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69038         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69039         * lib/wcwidth.h: Remove file.
69040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69041         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69042         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69043         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69044         (Include): Replace wcwidth.h with <wchar.h>.
69045         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69046         * lib/mbchar.h: Don't include wcwidth.h.
69047         * lib/mbswidth.c: Likewise.
69048         * NEWS: Mention the change.
69049
69050 2007-07-07  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69053         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69054         definition with an external declaration.
69055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69056         defined as a function. Remove AC_C_INLINE requirement.
69057         * modules/wcwidth (Files): Add lib/wcwidth.c.
69058         (Makefile.am): Remove redundant statement.
69059
69060 2007-07-07  Bruno Haible  <bruno@clisp.org>
69061
69062         * MODULES.html.sh (Unicode string functions): Add the new modules.
69063
69064         * tests/uniwidth/test-u32-strwidth.c: New file.
69065         * modules/uniwidth/u32-strwidth-tests: New file.
69066
69067         * lib/uniwidth/u32-strwidth.c: New file.
69068         * modules/uniwidth/u32-strwidth: New file.
69069
69070         * tests/uniwidth/test-u16-strwidth.c: New file.
69071         * modules/uniwidth/u16-strwidth-tests: New file.
69072
69073         * lib/uniwidth/u16-strwidth.c: New file.
69074         * modules/uniwidth/u16-strwidth: New file.
69075
69076         * tests/uniwidth/test-u8-strwidth.c: New file.
69077         * modules/uniwidth/u8-strwidth-tests: New file.
69078
69079         * lib/uniwidth/u8-strwidth.c: New file.
69080         * modules/uniwidth/u8-strwidth: New file.
69081
69082         * tests/uniwidth/test-u32-width.c: New file.
69083         * modules/uniwidth/u32-width-tests: New file.
69084
69085         * lib/uniwidth/u32-width.c: New file.
69086         * modules/uniwidth/u32-width: New file.
69087
69088         * tests/uniwidth/test-u16-width.c: New file.
69089         * modules/uniwidth/u16-width-tests: New file.
69090
69091         * lib/uniwidth/u16-width.c: New file.
69092         * modules/uniwidth/u16-width: New file.
69093
69094         * tests/uniwidth/test-u8-width.c: New file.
69095         * modules/uniwidth/u8-width-tests: New file.
69096
69097         * lib/uniwidth/u8-width.c: New file.
69098         * modules/uniwidth/u8-width: New file.
69099
69100         * tests/uniwidth/test-uc_width.c: New file.
69101         * modules/uniwidth/width-tests: New file.
69102
69103         * lib/uniwidth/width.c: New file, from GNU libiconv.
69104         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69105         * modules/uniwidth/width: New file.
69106
69107         * lib/uniwidth.h: New file, from GNU libiconv.
69108         * modules/uniwidth/base: New file.
69109
69110 2007-07-07  Bruno Haible  <bruno@clisp.org>
69111
69112         * lib/uniname.h: New file, from GNU gettext.
69113         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69114         * lib/uniname/uninames.h: New file, from GNU gettext.
69115         * lib/uniname/uniname.c: New file, from GNU gettext.
69116         * tests/uniname/test-uninames.sh: New file.
69117         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69118         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69119         * modules/uniname/base: New file.
69120         * modules/uniname/uniname: New file.
69121         * modules/uniname/uniname-tests: New file.
69122         * MODULES.html.sh (Unicode string functions): Add the new modules.
69123
69124 2007-07-06  Bruno Haible  <bruno@clisp.org>
69125
69126         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69127
69128 2007-07-06  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69131         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69132         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69133         include <sys/time.h>.
69134         Reported by Eric Blake.
69135
69136 2007-07-06  Eric Blake  <ebb9@byu.net>
69137
69138         Fix testing canonicalize on cygwin.
69139         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69140         Revert patch from 2007-06-19.
69141         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69142         canonicalize module is also in use.
69143         * tests/test-canonicalize.c: New file.
69144         * tests/test-canonicalize.sh: Likewise.
69145         * modules/canonicalize-tests: Likewise.
69146
69147 2007-07-06  Jim Meyering  <jim@meyering.net>
69148
69149         * lib/getugroups.c (getugroups): Detect getgrent failure.
69150         Adjust comment to reflect reality: this function may return -1.
69151
69152 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69153
69154         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69155         the new TP address.
69156         (usage): Fix typo
69157         (gnulib_mk): New variable.
69158
69159 2007-07-05  Jim Meyering  <jim@meyering.net>
69160
69161         Don't let endgrent clobber errno, no matter how improbable.
69162         * lib/getugroups.c (getugroups): Save and restore errno around
69163         endgrent call.
69164
69165         Close the group DB even when failing with 2^31 or more members.
69166         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69167
69168 2007-07-04  Jim Meyering  <jim@meyering.net>
69169
69170         * lib/getugroups.h: New file.
69171         * lib/getugroups.c: Include "getugroups.h".
69172         Remove uses of "register" keyword.
69173         Move local variable, "cp", down into scope where used.
69174         Give "username" parameter the "const" attribute.
69175         * modules/getugroups (Files): Add lib/getugroups.h
69176
69177 2007-07-04  Karl Berry  <karl@gnu.org>
69178
69179         * MODULES.html.sh (func_all_modules): Complete rename of
69180         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69181
69182 2007-07-02  Bruno Haible  <bruno@clisp.org>
69183
69184         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69185         mode, when inttypes.h comes from gnulib.
69186         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69187
69188 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69189
69190         * NEWS: Mention lgpl module name change.
69191
69192         * modules/lgpl-2.1: Renamed from lgpl.
69193
69194         * NEWS: Mention gpl module name change.
69195
69196         * modules/gpl-3.0: New file, based on gpl-2.0.
69197
69198         * modules/gpl-2.0: Renamed from gpl.
69199
69200         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69201         doc/gpl-2.0.texi.
69202
69203 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69206         #define __STDC_LIMIT_MACROS temporarily while including
69207         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69208         Problem reported by Joel E. Denny in
69209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69210
69211 2007-07-01  Bruno Haible  <bruno@clisp.org>
69212
69213         * lib/unistdio.h: New file.
69214         * lib/unistdio/u-asnprintf.h: New file.
69215         * lib/unistdio/u-asprintf.h: New file.
69216         * lib/unistdio/u-printf-args.c: New file.
69217         * lib/unistdio/u-printf-args.h: New file.
69218         * lib/unistdio/u-printf-parse.h: New file.
69219         * lib/unistdio/u-snprintf.h: New file.
69220         * lib/unistdio/u-sprintf.h: New file.
69221         * lib/unistdio/u-vasprintf.h: New file.
69222         * lib/unistdio/u-vsnprintf.h: New file.
69223         * lib/unistdio/u-vsprintf.h: New file.
69224         * lib/unistdio/ulc-asnprintf.c: New file.
69225         * lib/unistdio/ulc-asprintf.c: New file.
69226         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69227         * lib/unistdio/ulc-printf-parse.c: New file.
69228         * lib/unistdio/ulc-snprintf.c: New file.
69229         * lib/unistdio/ulc-sprintf.c: New file.
69230         * lib/unistdio/ulc-vasnprintf.c: New file.
69231         * lib/unistdio/ulc-vasprintf.c: New file.
69232         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69233         * lib/unistdio/ulc-vsnprintf.c: New file.
69234         * lib/unistdio/ulc-vsprintf.c: New file.
69235         * lib/unistdio/u8-asnprintf.c: New file.
69236         * lib/unistdio/u8-asprintf.c: New file.
69237         * lib/unistdio/u8-printf-parse.c: New file.
69238         * lib/unistdio/u8-snprintf.c: New file.
69239         * lib/unistdio/u8-sprintf.c: New file.
69240         * lib/unistdio/u8-vasnprintf.c: New file.
69241         * lib/unistdio/u8-vasprintf.c: New file.
69242         * lib/unistdio/u8-vsnprintf.c: New file.
69243         * lib/unistdio/u8-vsprintf.c: New file.
69244         * lib/unistdio/u8-u8-asnprintf.c: New file.
69245         * lib/unistdio/u8-u8-asprintf.c: New file.
69246         * lib/unistdio/u8-u8-snprintf.c: New file.
69247         * lib/unistdio/u8-u8-sprintf.c: New file.
69248         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69249         * lib/unistdio/u8-u8-vasprintf.c: New file.
69250         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69251         * lib/unistdio/u8-u8-vsprintf.c: New file.
69252         * lib/unistdio/u16-asnprintf.c: New file.
69253         * lib/unistdio/u16-asprintf.c: New file.
69254         * lib/unistdio/u16-printf-parse.c: New file.
69255         * lib/unistdio/u16-snprintf.c: New file.
69256         * lib/unistdio/u16-sprintf.c: New file.
69257         * lib/unistdio/u16-vasnprintf.c: New file.
69258         * lib/unistdio/u16-vasprintf.c: New file.
69259         * lib/unistdio/u16-vsnprintf.c: New file.
69260         * lib/unistdio/u16-vsprintf.c: New file.
69261         * lib/unistdio/u16-u16-asnprintf.c: New file.
69262         * lib/unistdio/u16-u16-asprintf.c: New file.
69263         * lib/unistdio/u16-u16-snprintf.c: New file.
69264         * lib/unistdio/u16-u16-sprintf.c: New file.
69265         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69266         * lib/unistdio/u16-u16-vasprintf.c: New file.
69267         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69268         * lib/unistdio/u16-u16-vsprintf.c: New file.
69269         * lib/unistdio/u32-asnprintf.c: New file.
69270         * lib/unistdio/u32-asprintf.c: New file.
69271         * lib/unistdio/u32-printf-parse.c: New file.
69272         * lib/unistdio/u32-snprintf.c: New file.
69273         * lib/unistdio/u32-sprintf.c: New file.
69274         * lib/unistdio/u32-vasnprintf.c: New file.
69275         * lib/unistdio/u32-vasprintf.c: New file.
69276         * lib/unistdio/u32-vsnprintf.c: New file.
69277         * lib/unistdio/u32-vsprintf.c: New file.
69278         * lib/unistdio/u32-u32-asnprintf.c: New file.
69279         * lib/unistdio/u32-u32-asprintf.c: New file.
69280         * lib/unistdio/u32-u32-snprintf.c: New file.
69281         * lib/unistdio/u32-u32-sprintf.c: New file.
69282         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69283         * lib/unistdio/u32-u32-vasprintf.c: New file.
69284         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69285         * lib/unistdio/u32-u32-vsprintf.c: New file.
69286         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69287         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69288         * tests/unistdio/test-ulc-printf1.h: New file.
69289         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69290         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69291         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69292         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69293         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69294         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69295         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69296         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69297         * tests/unistdio/test-u8-asnprintf1.c: New file.
69298         * tests/unistdio/test-u8-asnprintf1.h: New file.
69299         * tests/unistdio/test-u8-printf1.h: New file.
69300         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69301         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69302         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69303         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69304         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69305         * tests/unistdio/test-u8-vasprintf1.c: New file.
69306         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69307         * tests/unistdio/test-u8-vsprintf1.c: New file.
69308         * tests/unistdio/test-u16-asnprintf1.c: New file.
69309         * tests/unistdio/test-u16-asnprintf1.h: New file.
69310         * tests/unistdio/test-u16-printf1.h: New file.
69311         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69312         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69313         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69314         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69315         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69316         * tests/unistdio/test-u16-vasprintf1.c: New file.
69317         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69318         * tests/unistdio/test-u16-vsprintf1.c: New file.
69319         * tests/unistdio/test-u32-asnprintf1.c: New file.
69320         * tests/unistdio/test-u32-asnprintf1.h: New file.
69321         * tests/unistdio/test-u32-printf1.h: New file.
69322         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69323         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69324         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69325         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69326         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69327         * tests/unistdio/test-u32-vasprintf1.c: New file.
69328         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69329         * tests/unistdio/test-u32-vsprintf1.c: New file.
69330         * modules/unistdio/base: New file.
69331         * modules/unistdio/u-printf-args: New file.
69332         * modules/unistdio/ulc-asnprintf: New file.
69333         * modules/unistdio/ulc-asprintf: New file.
69334         * modules/unistdio/ulc-fprintf: New file.
69335         * modules/unistdio/ulc-printf-parse: New file.
69336         * modules/unistdio/ulc-snprintf: New file.
69337         * modules/unistdio/ulc-sprintf: New file.
69338         * modules/unistdio/ulc-vasnprintf: New file.
69339         * modules/unistdio/ulc-vasprintf: New file.
69340         * modules/unistdio/ulc-vfprintf: New file.
69341         * modules/unistdio/ulc-vsnprintf: New file.
69342         * modules/unistdio/ulc-vsprintf: New file.
69343         * modules/unistdio/u8-asnprintf: New file.
69344         * modules/unistdio/u8-asprintf: New file.
69345         * modules/unistdio/u8-printf-parse: New file.
69346         * modules/unistdio/u8-snprintf: New file.
69347         * modules/unistdio/u8-sprintf: New file.
69348         * modules/unistdio/u8-vasnprintf: New file.
69349         * modules/unistdio/u8-vasprintf: New file.
69350         * modules/unistdio/u8-vsnprintf: New file.
69351         * modules/unistdio/u8-vsprintf: New file.
69352         * modules/unistdio/u8-u8-asnprintf: New file.
69353         * modules/unistdio/u8-u8-asprintf: New file.
69354         * modules/unistdio/u8-u8-snprintf: New file.
69355         * modules/unistdio/u8-u8-sprintf: New file.
69356         * modules/unistdio/u8-u8-vasnprintf: New file.
69357         * modules/unistdio/u8-u8-vasprintf: New file.
69358         * modules/unistdio/u8-u8-vsnprintf: New file.
69359         * modules/unistdio/u8-u8-vsprintf: New file.
69360         * modules/unistdio/u16-asnprintf: New file.
69361         * modules/unistdio/u16-asprintf: New file.
69362         * modules/unistdio/u16-printf-parse: New file.
69363         * modules/unistdio/u16-snprintf: New file.
69364         * modules/unistdio/u16-sprintf: New file.
69365         * modules/unistdio/u16-vasnprintf: New file.
69366         * modules/unistdio/u16-vasprintf: New file.
69367         * modules/unistdio/u16-vsnprintf: New file.
69368         * modules/unistdio/u16-vsprintf: New file.
69369         * modules/unistdio/u16-u16-asnprintf: New file.
69370         * modules/unistdio/u16-u16-asprintf: New file.
69371         * modules/unistdio/u16-u16-snprintf: New file.
69372         * modules/unistdio/u16-u16-sprintf: New file.
69373         * modules/unistdio/u16-u16-vasnprintf: New file.
69374         * modules/unistdio/u16-u16-vasprintf: New file.
69375         * modules/unistdio/u16-u16-vsnprintf: New file.
69376         * modules/unistdio/u16-u16-vsprintf: New file.
69377         * modules/unistdio/u32-asnprintf: New file.
69378         * modules/unistdio/u32-asprintf: New file.
69379         * modules/unistdio/u32-printf-parse: New file.
69380         * modules/unistdio/u32-snprintf: New file.
69381         * modules/unistdio/u32-sprintf: New file.
69382         * modules/unistdio/u32-vasnprintf: New file.
69383         * modules/unistdio/u32-vasprintf: New file.
69384         * modules/unistdio/u32-vsnprintf: New file.
69385         * modules/unistdio/u32-vsprintf: New file.
69386         * modules/unistdio/u32-u32-asnprintf: New file.
69387         * modules/unistdio/u32-u32-asprintf: New file.
69388         * modules/unistdio/u32-u32-snprintf: New file.
69389         * modules/unistdio/u32-u32-sprintf: New file.
69390         * modules/unistdio/u32-u32-vasnprintf: New file.
69391         * modules/unistdio/u32-u32-vasprintf: New file.
69392         * modules/unistdio/u32-u32-vsnprintf: New file.
69393         * modules/unistdio/u32-u32-vsprintf: New file.
69394         * modules/unistdio/ulc-asnprintf-tests: New file.
69395         * modules/unistdio/ulc-vasnprintf-tests: New file.
69396         * modules/unistdio/ulc-vasprintf-tests: New file.
69397         * modules/unistdio/ulc-vsnprintf-tests: New file.
69398         * modules/unistdio/ulc-vsprintf-tests: New file.
69399         * modules/unistdio/u8-asnprintf-tests: New file.
69400         * modules/unistdio/u8-vasnprintf-tests: New file.
69401         * modules/unistdio/u8-vasprintf-tests: New file.
69402         * modules/unistdio/u8-vsnprintf-tests: New file.
69403         * modules/unistdio/u8-vsprintf-tests: New file.
69404         * modules/unistdio/u16-asnprintf-tests: New file.
69405         * modules/unistdio/u16-vasnprintf-tests: New file.
69406         * modules/unistdio/u16-vasprintf-tests: New file.
69407         * modules/unistdio/u16-vsnprintf-tests: New file.
69408         * modules/unistdio/u16-vsprintf-tests: New file.
69409         * modules/unistdio/u32-asnprintf-tests: New file.
69410         * modules/unistdio/u32-vasnprintf-tests: New file.
69411         * modules/unistdio/u32-vasprintf-tests: New file.
69412         * modules/unistdio/u32-vsnprintf-tests: New file.
69413         * modules/unistdio/u32-vsprintf-tests: New file.
69414         * MODULES.html.sh (Unicode string functions): Add the new modules.
69415
69416 2007-07-01  Bruno Haible  <bruno@clisp.org>
69417
69418         * lib/sprintf.c (sprintf): Limit the available length estimation,
69419         to avoid address wraparound.
69420         * lib/vsprintf.c (vsprintf): Likewise.
69421         * modules/sprintf-posix (Dependencies): Add stdint.
69422         * modules/vsprintf-posix (Dependencies): Likewise.
69423
69424 2007-07-01  Bruno Haible  <bruno@clisp.org>
69425
69426         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69427         Windows PATH as well. Conservative double-quoting. Comments.
69428
69429 2007-07-01  Bruno Haible  <bruno@clisp.org>
69430             Eric Blake  <ebb9@byu.net>
69431             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69432
69433         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69434         empty components in $PATH, denoting '.'.
69435
69436 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69437
69438         * gnulib-tool: Fix indentation.
69439         (func_create_megatestdir): Likewise.
69440         Report by Bruno Haible.
69441
69442 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69443
69444         Sync from Automake.
69445         * build-aux/gnupload: Fix shell portability issues with for loops.
69446         Report by Karl Berry.
69447
69448 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69449
69450         * build-aux/maint.mk (POURL): Use translationproject.org.
69451
69452 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69453             Bruno Haible  <bruno@clisp.org>
69454
69455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69456         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69457         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69458         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69459         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69460
69461 2007-06-27  Bruno Haible  <bruno@clisp.org>
69462
69463         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69464         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69465
69466 2007-06-26  Karl Berry  <karl@gnu.org>
69467
69468         * MODULES.html.sh: remove xreadlink-with-size.
69469
69470 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69473         method that I hope also handles the double-include problem noted
69474         by Bruno Haible in
69475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69476
69477 2007-06-23  Bruno Haible  <bruno@clisp.org>
69478
69479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69480         Don't let the 'mostlyclean' target fail if the last subdirectory could
69481         not be removed.
69482         Reported by Karl Berry.
69483
69484 2007-06-23  Bruno Haible  <bruno@clisp.org>
69485
69486         * gnulib-tool (echo): Add a speedier workaround for ksh.
69487         * tests/test-echo.sh: Likewise.
69488
69489 2007-06-23  Bruno Haible  <bruno@clisp.org>
69490
69491         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69492         * tests/test-echo.sh: Likewise.
69493
69494 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69495
69496         * gnulib-tool (IFS): Initialize early, so we don't set it to
69497         empty later.
69498         (self_abspathname): Rewrite algorithm to set it, reindent.
69499         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69500         (func_create_megatestdir): Merge some sed scripts.
69501
69502 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69505         exposed by Sun Studio 11 cc on Solaris 8.
69506
69507 2007-06-22  Bruno Haible  <bruno@clisp.org>
69508
69509         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69510         backslashes.
69511         * tests/test-echo.sh: New file.
69512
69513 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69514
69515         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69516         simplify `sed_replace_build_aux' scripts, they are portable but
69517         echoing them with `echo' is not.
69518         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69519
69520 2007-06-21  Karl Berry  <karl@gnu.org>
69521
69522         * config/srclist.txt: guess we can't handle the licenses via
69523         srclist at the moment.
69524
69525 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * MODULES.html.sh: Add include_next.
69528         * modules/include_next: New file.
69529
69530 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69533         INCLUDE_NEXT.
69534         (gl_CHECK_NEXT_HEADERS): New macro.
69535         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69536         the obsolescent gl_ABSOLUTE_HEADER.
69537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69538         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69539         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69540         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69541         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69542         * m4/math_h.m4 (gl_MATH_H): Likewise.
69543         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69544         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69545         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69546         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69547         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69548         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69549         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69550         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69553         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69554         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69555         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69556         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69557         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69558         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69559         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69560         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69561         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69562         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69563         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69564         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69565         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69566         * lib/float_.h: Likewise.
69567         * lib/inttypes_.h: Likewise.
69568         * lib/math_.h: Likewise.
69569         * lib/search_.h: Likewise.
69570         * lib/signal_.h: Likewise.
69571         * lib/stdint_.h: Likewise.
69572         * lib/stdio_.h: Likewise.
69573         * lib/stdlib_.h: Likewise.
69574         * lib/string_.h: Likewise.
69575         * lib/sys_stat_.h: Likewise.
69576         * lib/sys_time_.h: Likewise.
69577         * lib/time_.h: Likewise.
69578         * lib/unistd_.h: Likewise.
69579         * lib/wchar_.h: Likewise.
69580         * lib/wctype_.h: Likewise.
69581         * lib/dirent_.h: Likewise.
69582         * lib/iconv_.h: Likewise.
69583         * lib/locale_.h: Likewise.
69584         * lib/netinet_in_.h: Likewise.
69585         * lib/sys_select_.h: Likewise.
69586         * lib/sys_socket_.h: Likewise.
69587         * lib/sysexits_.h: Likewise.
69588         * modules/fcntl (Depends-on): Depend on include_next, not
69589         absolute_header.
69590         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69591         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69592         * modules/fchdir: Likewise.
69593         * modules/float: Likewise.
69594         * modules/iconv_open: Likewise.
69595         * modules/inttypes: Likewise.
69596         * modules/locale: Likewise.
69597         * modules/math: Likewise.
69598         * modules/netinet_in: Likewise.
69599         * modules/search: Likewise.
69600         * modules/signal: Likewise.
69601         * modules/stdint: Likewise.
69602         * modules/stdio: Likewise.
69603         * modules/stdlib: Likewise.
69604         * modules/string: Likewise.
69605         * modules/sys_select: Likewise.
69606         * modules/sys_socket: Likewise.
69607         * modules/sys_stat: Likewise.
69608         * modules/sys_time: Likewise.
69609         * modules/sysexits: Likewise.
69610         * modules/time: Likewise.
69611         * modules/unistd: Likewise.
69612         * modules/wchar: Likewise.
69613         * modules/wctype: Likewise.
69614         * modules/sys_stat: Change maintainer to "all".
69615         * modules/unistd: Likewise.
69616
69617 2007-06-20  Karl Berry  <karl@gnu.org>
69618
69619         * config/srclist.txt: track www changes in license files.
69620
69621 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69622
69623         * build-aux/bootstrap: Remove stray dot.
69624         Make sure build_aux settings are honored when linking
69625         gnulib_extra_files.
69626
69627 2007-06-19  Eric Blake  <ebb9@byu.net>
69628
69629         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69630         Allow compilation on cygwin.
69631
69632 2007-06-19  Jim Meyering  <jim@meyering.net>
69633
69634         xreadlink-with-size: Remove module.  No longer used.
69635         Ex-callers now use xreadlink or mreadlink-with-size.
69636         * modules/xreadlink-with-size: Remove module.
69637         * lib/xreadlink-with-size.c: Remove file.
69638         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69639         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69640         just before the function definition *is* accurate.
69641
69642         Eliminate one way canonicalize_filename_mode could exit.
69643         * lib/canonicalize.c (canonicalize_filename_mode):
69644         Use mreadlink_with_size, not xreadlink_with_size.
69645
69646 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69647
69648         Detect porting problems to FreeBSD/arm, which has time_t wider than
69649         long int.  Original problem reported for GNU diff by Xin Li in
69650         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69651         * modules/getdate (Depends-on): Add intprops, verify.
69652         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69653         is an integer type no wider than long int.
69654
69655 2007-06-18  Jim Meyering  <jim@meyering.net>
69656
69657         New module: mreadlink-with-size.
69658         * MODULES.html.sh: Add mreadlink-with-size.
69659         * modules/mreadlink-with-size: New module
69660         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69661         not xreadlink-with-size.
69662         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69663
69664 2007-06-16  Bruno Haible  <bruno@clisp.org>
69665
69666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69667         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69668         Reported by Gary V. Vaughan <gary@gnu.org>.
69669
69670 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         Revamp lchown so that it lives in unistd.h where it belongs.
69673         * lib/lchown.h: Remove.
69674         * lib/dirchownmod.c: Don't include lib/lchown.h.
69675         * lib/fchownat.c: Likewise.
69676         * lib/openat.c: Likewise.
69677         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69678         does not follow symlinks.
69679         (EOPNOTSUPP): Define if not defined.
69680         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69681         is defined to 0.
69682         (lchown): New decl.
69683         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69684         Do not check for lchown decl.
69685         Set REPLACE_LCHOWN.
69686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69687         REPLACE_LCHOWN.
69688         * modules/chown: Make it clear it follows symlinks.
69689         * modules/lchown: Make it clear it doesn't follow symlinks.
69690         (Files): Remove lib/lchown.h
69691         (Depends-on): Add unistd.
69692         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69693         (Include): Include <unistd.h>, not "lchown.h".
69694         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69695         REPLACE_LCHOWN.
69696
69697 2007-06-15  Jim Meyering  <jim@meyering.net>
69698
69699         Change license (GPL to LGPL) of fsusage and dependents.
69700         * modules/fsusage (License): Change to LGPL.
69701         * modules/full-read (License): Likewise.
69702         * modules/full-write (License): Likewise.
69703         * modules/safe-read (License): Likewise.
69704         * modules/safe-write (License): Likewise.
69705
69706 2007-06-14  Ben Pfaff  <blp@gnu.org>
69707
69708         Missing part of allocsa -> malloca transition.
69709         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69710         gl_MALLOCA.
69711
69712 2007-06-12  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69715         to ia64, x86_64, i386.
69716         Reported by Eric Blake.
69717
69718 2007-06-12  Bruno Haible  <bruno@clisp.org>
69719
69720         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69721         cross-compiling to x86_64.
69722
69723 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69726         glitch reported by Ralf Wildenhues in
69727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69728
69729         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69730         Vin Shelton.
69731
69732 2007-06-11  Bruno Haible  <bruno@clisp.org>
69733
69734         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69735         replacement string.
69736         Reported by Eric Blake.
69737
69738 2007-06-10  Bruno Haible  <bruno@clisp.org>
69739
69740         Prepare vasnprintf code for use with Unicode strings.
69741         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69742         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69743         TYPE_U32_STRING.
69744         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69745         a_u32_string variants.
69746         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69747         * lib/printf-args.c: Don't include config.h and the specification
69748         header if PRINTF_FETCHARGS is already defined.
69749         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69750         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69751         TYPE_U16_STRING, TYPE_U32_STRING.
69752         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69753         u16_directive, u16_directives, u32_directive, u32_directives): New
69754         types.
69755         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69756         New declarations.
69757         * lib/printf-parse.c: Don't include config.h and the specification
69758         header if PRINTF_PARSE is already defined. Eliminate the set of
69759         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69760         them now. Include c-ctype.h.
69761         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69762         directive and CHAR_T_ONLY_ASCII.
69763         * lib/vasnprintf.c: Don't include config.h and the specification header
69764         if VASNPRINTF is already defined.
69765         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69766         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69767         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69768         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69769         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69770         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69771         code accordingly.
69772         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69773         pad_ourselves also in this case, with the 'c' and 's' directives, and
69774         with a different notion of "width".
69775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69776
69777 2007-06-10  Bruno Haible  <bruno@clisp.org>
69778
69779         * modules/unistr/u32-mbsnlen: New file.
69780         * lib/unistr/u32-mbsnlen.c: New file.
69781
69782         * modules/unistr/u16-mbsnlen: New file.
69783         * lib/unistr/u16-mbsnlen.c: New file.
69784
69785         * modules/unistr/u8-mbsnlen: New file.
69786         * lib/unistr/u8-mbsnlen.c: New file.
69787
69788         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69789         declarations.
69790
69791 2007-06-10  Bruno Haible  <bruno@clisp.org>
69792
69793         * lib/string_.h (mbsnlen): New declaration.
69794         * lib/mbsnlen.c: New file.
69795         * m4/mbsnlen.m4: New file.
69796         * modules/mbsnlen: New file.
69797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69798         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69799         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69800
69801 2007-06-10  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69804
69805 2007-06-10  Bruno Haible  <bruno@clisp.org>
69806
69807         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69808         * lib/mbuiter.h: Likewise.
69809
69810 2007-06-10  Bruno Haible  <bruno@clisp.org>
69811
69812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69813         declaration.
69814
69815 2007-06-10  Karl Berry  <karl@gnu.org>
69816
69817         * config/srclist.txt: remove gettext entries, Bruno prefers
69818         to update individually.
69819
69820 2007-06-10  Bruno Haible  <bruno@clisp.org>
69821
69822         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69823         'maxlen'. Ensure only length + width bytes are allocated, not
69824         length + 1 + width.
69825
69826 2007-06-09  Bruno Haible  <bruno@clisp.org>
69827
69828         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69829         (CHAR_T): Remove macro.
69830         (VASNPRINTF): Update.
69831
69832 2007-06-09  Bruno Haible  <bruno@clisp.org>
69833
69834         * MODULES.html.sh (Unicode string functions): Add the new modules.
69835
69836         * modules/uniconv/u32-conv-to-enc: New file.
69837         * lib/uniconv/u32-conv-to-enc.c: New file.
69838         * modules/uniconv/u32-conv-to-enc-tests: New file.
69839         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69840
69841         * modules/uniconv/u16-conv-to-enc: New file.
69842         * lib/uniconv/u16-conv-to-enc.c: New file.
69843         * lib/uniconv/u-conv-to-enc.h: New file.
69844         * modules/uniconv/u16-conv-to-enc-tests: New file.
69845         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69846
69847         * modules/uniconv/u8-conv-to-enc: New file.
69848         * lib/uniconv/u8-conv-to-enc.c: New file.
69849         * modules/uniconv/u8-conv-to-enc-tests: New file.
69850         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69851
69852         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69853         u32_conv_to_encoding): New declarations.
69854
69855 2007-06-09  Bruno Haible  <bruno@clisp.org>
69856
69857         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69858
69859 2007-06-09  Bruno Haible  <bruno@clisp.org>
69860
69861         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69862         * modules/malloca: Renamed from modules/allocsa, updated.
69863         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69864         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69865         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69866         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69867         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69868         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69869         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69870         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69871         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69872         * modules/c-strcasestr (Depends-on): Update.
69873         * lib/c-strcasestr.c: Update.
69874         * modules/c-strstr (Depends-on): Update.
69875         * lib/c-strstr.c: Update.
69876         * modules/canonicalize-lgpl (Depends-on): Update.
69877         * lib/canonicalize-lgpl.c: Update.
69878         * modules/clean-temp (Depends-on): Update.
69879         * lib/clean-temp.c: Update.
69880         * modules/csharpcomp (Depends-on): Update.
69881         * lib/csharpcomp.c: Update.
69882         * modules/csharpexec (Depends-on): Update.
69883         * lib/csharpexec.c: Update.
69884         * modules/javacomp (Depends-on): Update.
69885         * lib/javacomp.c: Update.
69886         * modules/javaexec (Depends-on): Update.
69887         * lib/javaexec.c: Update.
69888         * modules/mbscasestr (Depends-on): Update.
69889         * lib/mbscasestr.c: Update.
69890         * modules/mbsstr (Depends-on): Update.
69891         * lib/mbsstr.c: Update.
69892         * modules/setenv (Depends-on): Update.
69893         * lib/setenv.c: Update.
69894         * modules/strcasestr (Depends-on): Update.
69895         * lib/strcasestr.c: Update.
69896         * modules/striconveha (Depends-on): Update.
69897         * lib/striconveha.c: Update.
69898         * modules/relocatable-prog-wrapper (Files): Update.
69899         * lib/relocwrapper.c: Update.
69900         * build-aux/install-reloc: Update.
69901         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69902
69903 2007-06-08  Bruno Haible  <bruno@clisp.org>
69904
69905         Port to uClibc.
69906         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69907         * lib/fpurge.c (fpurge): Likewise.
69908         * lib/freading.c (freading): Likewise.
69909         * lib/fseeko.c (rpl_fseeko): Likewise.
69910         * lib/fseterr.c (fseterr): Likewise.
69911         * lib/fwriting.c (fwriting): Likewise.
69912         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69913
69914 2007-06-08  Bruno Haible  <bruno@clisp.org>
69915
69916         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69917         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69918         * modules/gettext (Files): Add m4/intlmacosx.m4.
69919
69920 2007-06-07  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/localename-tests: New file.
69923         * tests/test-localename.c: New file.
69924
69925         New module 'localename'.
69926         * lib/localename.h: New file.
69927         * lib/localename.c: New file, from GNU gettext.
69928         * m4/localename.m4: New file.
69929         * modules/localename: New file.
69930
69931 2007-06-07  Bruno Haible  <bruno@clisp.org>
69932
69933         Work around the lack of <wchar.h> on some builds of uClibc.
69934         * doc/headers/wchar.texi: Update.
69935         * lib/wchar_.h: Include <wchar.h> only if it exists.
69936         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69937         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69938         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69939         doesn't exist.
69940         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69941         * modules/mbfile (Depends-on): Add wchar.
69942         * modules/mbiter (Depends-on): Likewise.
69943         * modules/mbuiter (Depends-on): Likewise.
69944         Reported by Simon Josefsson.
69945
69946 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         Work around problem reported by Steven M. Schweda in
69949         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69950         Tru64 5.1B with the Compaq compiler environment installed declares
69951         an 'isblank' function but does not define it in the C library.
69952         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69953         * lib/regex_internal.h (isblank): Likewise.
69954         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69955         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69956
69957 2007-06-05  Bruno Haible  <bruno@clisp.org>
69958
69959         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69960         ia64.
69961         * modules/printf-safe: New file.
69962         * modules/fprintf-posix (Depends-on): Add printf-safe.
69963         * modules/printf-posix (Depends-on): Likewise.
69964         * modules/snprintf-posix (Depends-on): Likewise.
69965         * modules/sprintf-posix (Depends-on): Likewise.
69966         * modules/vasnprintf-posix (Depends-on): Likewise.
69967         * modules/vasprintf-posix (Depends-on): Likewise.
69968         * modules/vfprintf-posix (Depends-on): Likewise.
69969         * modules/vprintf-posix (Depends-on): Likewise.
69970         * modules/vsnprintf-posix (Depends-on): Likewise.
69971         * modules/vsprintf-posix (Depends-on): Likewise.
69972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69973         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69974         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69975         "no" on i386, x86_64, ia64.
69976         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69977         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69978         on i386, x86_64, ia64.
69979         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69980         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69981         on i386, x86_64, ia64.
69982         * tests/test-vasnprintf-posix.c: Include float.h.
69983         (LDBL80_WORDS): New macro.
69984         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69985         on i386, x86_64, ia64.
69986         * tests/test-vasprintf-posix.c: Include float.h.
69987         (LDBL80_WORDS): New macro.
69988         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69989         on i386, x86_64, ia64.
69990         * tests/test-snprintf-posix.c: Include float.h.
69991         * tests/test-sprintf-posix.c: Likewise.
69992         * tests/test-vsnprintf-posix.c: Likewise.
69993         * tests/test-vsprintf-posix.c: Likewise.
69994
69995 2007-06-05  Bruno Haible  <bruno@clisp.org>
69996
69997         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69998         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69999         non-IEEE numbers on i386, x86_64, ia64.
70000         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70001         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70002         * tests/test-isnanl.h: Include float.h.
70003         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70004
70005 2007-06-05  Bruno Haible  <bruno@clisp.org>
70006
70007         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70008         also the %a / %A. Handle the %a / %A code before this extra handling.
70009
70010 2007-06-05  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70013         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70014
70015 2007-06-05  Bruno Haible  <bruno@clisp.org>
70016
70017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70018         typo in variable name.
70019
70020 2007-06-05  Eric Blake  <ebb9@byu.net>
70021
70022         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70023         Reported by Simon Josefsson.
70024
70025 2007-06-04  Bruno Haible  <bruno@clisp.org>
70026
70027         Avoid test failures on some PowerPC platforms.
70028         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70029         Define differently for PowerPC.
70030         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70031         Reported by Gary V. Vaughan <gary@gnu.org>.
70032
70033 2007-06-02  Bruno Haible  <bruno@clisp.org>
70034
70035         Fix test-stdint failure on FreeBSD/ia64.
70036         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70037         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70038         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70039         * doc/headers/stdint.texi: Update.
70040
70041 2007-06-01  Bruno Haible  <bruno@clisp.org>
70042
70043         * tests/test-binary-io.c (main): Pass a third argument to open().
70044         Reported by Gary V. Vaughan <gary@gnu.org>.
70045
70046 2007-06-01  Bruno Haible  <bruno@clisp.org>
70047
70048         * doc/functions/frexpl.texi: Update for mingw.
70049
70050 2007-06-01  Bruno Haible  <bruno@clisp.org>
70051
70052         * tests/test-lseek.c (main): Disable test of errno for invalid third
70053         argument.
70054         * doc/functions/lseek.texi: Update.
70055         Reported by Gary V. Vaughan <gary@gnu.org>.
70056
70057 2007-05-28  Bruno Haible  <bruno@clisp.org>
70058
70059         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70060
70061 2007-05-31  Eric Blake  <ebb9@byu.net>
70062
70063         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70064         cross compiling.
70065
70066 2007-05-30  Eric Blake  <ebb9@byu.net>
70067         and Bruno Haible  <bruno@clisp.org>
70068
70069         Work around mingw test failures exposed by m4-1.4.9b.
70070         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70071         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70072         moment.
70073
70074 2007-05-30  Bruno Haible  <bruno@clisp.org>
70075
70076         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70077         assuming that they are closed. Needed on HP-UX 11.
70078
70079 2007-05-29  Bruno Haible  <bruno@clisp.org>
70080
70081         Fix a problem with #include_next.
70082         * lib/dirent_.h: Split the double-inclusion guard.
70083         * lib/fcntl_.h: Likewise.
70084         * lib/float_.h: Likewise.
70085         * lib/iconv_.h: Likewise.
70086         * lib/inttypes_.h: Likewise.
70087         * lib/locale_.h: Likewise.
70088         * lib/math_.h: Likewise.
70089         * lib/netinet_in_.h: Likewise.
70090         * lib/search_.h: Likewise.
70091         * lib/signal_.h: Likewise.
70092         * lib/stdint_.h: Likewise.
70093         * lib/stdio_.h: Likewise.
70094         * lib/stdlib_.h: Likewise.
70095         * lib/string_.h: Likewise.
70096         * lib/sys_select_.h: Likewise.
70097         * lib/sys_socket_.h: Likewise.
70098         * lib/sys_stat_.h: Likewise.
70099         * lib/sys_time_.h: Likewise.
70100         * lib/sysexits_.h: Likewise.
70101         * lib/time_.h: Likewise.
70102         * lib/unistd_.h: Likewise.
70103         * lib/wchar_.h: Likewise.
70104         * lib/wctype_.h: Likewise.
70105
70106 2007-05-29  Bruno Haible  <bruno@clisp.org>
70107
70108         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70109         for the moment.
70110
70111 2007-05-29  Bruno Haible  <bruno@clisp.org>
70112
70113         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70114         invocation.
70115         Reported by Eric Blake.
70116
70117 2007-05-29  Bruno Haible  <bruno@clisp.org>
70118
70119         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70120         compiling case.
70121
70122 2007-05-29  Eric Blake  <ebb9@byu.net>
70123             Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70126         cross compiles.
70127
70128 2007-05-28  Eric Blake  <ebb9@byu.net>
70129
70130         * modules/closein-tests (test_closein_LDADD): Support test on
70131         cygwin with libtool.
70132
70133 2007-05-28  Bruno Haible  <bruno@clisp.org>
70134
70135         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70136         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70137         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70138         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70139         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70140         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70141         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70142         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70143         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70144
70145 2007-05-28  Eric Blake  <ebb9@byu.net>
70146
70147         Unconditionally include <config.h> in unit tests.
70148         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70149         * tests/test-allocsa.c, tests/test-arcfour.c,
70150         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70151         tests/test-array_list.c, tests/test-array_oset.c,
70152         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70153         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70154         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70155         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70156         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70157         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70158         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70159         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70160         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70161         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70162         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70163         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70164         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70165         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70166         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70167         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70168         test-md5.c, test-memmem.c, test-printf-posix.c,
70169         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70170         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70171         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70172         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70173         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70174         test-vasnprintf-posix2.c, test-vasnprintf.c,
70175         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70176         test-vfprintf-posix.c, test-vprintf-posix.c,
70177         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70178         test-xvasprintf.c: Likewise.
70179
70180 2007-05-28  Bruno Haible  <bruno@clisp.org>
70181
70182         * gnulib-tool (func_import): Remember the --with-tests command-line
70183         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70184         Reported by Eric Blake.
70185
70186 2007-05-28  Bruno Haible  <bruno@clisp.org>
70187
70188         * modules/ftell-tests: New file.
70189         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70190         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70191
70192         * lib/ftell.c: New file.
70193         * modules/ftell: New file.
70194         * m4/ftell.m4: New file.
70195         * doc/functions/ftell.texi: Update.
70196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70197         REPLACE_FTELL.
70198         * lib/stdio_.h (rpl_ftell): New declaration.
70199         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70200         REPLACE_FTELL.
70201
70202 2007-05-28  Eric Blake  <ebb9@byu.net>
70203
70204         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70205
70206 2007-05-28  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/fseek-tests: New file.
70209         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70210         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70211
70212         * lib/fseek.c: New file.
70213         * modules/fseek: New file.
70214         * m4/fseek.m4: New file.
70215         * doc/functions/fseek.texi: Update.
70216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70217         REPLACE_FSEEK.
70218         * lib/stdio_.h (rpl_fseek): New declaration.
70219         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70220         REPLACE_FSEEK.
70221
70222 2007-05-28  Bruno Haible  <bruno@clisp.org>
70223
70224         * lib/stdio_.h (fflush): More comments.
70225
70226 2007-05-28  Bruno Haible  <bruno@clisp.org>
70227
70228         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70229         runtime test.
70230
70231 2007-05-28  Eric Blake  <ebb9@byu.net>
70232
70233         Improve lseek module.
70234         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70235         * lib/unistd_.h (lseek): Scale back link warning message.
70236         * tests/test-lseek.c: Beef up test.
70237         * tests/test-lseek.sh: Exercise more facets of lseek.
70238         Reported by Bruno Haible.
70239
70240 2007-05-28  Bruno Haible  <bruno@clisp.org>
70241
70242         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70243         to define.
70244
70245 2007-05-27  Bruno Haible  <bruno@clisp.org>
70246
70247         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70248
70249 2007-05-27  Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/openmp: New file.
70252         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70253         Noah Misch.
70254
70255 2007-05-26  Bruno Haible  <bruno@clisp.org>
70256
70257         * modules/chdir-long (Depends-on): Add fchdir.
70258         * modules/chdir-safer (Depends-on): Likewise.
70259         * modules/fts (Depends-on): Likewise.
70260         * modules/fts-lgpl (Depends-on): Likewise.
70261         * modules/openat (Depends-on): Likewise.
70262         * modules/savewd (Depends-on): Likewise.
70263
70264 2007-05-24  Eric Blake  <ebb9@byu.net>
70265
70266         Fix lseek on mingw.
70267         * modules/lseek: New module.
70268         * m4/lseek.m4: New file.
70269         * lib/lseek.c: New file.
70270         * modules/lseek-tests: New file.
70271         * tests/test-lseek.c: New file.
70272         * tests/test-lseek.sh: New file.
70273         * MODULES.html.sh: Document lseek module.
70274         * modules/fflush (Depends-on): Add lseek, fseeko.
70275         * modules/fseeko (Depends-on): Likewise.
70276         * modules/ftello (Depends-on): Likewise.
70277         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70278         broken.
70279         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70280         broken.
70281         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70282         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70283         * lib/ftello.c (rpl_ftello): Likewise.
70284         * tests/test-fseeko.c (main): Test this.
70285         * tests/test-fseeko.sh: Likewise.
70286         * tests/test-ftello.c (main): Likewise.
70287         * tests/test-ftello.sh: Likewise.
70288         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70289         implies replacing fseek.
70290         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70291         HAVE_FTELLO.
70292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70293         * modules/unistd (Makefile.am): Likewise.
70294         * lib/unistd_.h (lseek): Declare a replacement.
70295         * doc/functions/lseek.texi (lseek): Document this fix.
70296         * doc/functions/fseek.texi (fseek): Likewise.
70297         * doc/functions/ftell.texi (ftell): Likewise.
70298
70299 2007-05-24  Bruno Haible  <bruno@clisp.org>
70300
70301         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70302         in the printed representation of a NaN.
70303         * tests/test-vasprintf-posix.c (test_function): Likewise.
70304         * tests/test-snprintf-posix.h (test_function): Likewise.
70305         * tests/test-sprintf-posix.h (test_function): Likewise.
70306         Reported by Eric Blake.
70307
70308 2007-05-23  Eric Blake  <ebb9@byu.net>
70309
70310         Fix fseeko/ftello on cygwin 1.5.24.
70311         * doc/functions/fseeko.texi (fseeko): Document the fix.
70312         * doc/functions/ftello.texi (ftello): Document the fix.
70313         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70314         * doc/functions/stdout.text (stdout): New file.
70315         * doc/functions/stderr.text (stderr): New file.
70316         * doc/gnulib.texi (Function Substitutes): Use new files.
70317         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70318         prior to 1.7.0.
70319         * tests/test-ftello.c (main): Likewise for ftello.
70320         * tests/test-fseeko.sh: New file.
70321         * tests/test-ftello.sh: New file.
70322         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70323         with seekable stdin.
70324         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70325         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70326         (gl_REPLACE_FSEEKO): New macro.
70327         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70328         * modules/fseeko (Files): Distribute fseeko.c.
70329         * modules/ftello (Files): Distribute ftello.c.
70330         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70331         mode.
70332         * lib/ftello.c (rpl_ftello): New file.
70333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70334         fseeko, ftello.
70335         (gl_STDIN_LARGE_OFFSET): New macro.
70336         * modules/stdio (Makefile.am): Perform the replacement.
70337         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70338
70339 2007-05-23  Bruno Haible  <bruno@clisp.org>
70340
70341         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70342         GNULIB_POSIXCHECK is defined.
70343
70344 2007-05-21  Bruno Haible  <bruno@clisp.org>
70345
70346         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70347         Check also the output for NaN arguments. When cross-compiling, guess
70348         no on IRIX.
70349         * lib/vasnprintf.c: Update comments.
70350         * tests/test-vasnprintf-posix.c (strisnan): New function.
70351         (test_function): Use it.
70352         * tests/test-vasprintf-posix.c (strisnan): New function.
70353         (test_function): Use it.
70354         * tests/test-snprintf-posix.h (strisnan): New function.
70355         (test_function): Use it.
70356         * tests/test-sprintf-posix.h (strisnan): New function.
70357         (test_function): Use it.
70358         Reported by Eric Blake.
70359
70360 2007-05-20  Bruno Haible  <bruno@clisp.org>
70361
70362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70363         numbers that fails on BeOS.
70364         * doc/functions/frexpl.texi: Update.
70365
70366 2007-05-20  Jim Meyering  <jim@meyering.net>
70367
70368         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70369         forced upon us by glibc-2.6.
70370
70371 2007-05-20  Bruno Haible  <bruno@clisp.org>
70372
70373         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70374         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70375         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70376         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70377         NEED_PRINTF_INFINITE.
70378         (is_infinitel): New function.
70379         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70381         gl_PREREQ_VASNPRINTF_INFINITE.
70382         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70384         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70385         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70386         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70387         gl_PREREQ_VASNPRINTF_INFINITE.
70388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70395         * doc/functions/fprintf.texi: Update.
70396         * doc/functions/printf.texi: Update.
70397         * doc/functions/snprintf.texi: Update.
70398         * doc/functions/sprintf.texi: Update.
70399         * doc/functions/vfprintf.texi: Update.
70400         * doc/functions/vprintf.texi: Update.
70401         * doc/functions/vsnprintf.texi: Update.
70402         * doc/functions/vsprintf.texi: Update.
70403
70404 2007-05-20  Bruno Haible  <bruno@clisp.org>
70405
70406         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70407         was not found in libc.
70408         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70409
70410 2007-05-20  Bruno Haible  <bruno@clisp.org>
70411
70412         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70413         printed as "-nan" 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         Needed for HP-UX 11.
70418
70419 2007-05-20  Jim Meyering  <jim@meyering.net>
70420
70421         Fix buggy test for the fchownat-deref bug.
70422         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70423         symlink required for the run-test.  Without it, this test would
70424         always declare that fchownat doesn't work, and client code would
70425         unnecessarily use the replacement function with fixed libc.
70426         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70427         Reported by Greg Schafer.
70428
70429 2007-05-19  Bruno Haible  <bruno@clisp.org>
70430
70431         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70432         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70433         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70434         Needed for IRIX 6.5 and Solaris 2.5.1.
70435
70436 2007-05-19  Bruno Haible  <bruno@clisp.org>
70437
70438         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70439         (test_function): Skip tests involving -0.0 on platforms where
70440         -0.0 = 0.0.
70441         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70442         (test_function): Skip tests involving -0.0 on platforms where
70443         -0.0 = 0.0.
70444         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70445         (test_function): Skip tests involving -0.0 on platforms where
70446         -0.0 = 0.0.
70447         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70448         (test_function): Skip tests involving -0.0 on platforms where
70449         -0.0 = 0.0.
70450         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70451         tests.
70452         * tests/test-printf-posix.h (test_function): Likewise.
70453         * tests/test-printf-posix.output: Remove all -0.0 related results.
70454         Needed for IRIX 6.5.
70455
70456 2007-05-19  Bruno Haible  <bruno@clisp.org>
70457
70458         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70459         printed as "nan0x7fffffff" instead of "nan".
70460         * tests/test-vasprintf-posix.c (test_function): Likewise.
70461         * tests/test-snprintf-posix.h (test_function): Likewise.
70462         * tests/test-sprintf-posix.h (test_function): Likewise.
70463         * tests/test-fprintf-posix.h (NaN): Remove macro.
70464         (test_function): Remove all NaN related tests.
70465         * tests/test-printf-posix.h (NaN): Remove macro.
70466         (test_function): Remove all NaN related tests.
70467         * tests/test-printf-posix.output: Remove all NaN related results.
70468         Needed for IRIX 6.5.
70469
70470 2007-05-19  Bruno Haible  <bruno@clisp.org>
70471
70472         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70474
70475 2007-05-19  Bruno Haible  <bruno@clisp.org>
70476
70477         * lib/float_.h: New file.
70478         * m4/float_h.m4: New file.
70479         * modules/float: New file.
70480         * modules/isnanl (Dependencies): Add float.
70481         * modules/isnanl-nolibm (Dependencies): Likewise.
70482         * modules/mathl (Dependencies): Likewise.
70483         * modules/printf-frexpl (Dependencies): Likewise.
70484         * modules/signbit (Dependencies): Likewise.
70485         * modules/vasnprintf (Dependencies): Likewise.
70486         * doc/headers/float.texi: Update.
70487
70488 2007-05-19  Jim Meyering  <jim@meyering.net>
70489
70490         * lib/utimens.c (gl_futimens): Rename from futimens,
70491         now that glibc-2.6 declares futimens.
70492         * lib/utimens.h: Likewise.
70493
70494 2007-05-19  Bruno Haible  <bruno@clisp.org>
70495
70496         Avoid test failures on mingw.
70497         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70498         * tests/test-printf-posix.sh: Likewise.
70499         * tests/test-vfprintf-posix.sh: Likewise.
70500         * tests/test-vprintf-posix.sh: Likewise.
70501
70502 2007-05-19  Bruno Haible  <bruno@clisp.org>
70503
70504         Fix *printf result for NaN, Inf, -0.0 on mingw.
70505         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70506         * lib/vasnprintf.c: Include math.h and isnan.h.
70507         (is_infinite_or_zero): New function.
70508         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70509         values in the %f, %F, %e, %E, %g, %G directives.
70510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70512         gl_PRINTF_INFINITE and test its result. Invoke
70513         gl_PREREQ_VASNPRINTF_INFINITE.
70514         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70518         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70520         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70521         * doc/functions/fprintf.texi: Update.
70522         * doc/functions/printf.texi: Update.
70523         * doc/functions/snprintf.texi: Update.
70524         * doc/functions/sprintf.texi: Update.
70525         * doc/functions/vfprintf.texi: Update.
70526         * doc/functions/vprintf.texi: Update.
70527         * doc/functions/vsnprintf.texi: Update.
70528         * doc/functions/vsprintf.texi: Update.
70529
70530 2007-05-19  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70533         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70534         Instead of multiplying with 10^k, set extra_zeroes to k.
70535         (scale10_round_long_double): Remove function.
70536
70537 2007-05-18  Bruno Haible  <bruno@clisp.org>
70538
70539         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70540         introduced on 2007-05-06.
70541
70542 2007-05-18  Bruno Haible  <bruno@clisp.org>
70543
70544         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70545         %g directives.
70546         * tests/test-vasprintf-posix.c (test_function): Likewise.
70547         * tests/test-snprintf-posix.h (test_function): Likewise.
70548         * tests/test-sprintf-posix.h (test_function): Likewise.
70549
70550 2007-05-18  Bruno Haible  <bruno@clisp.org>
70551
70552         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70553         (strmatch): New function.
70554         (test_function): Test the %f directive on numbers of various exponents.
70555         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70556         (strmatch): New function.
70557         (test_function): Test the %f directive on numbers of various exponents.
70558         * tests/test-snprintf-posix.h (strmatch): New function.
70559         (test_function): Test the %f directive on numbers of various exponents.
70560         * tests/test-sprintf-posix.h (strmatch): New function.
70561         (test_function): Test the %f directive on numbers of various exponents.
70562         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70563         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70564         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70565         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70566
70567 2007-05-18  Bruno Haible  <bruno@clisp.org>
70568
70569         Add support for 'long double' number output.
70570         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70571         * lib/vasnprintf.c: Include math.h and float+.h.
70572         (mp_limb_t): New type.
70573         (GMP_LIMB_BITS): New macro.
70574         (mp_twolimb_t): New type.
70575         (GMP_TWOLIMB_BITS): New macro.
70576         (mpn_t): New type.
70577         (multiply, divide, convert_to_decimal, decode_long_double,
70578         scale10_round_long_double, scale10_round_decimal_long_double,
70579         floorlog10l): New functions.
70580         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70581         for the %f, %F, %e, %E, %g, %G directives.
70582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70583         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70584         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70585         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70587         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70588         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70589         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70593         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70594         * modules/snprintf-posix (Depends-on): Likewise.
70595         * modules/sprintf-posix (Depends-on): Likewise.
70596         * modules/vasnprintf-posix (Depends-on): Likewise.
70597         * modules/vasprintf-posix (Depends-on): Likewise.
70598         * modules/vfprintf-posix (Depends-on): Likewise.
70599         * modules/vsnprintf-posix (Depends-on): Likewise.
70600         * modules/vsprintf-posix (Depends-on): Likewise.
70601         * modules/vasnprintf (Files): Add lib/float+.h.
70602         * doc/functions/fprintf.texi: Update.
70603         * doc/functions/printf.texi: Update.
70604         * doc/functions/snprintf.texi: Update.
70605         * doc/functions/sprintf.texi: Update.
70606         * doc/functions/vfprintf.texi: Update.
70607         * doc/functions/vprintf.texi: Update.
70608         * doc/functions/vsnprintf.texi: Update.
70609         * doc/functions/vsprintf.texi: Update.
70610
70611 2007-05-18  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70614
70615 2007-05-18  Bruno Haible  <bruno@clisp.org>
70616
70617         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70618         for printing 64-bit integers. Needed for mingw.
70619
70620 2007-05-18  Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70623         gl_FUNC_FREXPL_WORKS.
70624         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70625
70626 2007-05-18  Bruno Haible  <bruno@clisp.org>
70627
70628         * modules/frexpl-nolibm-tests: New file.
70629
70630         * modules/frexpl-nolibm: New file.
70631         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70632
70633 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70634
70635         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70636         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70637         GCC 4.2, which otherwise issues a lot of warnings.
70638         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70639         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70640         Likewise.
70641         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70642         * modules/iconv_open (iconv.h): Likewise.
70643         * modules/locale (locale.h): Likewise.
70644         * modules/netinet_in (netinet/in.h): Likewise.
70645         * modules/sys_select (sys_select.h): Likewise.
70646         * modules/sys_socket (sys/socket.h): Likewise.
70647         * modules/sys_stat (sys/stat.h): Likewise.
70648         * modules/sysexits (sysexits.h): Likewise.
70649         * modules/unistd (unistd.h): Likewise.
70650
70651 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70652
70653         * modules/closein-tests (Makefile.am): Distribute
70654         `test-closein.sh'.
70655
70656 2007-05-17  Bruno Haible  <bruno@clisp.org>
70657
70658         * tests/test-printf-posix.output: Renamed from
70659         tests/test-fprintf-posix.out.
70660         * modules/fprintf-posix-tests: Update.
70661         * modules/printf-posix-tests: Update.
70662         * modules/vfprintf-posix-tests: Update.
70663         * modules/vprintf-posix-tests: Update.
70664         * tests/test-fprintf-posix.sh: Update.
70665         * tests/test-printf-posix.sh: Update.
70666         * tests/test-vfprintf-posix.sh: Update.
70667         * tests/test-vprintf-posix.sh: Update.
70668         Reported by Ralf Wildenhues.
70669
70670 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70673         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70674         GCC 4.2, which otherwise issues a lot of warnings.
70675         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70676         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70677         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70678         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70679         it should no longer be needed.
70680         * lib/string_.h: Likewise.
70681         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70682         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70683         * modules/inttypes (inttypes.h): Likewise.
70684         * modules/math (math.h): Likewise.
70685         * modules/search (search.h): Likewise.
70686         * modules/signal (signal.h): Likewise.
70687         * modules/stdint (stdint.h): Likewise.
70688         * modules/stdio (stdio.h): Likewise.
70689         * modules/stdlib (stdlib.h): Likewise.
70690         * modules/string (string.h): Likewise.
70691         * modules/sys_time (sys/time.h): Likewise.
70692         * modules/time (time.h): Likewise.
70693         * modules/wchar (wchar.h): Likewise.
70694         * modules/wctype (wtype.h): Likewise.
70695
70696 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70697
70698         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70699
70700 2007-05-13  Bruno Haible  <bruno@clisp.org>
70701
70702         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70703         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70704         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70705         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70706         (gl_PREREQ_STRTOK_R): Don't require it here.
70707
70708 2007-05-13  Bruno Haible  <bruno@clisp.org>
70709
70710         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70711         when used in C++ mode.
70712
70713 2007-05-12  Bruno Haible  <bruno@clisp.org>
70714
70715         * lib/linebuffer.h: Tweak doc.
70716         * lib/linebuffer.c: Likewise.
70717
70718 2007-05-12  James Youngman  <jay@gnu.org>
70719
70720         * lib/linebuffer.c (readlinebuffer_delim): New function,
70721         like readlinebuffer, but use a caller-specified delimiter.
70722         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70723         as the delimiter.
70724         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70725
70726 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70727
70728         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70729         * modules/openat (Files): Remove openat-die.c.
70730         (Depends-on): Add openat-die.
70731         * modules/openat-die: New module.
70732
70733 2007-05-06  Bruno Haible  <bruno@clisp.org>
70734
70735         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70736         Update with info about Cygwin.
70737         * doc/functions/fprintf.texi: Update.
70738         * doc/functions/printf.texi: Update.
70739         * doc/functions/snprintf.texi: Update.
70740         * doc/functions/sprintf.texi: Update.
70741         * doc/functions/vfprintf.texi: Update.
70742         * doc/functions/vprintf.texi: Update.
70743         * doc/functions/vsnprintf.texi: Update.
70744         * doc/functions/vsprintf.texi: Update.
70745         Reported by Eric Blake.
70746
70747 2007-05-06  Bruno Haible  <bruno@clisp.org>
70748
70749         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70750         padding ourselves for the floating-point directives.
70751         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70752         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70754         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70755         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70756         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70763         * tests/test-snprintf-posix.h (test_function): Also check the width
70764         and some flags in the %f directive.
70765         * tests/test-sprintf-posix.h (test_function): Likewise.
70766         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70767         * tests/test-vasprintf-posix.c (test_function): Likewise.
70768         * doc/functions/fprintf.texi: Update.
70769         * doc/functions/printf.texi: Update.
70770         * doc/functions/snprintf.texi: Update.
70771         * doc/functions/sprintf.texi: Update.
70772         * doc/functions/vfprintf.texi: Update.
70773         * doc/functions/vprintf.texi: Update.
70774         * doc/functions/vsnprintf.texi: Update.
70775         * doc/functions/vsprintf.texi: Update.
70776
70777 2007-05-06  Bruno Haible  <bruno@clisp.org>
70778
70779         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70780         pass the ' flag character to sprintf or snprintf.
70781         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70784         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70785         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70787         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70793         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70794         flag.
70795         * tests/test-sprintf-posix.h (test_function): Likewise.
70796         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70797         * tests/test-vasprintf-posix.c (test_function): Likewise.
70798         * doc/functions/fprintf.texi: Update.
70799         * doc/functions/printf.texi: Update.
70800         * doc/functions/snprintf.texi: Update.
70801         * doc/functions/sprintf.texi: Update.
70802         * doc/functions/vfprintf.texi: Update.
70803         * doc/functions/vprintf.texi: Update.
70804         * doc/functions/vsnprintf.texi: Update.
70805         * doc/functions/vsprintf.texi: Update.
70806
70807 2007-05-01  Bruno Haible  <bruno@clisp.org>
70808
70809         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70810
70811 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70814         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70815
70816 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70819         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70821
70822 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70823
70824         * lib/argp-help.c (struct hol_entry): New member `ord'.
70825         (HOL_ENTRY_PTRCMP): Use ord for comparison
70826         (hol_sort): Initialize ord.
70827
70828 2007-05-01  Bruno Haible  <bruno@clisp.org>
70829
70830         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70831         Reported by Eric Blake.
70832         * doc/gnulib.texi (Function Substitutes): Update.
70833
70834 2007-05-01  Bruno Haible  <bruno@clisp.org>
70835
70836         * doc/functions.texi: Remove file, now redundant through
70837         doc/functions/*.texi.
70838
70839 2007-05-01  Bruno Haible  <bruno@clisp.org>
70840
70841         * modules/argp (Depends-on): Add sleep.
70842
70843 2007-05-01  Bruno Haible  <bruno@clisp.org>
70844
70845         * modules/sleep-tests: New file.
70846         * tests/test-sleep.c: New file.
70847
70848         * modules/sleep: New file.
70849         * lib/sleep.c: New file.
70850         * m4/sleep.m4: New file.
70851         * lib/unistd_.h (sleep): New declaration.
70852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70853         HAVE_SLEEP.
70854         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70855         * doc/functions/sleep.texi: Document the sleep module.
70856
70857 2007-05-01  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/sigprocmask.h: Remove file.
70860         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70861         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70862         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70863         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70864         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70865         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70866         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70867         HAVE_SIGSET_T as a shell variable.
70868         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70869         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70870         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70871         (Depends-on): Add signal. Remove verify.
70872         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70873         (Include): Mention <signal.h> instead of sigprocmask.h.
70874         * NEWS: Mention the change.
70875         * lib/fatal-signal.c: Don't include sigprocmask.h.
70876
70877 2007-05-01  Bruno Haible  <bruno@clisp.org>
70878
70879         * modules/signal: New file.
70880         * lib/signal_.h: New file.
70881         * m4/signal_h.m4: New file.
70882
70883 2007-05-01  Bruno Haible  <bruno@clisp.org>
70884
70885         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70886         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70887         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70888         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70889
70890 2007-05-01  Bruno Haible  <bruno@clisp.org>
70891
70892         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70893         configure time.
70894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70895         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70896         * modules/sys_stat (Makefile.am): Substitute their values into
70897         sys/stat.h.
70898
70899 2007-05-01  Bruno Haible  <bruno@clisp.org>
70900
70901         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70902         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70903         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70904
70905 2007-05-01  Bruno Haible  <bruno@clisp.org>
70906
70907         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70908         'assert' module here.
70909
70910 2007-05-01  Bruno Haible  <bruno@clisp.org>
70911
70912         * doc/functions/*.texi: New files.
70913         * doc/functions/google-ranking.txt: New file.
70914         * doc/gnulib.texi (Function Substitutes): New chapter.
70915         (ctime, inet_ntoa): Remove sections.
70916         * doc/ctime.texi: Remove file.
70917         * doc/inet_ntoa.texi: Remove file.
70918         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70919         dependencies.
70920         (%.info): New rule, specifying a --reference-limit.
70921
70922 2007-05-01  Bruno Haible  <bruno@clisp.org>
70923
70924         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70925
70926 2007-05-01  Bruno Haible  <bruno@clisp.org>
70927
70928         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70929         the portability of 'mkdir' to mingw systems.
70930
70931 2007-05-01  Bruno Haible  <bruno@clisp.org>
70932
70933         * doc/headers/google-ranking.txt: New file.
70934
70935 2007-04-30  Eric Blake  <ebb9@byu.net>
70936
70937         Prefer fseeko to fseek.
70938         * modules/getpass (Depends-on): Add fseeko.
70939         * lib/getpass.c (getpass): Use fseeko, not fseek.
70940
70941 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70942
70943         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70944         assumes the sorting is stable, while most qsort implementations
70945         are not.  Use argument addresses to ensure they never compare as
70946         equal.
70947
70948         * tests/test-argp-2.sh (usage-indent test): Fix output
70949         (func_compare): Restore diff options
70950         * tests/test-argp.c: Restore #include "progname.h"
70951
70952 2007-04-29  Bruno Haible  <bruno@clisp.org>
70953
70954         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70956         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70957         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70958         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70959         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70960         (TESTS, check_PROGRAMS): Add test-snprintf.
70961         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70962         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70963         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70964         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70965         assertions that fail on HP-UX, OSF/1, or IRIX.
70966         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70967
70968 2007-04-29  Bruno Haible  <bruno@clisp.org>
70969
70970         * MODULES.html.sh (posix_functions): Remove 'contents'.
70971
70972 2007-04-29  Karl Berry  <karl@gnu.org>
70973
70974         * config/srclist.txt (gendocs_template_min): new entry.
70975
70976 2007-04-29  Bruno Haible  <bruno@clisp.org>
70977
70978         Work around fpurge bug on BSD systems.
70979         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70981         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70982         fpurge to rpl_fpurge if the system already has this function.
70983         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70984         the case where the system already has this function. Correct invariants
70985         on BSD systems.
70986         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70987         BSD systems.
70988
70989 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70990
70991         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70992         proposed by Sven Verdoolaege.
70993
70994         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70995         options.
70996         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70997         (usage and help tests): Update
70998
70999 2007-04-29  Bruno Haible  <bruno@clisp.org>
71000
71001         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71002         Print more information in case of failure. Disable a test on BeOS.
71003
71004 2007-04-29  Bruno Haible  <bruno@clisp.org>
71005
71006         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71007         This helps debugging on systems on which no gdb is available.
71008
71009 2007-04-29  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/freading.h: Improve comments.
71012         * lib/fwriting.h: Likewise.
71013         * tests/test-freading.c (main): Don't check freading immediately after
71014         repositioning. Needed for glibc.
71015
71016 2007-04-29  Bruno Haible  <bruno@clisp.org>
71017
71018         * lib/freading.c (freading): Trivial simplification.
71019
71020 2007-04-28  Bruno Haible  <bruno@clisp.org>
71021
71022         * tests/test-fwriting.c (main): Also test the interaction between
71023         fflush and fwriting.
71024         * modules/fwriting-tests (Depends-on): Add fflush.
71025
71026         * tests/test-freading.c (main): Also test the interaction between
71027         fflush and freading.
71028         * modules/freading-tests (Depends-on): Add fflush.
71029
71030 2007-04-28  Bruno Haible  <bruno@clisp.org>
71031
71032         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71033         fseeko and ftello.
71034         Suggested by Eric Blake.
71035
71036 2007-04-28  Jim Meyering  <jim@meyering.net>
71037
71038         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71039         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71040         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71041
71042 2007-04-27  Eric Blake  <ebb9@byu.net>
71043
71044         * doc/headers/assert.texi (assert.h): Document assert module use.
71045
71046 2007-04-27  Bruno Haible  <bruno@clisp.org>
71047
71048         * doc/headers/*.texi: New files.
71049         * doc/gnulib.texi (Header File Substitutes): New chapter.
71050         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71051         dependencies.
71052         (standards.info ,standards.html, standards.dvi): Update dependencies.
71053         (mostlyclean, clean): New targets.
71054
71055 2007-04-27  Bruno Haible  <bruno@clisp.org>
71056
71057         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71058         * modules/sysexits (Files, Makefile.am): Update.
71059
71060         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71061         * modules/sys_socket (Files, Makefile.am): Update.
71062
71063         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71064         * modules/sys_stat (Files, Makefile.am): Update.
71065
71066 2007-04-27  Eric Blake  <ebb9@byu.net>
71067
71068         * lib/freading.h: Improve comments.
71069         * lib/fwriting.h: Likewise.
71070         * lib/fflush.c: Likewise.
71071
71072         Fix closein for mingw.
71073         * modules/closein-tests: Add tests for closein.
71074         * tests/test-closein.c: New file.
71075         * tests/test-closein.sh: Likewise.
71076         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71077         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71078
71079 2007-04-27  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71082         version is < 6.
71083         * lib/math_.h [__DECC]: Likewise.
71084         * lib/stdio_.h [__DECC]: Likewise.
71085         * lib/stdlib_.h [__DECC]: Likewise.
71086         * lib/string_.h [__DECC]: Likewise.
71087         * lib/time_.h [__DECC]: Likewise.
71088         * lib/wchar_.h [__DECC]: Likewise.
71089         * lib/wctype_.h [__DECC]: Likewise.
71090
71091 2007-04-27  Bruno Haible  <bruno@clisp.org>
71092
71093         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71094
71095 2007-04-27  Bruno Haible  <bruno@clisp.org>
71096
71097         * lib/fflush.c: Add comments.
71098         * modules/fpurge-tests (Depends-on): Add fflush.
71099         * modules/freadable-tests (Depends-on): Likewise.
71100         * modules/fwritable-tests (Depends-on): Likewise.
71101
71102 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71103
71104         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71105         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71106         Report by Bruno Haible <bruno@clisp.org>.
71107
71108 2007-04-26  Eric Blake  <ebb9@byu.net>
71109
71110         Fix fflush on mingw.
71111         * modules/fflush (Depends-on): Add freading.
71112         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71113         but unread data.
71114
71115 2007-04-26  Eric Blake  <ebb9@byu.net>
71116         and Bruno Haible  <bruno@clisp.org>
71117
71118         Implement freading and fwriting.
71119         * lib/freading.c: New file.
71120         * lib/freading.h: Likewise.
71121         * m4/freading.m4: Likewise.
71122         * modules/freading: Likewise.
71123         * modules/freading-tests: Likewise.
71124         * tests/test-freading.c: Likewise.
71125         * lib/fwriting.c: New file.
71126         * lib/fwriting.h: Likewise.
71127         * m4/fwriting.m4: Likewise.
71128         * modules/fwriting: Likewise.
71129         * modules/fwriting-tests: Likewise.
71130         * tests/test-fwriting.c: Likewise.
71131         * MODULES.html.sh (File stream based Input/Output): Mention them.
71132
71133 2007-04-26  Bruno Haible  <bruno@clisp.org>
71134
71135         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71136         'long' when we assume it.
71137         Suggested by Eric Blake.
71138
71139 2007-04-26  Bruno Haible  <bruno@clisp.org>
71140
71141         Ensure fseeko, ftello are declared on glibc systems.
71142         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71143         * modules/fseeko (configure.ac-early): Likewise.
71144         * modules/ftello (configure.ac-early): Likewise.
71145         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71146         AC_FUNC_FSEEKO for this.
71147         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71148         (gl_CHECK_FSEEKO): Remove macro.
71149
71150 2007-04-26  Bruno Haible  <bruno@clisp.org>
71151
71152         * tests/test-fflush.c (main): Also check the ftell result after
71153         fflush and fseek/fseeko.
71154         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71155         file descriptor position cache in the stream.
71156         * lib/fseeko.c (rpl_fseeko): Likewise.
71157
71158 2007-04-26  Bruno Haible  <bruno@clisp.org>
71159
71160         * modules/fflush-tests (Depends-on): Add fseeko.
71161
71162 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71163             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71164
71165         * lib/argz_.h: ensure error_t definition is obtained in same
71166         mechanism system argz.h would have.
71167         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71168         argz facilities are known bad.  Err on the side of caution if
71169         cross-compiling.
71170
71171 2007-04-25  Eric Blake  <ebb9@byu.net>
71172
71173         * lib/fpurge.c (includes): Use stdlib.h for free.
71174         * tests/test-fflush.c (main): Also test fflush-fseeko.
71175
71176 2007-04-25  Bruno Haible  <bruno@clisp.org>
71177
71178         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71179         * lib/fseeko.c: New file.
71180         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71181         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71182         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71183         gl_FUNC_FSEEKO.
71184         (gl_FUNC_FSEEKO): Invoke it.
71185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71186         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71187         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71188
71189 2007-04-25  Bruno Haible  <bruno@clisp.org>
71190
71191         * modules/fflush (Depends-on): Add ftello.
71192
71193 2007-04-25  Bruno Haible  <bruno@clisp.org>
71194
71195         * modules/ftello-tests: New file.
71196         * tests/test-ftello.c: New file.
71197
71198         * modules/ftello: New file.
71199         * m4/ftello.m4: New file.
71200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71201         HAVE_FTELLO.
71202         * lib/stdio_.h (ftello): New declaration.
71203         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71204         HAVE_FTELLO.
71205
71206 2007-04-25  Bruno Haible  <bruno@clisp.org>
71207
71208         * modules/fseeko-tests: New file.
71209         * tests/test-fseeko.c: New file.
71210
71211         * modules/fseeko: New file.
71212         * m4/fseeko.m4: New file.
71213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71214         HAVE_FSEEKO.
71215         * lib/stdio_.h (fseeko): New declaration.
71216         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71217         HAVE_FSEEKO.
71218
71219 2007-04-25  Bruno Haible  <bruno@clisp.org>
71220
71221         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71222
71223 2007-04-25  Bruno Haible  <bruno@clisp.org>
71224
71225         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71226         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71227         * tests/test-unistd.c: Likewise.
71228         * tests/test-fcntl.c: Likewise.
71229
71230 2007-04-23  Eric Blake  <ebb9@byu.net>
71231
71232         * lib/fflush.c: Fix missing include.
71233         Reported by Bruno Haible.
71234
71235 2007-04-23  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71238         Reported by Eric Blake.
71239
71240 2007-04-23  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71243
71244 2007-04-23  Bruno Haible  <bruno@clisp.org>
71245
71246         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71247
71248 2007-04-23  Bruno Haible  <bruno@clisp.org>
71249
71250         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71251         Needed on HP-UX 11.
71252
71253 2007-04-16  Eric Blake  <ebb9@byu.net>
71254
71255         Make fflush rely on fpurge.
71256         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71257         open coding all variants.
71258         * modules/fflush (Depends-on): Add fpurge and unistd.
71259         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71260         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71261
71262         Fix --with-tests compilation on cygwin.
71263         * modules/argmatch-tests (Makefile.am): List gnulib library first
71264         in LDADD.
71265         * modules/argp-tests (Makefile.am): Likewise.
71266         * modules/array-list-tests (Makefile.am): Likewise.
71267         * modules/array-oset-tests (Makefile.am): Likewise.
71268         * modules/avltree-list-tests (Makefile.am): Likewise.
71269         * modules/avltree-oset-tests (Makefile.am): Likewise.
71270         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71271         * modules/carray-list-tests (Makefile.am): Likewise.
71272         * modules/dirname-tests (Makefile.am): Likewise.
71273         * modules/frexp-tests (Makefile.am): Likewise.
71274         * modules/isnanl-tests (Makefile.am): Likewise.
71275         * modules/linked-list-tests (Makefile.am): Likewise.
71276         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71277         * modules/lock-tests (Makefile.am): Likewise.
71278         * modules/rbtree-list-tests (Makefile.am): Likewise.
71279         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71280         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71281         * modules/tls-tests (Makefile.am): Likewise.
71282         * modules/tsearch-tests (Makefile.am): Likewise.
71283         * modules/xvasprintf-tests (Makefile.am): Likewise.
71284
71285         Fix fpurge for cygwin.
71286         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71287         value.
71288         * modules/fpurge-tests (Depends-on): Clean up trash.
71289
71290 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71291
71292         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71293
71294         * m4/autobuild.m4: Re-indent.
71295
71296 2007-04-13  Bruno Haible  <bruno@clisp.org>
71297
71298         * modules/fpurge-tests: New file.
71299         * tests/test-fpurge.c: New file.
71300
71301         * modules/fpurge: New file.
71302         * lib/fpurge.h: New file.
71303         * lib/fpurge.c: New file.
71304         * m4/fpurge.m4: New file.
71305
71306 2007-04-13  Bruno Haible  <bruno@clisp.org>
71307
71308         * modules/fbufmode-tests: New file.
71309         * tests/test-fbufmode.c: New file.
71310
71311         * modules/fbufmode: New file.
71312         * lib/fbufmode.h: New file.
71313         * lib/fbufmode.c: New file.
71314         * m4/fbufmode.m4: New file.
71315
71316 2007-04-13  Bruno Haible  <bruno@clisp.org>
71317
71318         * modules/fwritable-tests: New file.
71319         * tests/test-fwritable.c: New file.
71320
71321         * modules/fwritable: New file.
71322         * lib/fwritable.h: New file.
71323         * lib/fwritable.c: New file.
71324         * m4/fwritable.m4: New file.
71325
71326 2007-04-13  Bruno Haible  <bruno@clisp.org>
71327
71328         * modules/freadable-tests: New file.
71329         * tests/test-freadable.c: New file.
71330
71331         * modules/freadable: New file.
71332         * lib/freadable.h: New file.
71333         * lib/freadable.c: New file.
71334         * m4/freadable.m4: New file.
71335
71336 2007-04-13  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71339         MOSTLYCLEANFILES.
71340
71341 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71342
71343         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71344         gzip bootstrap.conf to avoid dragging in i18n machinery.
71345         (gnulib_tool_option): Use it.
71346
71347 2007-04-13  Bruno Haible  <bruno@clisp.org>
71348
71349         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71350         %F directives.
71351         * tests/test-vasprintf-posix.c (test_function): Likewise.
71352         * tests/test-snprintf-posix.h (test_function): Likewise.
71353         * tests/test-sprintf-posix.h (test_function): Likewise.
71354         * tests/test-fprintf-posix.h (test_function): Likewise.
71355         * tests/test-printf-posix.h (test_function): Likewise.
71356         * tests/test-fprintf-posix.out: Likewise.
71357
71358 2007-04-13  Bruno Haible  <bruno@clisp.org>
71359
71360         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71361         * modules/tls-tests (configure.ac): Likewise.
71362         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71363
71364 2007-04-13  Bruno Haible  <bruno@clisp.org>
71365
71366         * lib/tls.c (glthread_tls_get): Fix return type.
71367         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71368
71369 2007-04-12  Eric Blake  <ebb9@byu.net>
71370
71371         * modules/gettime (Depends-on): Remove gettime.
71372         Reported by Dmitry V. Levin.
71373
71374 2007-04-12  Bruno Haible  <bruno@clisp.org>
71375
71376         * modules/fflush (Include): Mention <stdio.h>.
71377         * modules/strtoimax (Include): Mention <inttypes.h>.
71378         * modules/strtoumax (Include): Likewise.
71379
71380 2007-04-12  Eric Blake  <ebb9@byu.net>
71381
71382         * .cvsignore: New file.
71383         * .gitignore: Likewise.
71384
71385 2007-04-12  Bruno Haible  <bruno@clisp.org>
71386
71387         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71388         not before, since $(LDADD) often contains libgnu.a.
71389         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71390         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71391         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71392         Needed on Cygwin.
71393
71394 2007-04-12  Eric Blake  <ebb9@byu.net>
71395
71396         Work around glibc's failure to flush stdin on fclose.
71397         * lib/closein.c (close_stdin): Flush stdin before closing.
71398
71399         Work around glibc's failure to reset seekable stdin on exit.
71400         * modules/closein: New module.
71401         * lib/closein.c: New file.
71402         * lib/closein.h: Likewise.
71403         * m4/closein.m4: Likewise.
71404         * MODULES.html.sh (File stream based Input/Output): Document it.
71405
71406 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71407
71408         * gnulib-tool: Rename generated 'autobuild' script to
71409         'do-autobuild' in --create-megatestdir output.
71410
71411         * doc/gnulib.texi (Build robot for gnulib): Fix.
71412
71413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71414
71415         * modules/sysexits (Depends-on): Add absolute-header.
71416
71417 2007-04-12  Eric Blake  <ebb9@byu.net>
71418
71419         No need to preserve errno on success.
71420         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71421         Reported by Bruno Haible.
71422
71423 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71424
71425         * MODULES.html.sh (Support for maintaining and releasing
71426         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71427
71428 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71429
71430         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71431
71432 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71433
71434         * modules/autobuild: New module.
71435
71436         * m4/autobuild.m4: New file.
71437
71438 2007-04-11  Bruno Haible  <bruno@clisp.org>
71439
71440         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71441         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71445         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71446         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71448         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71449         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71451         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71452         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71454         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71455         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71456         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71457         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71458         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71460         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71461         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71463         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71464         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71466         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71467         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71468         Reported by Eric Blake.
71469
71470 2007-04-11  Bruno Haible  <bruno@clisp.org>
71471
71472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71473
71474 2007-04-10  Bruno Haible  <bruno@clisp.org>
71475
71476         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71477         for NaN and Infinity. Needed on FreeBSD 6.1.
71478         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71479         regarding results for "%010a" of Infinity and NaN.
71480         * tests/test-vasprintf-posix.c (test_function): Likewise.
71481         * tests/test-snprintf-posix.h (test_function): Likewise.
71482         * tests/test-sprintf-posix.h (test_function): Likewise.
71483         * tests/test-fprintf-posix.h (test_function): Likewise.
71484         * tests/test-printf-posix.h (test_function): Likewise.
71485         * tests/test-fprintf-posix.out: Likewise.
71486
71487 2007-04-10  Bruno Haible  <bruno@clisp.org>
71488
71489         * modules/locale-tests: New file.
71490         * tests/test-locale.c: New file.
71491
71492         * modules/locale: New file.
71493         * lib/locale_.h: New file.
71494         * m4/locale_h.m4: New file.
71495
71496 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71497             Bruno Haible  <bruno@clisp.org>
71498
71499         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71500         be determined, test for availability of the copysignf, copysign,
71501         copysignl functions.
71502         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71503         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71504         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71505
71506 2007-04-09  Eric Blake  <ebb9@byu.net>
71507
71508         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71509         * modules/stdio (Makefile.am): Support fflush.
71510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71511         * modules/fflush: New file.
71512         * lib/fflush.c: Likewise.
71513         * m4/fflush.m4: Likewise.
71514         * modules/fflush-tests: New test.
71515         * tests/test-fflush.c: Likewise.
71516         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71517
71518 2007-04-06  Bruno Haible  <bruno@clisp.org>
71519
71520         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71521         (VASNPRINTF): Use signbit for faster determination whether to print a
71522         minus sign.
71523         * modules/vasnprintf (Files): Remove lib/float+.h.
71524         * modules/fprintf-posix (Depends-on): Add signbit.
71525         * modules/snprintf-posix (Depends-on): Likewise.
71526         * modules/sprintf-posix (Depends-on): Likewise.
71527         * modules/vasnprintf-posix (Depends-on): Likewise.
71528         * modules/vasprintf-posix (Depends-on): Likewise.
71529         * modules/vfprintf-posix (Depends-on): Likewise.
71530         * modules/vsnprintf-posix (Depends-on): Likewise.
71531         * modules/vsprintf-posix (Depends-on): Likewise.
71532
71533 2007-04-06  Bruno Haible  <bruno@clisp.org>
71534
71535         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71536         * tests/test-frexpl.c (main): Likewise.
71537         * tests/test-ldexpl.c (main): Likewise.
71538         * modules/frexp-tests (Depends-on): Add signbit.
71539         * modules/frexpl-tests (Depdends-on): Likewise.
71540         * modules/ldexpl-tests (Depdends-on): Likewise.
71541
71542 2007-04-06  Bruno Haible  <bruno@clisp.org>
71543
71544         * modules/signbit-tests: New file.
71545         * tests/test-signbit.c: New file.
71546
71547         * modules/signbit: New file.
71548         * lib/signbitf.c: New file.
71549         * lib/signbitd.c: New file.
71550         * lib/signbitl.c: New file.
71551         * m4/signbit.m4: New file.
71552         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71553         (signbit): New macro.
71554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71555         REPLACE_SIGNBIT.
71556         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71557         REPLACE_FREXPL into math.h.
71558
71559 2007-04-06  Bruno Haible  <bruno@clisp.org>
71560
71561         * modules/isnanf-nolibm-tests: New file.
71562         * tests/test-isnanf.c: New file.
71563
71564         * modules/isnanf-nolibm: New file.
71565         * lib/isnanf.h: New file.
71566         * lib/isnanf.c: New file.
71567         * lib/isnan.c: Consider the USE_FLOAT macro.
71568         * m4/isnanf.m4: New file.
71569
71570 2007-04-06  Bruno Haible  <bruno@clisp.org>
71571
71572         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71573         (Link): New section.
71574
71575         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71576
71577 2007-04-06  Bruno Haible  <bruno@clisp.org>
71578
71579         Assume the 'long double' type.
71580         * m4/longdouble.m4: Remove file.
71581         * config/srclist.txt: Don't mention longdouble.m4.
71582         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71583         * lib/float+.h: Likewise.
71584         * lib/frexp.c: Likewise.
71585         * lib/printf-args.h: Likewise.
71586         * lib/printf-args.c: Likewise.
71587         * lib/printf-frexp.c: Likewise.
71588         * lib/printf-parse.c: Likewise.
71589         * lib/vasnprintf.c: Likewise.
71590         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71591         * m4/intl.m4: Likewise.
71592         * m4/isnanl.m4: Likewise.
71593         * m4/printf.m4: Likewise.
71594         * m4/printf-frexpl.m4: Likewise.
71595         * m4/vasnprintf.m4: Likewise.
71596         * modules/allocsa (Files): Remove m4/longdouble.m4.
71597         * modules/gettext (Files): Likewise.
71598         * modules/relocatable-prog-wrapper (Files): Likewise.
71599         * modules/vasnprintf (Files): Likewise.
71600         * modules/isnanl (Files): Likewise.
71601         (Include): Simplify.
71602         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71603         (Include): Simplify.
71604         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71605         (Include): Simplify.
71606         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71607         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71608         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71609         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71610         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71611         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71612         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71613         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71614         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71615         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71616         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71617         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71618         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71619         * tests/test-isnanl.c: Likewise.
71620         * tests/test-snprintf-posix.h: Likewise.
71621         * tests/test-sprintf-posix.h: Likewise.
71622         * tests/test-vasnprintf-posix.c: Likewise.
71623         * tests/test-vasnprintf-posix2.c: Likewise.
71624         * tests/test-vasprintf-posix.c: Likewise.
71625
71626 2007-04-06  Bruno Haible  <bruno@clisp.org>
71627
71628         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71629         * lib/math_.h [__DECC]: Include the overridden include file through
71630         #include_next, outside the double-inclusion guard.
71631         * lib/stdio_.h [__DECC]: Likewise.
71632         * lib/stdlib_.h [__DECC]: Likewise.
71633         * lib/string_.h [__DECC]: Likewise.
71634         * lib/time_.h [__DECC]: Likewise.
71635         * lib/wchar_.h [__DECC]: Likewise.
71636         * lib/wctype_.h [__DECC]: Likewise.
71637         * lib/inttypes_.h [__DECC]: Likewise.
71638         Reported by Albert Chin <china@thewrittenword.com> in
71639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71640
71641 2007-04-04  Eric Blake  <ebb9@byu.net>
71642
71643         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71644         1.5.x.
71645
71646 2007-04-04  Bruno Haible  <bruno@clisp.org>
71647
71648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71649         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71650
71651 2007-04-04  Bruno Haible  <bruno@clisp.org>
71652
71653         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71654         results for "%010a" of Infinity and NaN.
71655         * tests/test-vasprintf-posix.c (test_function): Likewise.
71656         * tests/test-snprintf-posix.h (test_function): Likewise.
71657         * tests/test-sprintf-posix.h (test_function): Likewise.
71658         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71659         * tests/test-printf-posix.h (test_function): Likewise.
71660         * tests/test-fprintf-posix.out: Update.
71661         Needed for FreeBSD 6.1.
71662
71663 2007-04-04  Bruno Haible  <bruno@clisp.org>
71664
71665         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71666         directly used by the gnulib modules nor by gnulib-tool.
71667
71668 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * DEPENDENCIES: Give overall description of version dependency
71671         desirability.  Use more-typical names for apps.
71672         Add shell, coreutils, diffutils, grep, tar, gzip.
71673
71674 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71675
71676         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71677
71678 2007-04-04  Karl Berry  <karl@gnu.org>
71679
71680         * MODULES.html.sh (func_module): missing '.
71681
71682 2007-04-03  Bruno Haible  <bruno@clisp.org>
71683
71684         * modules/argmatch-tests (Makefile.am): New variable
71685         test_argmatch_LDADD.
71686         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71687         * modules/array-list-tests (Makefile.am): New variable
71688         test_array_list_LDADD.
71689         * modules/array-oset-tests (Makefile.am): New variable
71690         test_array_oset_LDADD.
71691         * modules/avltree-list-tests (Makefile.am): New variable
71692         test_avltree_list_LDADD.
71693         * modules/avltree-oset-tests (Makefile.am): New variable
71694         test_avltree_oset_LDADD.
71695         * modules/avltreehash-list-tests (Makefile.am): New variable
71696         test_avltreehash_list_LDADD.
71697         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71698         test_canonicalize_lgpl_LDADD.
71699         * modules/carray-list-tests (Makefile.am): New variable
71700         test_carray_list_LDADD.
71701         * modules/dirname-tests (Makefile.am): New variable
71702         test_dirname_LDADD.
71703         * modules/linked-list-tests (Makefile.am): New variable
71704         test_linked_list_LDADD.
71705         * modules/linkedhash-list-tests (Makefile.am): New variable
71706         test_linkedhash_list_LDADD.
71707         * modules/rbtree-list-tests (Makefile.am): New variable
71708         test_rbtree_list_LDADD.
71709         * modules/rbtree-oset-tests (Makefile.am): New variable
71710         test_rbtree_oset_LDADD.
71711         * modules/rbtreehash-list-tests (Makefile.am): New variable
71712         test_rbtreehash_list_LDADD.
71713         * modules/xvasprintf-tests (Makefile.am): New variable
71714         test_xvasprintf_LDADD.
71715         Reported by Eric Blake.
71716
71717 2007-04-03  Eric Blake  <ebb9@byu.net>
71718
71719         * DEPENDENCIES: Weaken m4 requirements.
71720
71721 2007-04-03  Bruno Haible  <bruno@clisp.org>
71722
71723         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71724         * modules/isnanl-tests (configure.ac): Likewise.
71725
71726 2007-04-03  Ben Pfaff  <blp@gnu.org>
71727
71728         * modules/iconv_open: Add $(srcdir)/ to source directory
71729         references in Makefile fragments that call gperf, to fix VPATH
71730         builds.
71731
71732 2007-04-03  Bruno Haible  <bruno@clisp.org>
71733
71734         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71735         * lib/ldexpl.c: Undo last change.
71736
71737 2007-04-03  Bruno Haible  <bruno@clisp.org>
71738
71739         * modules/printf-frexpl (Depends-on): Undo last change.
71740         (Files): Add m4/ldexpl.m4.
71741
71742 2007-04-03  Bruno Haible  <bruno@clisp.org>
71743
71744         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71745         * modules/isnanl (Link): New section.
71746
71747         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71748         * modules/frexp (Link): New section.
71749
71750         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71751         * modules/frexpl (Link): New section.
71752
71753         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71754         * modules/ldexpl (Link): New section.
71755
71756 2007-04-03  Bruno Haible  <bruno@clisp.org>
71757
71758         * modules/TEMPLATE-EXTENDED: New file.
71759         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71760
71761 2007-04-03  Bruno Haible  <bruno@clisp.org>
71762
71763         * DEPENDENCIES: New file.
71764         Suggested by Simon Josefsson.
71765
71766 2007-04-03  Bruno Haible  <bruno@clisp.org>
71767
71768         * doc/gnulib.texi: Escape @.
71769
71770 2007-04-03  James Youngman  <jay@gnu.org>
71771         and Paul Eggert  <eggert@cs.ucla.edu>
71772
71773         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71774         birthtime on all systems that have birthtime, not just those which
71775         use st_birthtimensec rather than st_birthtim.  Putting zero in
71776         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71777         that the birth time is not available for files on an NFS mount.
71778
71779 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71780
71781         * modules/memxor: Move back from crypto/, suggested by Bruno.
71782         * modules/crypto/hmac-sha1: Fix memxor dependency.
71783
71784         * modules/crypto/gc: Moved from ../.
71785
71786 2007-04-02  Eric Blake  <ebb9@byu.net>
71787
71788         * lib/ldexpl.c (includes): Avoid libm.
71789
71790         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71791
71792 2007-04-02  Bruno Haible  <bruno@clisp.org>
71793
71794         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71795         on IRIX.
71796
71797 2007-04-02  Bruno Haible  <bruno@clisp.org>
71798
71799         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71800         x86 or x86_64 platforms running MacOS X.
71801         Reported by Ryan Schmidt <@ryandesign.com>.
71802
71803 2007-04-02  Bruno Haible  <bruno@clisp.org>
71804
71805         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71806         i386.
71807
71808 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71809
71810         * modules/crypto/arcfour: Moved from ../.
71811         * modules/crypto/arcfour-tests: Moved from ../.
71812         * modules/crypto/arctwo: Moved from ../.
71813         * modules/crypto/arctwo-tests: Moved from ../.
71814         * modules/crypto/des: Moved from ../.
71815         * modules/crypto/des-tests: Moved from ../.
71816         * modules/crypto/gc-arcfour: Moved from ../.
71817         * modules/crypto/gc-arcfour-tests: Moved from ../.
71818         * modules/crypto/gc-arctwo: Moved from ../.
71819         * modules/crypto/gc-arctwo-tests: Moved from ../.
71820         * modules/crypto/gc-des: Moved from ../.
71821         * modules/crypto/gc-des-tests: Moved from ../.
71822         * modules/crypto/gc-hmac-md5: Moved from ../.
71823         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71824         * modules/crypto/gc-hmac-sha1: Moved from ../.
71825         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71826         * modules/crypto/gc-md2: Moved from ../.
71827         * modules/crypto/gc-md2-tests: Moved from ../.
71828         * modules/crypto/gc-md4: Moved from ../.
71829         * modules/crypto/gc-md4-tests: Moved from ../.
71830         * modules/crypto/gc-md5: Moved from ../.
71831         * modules/crypto/gc-md5-tests: Moved from ../.
71832         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71833         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71834         * modules/crypto/gc-random: Moved from ../.
71835         * modules/crypto/gc-rijndael: Moved from ../.
71836         * modules/crypto/gc-rijndael-tests: Moved from ../.
71837         * modules/crypto/gc-sha1: Moved from ../.
71838         * modules/crypto/gc-sha1-tests: Moved from ../.
71839         * modules/crypto/gc-tests: Moved from ../.
71840         * modules/crypto/hmac-md5: Moved from ../.
71841         * modules/crypto/hmac-md5-tests: Moved from ../.
71842         * modules/crypto/hmac-sha1: Moved from ../.
71843         * modules/crypto/hmac-sha1-tests: Moved from ../.
71844         * modules/crypto/md2: Moved from ../.
71845         * modules/crypto/md2-tests: Moved from ../.
71846         * modules/crypto/md4: Moved from ../.
71847         * modules/crypto/md4-tests: Moved from ../.
71848         * modules/crypto/md5: Moved from ../.
71849         * modules/crypto/md5-tests: Moved from ../.
71850         * modules/crypto/memxor: Moved from ../.
71851         * modules/crypto/rijndael: Moved from ../.
71852         * modules/crypto/rijndael-tests: Moved from ../.
71853         * modules/crypto/sha1: Moved from ../.
71854
71855 2007-03-30  James Youngman  <jay@gnu.org>
71856
71857         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71858         rename() to change the ctime of a file (because ctime is unaffected
71859         by rename on jfs2 on AIX 5.1).
71860         (main): Start by doing cleanup, in case a previous run failed leaving
71861         test files behind.
71862
71863 2007-03-31  Bruno Haible  <bruno@clisp.org>
71864
71865         Support old proprietary implementations of iconv.
71866         * modules/iconv_open: New file.
71867         * lib/iconv_.h: New file.
71868         * m4/iconv_h.m4: New file.
71869         * lib/iconv_open.c: New file.
71870         * lib/iconv_open-aix.gperf: New file.
71871         * lib/iconv_open-hpux.gperf: New file.
71872         * lib/iconv_open-irix.gperf: New file.
71873         * lib/iconv_open-osf.gperf: New file.
71874         * m4/iconv_open.m4: New file.
71875         * modules/linebreak (Depends-on): Add iconv_open.
71876         * modules/striconv (Depends-on): Likewise.
71877         * modules/striconveh (Depends-on): Likewise.
71878         * modules/unicodeio (Depends-on): Likewise.
71879         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71880         (iconv_t)(-1).
71881         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71882         conversion if cd is (iconv_t)(-1).
71883         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71884         is not possible.
71885
71886 2007-03-31  Bruno Haible  <bruno@clisp.org>
71887
71888         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71889         work on Solaris either. Protect also second use of "autodetect_jp".
71890
71891 2007-03-31  Bruno Haible  <bruno@clisp.org>
71892
71893         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71894         the function is not present.
71895
71896 2007-03-31  Bruno Haible  <bruno@clisp.org>
71897
71898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71899         the function is not present.
71900
71901 2007-03-31  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71904         a bug in HP-UX iconv_open().
71905
71906 2007-03-31  Bruno Haible  <bruno@clisp.org>
71907
71908         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71909         (Mathematics <math.h>): New section, add fpieee.
71910         (Input/output <stdio.h>): Add fseterr.
71911         (Mathematics <math.h>): New section, add printf-frexp.
71912         (Container data structures): Add sublist.
71913         (Core language properties): Add fpucw, inline.
71914         (Functions for greatest-width integer types <inttypes.h>): Add
71915         imaxabs, imaxdiv, inttypes.
71916         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71917         isnanl-nolibm, ldexp.
71918         (Mathematics <math.h>): New section, add printf-frexpl.
71919         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71920         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71921         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71922         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71923         (Unicode string functions): Add unistr/u*-mbtoucr.
71924         (Java): Add javacomp-script, javaexec-script.
71925         (C#): Add csharpcomp-script, csharpexec-script.
71926         (Support for building libraries and executables): Add havelib,
71927         relocatable-*.
71928         (Support for maintaining and releasing projects): Renamed from
71929         'Support for maintaining and release projects'. Add announce-gen.
71930
71931 2007-03-31  Bruno Haible  <bruno@clisp.org>
71932
71933         * README: Talk primarily about git.
71934         (git and CVS): Renamed from CVS.
71935         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71936         gnulib is available through git.
71937         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71938
71939 2007-03-30  Bruno Haible  <bruno@clisp.org>
71940
71941         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71942         * lib/poll_.h: Likewise.
71943         * lib/stat_.h: Likewise.
71944         * lib/sys_time_.h: Likewise.
71945         * lib/sysexit_.h: Likewise.
71946         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71947         * lib/stdbool_.h: Likewise.
71948         * lib/byteswap_.h: Add double-inclusion guard.
71949
71950 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71951
71952         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71953
71954 2007-03-30  Karl Berry  <karl@gnu.org>
71955
71956         * config/srclist-update: double space after USA in the license
71957         substitution, since that's how it's usually (?) written.
71958
71959 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71960
71961         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71962         reported by Bruno Haible.
71963
71964 2007-03-29  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71967         a bug in AIX iconv().
71968
71969 2007-03-29  Bruno Haible  <bruno@clisp.org>
71970
71971         * modules/ldexpl-tests: New file.
71972         * tests/test-ldexpl.c: New file.
71973
71974 2007-03-29  Bruno Haible  <bruno@clisp.org>
71975
71976         * lib/ldexpl.c: Include fpucw.h.
71977         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71978         multiplication.
71979         * modules/ldexpl (Depends-on): Add fpucw.
71980
71981 2007-03-29  Bruno Haible  <bruno@clisp.org>
71982
71983         * modules/ldexpl: New file.
71984         * m4/ldexpl.m4: New file.
71985         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71986         set.
71987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71988         REPLACE_LDEXPL.
71989         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71990         REPLACE_LDEXPL.
71991         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71992         gl_FUNC_LDEXPL_WORKS.
71993         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71994         * modules/mathl (Files): Remove lib/ldexpl.c.
71995         (Depends-on): Add ldexpl.
71996
71997 2007-03-29  Bruno Haible  <bruno@clisp.org>
71998
71999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72000
72001 2007-03-29  Bruno Haible  <bruno@clisp.org>
72002
72003         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72004         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72005         and possibly also HP-UX.
72006         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72007         work on AIX, IRIX, HP-UX, OSF/1.
72008         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72009         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72010         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72011         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72012         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72013         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72014
72015 2007-03-29  Bruno Haible  <bruno@clisp.org>
72016
72017         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72018
72019 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72022         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72023
72024 2007-03-29  Eric Blake  <ebb9@byu.net>
72025
72026         * lib/acl-internal.h: Remove redundant include.
72027         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72028         Cygwin when a file is locked.
72029
72030 2007-03-29  Bruno Haible  <bruno@clisp.org>
72031
72032         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72033         file.
72034         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72035
72036 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72039         try to remove a parent directory if the child couldn't be removed
72040         (except for the first rmdir, which could fail because the child
72041         doesn't exist).  Problem reported by Jeff Blaine in
72042         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72043
72044 2007-03-28  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/striconveh.c (utf8conv_carefully): New function.
72047         (mem_cd_iconveh_internal): Invoke it.
72048
72049 2007-03-28  Bruno Haible  <bruno@clisp.org>
72050
72051         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72052         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72053         input.
72054         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72055         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72056         unistr/u8-uctomb.
72057
72058 2007-03-28  Bruno Haible  <bruno@clisp.org>
72059
72060         * modules/unistr/u8-mbtoucr: New file.
72061         * lib/unistr/u8-mbtoucr.c: New file.
72062         * modules/unistr/u16-mbtoucr: New file.
72063         * lib/unistr/u16-mbtoucr.c: New file.
72064         * modules/unistr/u16-mbtoucr: New file.
72065         * lib/unistr/u16-mbtoucr.c: New file.
72066         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72067
72068 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72069             Bruno Haible  <bruno@clisp.org>
72070
72071         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72072         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72073         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72074
72075         * m4/stdio_h.m4: Add stubs for vasprintf too.
72076
72077         * modules/stdio: Support vasprintf in sed command.
72078
72079         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72080         vasprintf.h.  Add stdio module indicator.
72081
72082         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72083         vasprintf.h.
72084
72085         * lib/vasprintf.h: File removed.
72086
72087         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72088         * lib/vasprintf.c: Ditto.
72089         * lib/xvasprintf.c: Ditto.
72090         * tests/test-vasprintf-posix.c: Ditto.
72091         * tests/test-vasprintf.c: Ditto.
72092
72093 2007-03-27  Bruno Haible  <bruno@clisp.org>
72094
72095         Make vasnprintf multithread-safe.
72096         * lib/vasnprintf.c (decimal_point_char): New function.
72097         (VASNPRINTF): Use it.
72098         Suggested by Simon Josefsson.
72099
72100 2007-03-27  Eric Blake  <ebb9@byu.net>
72101
72102         Support sub-second birthtime on cygwin.
72103         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72104         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72105         (get_stat_birthtime): Also work with st_birthtim.
72106
72107 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72110         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72111         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72112         (get_stat_birthtime_ns): Simplify compile-time tests.
72113         (get_stat_birthtime): Change the API to look like
72114         get_stat_mtime etc., except return a negative tv_nsec on error.
72115         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72116         Don't check for "spare" fields.
72117         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72118         or for struct stat.st_birthtime, as these tests aren't used.
72119         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72120
72121 2007-03-27  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/stat-time.h: Include <sys/stat.h>.
72124
72125 2007-03-27  James Youngman  <jay@gnu.org>
72126
72127         * lib/stat-time.h (get_stat_birthtime): New function for
72128           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72129         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72130           and its variants.
72131         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72132         * modules/stat-time-test: New file.
72133         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72134
72135 2007-03-26  Bruno Haible  <bruno@clisp.org>
72136
72137         Better support of signalling NaNs.
72138         * lib/atanl.c: Include isnanl.h.
72139         (atanl): Perform test for NaN at the beginning of the function and
72140         through a call to isnanl.
72141         * lib/cosl.c: Include isnanl.h.
72142         (cosl): Perform test for NaN at the beginning of the function and
72143         through a call to isnanl.
72144         * lib/ldexpl.c: Include isnanl.h.
72145         (ldexpl): Perform test for NaN through a call to isnanl.
72146         * lib/logl.c: Include isnanl.h.
72147         (logl): Perform test for NaN at the beginning of the function and
72148         through a call to isnanl.
72149         * lib/sinl.c: Include isnanl.h.
72150         (sinl): Perform test for NaN at the beginning of the function and
72151         through a call to isnanl.
72152         * lib/sqrtl.c: Include isnanl.h.
72153         (sqrtl): Perform test for NaN at the beginning of the function and
72154         through a call to isnanl.
72155         * lib/tanl.c: Include isnanl.h.
72156         (tanl): Perform test for NaN at the beginning of the function and
72157         through a call to isnanl.
72158         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72159         * modules/mathl (Depends-on): Add isnanl.
72160
72161 2007-03-26  Eric Blake  <ebb9@byu.net>
72162
72163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72164         regression in logic sense of previous patch.
72165
72166 2007-03-26  Bruno Haible  <bruno@clisp.org>
72167
72168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72169         unportable shell command "if ! ...".
72170         Reported by Ralf Wildenhues.
72171
72172 2007-03-25  Bruno Haible  <bruno@clisp.org>
72173
72174         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72175         <sysexits.h> file, and only add EX_CONFIG.
72176         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72177         absolute file name and whether it is sufficient. Substitute also
72178         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72179         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72180         ABSOLUTE_SYSEXITS_H into sysexits.h.
72181
72182 2007-03-25  Bruno Haible  <bruno@clisp.org>
72183
72184         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72185         hints is NULL.
72186
72187 2007-03-25  Bruno Haible  <bruno@clisp.org>
72188
72189         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72190         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72191
72192 2007-03-25  Bruno Haible  <bruno@clisp.org>
72193
72194         * lib/vasnprintf.c: Include langinfo.h.
72195         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72196         multithread-safe.
72197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72206         Reported by Simon Josefsson.
72207
72208 2007-03-25  Bruno Haible  <bruno@clisp.org>
72209
72210         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72211         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72212         * modules/vasnprintf (Depends-on): Add stdint.
72213
72214 2007-03-25  Bruno Haible  <bruno@clisp.org>
72215
72216         * modules/fpieee: New file.
72217         * m4/fpieee.m4: New file.
72218         * modules/isnan-nolibm (Depends-on): Add fpieee.
72219         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72220         * modules/isnanl (Depends-on): Add fpieee.
72221
72222 2007-03-25  Bruno Haible  <bruno@clisp.org>
72223
72224         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72225
72226 2007-03-25  Bruno Haible  <bruno@clisp.org>
72227
72228         Avoid test failures on IRIX 6.5.
72229         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72230         (main): Use it.
72231         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72232         macros.
72233         (main): Use them.
72234
72235 2007-03-25  Bruno Haible  <bruno@clisp.org>
72236
72237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72238         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72239         exists but doesn't work.
72240         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72241         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72243         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72244         math.h.
72245
72246 2007-03-25  Bruno Haible  <bruno@clisp.org>
72247
72248         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72249         returns inf. Needed on IRIX 6.5.
72250
72251 2007-03-25  Bruno Haible  <bruno@clisp.org>
72252
72253         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72254         (main): Use isnanl instead of x != x idiom.
72255         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72256
72257         * tests/test-frexp.c: Include isnan.h.
72258         (main): Use isnan instead of x != x idiom.
72259         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72260
72261 2007-03-25  Bruno Haible  <bruno@clisp.org>
72262
72263         * tests/test-frexp.c (NaN): New function/macro.
72264         (main): Use it instead of 0.0 / 0.0.
72265         * tests/test-isnan.c (NaN): New function/macro.
72266         (main): Use it instead of 0.0 / 0.0.
72267         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72268         (test_function): Use it instead of 0.0 / 0.0.
72269         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72270         (test_function): Use it instead of 0.0 / 0.0.
72271         * tests/test-snprintf-posix.h (NaN): New function/macro.
72272         (test_function): Use it instead of 0.0 / 0.0.
72273         * tests/test-sprintf-posix.h (NaN): New function/macro.
72274         (test_function): Use it instead of 0.0 / 0.0.
72275         * tests/test-fprintf-posix.h (NaN): New function/macro.
72276         (test_function): Use it instead of 0.0 / 0.0.
72277         * tests/test-printf-posix.h (NaN): New function/macro.
72278         (test_function): Use it instead of 0.0 / 0.0.
72279
72280         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72281
72282 2007-03-25  Bruno Haible  <bruno@clisp.org>
72283
72284         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72285
72286 2007-03-25  Bruno Haible  <bruno@clisp.org>
72287
72288         * lib/regexec.c (merge_state_with_log): Make static.
72289
72290 2007-03-25  Bruno Haible  <bruno@clisp.org>
72291
72292         * lib/trigl.c (kernel_rem_pio2): Make static.
72293
72294 2007-03-25  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/sincosl.c (sincosl_table): Make static.
72297
72298 2007-03-25  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72301         if the compiler does not support C99.
72302
72303 2007-03-25  Bruno Haible  <bruno@clisp.org>
72304
72305         * modules/time (Makefile.am): Ensure all rule action lines start with a
72306         tab.
72307
72308 2007-03-24  Bruno Haible  <bruno@clisp.org>
72309
72310         * modules/tsearch-tests: New file.
72311         * tests/test-tsearch.sh: New file.
72312         * tests/test-tsearch.c: New file, mostly copied from glibc.
72313
72314         * modules/search-tests: New file.
72315         * tests/test-search.c: New file.
72316
72317         * modules/search: New file.
72318         * lib/search_.h: New file, incorporating lib/tsearch.h.
72319         * m4/search_h.m4: New file.
72320         * lib/tsearch.h: Remove file.
72321         * lib/tsearch.c: Include search.h instead of tsearch.h.
72322         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72323         HAVE_TSEARCH.
72324         * modules/tsearch (Files): Remove lib/tsearch.h.
72325         (Depends-on): Add search.
72326         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72327         (Include): Change tsearch.h into search.h.
72328
72329 2007-03-24  Bruno Haible  <bruno@clisp.org>
72330
72331         * modules/fpucw: New file.
72332         * lib/fpucw.h: New file.
72333         * lib/frexp.c: Include fpucw.h.
72334         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72335         (FUNC): Use them.
72336         * lib/printf-frexp.c: Include fpucw.h.
72337         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72338         (FUNC): Use them.
72339         * lib/vasnprintf.c: Include fpucw.h.
72340         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72341         'long double' calculations.
72342         * tests/test-frexpl.c: Include fpucw.h.
72343         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72344         * tests/test-printf-frexpl.c: Include fpucw.h.
72345         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72346         * modules/frexpl (Depends-on): Add fpucw.
72347         * modules/printf-frexpl (Depends-on): Likewise.
72348         * modules/fprintf-posix (Depends-on): Likewise.
72349         * modules/snprintf-posix (Depends-on): Likewise.
72350         * modules/sprintf-posix (Depends-on): Likewise.
72351         * modules/vasnprintf-posix (Depends-on): Likewise.
72352         * modules/vasprintf-posix (Depends-on): Likewise.
72353         * modules/vfprintf-posix (Depends-on): Likewise.
72354         * modules/vsnprintf-posix (Depends-on): Likewise.
72355         * modules/vsprintf-posix (Depends-on): Likewise.
72356         * modules/frexpl-tests (Depends-on): Likewise.
72357         * modules/printf-frexpl-tests (Depends-on): Likewise.
72358
72359 2007-03-24  Bruno Haible  <bruno@clisp.org>
72360
72361         * lib/float+.h: New file.
72362         * lib/isnan.c: Include float+.h.
72363         (SIZE): New macro.
72364         (FUNC): Compare only SIZE bytes of the value.
72365         * lib/vasnprintf.c: Include float+.h.
72366         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72367         SIZEOF_LDBL or SIZEOF_DBL bytes.
72368         * modules/isnan-nolibm (Files): Add lib/float+.h.
72369         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72370         * modules/isnanl (Files): Add lib/float+.h.
72371         * modules/vasnprintf (Files): Add lib/float+.h.
72372
72373 2007-03-24  Bruno Haible  <bruno@clisp.org>
72374
72375         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72376         include isnanl-nolibm.h.
72377
72378 2007-03-24  Bruno Haible  <bruno@clisp.org>
72379
72380         * tests/test-read-file.c (main): Don't produce spurious output for
72381         expected situations. Make the test fail if it encountered unexpected
72382         results.
72383
72384 2007-03-24  Bruno Haible  <bruno@clisp.org>
72385
72386         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72387         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72388
72389 2007-03-24  Bruno Haible  <bruno@clisp.org>
72390
72391         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72392
72393 2007-03-24  Bruno Haible  <bruno@clisp.org>
72394
72395         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72396         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72397
72398         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72399         * modules/utf8-ucs4: Turn into a symbolic link to module
72400         unistr/u8-mbtouc.
72401
72402         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72403         utf8-ucs4-unsafe.
72404         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72405         unistr/u8-mbtouc-unsafe.
72406
72407         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72408         * modules/utf16-ucs4: Turn into a symbolic link to module
72409         unistr/u16-mbtouc.
72410
72411         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72412         utf16-ucs4-unsafe.
72413         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72414         unistr/u16-mbtouc-unsafe.
72415
72416         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72417         * modules/ucs4-utf8: Turn into a symbolic link to module
72418         unistr/u8-ubtomb.
72419
72420         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72421         * modules/ucs4-utf16: Turn into a symbolic link to module
72422         unistr/u16-ubtomb.
72423
72424 2007-03-24  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72427         Enable the function only if HAVE_INLINE.
72428         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72429         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72430         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72431         Enable the function only if HAVE_INLINE.
72432         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72433         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72434         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72435         Enable the function only if HAVE_INLINE.
72436         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72437         Enable the function only if HAVE_INLINE.
72438         * modules/utf8-ucs4: Update.
72439         * modules/utf8-ucs4-unsafe: Update.
72440         * modules/utf16-ucs4: Update.
72441         * modules/utf16-ucs4-unsafe: Update.
72442         * modules/ucs4-utf8: Update.
72443         * modules/ucs4-utf16: Update.
72444
72445 2007-03-24  Bruno Haible  <bruno@clisp.org>
72446
72447         * lib/utf8-ucs4.h: Remove file.
72448         * lib/utf8-ucs4-unsafe.h: Remove file.
72449         * lib/utf16-ucs4.h: Remove file.
72450         * lib/utf16-ucs4-unsafe.h: Remove file.
72451         * lib/ucs4-utf8.h: Remove file.
72452         * lib/ucs4-utf16.h: Remove file.
72453         * lib/unistr.h: Include their previous contents.
72454         * m4/utf-ucs4.m4: Remove file.
72455         * m4/ucs4-utf.m4: Remove file.
72456         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72457         (Depends-on): Add unistr/base.
72458         (configure.ac): Remove gl_UTF_UCS4.
72459         (Makefile.am): Update.
72460         (Include): Change to unistr.h.
72461         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72462         (Depends-on): Add unistr/base.
72463         (configure.ac): Remove gl_UTF_UCS4.
72464         (Makefile.am): Update.
72465         (Include): Change to unistr.h.
72466         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72467         (Depends-on): Add unistr/base.
72468         (configure.ac): Remove gl_UTF_UCS4.
72469         (Makefile.am): Update.
72470         (Include): Change to unistr.h.
72471         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72472         (Depends-on): Add unistr/base.
72473         (configure.ac): Remove gl_UTF_UCS4.
72474         (Makefile.am): Update.
72475         (Include): Change to unistr.h.
72476         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72477         (Depends-on): Add unistr/base.
72478         (configure.ac): Remove gl_UCS4_UTF.
72479         (Makefile.am): Update.
72480         (Include): Change to unistr.h.
72481         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72482         (Depends-on): Add unistr/base.
72483         (configure.ac): Remove gl_UCS4_UTF.
72484         (Makefile.am): Update.
72485         (Include): Change to unistr.h.
72486         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72487         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72488         utf8-ucs4-unsafe.h.
72489         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72490         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72491         utf16-ucs4-unsafe.h.
72492         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72493         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72494         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72495         * lib/unistr/u8-strchr.c: Likewise.
72496         * lib/unistr/u8-strrchr.c: Likewise.
72497         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72498         * lib/unistr/u16-strchr.c: Likewise.
72499         * lib/unistr/u16-strrchr.c: Likewise.
72500         * lib/striconveh.c: Update.
72501         * lib/linebreak.c: Update.
72502
72503 2007-03-24  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72506         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72507
72508 2007-03-22  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72511
72512 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72513
72514         * MODULES.html.sh (File system functions): New module write-any-file.
72515         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72516         * m4/write-any-file.m4: New files.
72517
72518 2007-03-23  Eric Blake  <ebb9@byu.net>
72519
72520         * gnulib-tool: Rearrange space-tab sequences, since some editors
72521         like to eat them.
72522
72523 2007-03-23  Eric Blake  <ebb9@byu.net>
72524
72525         * lib/version-etc.c (version_etc_va): Update license wording to
72526         be more concise.  Recommended by Richard Stallman.
72527
72528 2007-03-22  Bruno Haible  <bruno@clisp.org>
72529
72530         * lib/poll.c (MSG_PEEK): New fallback definition.
72531
72532 2007-03-22  Bruno Haible  <bruno@clisp.org>
72533
72534         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72535         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72536         (main): Update.
72537         Fixes a compilation error on BeOS.
72538
72539 2007-03-22  Bruno Haible  <bruno@clisp.org>
72540
72541         * modules/frexpl-tests: New file.
72542         * tests/test-frexpl.c: New file.
72543
72544         * modules/frexpl: New file.
72545         * m4/frexpl.m4: New file.
72546         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72547         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72549         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72550         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72551         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72552
72553 2007-03-22  Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/frexpl.c: Share code with lib/frexp.c.
72556         * modules/mathl (Files): Add lib/frexp.c.
72557         (Depends-on): Add isnanl-nolibm.
72558
72559 2007-03-22  Bruno Haible  <bruno@clisp.org>
72560
72561         * modules/printf-frexp (Files): Add m4/frexp.m4.
72562         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72563         only if the found frexp function actually works.
72564
72565 2007-03-22  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/frexp.c: Remove older implementation that uses divisions.
72568
72569 2007-03-21  Bruno Haible  <bruno@clisp.org>
72570
72571         * modules/frexp-tests: New file.
72572         * tests/test-frexp.c: New file.
72573
72574         * modules/frexp: New file.
72575         * lib/frexp.c: New file.
72576         * m4/frexp.m4: New file.
72577         * lib/math_.h (frexp): New declaration.
72578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72579         REPLACE_FREXP.
72580         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72581
72582 2007-03-21  Bruno Haible  <bruno@clisp.org>
72583
72584         * modules/isnanl-tests: New file.
72585         * tests/test-isnanl.c: New file.
72586
72587         * modules/isnanl: New file.
72588         * lib/isnanl.h: New file.
72589         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72590         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72591         gl_FUNC_ISNANL_WORKS.
72592         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72593         New macros.
72594
72595 2007-03-21  Bruno Haible  <bruno@clisp.org>
72596
72597         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72598         lib/isnanl.h.
72599         (Include): Update.
72600         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72601         * lib/vasnprintf.c: Update.
72602         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72603         tests/test-isnanl.h, remove tests/test-isnanl.c.
72604         (Makefile.am): Update.
72605         * tests/test-isnanl-nolibm.c: New file.
72606         * tests/test-isnanl.h: New file.
72607         * tests/test-isnanl.c: Remove file.
72608
72609 2007-03-21  Jim Meyering  <jim@meyering.net>
72610
72611         When trying to open ".", treat ESTALE like EACCES.
72612         * lib/savewd.c (savewd_save): Resort to forking not just upon
72613         failure with EACCES, but also when errno is ESTALE.
72614
72615 2007-03-20  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72618         Needed on AIX 5.1. Reported by Matthew Woehlke.
72619
72620 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         Suggestions by Bruno Haible:
72623         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72624         our own.
72625         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72626         * modules/acl (Depends-on): Add gettext.
72627
72628 2007-03-19  Bruno Haible  <bruno@clisp.org>
72629
72630         * modules/iconvme: Remove file.
72631         * lib/iconvme.h: Remove file.
72632         * lib/iconvme.c: Remove file.
72633         * m4/iconvme.m4: Remove file.
72634
72635 2007-03-19  Bruno Haible  <bruno@clisp.org>
72636
72637         * doc/relocatable-maint.texi: Break long shell script line.
72638         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72639
72640 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72641
72642         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72643         handle file_has_acl.
72644         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72645         * lib/acl.c: Move header inclusions and related macro defns into
72646         lib/acl-internal.h.
72647         (S_ISLNK): Remove defn, since that's now done for us.
72648         (file_has_acl): Move to lib/file-has-acl.c.
72649         Call acl_trivial if available.  This is the crucial part of the fix.
72650         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72651         shared within the library.  Rewrite a bit, partly to make it compatible
72652         with the GNU coding style.
72653         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72654         Remove unnecessary double-quotes.
72655         Don't test for acl_to_text; the build will catch that.
72656         Replace acl_entries if it doesn't exist and it is needed.
72657         Check for -lsec and acl_trivial (as used on Solaris 10).
72658         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72659         lib/file-has-acl.c.
72660         (Depends-on): Add sys_stat, for S_ISLNK.
72661
72662 2007-03-19  Ben Pfaff  <blp@gnu.org>
72663
72664         * doc/gnulib.texi: Fix typos.
72665         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72666
72667 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72670         If size is zero here, buf must be zero.
72671
72672 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72673
72674         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72675         <bruno@clisp.org>.
72676
72677 2007-03-18  Bruno Haible  <bruno@clisp.org>
72678
72679         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72680         Suggested by Eric Blake.
72681
72682 2007-03-18  Ben Pfaff  <blp@gnu.org>
72683
72684         * doc/relocatable.texi: Recommend using as prefix a directory
72685         that does not exist and will never be created.  Based on
72686         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72687         and others.
72688
72689 2007-03-17  Bruno Haible  <bruno@clisp.org>
72690
72691         * lib/fchownat.c: Include lchown.h.
72692
72693 2007-03-17  Bruno Haible  <bruno@clisp.org>
72694
72695         Fix endless loop when the given allocated size was > INT_MAX.
72696         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72697         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72698         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72699         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72700         * lib/sprintf.c (sprintf): Likewise.
72701
72702 2007-03-17  Bruno Haible  <bruno@clisp.org>
72703
72704         * tests/test-argp-2.sh (func_compare): Output a context diff.
72705
72706 2007-03-17  Bruno Haible  <bruno@clisp.org>
72707
72708         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72709         locale's decimal-point character.
72710
72711 2007-03-17  Bruno Haible  <bruno@clisp.org>
72712
72713         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72714         before comparing it. Needed because on some platforms (e.g. x86) a
72715         'long double' occupies less bytes than sizeof (long double).
72716
72717 2007-03-17  Bruno Haible  <bruno@clisp.org>
72718
72719         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72720         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72721         * tests/test-getaddrinfo.c (simple): Likewise.
72722         * tests/test-read-file.c (main): Likewise.
72723
72724 2007-03-17  Bruno Haible  <bruno@clisp.org>
72725
72726         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72727
72728 2007-03-17  Bruno Haible  <bruno@clisp.org>
72729
72730         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72731         unused variable.
72732
72733 2007-03-17  Bruno Haible  <bruno@clisp.org>
72734
72735         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72736         * tests/test-c-strncasecmp.c: Likewise.
72737
72738 2007-03-17  Bruno Haible  <bruno@clisp.org>
72739
72740         * modules/stdlib (Depends-on): Add unistd.
72741         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72742         Needed for MacOS X 10.3.
72743
72744 2007-03-17  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72747
72748 2007-03-17  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72751
72752 2007-03-17  Bruno Haible  <bruno@clisp.org>
72753
72754         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72755         to reflect files copied from gnulib (with or without modifications).
72756         Suggested by Jim Meyering.
72757
72758 2007-03-17  Eric Blake  <ebb9@byu.net>
72759
72760         * NEWS: Document stdlib change from 2007-02-18.
72761
72762 2007-03-17  Jim Meyering  <jim@meyering.net>
72763
72764         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72765         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72766         someone uses a name containing shell meta-characters.
72767         Reported by Alfred M. Szmidt.
72768
72769         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72770
72771 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72772
72773         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72774         and copy gettext configuration files only if configure.ac contains
72775         a use of AM_GNU_GETTEXT_VERSION.
72776
72777 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72778
72779         * build-aux/bootstrap (gnulib_name): New variable.
72780         (gnulib_tool_options): Use it.
72781
72782 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72783
72784         * tests/test-des.c: Use new namespace.
72785
72786 2007-03-15  Bruno Haible  <bruno@clisp.org>
72787
72788         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72789         Reported by James Youngman <jay@gnu.org>.
72790
72791 2007-03-15  Bruno Haible  <bruno@clisp.org>
72792
72793         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72794         declared prototype. Needed with cc on OSF/1 5.1.
72795
72796 2007-03-15  Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72799         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72800         (struct gl_list_implementation): Add dispose_fn argument to the
72801         'create_empty', 'create' methods.
72802         (struct gl_list_impl_base): Add field 'dispose_fn'.
72803         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72804         argument.
72805         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72806         dispose_fn argument.
72807         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72808         dispose_fn on the dropped values.
72809         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72810         dispose_fn argument.
72811         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72812         dropped values.
72813         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72814         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72815         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72816         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72817         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72818         argument.
72819         (gl_tree_list_free): Call dispose_fn on the dropped values.
72820         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72821         the dropped values.
72822         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72823         Add dispose_fn argument.
72824         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72825         Call dispose_fn on the dropped values.
72826         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72827         Add dispose_fn argument.
72828         (gl_sublist_create): Initialize the 'dispose_fn' field.
72829         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72830         * tests/test-array_list.c (main): Update.
72831         * tests/test-carray_list.c (main): Update.
72832         * tests/test-avltree_list.c (main): Update.
72833         * tests/test-rbtree_list.c (main): Update.
72834         * tests/test-avltreehash_list.c (main): Update.
72835         * tests/test-rbtreehash_list.c (main): Update.
72836         * tests/test-linked_list.c (main): Update.
72837         * tests/test-linkedhash_list.c (main): Update.
72838         * tests/test-array_oset.c (main): Update.
72839
72840 2007-03-15  Bruno Haible  <bruno@clisp.org>
72841
72842         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72843         (gl_oset_create_empty): Add dispose_fn argument.
72844         (struct gl_oset_implementation): Add dispose_fn argument to
72845         'create_empty' method.
72846         (struct gl_oset_impl_base): Add dispose_fn field.
72847         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72848         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72849         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72850         values.
72851         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72852         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72853         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72854         dropped value.
72855         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72856         dropped value.
72857         * tests/test-array_oset.c (main): Update.
72858         * tests/test-avltree_oset.c (main): Update.
72859         * tests/test-rbtree_oset.c (main): Update.
72860         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72861
72862 2007-03-13  Bruno Haible  <bruno@clisp.org>
72863
72864         * tests/test-stdbool.c (i): Update after last patch.
72865
72866 2007-03-12  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72869         the iswprint macro. Needed on Solaris 2.5.1.
72870
72871 2007-03-12  Bruno Haible  <bruno@clisp.org>
72872
72873         * tests/test-printf-frexp.c (main): Declare x as volatile.
72874
72875 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72876
72877         * doc/gnulib.texi (Build robot for gnulib): New section.
72878
72879 2007-03-12  Jim Meyering  <jim@meyering.net>
72880
72881         * build-aux/bootstrap: New file.
72882         * build-aux/bootstrap.conf: New file, from coreutils.
72883
72884 2007-03-11  Bruno Haible  <bruno@clisp.org>
72885
72886         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72887
72888 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72889
72890         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72891         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72892         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72893
72894 2007-03-11  Bruno Haible  <bruno@clisp.org>
72895
72896         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72897         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72898
72899 2007-03-11  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72902         formula. Needed for SunPRO C 5.0.
72903
72904 2007-03-11  Bruno Haible  <bruno@clisp.org>
72905
72906         * modules/long-options (Depends-on): Add getopt.
72907
72908 2007-03-11  Bruno Haible  <bruno@clisp.org>
72909
72910         * modules/modechange (Depends-on): Add stdbool.
72911
72912 2007-03-11  Bruno Haible  <bruno@clisp.org>
72913
72914         * modules/i-ring (Depends-on): Add stdbool.
72915
72916 2007-03-11  Bruno Haible  <bruno@clisp.org>
72917
72918         * modules/gc-des (Depends-on): Add stdbool.
72919
72920 2007-03-11  Bruno Haible  <bruno@clisp.org>
72921
72922         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72923
72924 2007-03-11  Bruno Haible  <bruno@clisp.org>
72925
72926         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72927
72928 2007-03-11  Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72931
72932 2007-03-11  Bruno Haible  <bruno@clisp.org>
72933
72934         * lib/vasnprintf.c (sprintf): Undefine.
72935
72936 2007-03-11  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72939         initializers in SunPRO C and Compaq C compilers.
72940
72941 2007-03-11  Bruno Haible  <bruno@clisp.org>
72942
72943         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72944         decrementing code ANSI C compliant.
72945
72946 2007-03-11  Bruno Haible  <bruno@clisp.org>
72947
72948         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72949         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72950
72951 2007-03-11  Bruno Haible  <bruno@clisp.org>
72952
72953         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72954         <stdbool.h> substitute doesn't pass.
72955
72956 2007-03-11  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72959
72960 2007-03-11  Bruno Haible  <bruno@clisp.org>
72961
72962         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72963         script, for submission to autobuild.josefsson.org.
72964
72965 2007-03-10  Bruno Haible  <bruno@clisp.org>
72966
72967         * modules/canonicalize-lgpl-tests: New file.
72968         * tests/test-canonicalize-lgpl.sh: New file.
72969         * tests/test-canonicalize-lgpl.c: New file.
72970
72971         * modules/c-strcase-tests: New file.
72972         * tests/test-c-strcase.sh: New file.
72973         * tests/test-c-strcasecmp.c: New file.
72974         * tests/test-c-strncasecmp.c: New file.
72975
72976         * modules/atexit-tests: New file.
72977         * tests/test-atexit.sh: New file.
72978         * tests/test-atexit.c: New file.
72979
72980 2007-03-10  Bruno Haible  <bruno@clisp.org>
72981
72982         * tests/test-binary-io.sh: Use temporary filenames that are not so
72983         likely to clash with those of other tests (in a parallel make).
72984         * tests/test-binary-io.c: Likewise.
72985
72986 2007-03-10  Bruno Haible  <bruno@clisp.org>
72987
72988         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72989         fallback; use #error instead.
72990         Suggested by Simon Josefsson.
72991
72992 2007-03-10  Bruno Haible  <bruno@clisp.org>
72993
72994         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72995         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72996         first and the last.
72997
72998 2007-03-10  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73001
73002 2007-03-10  Bruno Haible  <bruno@clisp.org>
73003
73004         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73005         "make distcheck".
73006         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73007         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73008         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73009
73010 2007-03-10  Bruno Haible  <bruno@clisp.org>
73011
73012         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73013         variable.
73014         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73015         variable.
73016
73017 2007-03-09  Eric Blake  <ebb9@byu.net>
73018         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73019
73020         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73021         types are not being provided by gnulib.
73022         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73023         types are supported.
73024
73025 2007-03-10  Bruno Haible  <bruno@clisp.org>
73026
73027         * lib/stdio_.h (__attribute__): New macro.
73028         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73029         vsprintf): Specify __attribute__ __format__ for GCC.
73030         Suggested by Eric Blake.
73031
73032 2007-03-09  Bruno Haible  <bruno@clisp.org>
73033
73034         * modules/printf-posix-tests: New file.
73035         * tests/test-printf-posix.sh: New file.
73036         * tests/test-printf-posix.c: New file.
73037
73038         * modules/printf-posix: New file.
73039         * lib/printf.c: New file.
73040         * m4/printf-posix-rpl.m4: New file.
73041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73042         REPLACE_PRINTF.
73043         * lib/stdio_.h (printf): New declaration.
73044         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73045         ____strfmon____): New macros.
73046         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73047         REPLACE_PRINTF.
73048
73049 2007-03-09  Bruno Haible  <bruno@clisp.org>
73050
73051         * tests/test-vasnprintf-posix2.sh: New file.
73052         * tests/test-vasnprintf-posix2.c: New file.
73053         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73054         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73055         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73056
73057         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73058         a locale dependent decimal point, rather than always '.'.
73059
73060 2007-03-09  Eric Blake  <ebb9@byu.net>
73061
73062         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73063         spite of platforms like Tandem/NSK that define it to -1.
73064
73065 2007-03-08  Bruno Haible  <bruno@clisp.org>
73066
73067         * modules/vprintf-posix-tests: New file.
73068         * tests/test-vprintf-posix.sh: New file.
73069         * tests/test-vprintf-posix.c: New file.
73070         * tests/test-printf-posix.h: New file.
73071
73072         * modules/vprintf-posix: New file.
73073         * lib/vprintf.c: New file.
73074         * m4/vprintf-posix.m4: New file.
73075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73076         REPLACE_VPRINTF.
73077         * lib/stdio_.h (vprintf): New declaration.
73078         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73079         REPLACE_VPRINTF.
73080
73081 2007-03-08  Bruno Haible  <bruno@clisp.org>
73082
73083         * modules/fprintf-posix-tests: New file.
73084         * tests/test-fprintf-posix.sh: New file.
73085         * tests/test-fprintf-posix.c: New file.
73086
73087         * modules/fprintf-posix: New file.
73088         * lib/fprintf.c: New file.
73089         * m4/fprintf-posix.m4: New file.
73090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73091         REPLACE_FPRINTF.
73092         * lib/stdio_.h (fprintf): New declaration.
73093         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73094         REPLACE_FPRINTF.
73095
73096 2007-03-08  Bruno Haible  <bruno@clisp.org>
73097
73098         * modules/vfprintf-posix-tests: New file.
73099         * tests/test-vfprintf-posix.sh: New file.
73100         * tests/test-vfprintf-posix.c: New file.
73101         * tests/test-fprintf-posix.h: New file.
73102         * tests/test-fprintf-posix.out: New file.
73103
73104         * modules/vfprintf-posix: New file.
73105         * lib/vfprintf.c: New file.
73106         * m4/vfprintf-posix.m4: New file.
73107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73108         REPLACE_VFPRINTF.
73109         * lib/stdio_.h (vfprintf): New declaration.
73110         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73111         REPLACE_VFPRINTF.
73112
73113 2007-03-08  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73116
73117 2007-03-08  Bruno Haible  <bruno@clisp.org>
73118
73119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73120         instead of 'expr' invocations.
73121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73126         Suggested by Paul Eggert.
73127
73128 2007-03-08  Bruno Haible  <bruno@clisp.org>
73129
73130         * modules/fseterr-tests: New file.
73131         * tests/test-fseterr.c: New file.
73132
73133         * modules/fseterr: New file.
73134         * lib/fseterr.h: New file.
73135         * lib/fseterr.c: New file.
73136
73137 2007-03-08  Bruno Haible  <bruno@clisp.org>
73138
73139         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73140         * lib/getopt_.h: Likewise.
73141         * lib/mbswidth.h: Likewise.
73142         * lib/setenv.h: Likewise.
73143         * lib/vasnprintf.h: Likewise.
73144         * lib/vasprintf.h: Likewise.
73145         * lib/verror.h: Likewise.
73146         * lib/xsetenv.h: Likewise.
73147         * lib/xvasprintf.h: Likewise.
73148
73149 2007-03-08  Jim Meyering  <jim@meyering.net>
73150
73151         * users.txt: Add parted.
73152
73153         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73154
73155 2007-03-07  Bruno Haible  <bruno@clisp.org>
73156
73157         * m4/printf.m4: Make the shell script snippets copy&pastable.
73158
73159 2007-03-02  Bruno Haible  <bruno@clisp.org>
73160
73161         * lib/netinet_in_.h: New file.
73162         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73163         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73164         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73165         (Depends-on): Add absolute-header.
73166         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73167         into netinet/in.h.
73168
73169 2007-03-03  Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/sys_select_.h: New file.
73172         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73173         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73174         * modules/sys_select (Files): Add lib/sys_select_.h.
73175         (Depends-on): Add absolute-header.
73176         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73177         into sys/select.h.
73178
73179 2007-03-02  Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73182         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73183         values.
73184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73185         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73186         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73187         * modules/sys_socket (Depends-on): Add absolute-header.
73188         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73189         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73190         (Include): Remove requirement of inclusion of <sys/types.h>.
73191
73192 2007-03-02  Bruno Haible  <bruno@clisp.org>
73193
73194         * lib/byteswap_.h (bswap_32): Fix formula.
73195
73196 2007-03-06  Bruno Haible  <bruno@clisp.org>
73197
73198         * modules/sprintf-posix-tests: New file.
73199         * tests/test-sprintf-posix.c: New file.
73200
73201         * modules/sprintf-posix: New file.
73202         * lib/sprintf.c: New file.
73203         * m4/sprintf-posix.m4: New file.
73204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73205         REPLACE_SPRINTF.
73206         * lib/stdio_.h (sprintf): New declaration.
73207         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73208         REPLACE_SPRINTF.
73209
73210 2007-03-06  Bruno Haible  <bruno@clisp.org>
73211
73212         * modules/vsprintf-posix-tests: New file.
73213         * tests/test-vsprintf-posix.c: New file.
73214         * tests/test-sprintf-posix.h: New file.
73215
73216         * modules/vsprintf-posix: New file.
73217         * lib/vsprintf.c: New file.
73218         * m4/vsprintf-posix.m4: New file.
73219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73220         REPLACE_VSPRINTF.
73221         * lib/stdio_.h (vsprintf): New declaration.
73222         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73223         REPLACE_VSPRINTF.
73224
73225 2007-03-06  Bruno Haible  <bruno@clisp.org>
73226
73227         * modules/vsnprintf (Depend-on): Remove minmax.
73228
73229 2007-03-06  Bruno Haible  <bruno@clisp.org>
73230
73231         * modules/snprintf-posix-tests: New file.
73232         * tests/test-snprintf-posix.c: New file.
73233
73234         * modules/snprintf-posix: New file.
73235         * m4/snprintf-posix.m4: New file.
73236         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73237         gl_FUNC_SNPRINTF.
73238         (gl_FUNC_SNPRINTF): Invoke it.
73239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73240         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73241         is set.
73242         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73243
73244 2007-03-06  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/vsnprintf-posix-tests: New file.
73247         * tests/test-vsnprintf-posix.c: New file.
73248         * tests/test-snprintf-posix.h: New file.
73249
73250         * modules/vsnprintf-posix: New file.
73251         * m4/vsnprintf-posix.m4: New file.
73252         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73253         gl_FUNC_VSNPRINTF.
73254         (gl_FUNC_VSNPRINTF): Invoke it.
73255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73256         * lib/stdio_.h (vsnprintf): Define as a replacement if
73257         REPLACE_VSNPRINTF is set.
73258         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73259
73260 2007-03-06  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73264
73265 2007-03-06  Bruno Haible  <bruno@clisp.org>
73266
73267         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73268         (asinl): Declare also if HAVE_DECL_ASINL is set.
73269         (atanl): Declare also if HAVE_DECL_ATANL is set.
73270         (ceill): Declare also if HAVE_DECL_CEILL is set.
73271         (cosl): Declare also if HAVE_DECL_COSL is set.
73272         (expl): Declare also if HAVE_DECL_EXPL is set.
73273         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73274         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73275         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73276         (logl): Declare also if HAVE_DECL_LOGL is set.
73277         (sinl): Declare also if HAVE_DECL_SINL is set.
73278         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73279         (tanl): Declare also if HAVE_DECL_TANL is set.
73280         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73282         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73283         declaration of frexpl, ldexpl.
73284         * modules/printf-frexpl (Depends-on): Add math.
73285         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73286
73287 2007-03-05  Bruno Haible  <bruno@clisp.org>
73288
73289         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73290         frexpl and ldexpl are declared.
73291         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73292
73293 2007-03-05  Bruno Haible  <bruno@clisp.org>
73294
73295         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73296         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73297
73298 2007-03-05  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/stdio_.h: Include <stddef.h>.
73301
73302 2007-03-05  Bruno Haible  <bruno@clisp.org>
73303
73304         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73305
73306 2007-03-05  Bruno Haible  <bruno@clisp.org>
73307
73308         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73309         NetBSD 4, from Ralf Wildenhues.
73310
73311 2007-03-04  Bruno Haible  <bruno@clisp.org>
73312
73313         * lib/vasprintf.h: Update #if logic for the case when the functions
73314         exist but are overridden.
73315
73316 2007-03-04  Bruno Haible  <bruno@clisp.org>
73317
73318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73319         implementations: glibc-2.4 and MacOS X 10.3.
73320         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73321         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73322         * tests/test-vasprintf-posix.c (test_function): Likewise.
73323
73324 2007-03-04  Bruno Haible  <bruno@clisp.org>
73325
73326         * modules/vasprintf-posix-tests: New file.
73327         * tests/test-vasprintf-posix.c: New file.
73328
73329         * modules/vasprintf-posix: New file.
73330         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73331         defined.
73332         * m4/vasprintf-posix.m4: New file.
73333         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73334         gl_FUNC_VASPRINTF.
73335         (gl_FUNC_VASPRINTF): Invoke it.
73336         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73337         here.
73338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73339
73340 2007-03-04  Bruno Haible  <bruno@clisp.org>
73341
73342         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73343         REPLACE_GETTIMEOFDAY.
73344         * modules/sys_time (Makefile.am): Likewise.
73345         * m4/sys_time_h.m4: Likewise.
73346         * m4/gettimeofday.m4: Likewise.
73347
73348 2007-03-04  Bruno Haible  <bruno@clisp.org>
73349
73350         * modules/vasnprintf-posix-tests: New file.
73351         * tests/test-vasnprintf-posix.c: New file.
73352
73353         * modules/vasnprintf-posix: New file.
73354         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73355         printf-frexpl.h.
73356         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73357         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73358         REPLACE_VASNPRINTF is defined.
73359         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73360         gl_FUNC_VASNPRINTF.
73361         (gl_FUNC_VASNPRINTF): Invoke it.
73362         * m4/vasnprintf-posix.m4: New file.
73363         * m4/printf.m4: New file.
73364
73365 2007-03-04  Bruno Haible  <bruno@clisp.org>
73366
73367         Compile progreloc.c only if --enable-relocatable is specified.
73368         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73369         if --enable-relocatable was specified.
73370         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73371         lib_SOURCES.
73372
73373 2007-03-04  Jim Meyering  <jim@meyering.net>
73374
73375         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73376         Use it consistently, rather than enumerating errno constants.
73377
73378 2007-03-04  Bruno Haible  <bruno@clisp.org>
73379
73380         * modules/xvasprintf-tests: New file.
73381         * tests/test-xvasprintf.c: New file.
73382
73383         * modules/vasprintf-tests: New file.
73384         * tests/test-vasprintf.c: New file.
73385
73386         * modules/vasnprintf-tests: New file.
73387         * tests/test-vasnprintf.c: New file.
73388
73389         * modules/vsnprintf-tests: New file.
73390         * tests/test-vsnprintf.c: New file.
73391
73392         * modules/snprintf-tests: New file.
73393         * tests/test-snprintf.c: New file.
73394
73395 2007-03-04  Bruno Haible  <bruno@clisp.org>
73396
73397         Compile relocatable.c only if --enable-relocatable is specified.
73398         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73399         gl_RELOCATABLE_LIBRARY.
73400         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73401         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73402         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73403         gl_RELOCATABLE_LIBRARY.
73404         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73405         (Makefile.am): Remove lib_SOURCES.
73406         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73407         gl_RELOCATABLE_LIBRARY.
73408         (Makefile.am): Remove lib_SOURCES.
73409         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73410         always.
73411         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73412         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73413
73414 2007-03-04  Bruno Haible  <bruno@clisp.org>
73415
73416         * modules/argmatch-tests: New file.
73417         * tests/test-argmatch.c: New file.
73418
73419         * tests/test-allocsa.c (main): Halve the number of loop runs.
73420
73421         * modules/alloca-opt-tests: New file.
73422         * tests/test-alloca-opt.c: New file.
73423
73424 2007-03-04  Jim Meyering  <jim@meyering.net>
73425
73426         Work around difference between Linux ACLs and Solaris 10 ZFS.
73427         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73428         for EINVAL.
73429
73430 2007-03-03  Bruno Haible  <bruno@clisp.org>
73431
73432         * modules/relocatable-prog (Depends-on): Add back progreloc's
73433         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73434
73435 2007-03-03  Bruno Haible  <bruno@clisp.org>
73436
73437         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73438         * modules/relocatable-lib: New file.
73439
73440 2007-03-03  Bruno Haible  <bruno@clisp.org>
73441
73442         * modules/relocatable-prog: Renamed from modules/relocatable.
73443         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73444
73445 2007-03-03  Bruno Haible  <bruno@clisp.org>
73446
73447         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73448         m4/relocatable-lib.m4.
73449         (Depends-on): Remove 'relocatable'.
73450         (configure.ac): Add gl_RELOCATABLE_NOP.
73451
73452 2007-03-03  Bruno Haible  <bruno@clisp.org>
73453
73454         * modules/relocatable-prog-wrapper: New file.
73455         * modules/relocatable (Depends-on): Add it. Remove all other
73456         dependencies except progname.
73457         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73458
73459         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73460         (gl_FUNC_STRERROR): Nop.
73461         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73462
73463         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73464         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73465
73466         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73467         (gl_FUNC_READLINK): Update.
73468
73469         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73470
73471 2007-03-03  Bruno Haible  <bruno@clisp.org>
73472
73473         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73474         * modules/xreadlink (Depends-on): Add unistd.
73475         * modules/xreadlink-with-size (Depends-on): Likewise.
73476
73477 2007-03-03  Bruno Haible  <bruno@clisp.org>
73478
73479         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73480         extracted from gt_FUNC_SETENV.
73481         (gt_FUNC_SETENV): Remove macro.
73482         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73483         remove gt_FUNC_SETENV.
73484
73485 2007-03-03  Bruno Haible  <bruno@clisp.org>
73486
73487         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73488         ENABLE_RELOCATABLE here.
73489         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73490
73491 2007-03-03  Bruno Haible  <bruno@clisp.org>
73492
73493         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73494         * tests/test-rbtreehash_list.c: Include progname.h.
73495         (main): Call set_program_name.
73496
73497         * modules/rbtree-oset-tests (Depends-on): Add progname.
73498         * tests/test-rbtree_oset.c: Include progname.h.
73499         (main): Call set_program_name.
73500
73501         * modules/rbtree-list-tests (Depends-on): Add progname.
73502         * tests/test-rbtree_list.c: Include progname.h.
73503         (main): Call set_program_name.
73504
73505         * modules/linked-list-tests (Depends-on): Add progname.
73506         * tests/test-linked_list.c: Include progname.h.
73507         (main): Call set_program_name.
73508
73509 2007-03-03  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73512         All uses of __restrict changed to _Restrict_.
73513         * lib/glob_.h (__restrict): Remove macro.
73514
73515 2007-03-02  Bruno Haible  <bruno@clisp.org>
73516
73517         * modules/gettext (configure.ac): Require gettext infrastructure
73518         from version 0.16.1.
73519
73520 2007-03-02  Bruno Haible  <bruno@clisp.org>
73521
73522         * modules/linkedhash-list-tests (Depends-on): Add progname.
73523         * tests/test-linkedhash_list.c: Include progname.h.
73524         (main): Call set_program_name.
73525
73526         * modules/carray-list-tests (Depends-on): Add progname.
73527         * tests/test-carray_list.c: Include progname.h.
73528         (main): Call set_program_name.
73529
73530         * modules/avltreehash-list-tests (Depends-on): Add progname.
73531         * tests/test-avltreehash_list.c: Include progname.h.
73532         (main): Call set_program_name.
73533
73534         * modules/avltree-oset-tests (Depends-on): Add progname.
73535         * tests/test-avltree_oset.c: Include progname.h.
73536         (main): Call set_program_name.
73537
73538         * modules/avltree-list-tests (Depends-on): Add progname.
73539         * tests/test-avltree_list.c: Include progname.h.
73540         (main): Call set_program_name.
73541
73542         * modules/array-oset-tests (Depends-on): Add progname.
73543         * tests/test-array_oset.c: Include progname.h.
73544         (main): Call set_program_name.
73545
73546         * modules/array-list-tests (Depends-on): Add progname.
73547         * tests/test-array_list.c: Include progname.h.
73548         (main): Call set_program_name.
73549
73550         * modules/argp-tests (Depends-on): Add progname.
73551         * tests/test-argp.c: Include argp.h first. Include progname.h.
73552         (main): Call set_program_name.
73553
73554 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * doc/gnulib-tool.texi (Initial import): Reword description of
73557         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73558         limited effect even if defined after the first system include.
73559
73560 2007-03-01  Bruno Haible  <bruno@clisp.org>
73561
73562         * build-aux/config.libpath: Update to libtool-1.5.22.
73563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73564
73565 2007-03-01  Bruno Haible  <bruno@clisp.org>
73566
73567         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73568         foo_CFLAGS.
73569         Reported by Ralf Wildenhues.
73570
73571 2007-03-01  Bruno Haible  <bruno@clisp.org>
73572
73573         * build-aux/install-reloc: Remove object files left over by some
73574         compilers.
73575         Reported by Ralf Wildenhues.
73576
73577 2007-03-01  Bruno Haible  <bruno@clisp.org>
73578
73579         * build-aux/install-reloc: Break long lines.
73580
73581 2007-03-01  Bruno Haible  <bruno@clisp.org>
73582
73583         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73584         Reported by Ralf Wildenhues.
73585
73586 2007-03-01  Bruno Haible  <bruno@clisp.org>
73587
73588         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73589         include ordering constraints.
73590
73591 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73595         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73596         as another example.
73597         * lib/time_.h: Fix misspelling.
73598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73599         Require gl_HEADER_TIME_H_DEFAULTS.
73600         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73601         * m4/time_r.m4 (gl_TIME_R): Likewise.
73602         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73603
73604 2007-03-01  Bruno Haible  <bruno@clisp.org>
73605
73606         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73607         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73608
73609 2007-03-01  Jim Meyering  <jim@meyering.net>
73610
73611         * modules/xreadlink (Maintainer): Add my name.
73612         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73613
73614 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73615             Bruno Haible  <bruno@clisp.org>
73616
73617         * build-aux/install-reloc: Compile also c-ctype.c.
73618         * build-aux/relocatable.sh.in: New file.
73619         * doc/relocatable.texi: New file.
73620         * doc/relocatable-maint.texi: New file.
73621         * doc/gnulib.texi: Include relocatable-maint.texi.
73622         * lib/progreloc.c: Include unistd.h unconditionally.
73623         * lib/relocwrapper.c: Include unistd.h unconditionally.
73624         Include c-ctype.h.
73625         (add_dotbin): Use c_tolower.
73626         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73627         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73628         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73629         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73630         to m4/relocatable-lib.m4.
73631         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73632         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73633         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73634         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73635         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73636         * modules/relocatable: New file.
73637         * modules/relocatable-lib: New file.
73638         * modules/relocatable-script: New file.
73639
73640 2007-02-28  Bruno Haible  <bruno@clisp.org>
73641
73642         Import --enable-relocatable infrastructure.
73643         * build-aux/config.libpath: New file, from GNU gettext.
73644         * build-aux/install-reloc: New file, from GNU gettext.
73645         * build-aux/reloc-ldflags: New file, from GNU gettext.
73646         * lib/relocatable.h: New file, from GNU gettext.
73647         * lib/relocatable.c: New file, from GNU gettext.
73648         * lib/relocwrapper.c: New file, from GNU gettext.
73649         * m4/relocatable.m4: New file, from GNU gettext.
73650
73651 2007-02-28  Bruno Haible  <bruno@clisp.org>
73652
73653         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73654
73655         * modules/xreadlink: New file, from GNU gettext with modifications.
73656         * lib/xreadlink.c: New file, from GNU gettext.
73657         * lib/xreadlink.h: Add comments.
73658         (xreadlink): New declaration.
73659
73660         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73661         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73662         lib/xreadlink-with-size.c.
73663         (configure.ac): Remove gl_XREADLINK invocation.
73664         (Makefile.am): Augment lib_SOURCES.
73665         * m4/xreadlink.m4: Remove file.
73666         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73667         (xreadlink_with_size): Renamed from xreadink.
73668         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73669         * modules/canonicalize (Depends-on): Replace xreadlink with
73670         xreadlink-with-size.
73671         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73672
73673 2007-02-25  Jim Meyering  <jim@meyering.net>
73674
73675         * build-aux/announce-gen: When complaining about excess arguments,
73676         list them.
73677
73678 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * README: Document signed integer overflow situation more
73681         accurately.
73682
73683 2007-02-25  Bruno Haible  <bruno@clisp.org>
73684
73685         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73686         'a' or 'A' conversion.
73687
73688 2007-02-25  Bruno Haible  <bruno@clisp.org>
73689
73690         * modules/filename: Renamed from modules/pathname.
73691         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73692         lib/concatpath.c with lib/concat-filename.c.
73693         (Makefile.am): Update.
73694         (Include): Replace pathname.h with filename.h.
73695         * lib/filename.h: Renamed from lib/pathname.h.
73696         (concatenated_filename): Renamed from concatenated_pathname.
73697         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73698         (concatenated_filename): Renamed from concatenated_pathname.
73699         * lib/findprog.c: Include filename.h instead of pathname.h.
73700         (find_in_path): Update.
73701         * lib/javacomp.c: Include filename.h instead of pathname.h.
73702         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73703         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73704         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73705         is_oldgcj_14_13_usable, is_javac_usable): Update.
73706         * lib/javaexec.c: Include filename.h instead of pathname.h.
73707         (execute_java_class): Update.
73708         * modules/findprog: Update.
73709         * modules/javacomp: Update.
73710         * modules/javaexec: Update.
73711         * MODULES.html.sh (File system functions): Add 'filename', remove
73712         'pathname'.
73713
73714 2007-02-25  Bruno Haible  <bruno@clisp.org>
73715
73716         * modules/printf-frexpl-tests: New file.
73717         * tests/test-printf-frexpl.c: New file.
73718
73719         * modules/printf-frexpl: New file.
73720         * lib/printf-frexpl.h: New file.
73721         * lib/printf-frexpl.c: New file.
73722         * m4/printf-frexpl.m4: New file.
73723
73724 2007-02-25  Bruno Haible  <bruno@clisp.org>
73725
73726         * modules/printf-frexp-tests: New file.
73727         * tests/test-printf-frexp.c: New file.
73728
73729         * modules/printf-frexp: New file.
73730         * lib/printf-frexp.h: New file.
73731         * lib/printf-frexp.c: New file.
73732         * m4/printf-frexp.m4: New file.
73733
73734 2007-02-25  Bruno Haible  <bruno@clisp.org>
73735
73736         Assume automake >= 1.10 for the tests.
73737         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73738         * modules/arctwo-tests: Likewise.
73739         * modules/argp-tests: Likewise.
73740         * modules/avltree-list-tests: Likewise.
73741         * modules/avltree-oset-tests: Likewise.
73742         * modules/avltreehash-list-tests: Likewise.
73743         * modules/carray-list-tests: Likewise.
73744         * modules/crc-tests: Likewise.
73745         * modules/des-tests: Likewise.
73746         * modules/gc-arcfour-tests: Likewise.
73747         * modules/gc-arctwo-tests: Likewise.
73748         * modules/gc-des-tests: Likewise.
73749         * modules/gc-hmac-md5-tests: Likewise.
73750         * modules/gc-hmac-sha1-tests: Likewise.
73751         * modules/gc-md2-tests: Likewise.
73752         * modules/gc-md4-tests: Likewise.
73753         * modules/gc-md5-tests: Likewise.
73754         * modules/gc-pbkdf2-sha1-tests: Likewise.
73755         * modules/gc-rijndael-tests: Likewise.
73756         * modules/gc-sha1-tests: Likewise.
73757         * modules/gc-tests: Likewise.
73758         * modules/getaddrinfo-tests: Likewise.
73759         * modules/hmac-md5-tests: Likewise.
73760         * modules/hmac-sha1-tests: Likewise.
73761         * modules/linked-list-tests: Likewise.
73762         * modules/linkedhash-list-tests: Likewise.
73763         * modules/lock-tests: Likewise.
73764         * modules/md2-tests: Likewise.
73765         * modules/md4-tests: Likewise.
73766         * modules/md5-tests: Likewise.
73767         * modules/rbtree-list-tests: Likewise.
73768         * modules/rbtree-oset-tests: Likewise.
73769         * modules/rbtreehash-list-tests: Likewise.
73770         * modules/read-file-tests: Likewise.
73771         * modules/rijndael-tests: Likewise.
73772         * modules/stdint-tests: Likewise.
73773         * modules/tls-tests: Likewise.
73774
73775 2007-02-24  Bruno Haible  <bruno@clisp.org>
73776
73777         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73778         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73779         function; instead check whether isnan with a double argument links.
73780         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73781         function; instead check whether isnan with a 'long double' argument
73782         links.
73783         Reported by Eric Blake <ebb9@byu.net>.
73784
73785 2007-02-24  Bruno Haible  <bruno@clisp.org>
73786
73787         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73788         defined.
73789         * lib/isnanl.c: Remove all code. Just include isnan.c.
73790         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73791
73792 2007-02-25  Jim Meyering  <jim@meyering.net>
73793
73794         Avoid conflicting types for 'unsetenv' on FreeBSD.
73795         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73796         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73797         in stdlib.h.
73798
73799 2007-02-24  Bruno Haible  <bruno@clisp.org>
73800
73801         * modules/isnanl-nolibm-tests: New file.
73802         * tests/test-isnanl.c: New file.
73803
73804         * modules/isnanl-nolibm: New file.
73805         * lib/isnanl.h: New file.
73806         * lib/isnanl.c: New file.
73807         * m4/isnanl.m4: New file.
73808
73809 2007-02-24  Bruno Haible  <bruno@clisp.org>
73810
73811         * modules/isnan-nolibm-tests: New file.
73812         * tests/test-isnan.c: New file.
73813
73814         * modules/isnan-nolibm: New file.
73815         * lib/isnan.h: New file.
73816         * lib/isnan.c: New file.
73817         * m4/isnan.m4: New file.
73818
73819 2007-02-24  Bruno Haible  <bruno@clisp.org>
73820
73821         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73822         assume that an exponent fits in 20 bits.
73823
73824 2007-02-24  Jim Meyering  <jim@meyering.net>
73825
73826         * m4/regex.m4: Update the description of the configure-time option,
73827         --without-included-regex, to state accurately what the defaults are,
73828         and perhaps to give people an idea why using this option is risky.
73829
73830 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73833         loops on small arguments.  This attempts to avoid the problem
73834         Bruno Haible reported for AIX 4.3.2 in
73835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73836
73837 2007-02-23  Bruno Haible  <bruno@clisp.org>
73838
73839         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73840         Needed for help2man.
73841
73842 2007-02-23  Karl Berry  <karl@gnu.org>
73843
73844         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73845         exists, foo.h should be cvs-ignored, not committed.
73846
73847 2007-02-23  Eric Blake  <ebb9@byu.net>
73848
73849         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73850         * lib/stat-time.h (includes): Likewise.
73851         * lib/utimecmp.c (includes): Likewise.
73852         * lib/utimens.h (includes): Likewise.
73853         * lib/getdate.y (includes): Also include "timespec.h" for use
73854         internal to the module.
73855         * modules/utimens (Depends-on): Revert yesterday's patch.
73856         * modules/nanosleep (Depends-on): Add missing dependency.
73857
73858 2007-02-22  Bruno Haible  <bruno@clisp.org>
73859
73860         * lib/glob.c: Don't include getlogin_r.h.
73861
73862 2007-02-22  Jim Meyering  <jim@meyering.net>
73863
73864         * modules/utimens (Depends-on): Add timespec, required for
73865         utimens.h's inclusion of timespec.h.
73866
73867 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73870         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73871         Schwab in
73872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73873         I'll try to think of a better way to fix the Solaris problem.
73874
73875         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73876         like glibc; on Solaris 10, it fails with errno == EINVAL.
73877         POSIX says the behavior is unspecified if the first argument is NULL,
73878         so play it safe and never pass NULL to the system getcwd.
73879
73880 2007-02-21  Jim Meyering  <jim@meyering.net>
73881
73882         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73883         of gettimeofday.  It would conflict with the one now always
73884         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73885         an IRIX 6.5 build failure.
73886
73887 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         Minor fixups to port to Solaris 10 with Sun C 5.8.
73890         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73891         * modules/getcwd (Depends-on): Add dirfd.
73892         * lib/putenv.c (putenv): #undef it.
73893         (rpl_putenv): New decl.
73894         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73895
73896 2007-02-20  Bruno Haible  <bruno@clisp.org>
73897
73898         * modules/stdio-tests: New file.
73899         * tests/test-stdio.c: New file.
73900
73901         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73902         (Depends-on): Add stdio.
73903         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73904         (Include): Use <stdio.h> instead of vsnprintf.h.
73905         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73906         HAVE_DECL_VSNPRINTF.
73907         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73908
73909         * modules/snprintf (Files): Remove lib/snprintf.h.
73910         (Depends-on): Add stdio.
73911         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73912         (Include): Use <stdio.h> instead of snprintf.h.
73913         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73914         HAVE_DECL_SNPRINTF.
73915         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73916         * lib/getaddrinfo.c: Likewise.
73917
73918         * modules/stdio: New file.
73919         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73920         * lib/snprintf.h: Remove file.
73921         * lib/vsnprintf.h: Remove file.
73922         * lib/.cppi-disable: Remove snprintf.h.
73923         * m4/stdio_h.m4: New file.
73924         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73925
73926 2007-02-20  Jim Meyering  <jim@meyering.net>
73927
73928         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73929         used by e.g., mingw.  From Bruno Haible.
73930
73931 2007-02-19  Bruno Haible  <bruno@clisp.org>
73932
73933         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73934         warnings.
73935         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73936
73937 2007-02-19  Bruno Haible  <bruno@clisp.org>
73938
73939         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73940         from mingw users.
73941
73942 2007-02-19  Bruno Haible  <bruno@clisp.org>
73943
73944         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73945         warnings.
73946         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73947
73948 2007-02-19  Jim Meyering  <jim@meyering.net>
73949
73950         Don't use FD after a successful "fdopendir (fd)".
73951         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73952         Reset it by calling dirfd on the just-obtained DIR*.
73953
73954         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73955         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73956
73957 2007-02-18  Bruno Haible  <bruno@clisp.org>
73958
73959         * lib/readlink.c: Include <unistd.h>.
73960         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73961         HAVE_READLINK.
73962         * modules/readlink (Depends-on): Add unistd.
73963         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73964         (Include): Add <unistd.h>.
73965
73966         * lib/getlogin_r.h: Remove file.
73967         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73968         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73969         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73970         HAVE_DECL_GETLOGIN_R.
73971         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73972         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73973         (Include): Use <unistd.h> instead of getlogin_r.h.
73974
73975         * lib/getcwd.h: Remove file.
73976         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73977         * lib/xgetcwd.c: Likewise.
73978         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73979         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73980         * modules/getcwd (Files): Remove lib/getcwd.h.
73981         (Depends-on): Add unistd.
73982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73983         (Include): Use <unistd.h> instad of getcwd.h.
73984
73985         * lib/ftruncate.c: Include <unistd.h> first.
73986         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73987         Set HAVE_FTRUNCATE.
73988         * modules/ftruncate (Depends-on): Add unistd.
73989         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73990
73991         * lib/fchdir.c: Include <unistd.h> first.
73992         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73994         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73995         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73996         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73997
73998         * lib/dup2.c: Include <unistd.h> first.
73999         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74000         HAVE_DUP2.
74001         * modules/dup2 (Depends-on): Add unistd.
74002         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74003
74004         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74005         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74006         REPLACE_CHOWN. Don't define chown as a macro here.
74007         * modules/chown (Depends-on): Add unistd.
74008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74009
74010         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74011         Add definition for GL_LINK_WARNING.
74012         (chown, dup2): New declarations.
74013         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74014         link warning.
74015         (ftruncate): New declaration.
74016         (getcwd): New declaration, taken from old getcwd.h.
74017         (getlogin_r): New declaration, taken from old getlogin_r.h.
74018         (readlink): New declaration.
74019         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74020         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74021         (gl_PREREQ_UNISTD): Remove macro.
74022         (gl_UNISTD_MODULE_INDICATOR): New macro.
74023         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74024         many new variables. Don't set UNISTD_H.
74025         * modules/unistd (Description): Change.
74026         (Depends-on): Add link-warning.
74027         (configure.ac): Update.
74028         (Makefile.am): Create unistd.h always. Substitute many new variables
74029         into it.
74030
74031 2007-02-18  Bruno Haible  <bruno@clisp.org>
74032
74033         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74034         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74035         HAVE_GETSUBOPT.
74036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74037         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74038         * lib/getsubopt.h: Remove file.
74039         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74040         (Depends-on): Add stdlib.
74041         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74042         (Includes): Use <stdlib.h> instead of getsubopt.h.
74043         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74044         Set HAVE_GETSUBOPT.
74045         * lib/getsubopt.c: Don't include getsubopt.h.
74046
74047 2007-02-18  Bruno Haible  <bruno@clisp.org>
74048
74049         * modules/fchdir (Depends-on): Add dup2.
74050
74051 2007-02-18  Bruno Haible  <bruno@clisp.org>
74052
74053         * lib/stdlib_.h: Handle glibc's special invocation convention
74054         specially.
74055
74056 2007-02-18  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/stdlib-tests: New file.
74059         * tests/test-stdlib.c: New file.
74060
74061         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74062         (Depends-on): Add stdlib.
74063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74064         (Includes): Use <stdlib.h> instead of mkstemp.h.
74065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74066         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74067         * lib/mkstemp.c: Don't include mkstemp.h.
74068         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74069         * lib/stdlib--.h: Don't include mkstemp.h.
74070
74071         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74072         (Depends-on): Add stdlib.
74073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74074         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74075         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74076         HAVE_MKDTEMP.
74077         * lib/mkdtemp.c: Don't include mkdtemp.h.
74078         * lib/clean-temp.c: Don't include mkdtemp.h.
74079
74080         * modules/exit (Files): Remove lib/exit.h.
74081         (Depends-on): Add stdlib.
74082         (Makefile.am): Remove lib_SOURCES.
74083         (Include): Use <stdlib.h> instead of exit.h.
74084         * lib/argmatch.c: Don't include exit.h.
74085         * lib/execute.c: Likewise.
74086         * lib/pagealign_alloc.c: Likewise.
74087         * lib/pipe.c: Likewise.
74088         * lib/wait-process.c: Likewise.
74089         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74090         * lib/exitfail.c: Likewise.
74091         * lib/savewd.c: Likewise.
74092         * lib/xsetenv.c: Likewise.
74093
74094         * modules/stdlib: New file.
74095         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74096         and extra comments about mkstemp().
74097         * lib/exit.h: Remove file.
74098         * lib/mkdtemp.h: Remove file.
74099         * lib/mkstemp.h: Remove file.
74100         * m4/stdlib_h.m4: New file.
74101         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74102
74103 2007-02-18  Bruno Haible  <bruno@clisp.org>
74104
74105         * modules/math-tests: New file.
74106         * tests/test-math.c: New file.
74107
74108         * modules/math: New file.
74109         * modules/mathl (Files): Remove lib/mathl.h.
74110         (Depends-on): Add math.
74111         (Makefile.am): Don't mention mathl.h.
74112         (Include): Use <math.h> instead of mathl.h.
74113         * lib/math_.h: New file.
74114         * lib/mathl.h: Remove file.
74115         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74116         mathl.h.
74117         * lib/asinl.c: Likewise.
74118         * lib/atanl.c: Likewise.
74119         * lib/ceill.c: Likewise.
74120         * lib/cosl.c: Likewise.
74121         * lib/expl.c: Likewise.
74122         * lib/floorl.c: Likewise.
74123         * lib/frexpl.c: Likewise.
74124         * lib/ldexpl.c: Likewise.
74125         * lib/logl.c: Likewise.
74126         * lib/sincosl.c: Likewise.
74127         * lib/sinl.c: Likewise.
74128         * lib/sqrtl.c: Likewise.
74129         * lib/tanl.c: Likewise.
74130         * lib/trigl.c: Likewise.
74131         * m4/math_h.m4: New file.
74132         * MODULES.html.sh (Mathematics): Add math.
74133
74134 2007-02-17  Bruno Haible  <bruno@clisp.org>
74135
74136         * modules/wctype-tests: New file.
74137         * tests/test-wctype.c: New file.
74138
74139         * modules/wchar-tests: New file.
74140         * tests/test-wchar.c: New file.
74141
74142         * modules/unistd-tests: New file.
74143         * tests/test-unistd.c: New file.
74144
74145         * modules/time-tests: New file.
74146         * tests/test-time.c: New file.
74147
74148         * modules/sysexits-tests: New file.
74149         * tests/test-sysexits.c: New file.
74150
74151         * modules/sys_time-tests: New file.
74152         * tests/test-sys_time.c: New file.
74153
74154         * modules/sys_stat-tests: New file.
74155         * tests/test-sys_stat.c: New file.
74156
74157         * modules/sys_socket-tests: New file.
74158         * tests/test-sys_socket.c: New file.
74159
74160         * modules/sys_select-tests: New file.
74161         * tests/test-sys_select.c: New file.
74162
74163         * modules/string-tests: New file.
74164         * tests/test-string.c: New file.
74165
74166         * modules/stdbool-tests: New file.
74167         * tests/test-stdbool.c: New file.
74168
74169         * modules/netinet_in-tests: New file.
74170         * tests/test-netinet_in.c: New file.
74171
74172         * modules/inttypes-tests: New file.
74173         * tests/test-inttypes.c: New file.
74174
74175         * modules/fcntl-tests: New file.
74176         * tests/test-fcntl.c: New file.
74177
74178         * modules/byteswap-tests: New file.
74179         * tests/test-byteswap.c: New file.
74180
74181         * modules/arpa_inet-tests: New file.
74182         * tests/test-arpa_inet.c: New file.
74183
74184 2007-02-17  Bruno Haible  <bruno@clisp.org>
74185
74186         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74187         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74188         if the corresponding module is not enabled. Emit link warnings if
74189         the function is used nevertheless.
74190         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74191         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74192         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74193         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74194         * modules/inttypes (Depends-on): Add link-warning.
74195         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74196         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74197         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74198         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74199         * modules/imaxdiv (configure.ac): Likewise.
74200         * modules/strtoimax (configure.ac): Likewise.
74201         * modules/strtoumax (configure.ac): Likewise.
74202
74203 2007-02-17  Bruno Haible  <bruno@clisp.org>
74204
74205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74206         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74207         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74208         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74209
74210 2007-02-17  Bruno Haible  <bruno@clisp.org>
74211
74212         * modules/link-warning: New file.
74213         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74214         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74215         * modules/string (Depends-on): Add link-warning.
74216         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74217         string.h.
74218         * MODULES.html.sh (Support for building libraries and executables): Add
74219         link-warning.
74220
74221 2007-02-17  Bruno Haible  <bruno@clisp.org>
74222
74223         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74224         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74225         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74226         long lines.
74227
74228 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74229             Bruno Haible  <bruno@clisp.org>
74230
74231         * modules/tmpfile: New file.
74232         * lib/tmpfile.c: New file.
74233         * m4/tmpfile.m4: New file.
74234         * MODULES.html.sh (func_all_modules): New section "Input/output".
74235
74236 2007-02-15  Bruno Haible  <bruno@clisp.org>
74237
74238         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74239         (supports_delete_on_close): New function.
74240         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74241
74242 2007-02-14  Bruno Haible  <bruno@clisp.org>
74243
74244         * modules/mbspcasecmp-tests: New file.
74245         * tests/test-mbspcasecmp.sh: New file.
74246         * tests/test-mbspcasecmp.c: New file.
74247
74248         New module mbspcasecmp.
74249         * modules/mbspcasecmp: New file.
74250         * lib/mbspcasecmp.c: New file.
74251         * lib/string_.h (strncasecmp): Change warning message.
74252         (mbspcasecmp): New declaration.
74253         * m4/mbspcasecmp.m4: New file.
74254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74255         GNULIB_MBSPCASECMP.
74256         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74257         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74258
74259 2007-02-14  Bruno Haible  <bruno@clisp.org>
74260
74261         * modules/mbsncasecmp-tests: New file.
74262         * tests/test-mbsncasecmp.sh: New file.
74263         * tests/test-mbsncasecmp.c: New file.
74264
74265         New module mbsncasecmp.
74266         * modules/mbsncasecmp: New file.
74267         * lib/mbsncasecmp.c: New file.
74268         * lib/string_.h (mbsncasecmp): New declaration.
74269         * m4/mbsncasecmp.m4: New file.
74270         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74271         GNULIB_MBSNCASECMP.
74272         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74273         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74274
74275 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74278         Verify that it doesn't overlap with our flags.
74279         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74280         do not have the desired effect in multibyte locales; instead, use
74281         mbscasecmp.
74282         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74283         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74284         we don't require GNU fnmatch ourselves (if our users require it, they
74285         should do so explicitly).
74286
74287         Fix regex code so it doesn't rely on strcasecmp.
74288         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74289         Otherwise, include gnulib's langinfo.h.
74290         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74291         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74292         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74293         * modules/regex (FILES): Remove m4/codeset.m4.
74294         (Depends-on): Add localcharset.  Remove strcase.
74295
74296 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74297
74298         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74299         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74300
74301 2007-02-13  Bruno Haible  <bruno@clisp.org>
74302
74303         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74305
74306 2007-02-12  Bruno Haible  <bruno@clisp.org>
74307
74308         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74309         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74310         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74311         time warning rather than a link error.
74312
74313 2007-02-12  Bruno Haible  <bruno@clisp.org>
74314
74315         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74316         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74318
74319 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74322         args, not 2.
74323
74324 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         New module 'time', so that apps can include <time.h> as per
74327         POSIX and GNU instead of separate include files like time_r.h
74328         and timegm.h.  This implementation tries out a simpler approach
74329         for replacing decls in standard include files (as compared to
74330         the string module), somewhat as an experiment.
74331
74332         * config/srclist.txt: Comment out mktime.c for now.
74333         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74334         since it doesn't apply any more.  Use generic wording instead.
74335         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74336         'time'.
74337         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74338         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74339         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74340         Don't include <sys/types.h>; no longer needed since we assume C89.
74341         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74342         * lib/strftime.c: Likewise.
74343         * lib/time_r.c: Likewise.
74344         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74345         * lib/nanosleep.c: Include <time.h> first, to check interface.
74346         * lib/strptime.c: Likewise.
74347         * lib/time_r.c: Likewise.
74348         * lib/timegm.c: Likewise.
74349         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74350         needed.
74351         * lib/timegm.c: Don't include timegm.h; no longer needed.
74352         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74353         time.h now handles any problems in that area.
74354         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74355         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74356         that time.h defines struct timespec.
74357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74358         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74359         handles that.
74360         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74361         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74362         needed.  Set REPLACE_LOCALTIME.
74363         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74364         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74365         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74366         nanosleep; time_h.m4 now does that.  Don't require
74367         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74368         module handles this now.
74369         * modules/getdate (Depends-on): Remove timespec.  Add time.
74370         * modules/nanosleep (Depends-on): Likewise.
74371         * modules/stat-time (Depends-on): Likewise.
74372         * modules/nanosleep (Include): Include time.h, not timespec.h.
74373         * modules/strptime (Files): Remove lib/strptime.h.
74374         (Depends-on): Add extensions, time.
74375         (Include): Include time.h, not strptime.h.
74376         * modules/time_r (Files): Remove lib/time_r.h.
74377         (Depends-on): Add time.
74378         (Include): Include time.h, not time_r.h.
74379         * modules/timegm: Likewise.
74380         * modules/timespec (Description): Now does timespec-related decls
74381         of our own, instead of struct timespec itself.
74382         (Depends-on): Add time; remove extensions.
74383         (Maintainer): Add self.
74384         * modules/utimecmp (Depends-on): Add time; remove timespec.
74385         * modules/utimens (Depends-on): Likewise.
74386         * modules/xnanosleep (Depends-on): Likewise.
74387
74388 2007-02-11  Bruno Haible  <bruno@clisp.org>
74389
74390         * lib/c-strstr.c: Include allocsa.h.
74391         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74392         * lib/c-strcasestr.c: Include allocsa.h.
74393         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74394         * lib/strcasestr.c: Include allocsa.h.
74395         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74396         * lib/mbsstr.c: Include allocsa.h.
74397         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74398         allocsa/freesa instead of malloc/free.
74399         * lib/mbscasestr.c: Include allocsa.h.
74400         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74401         allocsa/freesa instead of malloc/free.
74402         * modules/c-strstr (Depends-on): Add allocsa.
74403         * modules/c-strcasestr (Depends-on): Likewise.
74404         * modules/strcasestr (Depends-on): Likewise.
74405         * modules/mbsstr (Depends-on): Likewise.
74406         * modules/mbscasestr (Depends-on): Likewise.
74407
74408 2007-02-11  Bruno Haible  <bruno@clisp.org>
74409
74410         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74411
74412         * modules/mbsspn-tests: New file.
74413         * tests/test-mbsspn.sh: New file.
74414         * tests/test-mbsspn.c: New file.
74415
74416 2007-02-11  Bruno Haible  <bruno@clisp.org>
74417
74418         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74419
74420         * modules/mbspbrk-tests: New file.
74421         * tests/test-mbspbrk.sh: New file.
74422         * tests/test-mbspbrk.c: New file.
74423
74424 2007-02-11  Bruno Haible  <bruno@clisp.org>
74425
74426         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74427         unneeded cast.
74428
74429         * modules/mbscspn-tests: New file.
74430         * tests/test-mbscspn.sh: New file.
74431         * tests/test-mbscspn.c: New file.
74432
74433 2007-02-11  Bruno Haible  <bruno@clisp.org>
74434
74435         * modules/mbscasecmp-tests: New file.
74436         * tests/test-mbscasecmp.sh: New file.
74437         * tests/test-mbscasecmp.c: New file.
74438
74439 2007-02-11  Bruno Haible  <bruno@clisp.org>
74440
74441         Ensure O(n) worst-case complexity of mbscasestr.
74442         * lib/mbscasestr.c: Include stdbool.h.
74443         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74444         functions.
74445         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74446         the bookkeeping indicates that it's worth it.
74447         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74448
74449         * modules/mbscasestr-tests: New file.
74450         * tests/test-mbscasestr1.c: New file.
74451         * tests/test-mbscasestr2.sh: New file.
74452         * tests/test-mbscasestr2.c: New file.
74453         * tests/test-mbscasestr3.sh: New file.
74454         * tests/test-mbscasestr3.c: New file.
74455         * tests/test-mbscasestr4.sh: New file.
74456         * tests/test-mbscasestr4.c: New file.
74457         * m4/locale-tr.m4: New file.
74458
74459 2007-02-11  Bruno Haible  <bruno@clisp.org>
74460
74461         Ensure O(n) worst-case complexity of mbsstr.
74462         * lib/mbsstr.c: Include stdbool.h.
74463         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74464         functions.
74465         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74466         bookkeeping indicates that it's worth it.
74467         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74468
74469         * modules/mbsstr-tests: New file.
74470         * tests/test-mbsstr1.c: New file.
74471         * tests/test-mbsstr2.sh: New file.
74472         * tests/test-mbsstr2.c: New file.
74473         * tests/test-mbsstr3.sh: New file.
74474         * tests/test-mbsstr3.c: New file.
74475         * m4/locale-fr.m4: New file.
74476
74477 2007-02-11  Bruno Haible  <bruno@clisp.org>
74478
74479         * lib/mbsrchr.c (mbsrchr): Fix bug.
74480
74481         * modules/mbsrchr-tests: New file.
74482         * tests/test-mbsrchr.sh: New file.
74483         * tests/test-mbsrchr.c: New file.
74484
74485 2007-02-11  Bruno Haible  <bruno@clisp.org>
74486
74487         * lib/mbschr.c (mbschr): Fix bug.
74488
74489         * modules/mbschr-tests: New file.
74490         * tests/test-mbschr.sh: New file.
74491         * tests/test-mbschr.c: New file.
74492         * m4/locale-zh.m4: New file.
74493
74494 2007-02-11  Bruno Haible  <bruno@clisp.org>
74495
74496         Support for copying multibyte string iterators.
74497         * lib/mbiter.h: Include <string.h>.
74498         (mbiter_multi_copy): New function.
74499         (mbi_copy): New macro.
74500         * lib/mbuiter.h: Include <string.h>.
74501         (mbuiter_multi_copy): New function.
74502         (mbui_copy): New macro.
74503
74504 2007-02-11  Bruno Haible  <bruno@clisp.org>
74505
74506         New module mbslen.
74507         * modules/mbslen: New file.
74508         * lib/mbslen.c: New file.
74509         * lib/string_.h (mbslen): New declaration.
74510         * m4/mbslen.m4: New file.
74511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74512         GNULIB_MBSLEN.
74513         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74514         * MODULES.html.sh (Internationalization functions): Add mbslen.
74515
74516 2007-02-11  Bruno Haible  <bruno@clisp.org>
74517
74518         Ensure O(n) worst-case complexity of strcasestr substitute.
74519         * lib/strcasestr.c: Include stdbool.h.
74520         (knuth_morris_pratt): New function.
74521         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74522         bookkeeping indicates that it's worth it.
74523         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74524
74525         * modules/strcasestr-tests: New file.
74526         * tests/test-strcasestr.c: New file.
74527
74528 2007-02-11  Bruno Haible  <bruno@clisp.org>
74529
74530         Ensure O(n) worst-case complexity of c_strcasestr.
74531         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74532         (knuth_morris_pratt): New function.
74533         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74534         the bookkeeping indicates that it's worth it.
74535         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74536
74537         * modules/c-strcasestr-tests: New file.
74538         * tests/test-c-strcasestr.c: New file.
74539
74540 2007-02-11  Bruno Haible  <bruno@clisp.org>
74541
74542         Ensure O(n) worst-case complexity of c_strstr.
74543         * lib/c-strstr.c: Include stdbool.h, string.h.
74544         (knuth_morris_pratt): New function.
74545         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74546         bookkeeping indicates that it's worth it.
74547         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74548
74549         * lib/c-strstr.c: Complete rewrite for maintainability.
74550
74551         * modules/c-strstr-tests: New file.
74552         * tests/test-c-strstr.c: New file.
74553
74554 2007-02-11  Bruno Haible  <bruno@clisp.org>
74555
74556         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74557         5.2.1 and earlier, whereby \055 was treated just like the range
74558         delimiter '-'.
74559         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74560
74561 2007-02-08  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/regex (Depends-on): Add stdbool.
74564         Reported by Dalibor Topic <robilad@kaffe.org>.
74565
74566 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74569         Prefer returning from main to exiting from it.
74570         Remove unnecessary parens after sizeof.
74571
74572 2007-02-05  Bruno Haible  <bruno@clisp.org>
74573
74574         New module mbssep.
74575         * modules/mbssep: New file.
74576         * lib/mbssep.c: New file.
74577         * lib/string_.h (strsep): Add a conditional link warning.
74578         (mbssep): New declaration.
74579         * m4/mbssep.m4: New file.
74580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74581         GNULIB_MBSSEP.
74582         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74583         * MODULES.html.sh (Internationalization functions): Add mbssep.
74584
74585 2007-02-05  Bruno Haible  <bruno@clisp.org>
74586
74587         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74588         Optimize search in case of 1 delimiter.
74589
74590 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74591
74592         * lib/acl.h: Include sys/types.h before sys/acl.h.
74593
74594 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74595
74596         Merge upstream fix for glibc bugzilla #3957:
74597
74598         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74599
74600         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74601         bit for RE_HAT_LISTS_NOT_NEWLINE.
74602         (build_charclass_op): Remove bogus comment.
74603
74604 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74605
74606         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74607
74608 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74611         * lib/memmem.c [!defined _LIBC]: Include config.h.
74612
74613 2007-02-04  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74616         warning message.
74617
74618 2007-02-04  Bruno Haible  <bruno@clisp.org>
74619
74620         New module mbstok_r.
74621         * modules/mbstok_r: New file.
74622         * lib/mbstok_r.c: New file.
74623         * lib/string_.h (strtok_r): Change argument names to match the
74624         comments. Add a conditional link warning.
74625         (mbstok_r): New declaration.
74626         * m4/mbstok_r.m4: New file.
74627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74628         GNULIB_MBSTOK_R.
74629         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74630         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74631
74632 2007-02-04  Bruno Haible  <bruno@clisp.org>
74633
74634         New module mbsspn.
74635         * modules/mbsspn: New file.
74636         * lib/mbsspn.c: New file.
74637         * lib/string_.h (strspn): Add a conditional link warning.
74638         (mbsspn): New declaration.
74639         * m4/mbsspn.m4: New file.
74640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74641         GNULIB_MBSSPN.
74642         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74643         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74644
74645 2007-02-04  Bruno Haible  <bruno@clisp.org>
74646
74647         New module mbspbrk.
74648         * modules/mbspbrk: New file.
74649         * lib/mbspbrk.c: New file.
74650         * lib/string_.h (strpbrk): Add a conditional link warning.
74651         (mbspbrk): New declaration.
74652         * m4/mbspbrk.m4: New file.
74653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74654         GNULIB_MBSPBRK.
74655         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74656         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74657
74658 2007-02-04  Bruno Haible  <bruno@clisp.org>
74659
74660         New module mbscspn.
74661         * modules/mbscspn: New file.
74662         * lib/mbscspn.c: New file.
74663         * lib/string_.h (strcspn): Add a conditional link warning.
74664         (mbscspn): New declaration.
74665         * m4/mbscspn.m4: New file.
74666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74667         GNULIB_MBSCSPN.
74668         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74669         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74670
74671 2007-02-04  Bruno Haible  <bruno@clisp.org>
74672
74673         New module mbscasestr, reduced goal of strcasestr.
74674         * modules/mbscasestr: New file.
74675         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74676         (mbscasestr): Renamed from strcasestr.
74677         * lib/strcasestr.c: Don't include mbuiter.h.
74678         (strcasestr): Remove support for multibyte locales.
74679         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74680         Change the conditional link warning.
74681         (mbscasestr): New declaration.
74682         * m4/mbscasestr.m4: New file.
74683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74684         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74685         REPLACE_STRCASESTR.
74686         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74688         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74689         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74690         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74691         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74692         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74693         (Depends-on): Remove mbuiter.
74694         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74695
74696 2007-02-04  Bruno Haible  <bruno@clisp.org>
74697
74698         Simplify handling of strncasecmp.
74699         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74700         the conditional link warning.
74701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74702         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74703         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74704         * modules/strcase (configure.ac): Don't invoke
74705         gl_STRING_MODULE_INDICATOR.
74706         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74707
74708 2007-02-04  Bruno Haible  <bruno@clisp.org>
74709
74710         New module mbscasecmp, reduced goal of strcasecmp.
74711         * modules/mbscasecmp: New file.
74712         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74713         (mbscasecmp): Renamed from strcasecmp.
74714         * lib/strcasecmp.c: Don't include mbuiter.h.
74715         (strcasecmp): Remove support for multibyte locales.
74716         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74717         Change the conditional link warning.
74718         (mbscasecmp): New declaration.
74719         * m4/mbscasecmp.m4: New file.
74720         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74721         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74722         REPLACE_STRCASECMP.
74723         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74725         GNULIB_MBSCASECMP.
74726         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74727         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74728         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74729         (Depends-on): Remove mbuiter.
74730         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74731
74732 2007-02-04  Bruno Haible  <bruno@clisp.org>
74733
74734         New module mbsstr. Remove module strstr.
74735         * modules/mbsstr: New file.
74736         * modules/strstr: Remove file.
74737         * lib/mbsstr.c: Renamed from lib/strstr.c.
74738         (mbsstr): Renamed from strstr.
74739         * lib/string_.h (strstr): Remove declaration. Change the conditional
74740         link warning.
74741         (mbsstr): New declaration.
74742         * m4/mbsstr.m4: New file.
74743         * m4/strstr.m4: Remove file.
74744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74745         REPLACE_STRSTR.
74746         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74747         Don't initialize GNULIB_STRSTR.
74748         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74749         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74750         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74751         (Support for systems lacking ANSI C 89): Remove strstr.
74752
74753 2007-02-04  Bruno Haible  <bruno@clisp.org>
74754
74755         New module mbsrchr.
74756         * modules/mbsrchr: New file.
74757         * lib/mbsrchr.c: New file.
74758         * lib/string_.h (strrchr): Add a conditional link warning.
74759         (mbsrchr): New declaration.
74760         * m4/mbsrchr.m4: New file.
74761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74762         GNULIB_MBSRCHR.
74763         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74764         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74765
74766 2007-02-04  Bruno Haible  <bruno@clisp.org>
74767
74768         New module mbschr.
74769         * modules/mbschr: New file.
74770         * lib/mbschr.c: New file.
74771         * lib/string_.h (strchr): Add a conditional link warning.
74772         (mbschr): New declaration.
74773         * m4/mbschr.m4: New file.
74774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74775         GNULIB_MBSCHR.
74776         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74777         * MODULES.html.sh (Internationalization functions): Add mbschr.
74778
74779 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74782
74783         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74784
74785 2007-02-04  Bruno Haible  <bruno@clisp.org>
74786
74787         New module description section 'configure.ac-early'.
74788         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74789         (func_get_autoconf_early_snippet): New function.
74790         (func_import, func_create_testdir): Use it. Remove special cases for
74791         modules 'extensions' and 'lock'.
74792         * modules/extensions (configure.ac-early): Require
74793         gl_USE_SYSTEM_EXTENSIONS.
74794         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74795
74796 2007-02-04  Bruno Haible  <bruno@clisp.org>
74797
74798         Make use of gcj-4.3's -fsource and -ftarget option.
74799         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74800         and if so try the options -fsource and -ftarget.
74801         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74802         source_version, ftarget_option, target_version arguments.
74803         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74804         (is_envjavac_oldgcj_14_14_usable): Renamed from
74805         is_envjavac_gcj_14_14_usable.
74806         (is_envjavac_oldgcj_14_13_usable): Renamed from
74807         is_envjavac_gcj_14_13_usable.
74808         (is_gcj_present): Update.
74809         (is_gcj_43, is_gcj43_usable): New functions.
74810         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74811         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74812         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74813         try the options -fsource and -ftarget.
74814
74815 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74818         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74819         larger value.
74820
74821 2007-02-03  Jim Meyering  <jim@meyering.net>
74822
74823         Give tools a better chance to allocate space for very large buffers.
74824         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74825
74826         Make pwd and readlink work also when run with an unreadable parent dir
74827         on systems with openat support.
74828         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74829         provided getcwd function, even when we have openat support.
74830         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74831
74832 2007-02-02  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74835         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74836         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74837         portability problems if one of these functions is only used on specific
74838         platforms.
74839         Reported by Paul Eggert.
74840
74841 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74844         is causing more trouble than it's curing.
74845         * lib/regex_internal.h (__mempcpy): Remove.
74846         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74847         (and make the code a tad smaller to boot).
74848         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74849
74850 2007-02-02  Jim Meyering  <jim@meyering.net>
74851
74852         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74853         section, not in the Makefile.am: one.
74854
74855 2007-02-02  Eric Blake  <ebb9@byu.net>
74856
74857         * lib/strchrnul.c: Always include config.h first.
74858
74859         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74860         gnulib strstr is not necessary here.
74861
74862 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74863
74864         * m4/socklen.m4: Fix typo.
74865
74866 2007-02-02  Eric Blake  <ebb9@byu.net>
74867
74868         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74869         * modules/netinet_in (Makefile.am): Likewise.
74870
74871 2007-02-01  Bruno Haible  <bruno@clisp.org>
74872
74873         * lib/string_.h (GL_LINK_WARNING): New macro.
74874         (strcasecmp, strstr, strcasestr): If provided by the system,
74875         conditionally define as a macro that leads to a warning instead of to
74876         an error.
74877         (strncasecmp): Conditionally define as a macro that leads to a warning.
74878
74879 2007-02-01  Karl Berry  <karl@gnu.org>
74880
74881         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74882
74883 2007-02-01  Bruno Haible  <bruno@clisp.org>
74884
74885         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74886         renamings.
74887
74888 2007-02-01  Eric Blake  <ebb9@byu.net>
74889
74890         * modules/regex (Depends-on): Revert dependence on mempcpy.
74891         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74892         module's definition of mempcpy.
74893         Reported by Paul Eggert.
74894
74895 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74898         the symbol XYZ before redefining it.  This fixes a problem with
74899         programs that don't use XYZ, when compiled on systems that define
74900         XYZ to something else.
74901
74902 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74903
74904         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74905         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74906         writeable to group or other and (2) is intended to have a special
74907         mode bit that is set or cleared.  In such a case, the directory
74908         should be neither group- nor other-writeable until the special
74909         mode bits are right.
74910
74911 2007-01-31  Eric Blake  <ebb9@byu.net>
74912
74913         * modules/mountlist (Depends-on): Add strstr.
74914
74915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74916         bug.
74917         * modules/string (Makefile.am): Remove redundant replacement.
74918         * modules/regex (Depends-on): Add mempcpy.
74919
74920 2007-01-31  Bruno Haible  <bruno@clisp.org>
74921
74922         New module description field 'Link'.
74923         * gnulib-tool (func_usage): Document --extract-link-directive.
74924         (sed_extract_prog): Recognize 'Link' directive.
74925         (func_get_link_directive): New function.
74926         (func_import): Show summary of link directives.
74927         Handle --extract-link-directive option.
74928         * modules/acl (Link): New section.
74929         * modules/clock-time (Link): New section.
74930         * modules/euidaccess (Link): New section.
74931         * modules/gettext (Link): New section.
74932         * modules/iconv (Link): New section.
74933         * modules/lock (Link): New section.
74934         * modules/nanosleep (Link): New section.
74935         * modules/readline (Link): New section.
74936
74937 2007-01-27  Bruno Haible  <bruno@clisp.org>
74938
74939         Enforce the use of gnulib modules for unportable <string.h> functions.
74940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74941         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74942         (gl_HEADER_STRING_H_BODY): Require it.
74943         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74944         the symbol XYZ to one that gives a link error.
74945         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74946         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74947         * modules/mempcpy (configure.ac): Likewise.
74948         * modules/memrchr (configure.ac): Likewise.
74949         * modules/stpcpy (configure.ac): Likewise.
74950         * modules/stpncpy (configure.ac): Likewise.
74951         * modules/strcase (configure.ac): Likewise.
74952         * modules/strcasestr (configure.ac): Likewise.
74953         * modules/strchrnul (configure.ac): Likewise.
74954         * modules/strdup (configure.ac): Likewise.
74955         * modules/strndup (configure.ac): Likewise.
74956         * modules/strnlen (configure.ac): Likewise.
74957         * modules/strpbrk (configure.ac): Likewise.
74958         * modules/strsep (configure.ac): Likewise.
74959         * modules/strstr (configure.ac): Likewise.
74960         * modules/strtok_r (configure.ac): Likewise.
74961
74962 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74963
74964         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74965
74966 2007-01-30  Jim Meyering  <jim@meyering.net>
74967
74968         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74969
74970 2007-01-29  Bruno Haible  <bruno@clisp.org>
74971
74972         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74973         * lib/execute.c: Likewise.
74974         * lib/pipe.c: Likewise.
74975         * lib/printf-args.h: Likewise.
74976         * lib/printf-args.c: Likewise.
74977         * lib/printf-parse.c: Likewise.
74978         * lib/vasnprintf.c: Likewise.
74979
74980 2007-01-29  Eric Blake  <ebb9@byu.net>
74981
74982         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74983         declaration.
74984
74985 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74986
74987         * lib/strptime.h (strptime): Use 'restrict' for args where
74988         POSIX requires this.
74989         * lib/strptime.c (strptime): Likewise.
74990         Change license notice from LGPL to GPL, since gnulib-tool will
74991         change this as needed.
74992         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74993         defined.
74994         Include "strptime.h" first, to check interface.
74995         Do not #undef _LIBC and _NL_CURRENT.
74996         Do not include <stdlib.h>; no longer needed.
74997         Include "time_r.h" and declare ptime_locale_status
74998         only if _LIBC is not defined.
74999         (__P): Remove unused macro.
75000         (match_string): Bring back glibc version, but use it only if _LIBC
75001         is defined.
75002         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75003         Remove unnecessary assertion and abort() call.
75004         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75005         * m4/strptime.m4: Fix serial number comment.
75006         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75007         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75008         (Depends-on): Add time_r.
75009
75010 2007-01-29  Bruno Haible  <bruno@clisp.org>
75011
75012         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75013         strptime.
75014         * modules/strptime (Depends-on): Add stdbool.
75015         * lib/strptime.h: Include <time.h> always. Add comments.
75016
75017 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75018
75019         * modules/strptime: New file.
75020         * lib/strptime.h: New file.
75021         * lib/strptime.c: New file.
75022         * m4/strptime.m4: New file.
75023
75024 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         * MODULES.html.sh: New module mpsort.
75027         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75028
75029         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75030         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75031         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75032         All uses changed.
75033         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75034         All uses changed.
75035         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75036         to _Restrict_.
75037         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75038         the parameter matches the prototype.
75039
75040 2007-01-28  Jim Meyering  <jim@meyering.net>
75041
75042         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75043         sys/time.h here, reverting that part of the previous patch:
75044         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75045
75046 2007-01-28  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75049         value of $(SYS_TIME_H).
75050         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75051         remove it conditionally, too. [added by Jim Meyering]
75052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75053         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75054         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75055         GETTIMEOFDAY_REPLACEMENT to 1.
75056
75057 2007-01-28  Bruno Haible  <bruno@clisp.org>
75058
75059         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75060         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75061         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75062         Set UNISTD_H instead of UNISTD_H2.
75063         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75064
75065 2007-01-28  Bruno Haible  <bruno@clisp.org>
75066
75067         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75068         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75069
75070 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75071
75072         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75073         (func_create_testdir): Ensure C locale for `grep' and `tr'
75074         character ranges.
75075         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75076         ACLOCAL_AMFLAGS parsing state machine.
75077
75078 2007-01-27  Bruno Haible  <bruno@clisp.org>
75079
75080         * modules/unistr/base: Update.
75081
75082 2007-01-27  Bruno Haible  <bruno@clisp.org>
75083
75084         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75085         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75086         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75087         modules/unistr/u32-mbtouc.
75088         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75089         * lib/unistr.h: Update.
75090         * lib/linebreak.c: Update.
75091         * modules/unistr/u32-mbtouc: Renamed from
75092         modules/unistr/u32-mbtouc-safe.
75093         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75094         * lib/unistr.h: Update.
75095         * lib/unistr/u32-to-u8.c: Update.
75096         * lib/unistr/u32-to-u16.c: Update.
75097
75098 2007-01-27  Bruno Haible  <bruno@clisp.org>
75099
75100         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75101         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75102         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75103         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75104         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75105         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75106         modules/unistr/u16-mbtouc.
75107         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75108         * lib/unistr.h: Update.
75109         * lib/linebreak.c: Update.
75110         * modules/linebreak: Update.
75111         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75112         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75113         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75114         * modules/unistr/u16-mbtouc: Renamed from
75115         modules/unistr/u16-mbtouc-safe.
75116         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75117         * lib/unistr.h: Update.
75118         * lib/unistr/u16-to-u8.c: Update.
75119         * modules/unistr/u16-to-u8: Update.
75120         * lib/unistr/u16-to-u32.c: Update.
75121         * modules/unistr/u16-to-u32: Update.
75122
75123 2007-01-27  Bruno Haible  <bruno@clisp.org>
75124
75125         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75126         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75127         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75128         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75129         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75130         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75131         modules/unistr/u8-mbtouc.
75132         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75133         * lib/unistr.h: Update.
75134         * lib/striconveh.c: Update.
75135         * modules/striconveh: Update.
75136         * lib/linebreak.c: Update.
75137         * modules/linebreak: Update.
75138         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75139         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75140         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75141         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75142         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75143         * lib/unistr.h: Update.
75144         * lib/striconveh.c: Update.
75145         * modules/striconveh: Update.
75146         * lib/unistr/u8-to-u16.c: Update.
75147         * modules/unistr/u8-to-u16: Update.
75148         * lib/unistr/u8-to-u32.c: Update.
75149         * modules/unistr/u8-to-u32: Update.
75150
75151 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75152
75153         Sync from Libtool.
75154         * lib/argz.c: Do not include strings.h nor memory.h, include
75155         string.h unconditionally.  Patch by Simon Josefsson.
75156
75157 2007-01-27  Bruno Haible  <bruno@clisp.org>
75158
75159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75160         from gl_HEADER_STRING_H_BODY.
75161         (gl_HEADER_STRING_H_BODY): Require it.
75162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75163         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75164         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75165         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75167         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75170         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75171         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75172         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75173         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75174         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75176         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75177
75178 2007-01-27  Bruno Haible  <bruno@clisp.org>
75179
75180         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75181         check_PROGRAMS into noinst_PROGRAMS.
75182         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75183         check_PROGRAMS in this case.
75184         (func_import): Set for_test to false.
75185         (func_create_testdir): Set for_test to true.
75186
75187 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75188             Bruno Haible  <bruno@clisp.org>
75189
75190         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75191         (Depends-on): Add string.
75192         (Includes): Use <string.h> instead of strcasestr.h.
75193         * modules/string (Makefile.am): Also substitute the value of
75194         REPLACE_STRCASESTR.
75195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75196         assume strcasestr is declared in <string.h> not <strings.h>. Also
75197         set REPLACE_STRCASESTR.
75198         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75199         REPLACE_STRCASESTR.
75200         * lib/strcasestr.h: Remove file.
75201         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75202         * lib/string_.h (strcasestr): New declaration.
75203
75204 2007-01-27  Bruno Haible  <bruno@clisp.org>
75205
75206         * lib/string_.h: Use 'extern'.
75207
75208 2007-01-27  Jim Meyering  <jim@meyering.net>
75209
75210         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75211         of set-but-not-used local, "q".
75212
75213         * lib/mempcpy.c: Include <config.h> before <string.h>.
75214         This fixes a compilation error on HP-UX, due to the system's
75215         "restrict"-using mempcpy prototype.
75216
75217 2007-01-26  Bruno Haible  <bruno@clisp.org>
75218
75219         Small optimization.
75220         * lib/javacomp.c: Include c-strstr.h.
75221          (is_envjavac_gcj): Use c_strstr instead of strstr.
75222         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75223
75224 2007-01-26  Bruno Haible  <bruno@clisp.org>
75225
75226         * MODULES.html.sh (Unicode string functions): Add the new modules.
75227
75228         * modules/uniconv/u32-strconv-to-locale: New file.
75229         * lib/uniconv/u32-strconv-to-locale.c: New file.
75230
75231         * modules/uniconv/u16-strconv-to-locale: New file.
75232         * lib/uniconv/u16-strconv-to-locale.c: New file.
75233
75234         * modules/uniconv/u8-strconv-to-locale: New file.
75235         * lib/uniconv/u8-strconv-to-locale.c: New file.
75236
75237         * modules/uniconv/u32-strconv-from-locale: New file.
75238         * lib/uniconv/u32-strconv-from-locale.c: New file.
75239
75240         * modules/uniconv/u16-strconv-from-locale: New file.
75241         * lib/uniconv/u16-strconv-from-locale.c: New file.
75242
75243         * modules/uniconv/u8-strconv-from-locale: New file.
75244         * lib/uniconv/u8-strconv-from-locale.c: New file.
75245
75246         * modules/uniconv/u32-strconv-to-enc: New file.
75247         * lib/uniconv/u32-strconv-to-enc.c: New file.
75248         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75249         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75250
75251         * modules/uniconv/u16-strconv-to-enc: New file.
75252         * lib/uniconv/u16-strconv-to-enc.c: New file.
75253         * lib/uniconv/u-strconv-to-enc.h: New file.
75254         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75255         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75256
75257         * modules/uniconv/u8-strconv-to-enc: New file.
75258         * lib/uniconv/u8-strconv-to-enc.c: New file.
75259         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75260         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75261
75262         * modules/uniconv/u32-strconv-from-enc: New file.
75263         * lib/uniconv/u32-strconv-from-enc.c: New file.
75264         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75265         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75266
75267         * modules/uniconv/u16-strconv-from-enc: New file.
75268         * lib/uniconv/u16-strconv-from-enc.c: New file.
75269         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75270         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75271
75272         * modules/uniconv/u8-strconv-from-enc: New file.
75273         * lib/uniconv/u8-strconv-from-enc.c: New file.
75274         * lib/uniconv/u-strconv-from-enc.h: New file.
75275         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75276         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75277
75278         * modules/uniconv/u32-conv-from-enc: New file.
75279         * lib/uniconv/u32-conv-from-enc.c: New file.
75280         * modules/uniconv/u32-conv-from-enc-tests: New file.
75281         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75282
75283         * modules/uniconv/u16-conv-from-enc: New file.
75284         * lib/uniconv/u16-conv-from-enc.c: New file.
75285         * lib/uniconv/u-conv-from-enc.h: New file.
75286         * modules/uniconv/u16-conv-from-enc-tests: New file.
75287         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75288
75289         * modules/uniconv/u8-conv-from-enc: New file.
75290         * lib/uniconv/u8-conv-from-enc.c: New file.
75291         * modules/uniconv/u8-conv-from-enc-tests: New file.
75292         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75293
75294         * modules/uniconv/base: New file.
75295         * lib/uniconv.h: New file.
75296
75297 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75298
75299         * doc/gnulib-tool.texi (Initial import): Update to match current
75300         behavior with strdup module.
75301         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75302         * lib/memmem.h: Remove; all uses removed.  This is now done
75303         by <string.h>.
75304         * lib/mempcpy.h: Likewise.
75305         * lib/memrchr.h: Likewise.
75306         * lib/stpcpy.h: Likewise.
75307         * lib/stpncpy.h: Likewise.
75308         * lib/strcase.h: Likewise.
75309         * lib/strchrnul.h: Likewise.
75310         * lib/strdup.h: Likewise.
75311         * lib/strndup.h: Likewise.
75312         * lib/strnlen.h: Likewise.
75313         * lib/strpbrk.h: Likewise.
75314         * lib/strsep.h: Likewise.
75315         * lib/strstr.h: Likewise.
75316         * lib/strtok_r.h: Likewise.
75317         * lib/string_.h: New file.
75318         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75319         Rely on <string.h> instead.
75320         * lib/canon-host.c: Likewise.
75321         * lib/chdir-long.c: Likewise.
75322         * lib/concatpath.c: Likewise.
75323         * lib/exclude.c: Likewise.
75324         * lib/fchdir.c: Likewise.
75325         * lib/getaddrinfo.c: Likewise.
75326         * lib/getcwd.c: Likewise.
75327         * lib/getsubopt.c: Likewise.
75328         * lib/glob.c: Likewise.
75329         * lib/hard-locale.c: Likewise.
75330         * lib/iconvme.c: Likewise.
75331         * lib/javacomp.c: Likewise.
75332         * lib/mempcpy.c: Likewise.
75333         * lib/memrchr.c: Likewise.
75334         * lib/regex_internal.h: Likewise.
75335         * lib/stpncpy.c: Likewise.
75336         * lib/strcasecmp.c: Likewise.
75337         * lib/strchrnul.c: Likewise.
75338         * lib/strdup.c: Likewise.
75339         * lib/striconv.c: Likewise.
75340         * lib/striconveh.c: Likewise.
75341         * lib/striconveha.c: Likewise.
75342         * lib/strncasecmp.c: Likewise.
75343         * lib/strndup.c: Likewise.
75344         * lib/strnlen.c: Likewise.
75345         * lib/strsep.c: Likewise.
75346         * lib/strstr.c: Likewise.
75347         * lib/strtok_r.c: Likewise.
75348         * lib/userspec.c: Likewise.
75349         * lib/w32spawn.h: Likewise.
75350         * lib/xstrndup.c: Likewise.
75351         * lib/mountlist.c (strstr): Remove decl.
75352         * m4/string_h.m4: New file.
75353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75354         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75355         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75356         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75357         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75358         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75359         Set REPLACE_STRCASECMP if necessary.
75360         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75361         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75362         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75363         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75364         HAVE_DECL_STRDUP if necessary.
75365         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75366         since gl_FUNC_STRNDUP does that now.
75367         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75368         Check for decl here...
75369         (gl_PREREQ_STRNLEN): ... not here.
75370         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75371         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75372         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75373         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75374         necessary.
75375         * modules/string: New file.
75376         * modules/memmem (Files): Remove special-purpose include file.
75377         (Depends-on): Add string.
75378         (Include): Include <string.h>, not the removed file.
75379         * modules/mempcpy: Likewise.
75380         * modules/memrchr: Likewise.
75381         * modules/stpcpy: Likewise.
75382         * modules/stpncpy: Likewise.
75383         * modules/strcase: Likewise.
75384         * modules/strchrnul: Likewise.
75385         * modules/strdup: Likewise.
75386         * modules/strndup: Likewise.
75387         * modules/strnlen: Likewise.
75388         * modules/strpbrk: Likewise.
75389         * modules/strsep: Likewise.
75390         * modules/strstr: Likewise.
75391         * modules/strtok_r: Likewise.
75392         * tests/test-dirname.c: Don't include "strdup.h", since
75393         <string.h> now suffices.
75394         * tests/test-memmem.c: Don't include "memmem.h", since
75395         <string.h> now suffices.
75396
75397 2007-01-25  Bruno Haible  <bruno@clisp.org>
75398
75399         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75400         *resultp is 0.
75401
75402         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75403         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75404         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75405         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75406
75407         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75408         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75409         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75410         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75411         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75412         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75413
75414 2007-01-24  Bruno Haible  <bruno@clisp.org>
75415
75416         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75418         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75419         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75420         gl_FUNC_FTS_CORE.
75421         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75422         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75423         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75424         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75425         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75426         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75427         gl_FUNC_FCHOWNAT.
75428         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75429         gl_FUNC_STRFTIME.
75430         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75431         Reported by Ralf Wildenhues.
75432
75433 2007-01-24  Bruno Haible  <bruno@clisp.org>
75434
75435         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75436         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75437         gl_GETADDRINFO.
75438         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75439         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75440         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75441
75442 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75445         Don't use 'exit'; just return from 'main'.
75446         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75447
75448         * lib/fnmatch_.h: Readjust white space and comments to match
75449         glibc, to avoid spurious diffs.
75450
75451 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75454         2004-12-01 change by Jakub Jelinek, since this code won't compile
75455         if !LIBC.  Problem reported by Bob Proulx.
75456
75457 2007-01-23  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/striconveh.c: Include c-strcaseeq.h.
75460         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75461         * modules/striconveh (Depends-on): Add c-strcaseeq.
75462
75463 2007-01-23  Bruno Haible  <bruno@clisp.org>
75464
75465         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75466
75467         * modules/c-strcaseeq: New file.
75468         * lib/c-strcaseeq.h: New file.
75469
75470         * modules/streq: New file.
75471         * lib/streq.h: New file.
75472
75473 2007-01-23  Bruno Haible  <bruno@clisp.org>
75474
75475         * modules/striconveha-tests: New file.
75476         * tests/test-striconveha.c: New file.
75477
75478         * lib/striconveha.h: Include <stdbool.h>.
75479         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75480         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75481         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75482         (mem_iconveha): New function.
75483         (str_iconveha_notranslit): Renamed from str_iconveha.
75484         (str_iconveha): New function.
75485         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75486         c-strcase.
75487
75488 2007-01-23  Bruno Haible  <bruno@clisp.org>
75489
75490         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75491         encodings without forgiving before trying any encoding with handler.
75492         (str_iconveha): Try all encodings without forgiving before trying any
75493         encoding with handler.
75494
75495 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         Import the following changes from libc.
75498
75499         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75500
75501         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75502
75503         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75504
75505         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75506         normal_bracket label.
75507
75508         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75509
75510         [BZ #361]
75511         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75512         to normal_bracket after fetching the next character.
75513
75514 2007-01-22  Bruno Haible  <bruno@clisp.org>
75515
75516         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75517         argument.
75518         * lib/striconveh.c (iconv_carefully_1): New function.
75519         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75520         argument.
75521         (str_cd_iconveh): Update.
75522         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75523         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75524         * tests/test-striconveh.c (MAGIC): New macro.
75525         (new_offsets): New function.
75526         (main): Test call with and without offsets.
75527
75528 2007-01-22  Bruno Haible  <bruno@clisp.org>
75529
75530         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75531         * modules/sys_select (Makefile.am): Likewise.
75532         * modules/sys_socket (Makefile.am): Likewise.
75533         * modules/sys_time (Makefile.am): Likewise.
75534
75535 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         * modules/gettimeofday (License): Change from GPL to LGPL, since
75538         gettimeofday is a library function.
75539
75540 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75541
75542         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75543
75544 2007-01-21  Bruno Haible  <bruno@clisp.org>
75545
75546         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75547
75548 2007-01-21  Bruno Haible  <bruno@clisp.org>
75549
75550         * modules/striconveha: New file.
75551         * lib/striconveha.h: New file.
75552         * lib/striconveha.c: New file.
75553         * MODULES.html.sh (Internationalization functions): Add striconveha.
75554         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75555         string.
75556         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75557
75558 2007-01-21  Bruno Haible  <bruno@clisp.org>
75559
75560         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75561         * lib/striconveh.c (str_iconveh): Likewise.
75562
75563 2007-01-21  Bruno Haible  <bruno@clisp.org>
75564
75565         * lib/striconveh.h (mem_iconveh): New declaration.
75566         * lib/striconveh.c (mem_iconveh): New function.
75567         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75568
75569 2007-01-21  Bruno Haible  <bruno@clisp.org>
75570
75571         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75572
75573         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75574         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75575         original result buffer.
75576         (str_cd_iconveh): Update.
75577         * tests/test-striconveh.c (main): Update.
75578
75579         * lib/striconv.h (mem_cd_iconv): Change specification.
75580         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75581         result buffer.
75582         (str_cd_iconv): Update.
75583         * tests/test-striconv.c (main): Update.
75584
75585 2007-01-21  Bruno Haible  <bruno@clisp.org>
75586
75587         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75588
75589 2007-01-20  Jim Meyering  <jim@meyering.net>
75590
75591         * lib/userspec.c (parse_with_separator): If a user or group string
75592         starts with "+", skip the corresponding name-to-ID look-up, since
75593         such a look-up must fail: user and group names may not include "+".
75594
75595 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75598         since we now assume the sys_time module.
75599         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75600         check for sys/time.h; no longer needed.
75601         * modules/poll (Depends-on): Depend on sys_time.
75602
75603 2007-01-18  Bruno Haible  <bruno@clisp.org>
75604
75605         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75606         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75607
75608         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75609         gettimeofday.
75610
75611         * tests/test-gettimeofday.c: Include <time.h>.
75612         (dummy): Remove variable.
75613
75614         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75615         gl_HEADER_SYS_TIME_H.
75616         (gl_HEADER_SYS_TIME_H): New macro.
75617
75618         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75619         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75621         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75622         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75623         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75624         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75625         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75626         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75627         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75628         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75629
75630         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75631         last change; it caused a compilation error when cross-compiling to
75632         Cygwin.
75633
75634 2007-01-18  Jim Meyering  <jim@meyering.net>
75635
75636         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75637         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75638         than the race-prone "test -d sys || mkdir sys".
75639         (configure.ac): Use AC_PROG_MKDIR_P.
75640         * modules/sys_select: Likewise.
75641         * modules/sys_socket: Likewise.
75642         * modules/sys_time: Likewise.
75643
75644 2007-01-18  Eric Blake  <ebb9@byu.net>
75645
75646         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75647         replace gettimeofday.
75648         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75649         name, to avoid infinite recursion.
75650
75651 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75654         module sys_time.
75655         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75656         assume timespec.h defines struct timeval.
75657         * lib/settime.c: Likewise.
75658         * lib/utimens.c: Likewise.
75659         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75660         since we now assume the gettimeofday module.
75661         * lib/tempname.c (__gen_tempname): Likewise.
75662         * lib/gettimeofday.h: Remove.
75663         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75664         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75665         Include <time.h>, for 'time()'.
75666         (localtime_buffer_addr): Also use this workaround if
75667         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75668         to simplify the uses.  All uses changed.
75669         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75670         that #undef is inside {}, and 'const' follows type name consistently.
75671         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75672         (gettimeofday): Do not use the maximum possible value for
75673         tv->tv_usec, since that might break usages other than ls.c.
75674         Instead, we'll leave ls.c alone.  This undoes today's patch
75675         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75676         we've never observed the problem but might as well keep the
75677         canary.
75678         * lib/nanosleep.c: Include timespec.h first, for interface check.
75679         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75680         now assume the sys_time module.
75681         * lib/tempname.c: Likewise.
75682         * lib/timespec.h: Likewise.
75683         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75684         needed.
75685         * lib/strftime.c: Likewise.
75686         * lib/timespec.h: Likewise.
75687         * lib/posixtm.c: Include posixtm.h first, for interface check.
75688         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75689         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75690         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75691         * lib/sys_time_.h: New file.
75692         * lib/timespec.h (struct timespec): Use long int, not long.
75693         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75694         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75695         Remove obsolescent call to AC_HEADER_TIME.
75696         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75698         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75699         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75700         Likewise.
75701         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75702         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75703         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75704         into the sys_time module.  Check for gettimeofday just once.
75705         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75706         for gettimeofday signature to just check the signature.  Merely
75707         compile it, since linking doesn't test signature.  Improve test for
75708         whether gettimeofday.o is actually needed.
75709         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75710         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75711         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75712         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75713         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75714         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75715         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75716         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75717         than worrying about sys/time.h.
75718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75719         Don't bother worrying about TIME_WITH_SYS_TIME.
75720         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75721         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75722         * m4/sys_time_h.m4: New file.
75723         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75724         Don't include sys/time.h.  Return from main rather than exiting.
75725         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75726         all uses changed.
75727         * modules/gethrxtime (Depends-on): Add sys_time.
75728         * modules/gettime (Depends-on): Likewise.
75729         * modules/gettimeofday (Depends-on): Likewise.
75730         * modules/nanosleep (Depends-on): Likewise.
75731         * modules/settime (Depends-on): Likewise.
75732         * modules/tempname (Depends-on): Likewise.
75733         * modules/utimens (Depends-on): Likewise.
75734         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75735         (Include): Change back to <sys/time.h>.
75736         (Maintainer): Add self.
75737         * modules/sys_time: New file.
75738         * modules/tempname (Depends-on): Add gettimeofday.
75739         * tests/test-gettimeofday.c: Include <sys/time.h>
75740         rather than gettimeofday.h.
75741
75742 2007-01-17  Bruno Haible  <bruno@clisp.org>
75743
75744         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75745         the license default to GPL.
75746         (func_create_testdir): Don't complain if a module is LGPL and its
75747         tests module depends on GPLed modules.
75748
75749 2007-01-17  Bruno Haible  <bruno@clisp.org>
75750
75751         * lib/gettimeofday.c (gettimeofday): Add code for the case
75752         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75753         maximum possible value for tv->tv_usec, rather than the minimum one.
75754
75755 2005-10-08  Martin Lambers  <marlam@marlam.de>
75756 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75757 2007-01-16  Bruno Haible  <bruno@clisp.org>
75758
75759         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75760         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75761         gl_FUNC_GETTIMEOFDAY.
75762         (Include): Add gettimeofday.h.
75763         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75764         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75765         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75766         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75767         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75768         * lib/gettimeofday.h: New file.
75769         * lib/gettimeofday.c: Include <sys/timeb.h>.
75770         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75771         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75772         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75773         fall back on time().
75774
75775         * tests/test-gettimeofday.c: New file.
75776         * modules/gettimeofday-tests: New file.
75777
75778 2007-01-16  Eric Blake  <ebb9@byu.net>
75779
75780         * modules/fnmatch (Depends-on): Depend on wchar.
75781         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75782         * m4/fnmatch.m4: Likewise.
75783         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75784         * m4/mbchar.m4: Likewise.
75785         * modules/mbswidth (Depends-on): Depend on wchar.
75786         * lib/mbswidth.c: Assume <wchar.h>.
75787         * m4/mbswidth.m4: Likewise.
75788         * modules/quotearg (Depends-on): Depend on wchar.
75789         * lib/quotearg.c: Assume <wchar.h>.
75790         * m4/quotearg.m4: Likewise.
75791         * modules/regex (Depends-on): Depend on wchar.
75792         * lib/regex_internal.h: Assume <wchar.h>.
75793         * m4/regex.m4: Likewise.
75794         * modules/stdint (Depends-on): Depend on wchar.
75795         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75796         * m4/stdint.m4: Likewise.
75797         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75798         * modules/strftime (Depends-on): Depend on wchar.
75799         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75800         * modules/strtol (Depends-on): Depend on wchar.
75801         * lib/strtol.c: Assume <wchar.h>.
75802         * modules/wcwidth (Depends-on): Depend on wchar.
75803         * lib/wcwidth.h: Assume <wchar.h>.
75804         * m4/wcwidth.m4: Likewise.
75805
75806 2007-01-16  Bruno Haible  <bruno@clisp.org>
75807
75808         * modules/csharpexec-script: New, created from...
75809         * modules/csharpexec: ... this.
75810
75811 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75812
75813         * modules/javaexec-script: New, created from...
75814         * modules/javaexec: ... this.
75815
75816 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75817
75818         * modules/poll (Dependencies): Add sys_select.
75819
75820 2007-01-15  Jim Meyering  <jim@meyering.net>
75821
75822         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75823         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75824         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75825         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75826
75827 2007-01-15  Bruno Haible  <bruno@clisp.org>
75828
75829         * modules/striconveh: New file.
75830         * lib/striconveh.h: New file.
75831         * lib/striconveh.c: New file.
75832         * MODULES.html.sh (Internationalization functions): Add striconveh.
75833
75834         * modules/striconveh-tests: New file.
75835         * tests/test-striconveh.c: New file.
75836
75837 2007-01-15  Bruno Haible  <bruno@clisp.org>
75838
75839         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75840         not from GNU libiconv or GNU libc.
75841
75842 2007-01-15  Bruno Haible  <bruno@clisp.org>
75843
75844         * doc/gnulib-intro.texi (Copyright): Explain the different license
75845         terms for module descriptions, autoconf macros, tests, documentation.
75846
75847 2007-01-14  Bruno Haible  <bruno@clisp.org>
75848
75849         * modules/striconv-tests: New file.
75850         * tests/test-striconv.c: New file.
75851
75852 2007-01-14  Bruno Haible  <bruno@clisp.org>
75853
75854         * modules/iconv-tests: New file.
75855         * tests/test-iconv.c: New file.
75856
75857 2007-01-14  Bruno Haible  <bruno@clisp.org>
75858
75859         * gnulib-tool (func_get_license): For test modules, use the license of
75860         the main module.
75861
75862 2007-01-14  Bruno Haible  <bruno@clisp.org>
75863
75864         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75865         if iconv is found to exist.
75866
75867 2007-01-14  Bruno Haible  <bruno@clisp.org>
75868
75869         * modules/c-ctype-tests: New file.
75870         * tests/test-c-ctype.c: New file.
75871
75872 2007-01-14  Bruno Haible  <bruno@clisp.org>
75873
75874         * modules/binary-io-tests: New file.
75875         * tests/test-binary-io.sh: New file.
75876         * tests/test-binary-io.c: New file.
75877
75878 2007-01-14  Bruno Haible  <bruno@clisp.org>
75879
75880         * modules/array-oset-tests: New file.
75881         * tests/test-array_oset.c: New file.
75882
75883 2007-01-14  Bruno Haible  <bruno@clisp.org>
75884
75885         * modules/array-list-tests: New file.
75886         * tests/test-array_list.c: New file.
75887
75888 2007-01-14  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75891         and make.
75892         Reported by Simon Josefsson in
75893         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75894
75895 2007-01-14  Bruno Haible  <bruno@clisp.org>
75896
75897         * modules/allocsa-tests: New file.
75898         * tests/test-allocsa.c: New file.
75899
75900 2007-01-14  Bruno Haible  <bruno@clisp.org>
75901
75902         * modules/fchdir (Depends-on): Add absolute-header.
75903         * modules/unistd (Depends-on): Likewise.
75904
75905 2006-12-30  Bruno Haible  <bruno@clisp.org>
75906
75907         * modules/fchdir: New file.
75908         * modules/unistd (Files): Add lib/unistd_.h.
75909         (Makefile.am): Generate unistd.h from unistd_.h.
75910         * lib/fchdir.c: New file.
75911         * lib/dirent_.h: New file.
75912         * lib/unistd_.h: New file.
75913         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75914         * m4/fchdir.m4: New file.
75915         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75916         (gl_HEADER_UNISTD): Invoke it.
75917         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75918         function.
75919         * lib/backupfile.c (opendir, closedir): Undefine.
75920         * lib/chown.c (open, close): Undefine.
75921         * lib/clean-temp.c (open, close): Undefine.
75922         * lib/copy-file.c (open, close): Undefine.
75923         * lib/execute.c (open, close): Undefine.
75924         * lib/fsusage.c (open, close): Undefine.
75925         * lib/gc-gnulib.c (open, close): Undefine.
75926         * lib/getcwd.c (opendir, closedir): Undefine.
75927         * lib/glob.c (opendir, closedir): Undefine.
75928         * lib/javacomp.c (open, close): Undefine.
75929         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75930         * lib/openat-proc.c (open, close): Undefine.
75931         * lib/pagealign_alloc.c (open, close): Undefine.
75932         * lib/pipe.c (open, close): Undefine.
75933         * lib/progreloc.c (open, close): Undefine.
75934         * lib/savedir.c (opendir, closedir): Undefine.
75935         * lib/utime.c (open, close): Undefine.
75936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75937
75938 2007-01-10  Bruno Haible  <bruno@clisp.org>
75939
75940         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75941
75942 2007-01-12  Eric Blake  <ebb9@byu.net>
75943
75944         Provide a robust <wchar.h>.  Further simplifications are now
75945         possible in other modules, but not included here.
75946         * modules/wchar: New module.
75947         * m4/wchar.m4: New file.
75948         * lib/wchar_.h: Likewise.
75949         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75950         of the new module.
75951         * MODULES.html.sh (Extended multibyte and wide character utilities):
75952         New section.
75953
75954 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75957         to a reasonable default for memory allocation.
75958         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75959         file system that reports garbage st_size values for symlinks.
75960         Problem reported by Liyang Hu.
75961
75962 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75963
75964         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75965         Emacs .#* auto-save files).
75966
75967 2007-01-11  Bruno Haible  <bruno@clisp.org>
75968
75969         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75970         directory.
75971
75972 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         Use @...@ consistently in lib/wctype_.h.
75975         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75976         on it being set to 1 or 0.
75977         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75978         go back to AC_SUBSTing it.
75979         * modules/wctype (Makefile.am): Undo previous change.
75980
75981 2007-01-10  Eric Blake  <ebb9@byu.net>
75982
75983         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75984         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75985         * modules/wctype (Makefile.am): Likewise.
75986         Reported by Chris McGuire.
75987
75988 2007-01-10  Jim Meyering  <jim@meyering.net>
75989
75990         fts.c: a small readability/maintainability improvement
75991         * lib/fts.c (fts_read): Make this code slightly more readable and
75992         maintainable by hoisting the "sp->fts_cur = p" assignments to
75993         immediately follow the statements that set P.  Derived from
75994         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75995
75996 2007-01-10  Eric Blake  <ebb9@byu.net>
75997
75998         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75999         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76001         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76002         Reported by Chris McGuire.
76003
76004 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76005
76006         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76007         in sed script.
76008
76009 2007-01-09  Bruno Haible  <bruno@clisp.org>
76010
76011         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76012         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76013         variables.
76014         (func_module): Use them.
76015
76016 2007-01-09  Bruno Haible  <bruno@clisp.org>
76017
76018         * modules/unistr/base: New file.
76019         * lib/unistr.h: New file.
76020
76021         * modules/unistr/u8-to-u16: New file.
76022         * lib/unistr/u8-to-u16.c: New file.
76023
76024         * modules/unistr/u8-to-u32: New file.
76025         * lib/unistr/u8-to-u32.c: New file.
76026
76027         * modules/unistr/u16-to-u8: New file.
76028         * lib/unistr/u16-to-u8.c: New file.
76029
76030         * modules/unistr/u16-to-u32: New file.
76031         * lib/unistr/u16-to-u32.c: New file.
76032
76033         * modules/unistr/u32-to-u8: New file.
76034         * lib/unistr/u32-to-u8.c: New file.
76035
76036         * modules/unistr/u32-to-u16: New file.
76037         * lib/unistr/u32-to-u16.c: New file.
76038
76039         * modules/unistr/u8-check: New file.
76040         * modules/unistr/u16-check: New file.
76041         * modules/unistr/u32-check: New file.
76042         * lib/unistr/u8-check.c: New file.
76043         * lib/unistr/u16-check.c: New file.
76044         * lib/unistr/u32-check.c: New file.
76045
76046         * modules/unistr/u8-chr: New file.
76047         * modules/unistr/u16-chr: New file.
76048         * modules/unistr/u32-chr: New file.
76049         * lib/unistr/u8-chr.c: New file.
76050         * lib/unistr/u16-chr.c: New file.
76051         * lib/unistr/u32-chr.c: New file.
76052
76053         * modules/unistr/u8-cmp: New file.
76054         * modules/unistr/u16-cmp: New file.
76055         * modules/unistr/u32-cmp: New file.
76056         * lib/unistr/u8-cmp.c: New file.
76057         * lib/unistr/u16-cmp.c: New file.
76058         * lib/unistr/u32-cmp.c: New file.
76059
76060         * modules/unistr/u8-cpy: New file.
76061         * modules/unistr/u16-cpy: New file.
76062         * modules/unistr/u32-cpy: New file.
76063         * lib/unistr/u8-cpy.c: New file.
76064         * lib/unistr/u16-cpy.c: New file.
76065         * lib/unistr/u32-cpy.c: New file.
76066         * lib/unistr/u-cpy.h: New file.
76067
76068         * modules/unistr/u8-cpy-alloc: New file.
76069         * modules/unistr/u16-cpy-alloc: New file.
76070         * modules/unistr/u32-cpy-alloc: New file.
76071         * lib/unistr/u8-cpy-alloc.c: New file.
76072         * lib/unistr/u16-cpy-alloc.c: New file.
76073         * lib/unistr/u32-cpy-alloc.c: New file.
76074         * lib/unistr/u-cpy-alloc.h: New file.
76075
76076         * modules/unistr/u8-endswith: New file.
76077         * modules/unistr/u16-endswith: New file.
76078         * modules/unistr/u32-endswith: New file.
76079         * lib/unistr/u8-endswith.c: New file.
76080         * lib/unistr/u16-endswith.c: New file.
76081         * lib/unistr/u32-endswith.c: New file.
76082         * lib/unistr/u-endswith.h: New file.
76083
76084         * modules/unistr/u8-mblen: New file.
76085         * modules/unistr/u16-mblen: New file.
76086         * modules/unistr/u32-mblen: New file.
76087         * lib/unistr/u8-mblen.c: New file.
76088         * lib/unistr/u16-mblen.c: New file.
76089         * lib/unistr/u32-mblen.c: New file.
76090
76091         * modules/unistr/u8-mbtouc: New file.
76092         * modules/unistr/u16-mbtouc: New file.
76093         * modules/unistr/u32-mbtouc: New file.
76094         * lib/unistr/u8-mbtouc.c: New file.
76095         * lib/unistr/u16-mbtouc.c: New file.
76096         * lib/unistr/u32-mbtouc.c: New file.
76097
76098         * modules/unistr/u8-mbtouc-safe: New file.
76099         * modules/unistr/u16-mbtouc-safe: New file.
76100         * modules/unistr/u32-mbtouc-safe: New file.
76101         * lib/unistr/u8-mbtouc-safe.c: New file.
76102         * lib/unistr/u16-mbtouc-safe.c: New file.
76103         * lib/unistr/u32-mbtouc-safe.c: New file.
76104
76105         * modules/unistr/u8-move: New file.
76106         * modules/unistr/u16-move: New file.
76107         * modules/unistr/u32-move: New file.
76108         * lib/unistr/u8-move.c: New file.
76109         * lib/unistr/u16-move.c: New file.
76110         * lib/unistr/u32-move.c: New file.
76111         * lib/unistr/u-move.h: New file.
76112
76113         * modules/unistr/u8-next: New file.
76114         * modules/unistr/u16-next: New file.
76115         * modules/unistr/u32-next: New file.
76116         * lib/unistr/u8-next.c: New file.
76117         * lib/unistr/u16-next.c: New file.
76118         * lib/unistr/u32-next.c: New file.
76119
76120         * modules/unistr/u8-prev: New file.
76121         * modules/unistr/u16-prev: New file.
76122         * modules/unistr/u32-prev: New file.
76123         * lib/unistr/u8-prev.c: New file.
76124         * lib/unistr/u16-prev.c: New file.
76125         * lib/unistr/u32-prev.c: New file.
76126
76127         * modules/unistr/u8-set: New file.
76128         * modules/unistr/u16-set: New file.
76129         * modules/unistr/u32-set: New file.
76130         * lib/unistr/u8-set.c: New file.
76131         * lib/unistr/u16-set.c: New file.
76132         * lib/unistr/u32-set.c: New file.
76133         * lib/unistr/u-set.h: New file.
76134
76135         * modules/unistr/u8-startswith: New file.
76136         * modules/unistr/u16-startswith: New file.
76137         * modules/unistr/u32-startswith: New file.
76138         * lib/unistr/u8-startswith.c: New file.
76139         * lib/unistr/u16-startswith.c: New file.
76140         * lib/unistr/u32-startswith.c: New file.
76141         * lib/unistr/u-startswith.h: New file.
76142
76143         * modules/unistr/u8-stpcpy: New file.
76144         * modules/unistr/u16-stpcpy: New file.
76145         * modules/unistr/u32-stpcpy: New file.
76146         * lib/unistr/u8-stpcpy.c: New file.
76147         * lib/unistr/u16-stpcpy.c: New file.
76148         * lib/unistr/u32-stpcpy.c: New file.
76149         * lib/unistr/u-stpcpy.h: New file.
76150
76151         * modules/unistr/u8-stpncpy: New file.
76152         * modules/unistr/u16-stpncpy: New file.
76153         * modules/unistr/u32-stpncpy: New file.
76154         * lib/unistr/u8-stpncpy.c: New file.
76155         * lib/unistr/u16-stpncpy.c: New file.
76156         * lib/unistr/u32-stpncpy.c: New file.
76157         * lib/unistr/u-stpncpy.h: New file.
76158
76159         * modules/unistr/u8-strcat: New file.
76160         * modules/unistr/u16-strcat: New file.
76161         * modules/unistr/u32-strcat: New file.
76162         * lib/unistr/u8-strcat.c: New file.
76163         * lib/unistr/u16-strcat.c: New file.
76164         * lib/unistr/u32-strcat.c: New file.
76165         * lib/unistr/u-strcat.h: New file.
76166
76167         * modules/unistr/u8-strchr: New file.
76168         * modules/unistr/u16-strchr: New file.
76169         * modules/unistr/u32-strchr: New file.
76170         * lib/unistr/u8-strchr.c: New file.
76171         * lib/unistr/u16-strchr.c: New file.
76172         * lib/unistr/u32-strchr.c: New file.
76173
76174         * modules/unistr/u8-strcmp: New file.
76175         * modules/unistr/u16-strcmp: New file.
76176         * modules/unistr/u32-strcmp: New file.
76177         * lib/unistr/u8-strcmp.c: New file.
76178         * lib/unistr/u16-strcmp.c: New file.
76179         * lib/unistr/u32-strcmp.c: New file.
76180
76181         * modules/unistr/u8-strcpy: New file.
76182         * modules/unistr/u16-strcpy: New file.
76183         * modules/unistr/u32-strcpy: New file.
76184         * lib/unistr/u8-strcpy.c: New file.
76185         * lib/unistr/u16-strcpy.c: New file.
76186         * lib/unistr/u32-strcpy.c: New file.
76187         * lib/unistr/u-strcpy.h: New file.
76188
76189         * modules/unistr/u8-strcspn: New file.
76190         * modules/unistr/u16-strcspn: New file.
76191         * modules/unistr/u32-strcspn: New file.
76192         * lib/unistr/u8-strcspn.c: New file.
76193         * lib/unistr/u16-strcspn.c: New file.
76194         * lib/unistr/u32-strcspn.c: New file.
76195         * lib/unistr/u-strcspn.h: New file.
76196
76197         * modules/unistr/u8-strdup: New file.
76198         * modules/unistr/u16-strdup: New file.
76199         * modules/unistr/u32-strdup: New file.
76200         * lib/unistr/u8-strdup.c: New file.
76201         * lib/unistr/u16-strdup.c: New file.
76202         * lib/unistr/u32-strdup.c: New file.
76203         * lib/unistr/u-strdup.h: New file.
76204
76205         * modules/unistr/u8-strlen: New file.
76206         * modules/unistr/u16-strlen: New file.
76207         * modules/unistr/u32-strlen: New file.
76208         * lib/unistr/u8-strlen.c: New file.
76209         * lib/unistr/u16-strlen.c: New file.
76210         * lib/unistr/u32-strlen.c: New file.
76211         * lib/unistr/u-strlen.h: New file.
76212
76213         * modules/unistr/u8-strmblen: New file.
76214         * modules/unistr/u16-strmblen: New file.
76215         * modules/unistr/u32-strmblen: New file.
76216         * lib/unistr/u8-strmblen.c: New file.
76217         * lib/unistr/u16-strmblen.c: New file.
76218         * lib/unistr/u32-strmblen.c: New file.
76219
76220         * modules/unistr/u8-strmbtouc: New file.
76221         * modules/unistr/u16-strmbtouc: New file.
76222         * modules/unistr/u32-strmbtouc: New file.
76223         * lib/unistr/u8-strmbtouc.c: New file.
76224         * lib/unistr/u16-strmbtouc.c: New file.
76225         * lib/unistr/u32-strmbtouc.c: New file.
76226
76227         * modules/unistr/u8-strncat: New file.
76228         * modules/unistr/u16-strncat: New file.
76229         * modules/unistr/u32-strncat: New file.
76230         * lib/unistr/u8-strncat.c: New file.
76231         * lib/unistr/u16-strncat.c: New file.
76232         * lib/unistr/u32-strncat.c: New file.
76233         * lib/unistr/u-strncat.h: New file.
76234
76235         * modules/unistr/u8-strncmp: New file.
76236         * modules/unistr/u16-strncmp: New file.
76237         * modules/unistr/u32-strncmp: New file.
76238         * lib/unistr/u8-strncmp.c: New file.
76239         * lib/unistr/u16-strncmp.c: New file.
76240         * lib/unistr/u32-strncmp.c: New file.
76241
76242         * modules/unistr/u8-strncpy: New file.
76243         * modules/unistr/u16-strncpy: New file.
76244         * modules/unistr/u32-strncpy: New file.
76245         * lib/unistr/u8-strncpy.c: New file.
76246         * lib/unistr/u16-strncpy.c: New file.
76247         * lib/unistr/u32-strncpy.c: New file.
76248         * lib/unistr/u-strncpy.h: New file.
76249
76250         * modules/unistr/u8-strnlen: New file.
76251         * modules/unistr/u16-strnlen: New file.
76252         * modules/unistr/u32-strnlen: New file.
76253         * lib/unistr/u8-strnlen.c: New file.
76254         * lib/unistr/u16-strnlen.c: New file.
76255         * lib/unistr/u32-strnlen.c: New file.
76256         * lib/unistr/u-strnlen.h: New file.
76257
76258         * modules/unistr/u8-strpbrk: New file.
76259         * modules/unistr/u16-strpbrk: New file.
76260         * modules/unistr/u32-strpbrk: New file.
76261         * lib/unistr/u8-strpbrk.c: New file.
76262         * lib/unistr/u16-strpbrk.c: New file.
76263         * lib/unistr/u32-strpbrk.c: New file.
76264         * lib/unistr/u-strpbrk.h: New file.
76265
76266         * modules/unistr/u8-strrchr: New file.
76267         * modules/unistr/u16-strrchr: New file.
76268         * modules/unistr/u32-strrchr: New file.
76269         * lib/unistr/u8-strrchr.c: New file.
76270         * lib/unistr/u16-strrchr.c: New file.
76271         * lib/unistr/u32-strrchr.c: New file.
76272
76273         * modules/unistr/u8-strspn: New file.
76274         * modules/unistr/u16-strspn: New file.
76275         * modules/unistr/u32-strspn: New file.
76276         * lib/unistr/u8-strspn.c: New file.
76277         * lib/unistr/u16-strspn.c: New file.
76278         * lib/unistr/u32-strspn.c: New file.
76279         * lib/unistr/u-strspn.h: New file.
76280
76281         * modules/unistr/u8-strstr: New file.
76282         * modules/unistr/u16-strstr: New file.
76283         * modules/unistr/u32-strstr: New file.
76284         * lib/unistr/u8-strstr.c: New file.
76285         * lib/unistr/u16-strstr.c: New file.
76286         * lib/unistr/u32-strstr.c: New file.
76287         * lib/unistr/u-strstr.h: New file.
76288
76289         * modules/unistr/u8-strtok: New file.
76290         * modules/unistr/u16-strtok: New file.
76291         * modules/unistr/u32-strtok: New file.
76292         * lib/unistr/u8-strtok.c: New file.
76293         * lib/unistr/u16-strtok.c: New file.
76294         * lib/unistr/u32-strtok.c: New file.
76295         * lib/unistr/u-strtok.h: New file.
76296
76297         * modules/unistr/u8-uctomb: New file.
76298         * modules/unistr/u16-uctomb: New file.
76299         * modules/unistr/u32-uctomb: New file.
76300         * lib/unistr/u8-uctomb.c: New file.
76301         * lib/unistr/u16-uctomb.c: New file.
76302         * lib/unistr/u32-uctomb.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         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76309         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76310         subdirectories.
76311
76312 2007-01-08  Karl Berry  <karl@gnu.org>
76313
76314         * doc/error.texi: mention that main() fns must set program_name
76315         when progname is used.
76316
76317 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76318
76319         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76320         WCTYPE_H is empty, for the benefit of builds from non-distclean
76321         directories.  Problem reported by Eric Blake in
76322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76323
76324 2007-01-08  Bruno Haible  <bruno@clisp.org>
76325
76326         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76327         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76328         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76329         PROVIDE_CANONICALIZE_FILENAME_MODE.
76330         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76331
76332 2007-01-08  Bruno Haible  <bruno@clisp.org>
76333
76334         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76335         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76336         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76337         * lib/fts.c: Likewise.
76338         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76339
76340 2006-12-25  Bruno Haible  <bruno@clisp.org>
76341
76342         * modules/utf8-ucs4-safe: New file.
76343         * lib/utf8-ucs4-safe.h: New file.
76344         * lib/unistr/utf8-ucs4-safe.c: New file.
76345
76346         * modules/utf16-ucs4-safe: New file.
76347         * lib/utf16-ucs4-safe.h: New file.
76348         * lib/unistr/utf16-ucs4-safe.c: New file.
76349
76350         * MODULES.html.sh (Unicode string functions): Add the new modules.
76351
76352 2007-01-08  Bruno Haible  <bruno@clisp.org>
76353
76354         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76355         (Depends-on): Add unitypes.
76356         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76357         (u8_mbtouc_aux): Move out to separate file.
76358         (u8_mbtouc): Use ucs4_t, uint8_t types.
76359         * lib/unistr/utf8-ucs4.c: New file.
76360
76361         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76362         (Depends-on): Add unitypes.
76363         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76364         (u16_mbtouc_aux): Move out to separate file.
76365         (u16_mbtouc): Use ucs4_t, uint16_t types.
76366         * lib/unistr/utf16-ucs4.c: New file.
76367
76368         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76369         (Depends-on): Add unitypes.
76370         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76371         (u8_uctomb_aux): Move out to separate file.
76372         (u8_uctomb): Use ucs4_t, uint8_t types.
76373         * lib/unistr/ucs4-utf8.c: New file.
76374
76375         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76376         (Depends-on): Add unitypes.
76377         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76378         (u16_uctomb_aux): Move out to separate file.
76379         (u16_uctomb): Use ucs4_t, uint16_t types.
76380         * lib/unistr/ucs4-utf16.c: New file.
76381
76382 2006-12-25  Bruno Haible  <bruno@clisp.org>
76383
76384         * modules/unitypes: New file.
76385         * lib/unitypes.h: New file.
76386         * MODULES.html.sh (func_all_modules): New section "Unicode string
76387         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76388         this section. Add unitypes.
76389
76390 2007-01-08  Bruno Haible  <bruno@clisp.org>
76391
76392         Avoid variable names that conflict with those from libtool.
76393         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76394         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76395         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76396         library_names_spec to acl_library_names_spec, hardcode_* to
76397         acl_hardcode_*.
76398         Reported by Ralf Wildenhues.
76399
76400 2007-01-08  Bruno Haible  <bruno@clisp.org>
76401
76402         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76403         definition.
76404         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76405         definition.
76406         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76407         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76408         definition.
76409         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76410         definition.
76411         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76412         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76413         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76414         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76415         definition.
76416         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76417         definition.
76418         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76419         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76420         GC_USE_<algorithm>.
76421         * lib/gc-libgcrypt.c: Likewise.
76422         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76423         * modules/gc-arctwo (configure.ac): Likewise.
76424         * modules/gc-des (configure.ac): Likewise.
76425         * modules/gc-hmac-md5 (configure.ac): Likewise.
76426         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76427         * modules/gc-md2 (configure.ac): Likewise.
76428         * modules/gc-md4 (configure.ac): Likewise.
76429         * modules/gc-md5 (configure.ac): Likewise.
76430         * modules/gc-random (configure.ac): Likewise.
76431         * modules/gc-rijndael (configure.ac): Likewise.
76432         * modules/gc-sha1 (configure.ac): Likewise.
76433
76434 2007-01-08  Bruno Haible  <bruno@clisp.org>
76435
76436         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76437         macro definition.
76438         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76439         definition.
76440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76441         definition.
76442         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76443         * modules/fcntl-safer (configure.ac): Likewise.
76444         * modules/fopen-safer (configure.ac): Likewise.
76445         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76446         GNULIB_FWRITEERROR macro definition.
76447
76448 2007-01-08  Bruno Haible  <bruno@clisp.org>
76449
76450         * m4/gnulib-common.m4: New file.
76451         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76452         (func_get_filelist): Add m4/gnulib-common.m4.
76453
76454 2007-01-08  Bruno Haible  <bruno@clisp.org>
76455
76456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76457         command.
76458
76459 2007-01-08  Jim Meyering  <jim@meyering.net>
76460
76461         Use a more robust test for a "can't happen" condition.
76462         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76463         narrowed the st_size value.  Presuming the "can't happen" condition
76464         is true, that narrowing could conceivably convert an invalid st_size
76465         value into a valid one.  Instead, use a change based on Matthew
76466         Woehlke's original patch.
76467
76468         Slight readability improvement: use an assert-like macro
76469         in place of literal "abort ()" uses.
76470         * lib/fts.c (fts_assert): Define.
76471         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76472         Use this macro instead of a bare 'abort'.
76473
76474 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76477         simply work around them.
76478         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76479         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76480         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76481         declaring.
76482         Don't bother to define as macros, since the standard doesn't require it.
76483         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76484         longer worry about IRIX 5.3.
76485         (HAVE_WCTYPE_CTMP_BUG): Remove.
76486
76487 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76490         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76491         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76492         Problems reported by Georg Schwarz for IRIX 5.3.
76493
76494         * gnulib-tool (autoconf_minversion): Take the maximum version number
76495         found, not the minimum.  Problem reported by James Youngman.
76496
76497 2007-01-03  Karl Berry  <karl@gnu.org>
76498
76499         * doc/error.texi: new file, explaining interaction with progname.
76500         * doc/gnulib.texi: include it.  Update copyright.
76501
76502 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76503
76504         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76505         AC_CANONICAL_HOST, to improve autobuild outputs.
76506
76507 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76508             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76509
76510         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76511         sockets, server sockets, and other file descriptors.  Count errors
76512         to compute the return value.  Reorder the code a bit to be easier
76513         to follow.  Don't set event bits that were not requested (except
76514         POLLERR and POLLHUP).
76515
76516 2007-01-01  Bruno Haible  <bruno@clisp.org>
76517
76518         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76519
76520 2007-01-03  Jim Meyering  <jim@meyering.net>
76521
76522         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76523
76524 2007-01-02  Bruno Haible  <bruno@clisp.org>
76525
76526         * modules/settime (Include): Require timespec.h.
76527         * modules/nanosleep (Include): Likewise.
76528
76529 2007-01-01  Bruno Haible  <bruno@clisp.org>
76530
76531         * gnulib-tool (func_emit_copyright_notice): Bump year.
76532         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76533
76534 2007-01-01  Bruno Haible  <bruno@clisp.org>
76535
76536         Improve support for OpenBSD.
76537         * build-aux/config.rpath (libname_spec): Export.
76538         (library_names_spec): New variable. Export.
76539         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76540         library_names_spec from the config.rpath output. Locate shared library
76541         through the name pattern in library_names_spec.
76542
76543 2007-01-01  Eric Blake  <ebb9@byu.net>
76544
76545         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76546
76547 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76550         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76551         assume the C locale, and avoid an "eval" that could cause trouble.
76552         Problem with SORT reported by Bob Proulx.
76553
76554         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76555         Define.  Trivial patch from Henning Nielsen Lund, originally
76556         sent to bug-grep@gnu.org today.
76557
76558 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76561         struct stat.  Problem reported by Henning Nielsen Lund.
76562         * lib/acl.c: Include acl.h first, to check interface.  Don't
76563         bother to include sys/types.h and sys/stat.h again.
76564
76565 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         Import the following change from libc; problem reported by
76568         Sven Verdoolaege.
76569
76570         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76571
76572         [BZ #1373]
76573         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76574
76575 2006-12-28  Jim Meyering  <jim@meyering.net>
76576
76577         * build-aux/announce-gen: Do not assume that the package
76578         builds any of tar.gz, tar.bz2, and .xdelta files.
76579         Suggestion from Simon Josefsson.
76580
76581 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76582
76583         * modules/announce-gen: New file.
76584
76585 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76588         handles its gotchas now.
76589         * lib/mbswidth.c: Likewise.
76590         * lib/wcwidth.h: Likewise.
76591         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76592         and iswcntrl; the wctype module does this stuff now.
76593         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76595         * modules/mbchar (Depends-on): Add wctype.
76596         * modules/mbswidth (Depends-on): Likewise.
76597         * modules/wcwidth (Depends-on): Likewise.
76598
76599 2006-12-27  Eric Blake  <ebb9@byu.net>
76600
76601         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76602         module uses more than what <wctype.h> is required to provide.
76603
76604 2006-12-26  Eric Blake  <ebb9@byu.net>
76605
76606         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76607
76608 2006-12-26  Eric Blake  <ebb9@byu.net>
76609
76610         * modules/absolute-header: New module.
76611         * modules/fcntl (Depends-on): Depend on it.
76612         * modules/inttypes (Depends-on): Likewise.
76613         * modules/stdint (Depends-on): Likewise.
76614         * modules/sys_stat (Depends-on): Likewise.
76615         * modules/wctype (Depends-on): Likewise.
76616         * MODULES.html.sh (Support for building libraries and
76617         executables): Document it.
76618
76619 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * gnulib-tool (SED): Remove, undoing previous change.
76622         The problem was that it broke coreutils on Solaris, because
76623         "sed --posix" leaked into a makefile.
76624         (sed): New alias, if 'alias' and GNU sed.
76625
76626 2006-12-24  Jim Meyering  <jim@meyering.net>
76627
76628         Work around an fchownat bug in glibc-2.4:
76629         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76630         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76631         in spite of the -P option.
76632         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76633         New macros.
76634         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76635         * modules/openat (Files): Add lib/fchownat.c.
76636         * lib/openat.c (fchownat): Don't define here.  Move to...
76637         * lib/fchownat.c: ...this new file.
76638
76639 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         Fix bug reported by Bruno Haible in
76642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76643         where quotearg.c didn't compile on Mac OS X 10.2 because it
76644         lacks <wchar.h> and wint_t.
76645         * lib/wctype_.h (__wctype_wint_t): New type.
76646         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76647         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76648         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76649         Arg is now of type __wctype_wint_t, not wint_t.
76650         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76651         substitute HAVE_WINT_T.
76652         * modules/wctype (Files): Add m4/wint_t.m4.
76653         (wctype.h): Substitute HAVE_WINT_T.
76654
76655 2006-12-23  Bruno Haible  <bruno@clisp.org>
76656
76657         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76658
76659 2006-12-23  Bruno Haible  <bruno@clisp.org>
76660
76661         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76662         S_ISLNK.
76663         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76664         mingw.
76665
76666 2006-12-22  Bruno Haible  <bruno@clisp.org>
76667
76668         * lib/copy-file.c: Include acl.h.
76669         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76670         Close the file descriptors only after being done with copy_acl.
76671         * modules/copy-file (Depends-on): Add acl.
76672
76673 2006-12-22  Bruno Haible  <bruno@clisp.org>
76674
76675         * gnulib-tool (SED): New variable.
76676         Use $SED instead of sed everywhere.
76677
76678 2006-12-22  Bruno Haible  <bruno@clisp.org>
76679
76680         * modules/no-c++: New file.
76681         * m4/no-c++.m4: New file.
76682         * MODULES.html.sh (Support for building libraries and executables):
76683         Add no-c++.
76684
76685 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76688         Include <limits.h>, and use its INT_MAX to rewrite the
76689         j loop so that it does not overflow 'int'.  Problem reported by
76690         Ralf Wildenhues in
76691         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76692         Play it safe by shifting left by 1 rather than multiplying by 2,
76693         as GCC is less likely to optimize this away when the value
76694         is signed (when it assumes overflow leads to undefined behavior).
76695         Also, don't assume time_t uses two's complement.
76696
76697 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * MODULES.html.sh: New module wctype.
76700         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76701         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76702         <wctype.h>, since the new wctype module should fix this.
76703         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76704         the wctype module should arrange for it.
76705         * lib/regex_internal.h: Likewise.
76706         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76707         since the wctype module should handle this now.
76708         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76709         * modules/fnmatch (Depends-on): Add wctype.
76710         * modules/quotearg (Depends-on): Likewise.
76711         * modules/regex (Depends-on): Likewise.
76712
76713 2006-12-19  Bruno Haible  <bruno@clisp.org>
76714
76715         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76716         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76717
76718 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76719
76720         * modules/savewd (Depends-on): Fix dependency on fcntl.
76721
76722 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76725         conforms to C99, rather than relying on the user's environment
76726         setting of STDINT_H.
76727
76728 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76729         and Eric Blake  <ebb9@byu.net>
76730
76731         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76732         This is more consistent with the other defines here.
76733         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76734         Port to z/OS.  Problem reported by Paul Gilmartin.
76735         Change local vars to use gl_ prefix rather than ac_.
76736         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76737         with other defines.
76738         * modules/double-slash-root: New module.
76739         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76740         (Depends-on): Add double-slash-root.
76741         * MODULES.html.sh (File system functions): Mention new module.
76742
76743 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76746         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76747         This is for the benefit of gzip, which doesn't do i18n.
76748
76749 2006-12-12  Jim Meyering  <jim@meyering.net>
76750
76751         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76752         Reported by Andreas Schwab <schwab@suse.de>.
76753
76754 2006-12-12  Bruno Haible  <bruno@clisp.org>
76755
76756         Merge these changes.
76757         2006-09-05  Bruno Haible  <bruno@clisp.org>
76758         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76759         iconv_alloc succeeded.
76760         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76761         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76762         test for " && dest " at the end - dest is always != NULL there. Call
76763         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76764         with 2xNULL arguments, also to flush the state storage. Handle the
76765         IRIX iconv behaviour. Realloc the final result, to throw away unused
76766         memory.
76767
76768 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76769
76770         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76771         and fchmodat unconditionally, since glibc 2.4 has them.
76772         Problem reported by Arkadiusz Miskiewicz.
76773
76774 2006-12-10  Bruno Haible  <bruno@clisp.org>
76775
76776         * gnulib-tool (func_import): Show the include files only for those
76777         modules that are copied and specified.
76778         Reported by Karl Berry.
76779
76780 2006-12-08  Jim Meyering  <jim@meyering.net>
76781
76782         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76783         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76784
76785         * build-aux/announce-gen: Add two new options, both optional:
76786         --bootstrap-tools=TOOL_LIST
76787               a comma-separated list of tools, e.g.,
76788               autoconf,automake,bison,gnulib
76789         --gnulib-snapshot-date=DATE
76790               if gnulib is in the bootstrap tool list,
76791               then report this as the snapshot date.
76792               If not specified, use the current date/time.
76793               If you specify a date here, be sure it's UTC.
76794
76795 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76796
76797         * tests/test-argp-2.sh: Fix test to match actual output.
76798         (func_compare): Fix sed script to be portable.
76799
76800 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76803         workaround for this case.  It is not autoconfigured now; offhand
76804         it's hard to see how to autoconfigure it.
76805
76806 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76809         a directory that is about to be chowned.  Such a directory's
76810         initial file permissions should permit the owner only and this
76811         should not be changed until after the chown, since the group and
76812         other bits would be incorrect if they granted permission before
76813         the chown.
76814
76815         Fix porting problem for iswctype reported by Georg Schwarz in:
76816         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76817         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76818         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76819         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76820         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76821
76822 2006-12-03  Jim Meyering  <jim@meyering.net>
76823
76824         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76825         p->fts_statp may not yet be defined.
76826         (fts_read): Instead, set it in the caller, once p->fts_statp is
76827         sure to be defined, and corresponds to a top-level directory.
76828         This bug made du -x fail.  Here's the coreutils test case:
76829         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76830         Reported by Mike Frysinger.
76831
76832 2006-12-01  Jim Meyering  <jim@meyering.net>
76833
76834         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76835         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76836         Reported by Simon Josefsson.
76837
76838 2006-11-30  Jim Meyering  <jim@meyering.net>
76839
76840         * m4/warning.m4: Use the all-permissive copyright notice
76841         recommended by RMS (rather than LGPL).
76842         * m4/vararrays.m4: Likewise.
76843         * m4/flexmember.m4: Likewise.
76844
76845 2006-11-29  Bruno Haible  <bruno@clisp.org>
76846
76847         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76848         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76849         using +=.
76850         Reported by Simon Josefsson <simon@josefsson.org>.
76851
76852 2006-11-28  James Youngman <jay@gnu.org>
76853
76854         * README: Advise users that they might find the bug-gnulib@gnu.org
76855         and autotools-announce@gnu.org mailing lists useful.
76856
76857 2006-11-28  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/ptrdiff_max.m4: Remove file.
76860
76861 2006-11-21  Bruno Haible  <bruno@clisp.org>
76862
76863         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76864         _AC_COMPUTE_INT.
76865         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76866         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76867         _AC_COMPUTE_INT.
76868         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76869         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76870         _AC_COMPUTE_INT.
76871         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76872
76873 2006-11-28  Jim Meyering  <jim@meyering.net>
76874
76875         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76876         warning from "gcc -Wshadow" about shadowing the builtin.
76877
76878 2006-11-27  Bruno Haible  <bruno@clisp.org>
76879
76880         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76881         _AC_COMPUTE_INT.
76882         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76883
76884 2006-11-27  Bruno Haible  <bruno@clisp.org>
76885             Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76888
76889 2006-11-26  Bruno Haible  <bruno@clisp.org>
76890
76891         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76892         noinst_LTLIBRARIES.
76893
76894 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76895             Bruno Haible  <bruno@clisp.org>
76896
76897         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76898         if compiling with "gcc -ansi".
76899
76900 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76901
76902         Fix some incompatibilities with gcc -ansi -pedantic.
76903         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76904         if compiling pedantically with GCC, unless it's C99 or later.
76905         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76906         it mishandles gcc -ansi -pedantic as well.
76907         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76908         if gcc -pedantic.
76909         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76910         initializers for struct if -pedantic, unless it's C99 or later.
76911
76912 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76913
76914         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76915         Don't close an fd more than once. Identical atimes indicate
76916         success, not failure.
76917
76918 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76919
76920         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76921
76922 2006-11-23  Jim Meyering  <jim@meyering.net>
76923
76924         * build-aux/announce-gen: New file.  From coreutils.
76925
76926 2006-11-22  Jim Meyering  <jim@meyering.net>
76927
76928         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76929         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76930         (fts_read): Use a temporary to narrow the overused st_size member
76931         before using it in a switch statement.  Reported by Matthew Woehlke.
76932
76933         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76934         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76935
76936 2006-11-20  Bruno Haible  <bruno@clisp.org>
76937
76938         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76939         changequote instead of pairs of brackets.
76940         Reported by Andreas Schwab <schwab@suse.de>.
76941
76942 2006-11-21  Jim Meyering  <jim@meyering.net>
76943
76944         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76945         so as to remain compatible with older compilers.
76946         Patch from Michael Deutschmann.
76947
76948 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * MODULES.html.sh (File system functions): Add openat.
76951
76952         * lib/openat.h (rpl_fstatat): New macro, if
76953         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76954         (fstatat): Define to rpl_fstatat under the same conditions,
76955         unless COMPILING_FSTATAT.
76956         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76957         seems to have the bug.
76958         * lib/fstatat.c: New file.
76959         * modules/openat (Files): Add it.
76960
76961 2006-11-20  Bruno Haible  <bruno@clisp.org>
76962
76963         * Makefile: New file.
76964
76965 2006-11-20  Jim Meyering  <jim@meyering.net>
76966
76967         The beginnings of syntax-related checks for gnulib.
76968         * lib/Makefile: New file.
76969         * lib/t-idcache: New script.  Ensure that the two halves of
76970         idcache.c stay in sync.
76971
76972         * lib/idcache.c: Adjust comments in user- and group- portions to
76973         be more accurate, and to be consistent with one another.
76974
76975 2006-11-20  Jim Meyering  <jim@meyering.net>
76976
76977         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76978         continue using the flexible array member (thus, this module performs
76979         half as many malloc calls), with the addition that...
76980         (getgroup, getuser): Consistently record a non-match via an empty
76981         "name" string, and map an empty string match to a NULL return value.
76982         * modules/idcache (Depends-on): Re-add flexmember.
76983
76984         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76985         (getuidbyname, getgroup, getgidbyname): Likewise.
76986
76987         Use cleaner syntax: NULL rather than 0.
76988         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76989
76990 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76991
76992         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76993         It mishandled the case where the group was missing.
76994         Problem reported by Greg Schafer.
76995         * modules/idcache: Likewise.
76996
76997 2006-11-18  Jim Meyering  <jim@meyering.net>
76998
76999         * check-module (%exempt_header): Add exception for some
77000         conditionally-included headers.
77001
77002         * modules/i-ring (Depends-on): Add verify.
77003         (License): Change to LGPL.
77004
77005 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77008         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77009         and inttostr.h.  Use snprintf rather than uinttostr, so that
77010         LGPLed code doesn't depend on GPLed.
77011
77012 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77013
77014         * modules/inline (License): Change from GPL to LGPL.
77015
77016 2006-11-17  Jim Meyering  <jim@meyering.net>
77017
77018         * modules/d-type (License): Switch to LGPL.
77019
77020 2006-11-15  Bruno Haible  <bruno@clisp.org>
77021
77022         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77023
77024 2006-11-15  Eric Blake  <ebb9@byu.net>
77025
77026         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77027         the module dependency.
77028
77029 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77030             Bruno Haible  <bruno@clisp.org>
77031
77032         * gnulib-tool (func_create_testdir): Add license consistency check.
77033
77034 2006-11-15  Eric Blake  <ebb9@byu.net>
77035
77036         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77037         random "(cached)" in configure output.
77038
77039 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77040
77041         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77042         test for conforming inttypes.h is both announced and cached.
77043
77044         * MODULES.html.sh (seen_modules, seen_files): New variables.
77045         (func_module): Rewrite to use a few less gnulib-tool and sed
77046         invocations.  Avoid a couple of quadratic algorithms for ...
77047         (missed_modules, missed_files): ... these, with ...
77048         (func_append, func_tmpdir): ... these new functions, from
77049         gnulib-tool.  Analogously, install traps for cleanup.
77050
77051         * tests/test-gc.c (main): Remove unused variables.
77052         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77053
77054 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * modules/inttostr (License): Change to LGPL.
77057
77058 2006-11-14  Eric Blake  <ebb9@byu.net>
77059
77060         * modules/tempname (License): Change to LGPL.
77061
77062 2006-11-14  Eric Blake  <ebb9@byu.net>
77063
77064         * doc/functions.texi (Function Portability): *printf functions on
77065         Cygwin now understand all POSIX size specifiers.
77066
77067 2006-11-14  Bruno Haible  <bruno@clisp.org>
77068
77069         * modules/c-ctype (License): Change to LGPL.
77070
77071 2006-11-12  Bruno Haible  <bruno@clisp.org>
77072
77073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77074         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77075         for GNOME libraries, for which the include files are installed in
77076         subdirectories of $prefix/include.
77077
77078 2006-11-12  Bruno Haible  <bruno@clisp.org>
77079
77080         * m4/lib-link.m4: Require at least autoconf-2.54.
77081         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77082         name to underscores for the --with option.
77083
77084 2006-11-13  Bruno Haible  <bruno@clisp.org>
77085
77086         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77087         the tests directory.
77088         Reported by Ralf Wildenhues.
77089
77090 2006-11-13  Bruno Haible  <bruno@clisp.org>
77091
77092         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77093         (func_emit_initmacro_end): Undo the override here.
77094         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77095         Works around the famous automake error in coreutils.
77096
77097 2006-11-13  Eric Blake  <ebb9@byu.net>
77098
77099         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77100         element, not its node.
77101
77102 2006-11-12  Bruno Haible  <bruno@clisp.org>
77103
77104         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77105         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77106
77107 2006-11-12  Bruno Haible  <bruno@clisp.org>
77108
77109         * gnulib-tool: New option --local-symlink.
77110         (func_usage): Document it.
77111         (lsymbolic): New variable.
77112         (func_import, func_create_testdir): If --symlink was not specified,
77113         test whether --local-symlink was specified and the file comes from
77114         the local_gnulib_dir.
77115
77116 2006-11-12  Bruno Haible  <bruno@clisp.org>
77117
77118         * gnulib-tool (func_ln): New function.
77119         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77120
77121 2006-11-12  Bruno Haible  <bruno@clisp.org>
77122
77123         Finish support for source files in subdirectories.
77124         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77125         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77126         AUTOMAKE_OPTIONS.
77127         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77128
77129 2006-11-12  Bruno Haible  <bruno@clisp.org>
77130
77131         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77132         EXTRA_lib_SOURCES augmentation.
77133         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77134
77135 2006-11-12  Jim Meyering  <jim@meyering.net>
77136
77137         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77138         file descriptors.  This also averts a failure on systems with
77139         native openat support when a traversed directory lacks "x" access.
77140         * lib/fts_.h: Include "i-ring.h"
77141         (struct FTS) [fts_fd_ring]: New member.
77142         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77143         (FCHDIR): Add parentheses.
77144         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77145         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77146         When descending, rather than simply closing the previous
77147         fts_cwd_fd value, push that file descriptor onto the ring.
77148         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77149         (fts_open): Initialize the new fd_ring member.
77150         (fts_close): Clear the ring.
77151         (fts_safe_changedir): When possible, use our new fd_ring to skip
77152         the diropen and fstat and dev/ino comparison that would normally
77153         accompany a virtual `chdir ("..")'.
77154
77155         * modules/fts (Depends-on): Add i-ring.
77156         * modules/i-ring: New module.
77157         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77158         * m4/i-ring.m4: New file.
77159
77160 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77161
77162         * gnulib-tool (func_create_testdir): Fix replacement of
77163         `build-aux' in configure.ac.  Run autotools in gltests
77164         subdirectory.
77165         (func_create_testdir, func_create_megatestdir, test): There is
77166         no need for '--force' in most autotool invocations in a new
77167         tree.  Actually fail the whole test if any of the tools, or the
77168         configure or make stages fail.
77169
77170         Sync from Automake.
77171         * build-aux/gnupload: Revert last change.  Add pointer to upload
77172         instructions of the GNU Maintenance Instructions.
77173         Suggestion by Karl Berry.
77174
77175 2006-11-10  Jim Meyering  <jim@meyering.net>
77176
77177         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77178
77179 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77180
77181         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77182         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77183         (bind_textdomain_codeset) [! ENABLE_NLS]:
77184         Evaluate all the arguments.  That way, callers get compatible behavior
77185         if the arguments have side effects.  Also, it avoids some GCC
77186         diagnostics in some cases; Joel E. Denny reported problems when Bison
77187         was configured with --enable-gcc-warnigs.
77188
77189 2006-11-10  Jim Meyering  <jim@meyering.net>
77190
77191         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77192         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77193         account.
77194
77195 2006-11-10  Jim Meyering  <jim@meyering.net>
77196
77197         * modules/inline: New file/module.
77198         * modules/xalloc (Files): Remove m4/inline.m4.
77199         (Depends-on): Add inline, instead.
77200         * modules/oset: Likewise.
77201         * modules/list: Likewise.
77202
77203 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77206         Problem reported by Matthew Woehlke.
77207
77208 2006-11-09  Bruno Haible  <bruno@clisp.org>
77209
77210         * lib/tempname.c (gen_tempname): Remove variant that invokes
77211         __gen_tempname.
77212         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77213         __gen_tempname.
77214
77215 2006-11-08  Bruno Haible  <bruno@clisp.org>
77216
77217         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77218         to 'yes' instead of 'cross-compiling'.
77219
77220 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77221
77222         * lib/quotearg.h (quotearg_free): New decl.
77223         * lib/quotearg.c (quotearg_free): New function.
77224         (slot0, nslots, slotvec0, slotvec):
77225         Now file-scope so that quotearg_free can get at them.
77226
77227 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77228
77229         Sync from Automake.
77230         * build-aux/gnupload: Add missing 'gnu' to example URL.
77231         Report by Karl Berry.
77232
77233 2006-11-08  Bruno Haible  <bruno@clisp.org>
77234
77235         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77236         Suggested by Paul Eggert.
77237
77238 2006-11-08  Jim Meyering  <jim@meyering.net>
77239
77240         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77241         It's already included if !_LIBC.
77242         (fts_safe_changedir): Add a comment.
77243
77244 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77245
77246         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77247         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77248         Matthew Woehlke.
77249
77250         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77251         definitions up, to avoid colliding with change below.
77252         (static_inline) [HAVE_INLINE]: New macro.
77253         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77254         Provide extern decls when !HAVE_INLINE.  Do not define unless
77255         static_inline is defined, either by us or by xmalloc.c.  Use
77256         static_inline rather than static inline.
77257         (XCALLOC): Optimize sizeof(T) = 1 case.
77258         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77259
77260 2006-11-07  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77263         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77264         AC_C_INLINE.
77265         * modules/xalloc (Files): Add m4/inline.m4.
77266
77267 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77268
77269         * README: Fix typo.
77270         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77271         (Miscellanous Notes): ...from this.
77272
77273 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77274
77275         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77276         Mention that offsetof should be used instead of sizeof.
77277         From Bruno Haible.
77278
77279 2006-11-07  Bruno Haible  <bruno@clisp.org>
77280
77281         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77282
77283 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77284
77285         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77286         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77287         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77288         (gl_tree_add_before, gl_tree_add_after):
77289         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77290         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77291         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77292         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77293         (gl_linked_add_after, gl_linked_add_at): Likewise.
77294         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77295         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77296         (gl_tree_add_before, gl_tree_add_after): Likewise.
77297         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77298         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77299         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77300
77301 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77302
77303         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77304
77305 2006-11-06  Bruno Haible  <bruno@clisp.org>
77306
77307         * m4/inline.m4: New file.
77308         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77309         * modules/list (Files): Add m4/inline.m4.
77310         * modules/oset (Files): Likewise.
77311
77312 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * lib/idcache.c: Include <stddef.h>, for offsetof.
77315         (struct userid.name): Change from char * to a flexible array member.
77316         All uses changed.
77317         * modules/idcache (Depends-on): Add flexmember.
77318
77319         * MODULES.html.sh (Core language properties): New module flexmember.
77320         * modules/flexmember, m4/flexmember.m4: New files.
77321
77322         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77323         inline functions that are identical with the old xnmalloc_inline,
77324         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77325         that we can avoid some unnecessary integer multiplications and
77326         divisions in the common case where the element size is known at
77327         compile time.
77328         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77329         needed.
77330         (xnboundedmalloc): Remove.
77331         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77332         arguments, for consistency with rest of this header.
77333         (xcharalloc): Rewrite using XNMALLOC.
77334         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77335         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77336         versions have been moved to lib/xalloc.h and renamed to be the
77337         non-*_inline versions.
77338         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77339         and xnrealloc functions, since those functions are now inline and
77340         now call us.
77341         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77342         renaming described above.
77343         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77344         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77345         captures the dependency in AC_C_INLINE.
77346
77347         New module canonicalize-lgpl, proposed by Charles Wilson in
77348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77349         with a few small changes afterwards.
77350         * MODULES.html.sh (File system functions): New module
77351         canonicalize-lgpl.
77352         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77353         and canonicalize_file_name.
77354         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77355         * modules/canonicalize-lgpl: New files.
77356
77357 2006-11-05  Bruno Haible  <bruno@clisp.org>
77358
77359         * gnulib-tool (func_import, func_create_testdir): Create directories
77360         also for files in subdirectories of lib/.
77361
77362 2006-11-05  Bruno Haible  <bruno@clisp.org>
77363
77364         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77365         ANSI C compliant.
77366
77367 2006-11-03  Bruno Haible  <bruno@clisp.org>
77368
77369         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77370         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77371         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77372         (xnboundedmalloc): New inline function.
77373         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77374         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77375         xmalloc.
77376         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77377         xmalloc.
77378         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77379         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77380         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77381         xmalloc.
77382         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77383         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77384         xmalloc.
77385         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77386         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77387         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77388         xmalloc.
77389         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77390         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77391         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77392         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77393         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77394         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77395         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77396
77397 2006-11-03  Bruno Haible  <bruno@clisp.org>
77398
77399         * lib/c-ctype.h [C++]: Define functions without name mangling.
77400         * lib/fwriteerror.h [C++]: Likewise.
77401         * lib/gcd.h [C++]: Likewise.
77402         * lib/linebreak.h [C++]: Likewise.
77403
77404 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77407         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77408         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77409         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77410         Check for functions and headers just once.
77411         Check for declaration of canonicalize_file_name.
77412         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77413
77414 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77415
77416         * gnulib-tool (func_import): Fix typo in actioncmd.
77417
77418 2006-11-02  Bruno Haible  <bruno@clisp.org>
77419
77420         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77421         newline sequence in the Makefile.am snippet as a space, like "make"
77422         does.
77423         Reported by Roger Persson <perrog@gmail.com>.
77424
77425 2006-11-01  Bruno Haible  <bruno@clisp.org>
77426
77427         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77428         already declared in <string.h>.
77429         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77430
77431 2006-11-01  Bruno Haible  <bruno@clisp.org>
77432
77433         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77434         * lib/strcase.h: Include <string.h>.
77435         (strcasecmp): Define to rpl_strcasecmp here.
77436
77437 2006-11-01  Bruno Haible  <bruno@clisp.org>
77438
77439         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77440
77441 2006-11-01  Eric Blake  <ebb9@byu.net>
77442
77443         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77444
77445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77446
77447 2006-10-29  Bruno Haible  <bruno@clisp.org>
77448
77449         Make it compile in C++ mode.
77450         * lib/full-write.c (full_rw): Add a cast.
77451
77452 2006-11-01  Bruno Haible  <bruno@clisp.org>
77453
77454         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77455         be POSIX compliant.
77456         Reported by Roger Persson <perrog@gmail.com>.
77457
77458 2006-11-01  Eric Blake  <ebb9@byu.net>
77459
77460         * lib/getopt_.h: Fix comments.
77461
77462 2006-10-31  Eric Blake  <ebb9@byu.net>
77463
77464         * modules/tmpdir (Depends-on): Add sys_stat.
77465         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77466         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77467         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77468         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77469         tempname.
77470
77471 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77472
77473         Avoid some C++ diagnostics reported by Bruno Haible.
77474         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77475         xmalloc.
77476         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77477         (struct slotvec): Move to top level.
77478         (quotearg_n_options): Rewrite to avoid xmalloc.
77479         * lib/xalloc.h (xcharalloc): New function.
77480         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77481         [defined __cplusplus]: Add function template that provides result
77482         type propagation.  This part of the change is from Bruno Haible.
77483
77484 2006-10-29  Bruno Haible  <bruno@clisp.org>
77485
77486         Make it compile in C++ mode.
77487         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77488         * lib/strnlen1.c (strnlen1): Cast memchr result.
77489         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77490         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77491         (create_temp_dir): Rename local variable 'template'.
77492         (compile_csharp_using_sscli): Add cast.
77493         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77494         * lib/findprog.c (find_in_path): Likewise.
77495         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77496         * lib/wait-process.c (register_slave_subprocess): Likewise.
77497
77498 2006-10-22  Bruno Haible  <bruno@clisp.org>
77499
77500         * modules/tsearch: New file.
77501         * lib/tsearch.h: New file.
77502         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77503         * m4/tsearch.m4: New file.
77504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77505
77506 2006-10-29  Eric Blake  <ebb9@byu.net>
77507
77508         * lib/arcfour.c: Assume config.h.
77509         * lib/arctwo.c: Likewise.
77510         * lib/base64.c: Likewise.
77511         * lib/check-version.c: Likewise.
77512         * lib/crc.c: Likewise.
77513         * lib/des.c: Likewise.
77514         * lib/gc-gnulib.c: Likewise.
77515         * lib/gc-libgcrypt.c: Likewise.
77516         * lib/gc-pbkdf2-sha1.c: Likewise.
77517         * lib/getaddrinfo.c: Likewise.
77518         * lib/getdelim.c: Likewise.
77519         * lib/getline.c: Likewise.
77520         * lib/hmac-md5.c: Likewise.
77521         * lib/hmac-sha1.c: Likewise.
77522         * lib/iconvme.c: Likewise.
77523         * lib/md2.c: Likewise.
77524         * lib/md4.c: Likewise.
77525         * lib/memxor.c: Likewise.
77526         * lib/read-file.c: Likewise.
77527         * lib/readline.c: Likewise.
77528         * lib/rijndael-alg-fst.c: Likewise.
77529         * lib/rijndael-api-fst.c: Likewise.
77530         * lib/xgetdomainname.c: Likewise.
77531
77532 2006-10-28  Eric Blake  <ebb9@byu.net>
77533
77534         * lib/xstrndup.c: Assume config.h.
77535
77536 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77537
77538         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77539         stat-macros.h is now for our own macros, whereas stat_h is for
77540         macros in the <sys/stat.h> name space.
77541         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77542         (STAT_MACROS_H): Remove.
77543         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77544         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77545         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77546         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77547         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77548         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77549         Move these macros to ...
77550         * lib/stat_.h: here.  Don't include stat-macros.h.
77551         * lib/canonicalize.c: Don't include stat-macros.h.
77552         * lib/chown.c: Likewise.
77553         * lib/euidaccess.c: Likewise.
77554         * lib/file-type.c: Likewise.
77555         * lib/filemode.c: Likewise.
77556         * lib/glob.c: Likewise.
77557         * lib/isapipe.c: Likewise.
77558         * lib/lchown.c: Likewise.
77559         * lib/lstat.c: Likewise.
77560         * lib/mkdir-p.c: Likewise.
77561         * lib/rmdir.c: Likewise.
77562         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77564         unless mkdir isn't declared, to speed up 'configure'.
77565         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77566         would define all the S_* symbols.
77567         * modules/canonicalize (Depends-on):
77568         Depend on sys_stat, not stat-macros.
77569         * modules/chown: Likewise.
77570         * modules/euidaccess: Likewise.
77571         * modules/filemode: Likewise.
77572         * modules/file-type: Likewise.
77573         * modules/glob: Likewise.
77574         * modules/isapipe: Likewise.
77575         * modules/lchown: Likewise.
77576         * modules/lstat: Likewise.
77577         * modules/mkancesdirs: Likewise.
77578         * modules/rmdir: Likewise.
77579         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77580         * modules/modechange: Likewise.
77581         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77582         (configure.ac): Remove gl_STAT_MACROS.
77583         * modules/sys_stat (Depends-on): Remove stat-macros.
77584
77585 2006-10-27  Bruno Haible  <bruno@clisp.org>
77586
77587         * m4/signed.m4: Remove file.
77588         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77589         invocation.
77590         * modules/vasnprintf (Files): Remove m4/signed.m4.
77591
77592 2006-10-27  Bruno Haible  <bruno@clisp.org>
77593
77594         Update to GNU gettext 0.16.
77595         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77596         m4/inttypes-h.m4, m4/signed.m4.
77597         * m4/gettext.m4: Update to GNU gettext 0.16.
77598         * m4/intl.m4: New file, from GNU gettext.
77599         * m4/intldir.m4: New file, from GNU gettext.
77600         * config/srclist.txt: Update
77601
77602 2006-10-27  Eric Blake  <ebb9@byu.net>
77603
77604         * MODULES.html.sh: Document tempname.
77605         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77606         dependencies.
77607         (Files): Move lib/tempname.c...
77608         * modules/tempname: ...to this new module.
77609         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77610         (gl_PREREQ_TEMPNAME): Move...
77611         * m4/tempname.m4: ...to this new file.
77612         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77613         * modules/sys_stat (Depends-on): Add stat-macros.
77614         * lib/stat_.h (includes): Pick up stat macros.
77615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77616         if stat macros are broken.
77617         * lib/tempname.c (includes): No need to include "stat-macros.h".
77618         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77619         (direxists, __path_search) [!_LIBC]: Don't compile these in
77620         gnulib; the tmpdir module covers that.
77621         * lib/tempname.h: New file.
77622
77623 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * COPYING: Explain how gnulib-tool converts licence headers.
77626         Almost all wording by Eric Blake.
77627
77628 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * lib/mbchar.h (is_basic_table): Make read-only.
77631         * lib/mbchar.c (is_basic_table): Likewise.
77632         Reported by John Darrington.
77633
77634 2006-10-25  Bruno Haible  <bruno@clisp.org>
77635
77636         * lib/progname.h (set_program_name): Undefine before defining.
77637
77638 2006-10-25  Bruno Haible  <bruno@clisp.org>
77639
77640         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77641         false for non-gcc C++ compilers.
77642         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77643
77644 2006-10-24  Bruno Haible  <bruno@clisp.org>
77645
77646         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77647         iconv implementations like Irix iconv.
77648
77649 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77650
77651         * modules/vararrays: New file.
77652         * m4/vararrays.m4: New file, taken from diffutils.
77653         * MODULES.html.sh: New module vararrays.
77654
77655 2006-10-24  Karl Berry  <karl@gnu.org>
77656
77657         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77658         Don't call GNU Unix.
77659
77660 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77661
77662         * users.txt: Add Libtool.
77663
77664         Sync from Libtool:
77665
77666         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77669         to gnulib's policy of including config.h unconditionally.
77670
77671 2006-10-24  Bruno Haible  <bruno@clisp.org>
77672
77673         * modules/wcwidth (Files): Add m4/wint_t.m4.
77674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77675         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77676
77677 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77680         to pacify GCC with some -W flags enabled.  Problem reported by
77681         Bruno Haible.
77682
77683 2006-10-24  Jim Meyering  <jim@meyering.net>
77684
77685         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77686         Reported by Karl Berry.
77687
77688 2006-10-23  Bruno Haible  <bruno@clisp.org>
77689
77690         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77691
77692 2006-10-24  Bruno Haible  <bruno@clisp.org>
77693
77694         * lib/gl_list.h: Use C comment style, not C++ comment style.
77695
77696 2006-10-23  Eric Blake  <ebb9@byu.net>
77697
77698         * lib/getaddrinfo.c (includes): Add missing include.
77699
77700 2006-10-23  Bruno Haible  <bruno@clisp.org>
77701             Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         Ability to rename obstack_free.
77704         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77705         obstack_free.
77706         (obstack_free): Invoke the __obstack_free macro.
77707         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77708
77709 2006-10-23  Bruno Haible  <bruno@clisp.org>
77710             Paul Eggert  <eggert@cs.ucla.edu>
77711
77712         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77713         __argc, __argv from the declaration. (They are defined as macros on
77714         mingw.)
77715
77716 2006-10-22  Bruno Haible  <bruno@clisp.org>
77717
77718         * doc/gnulib-intro.texi: New file.
77719         * doc/gnulib.texi: Include it.
77720
77721 2006-10-21  Bruno Haible  <bruno@clisp.org>
77722
77723         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77724         "Introduction", "Miscellanous Notes", "Particular Modules".
77725
77726 2006-10-21  Bruno Haible  <bruno@clisp.org>
77727
77728         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77729         Change mostlyclean-local rule to avoid sh syntax error from bash
77730         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77731
77732 2006-10-23  Jim Meyering  <jim@meyering.net>
77733
77734         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77735         in place of snprintf.
77736
77737         * modules/inttostr (Files): Add lib/uinttostr.c.
77738         * lib/uinttostr.c (inttostr): New file/function.
77739         * lib/inttostr.h (uinttostr): Declare.
77740         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77741         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77742         Add uinttostr.
77743         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77744
77745 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * lib/canonicalize.c (ELOOP): Define if not already defined.
77748         Problem reported by Bruno Haible in
77749         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77750
77751 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77754         Problem reported by Perry Smith and Ville Laurikari.
77755
77756         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77757         uses.
77758
77759 2006-10-19  Bruno Haible  <bruno@clisp.org>
77760
77761         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77762         for mingw.
77763
77764 2006-10-19  Bruno Haible  <bruno@clisp.org>
77765
77766         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77767         Needed for mingw.
77768
77769 2006-10-19  Bruno Haible  <bruno@clisp.org>
77770
77771         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77772
77773 2006-10-19  Bruno Haible  <bruno@clisp.org>
77774
77775         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77776         it.
77777
77778 2006-10-19  Bruno Haible  <bruno@clisp.org>
77779
77780         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77781         invocation.
77782
77783 2006-10-19  Bruno Haible  <bruno@clisp.org>
77784
77785         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77786         mountlist by default.
77787
77788 2006-10-16  Bruno Haible  <bruno@clisp.org>
77789
77790         * lib/c-strstr.c: Include c-strstr.h.
77791
77792 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77793
77794         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77795         in a slash.
77796
77797 2006-10-18  Bruno Haible  <bruno@clisp.org>
77798
77799         * lib/lock.h [C++]: Wrap definitions in extern "C".
77800
77801 2006-10-18  Bruno Haible  <bruno@clisp.org>
77802
77803         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77804         gl_LIBOBJS list.
77805
77806 2006-10-18  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77809
77810 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * lib/xstrtol.h: Include gettext.h.
77813         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77814         Problem reported by Eric Blake.
77815         * modules/xstrtol (Depends-on): Add gettext-h.
77816
77817 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77818
77819         * lib/strftime.c (advance): New macro.
77820         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77821         incomplete type, so you can't add 0 to it.  Problem and patch
77822         reported by Eelco Dolstra for dietlibc.
77823
77824 2006-10-18  Jim Meyering  <jim@meyering.net>
77825
77826         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77827         type for a local, and rename it: s/up/user_proc/.
77828
77829 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77830
77831         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77832         READ_UTMP_USER_PROCESS.
77833         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77834
77835 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77838         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77839
77840 2006-10-17  Eric Blake  <ebb9@byu.net>
77841
77842         * lib/sigprocmask.c (sigprocmask): Fix typo.
77843
77844         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77845
77846         * modules/clean-temp (Makefile.am): Don't add to make output...
77847         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77848         config.h.
77849
77850 2006-10-17  Bruno Haible  <bruno@clisp.org>
77851
77852         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77853         differently if DEFAULT_TEXT_DOMAIN is set.
77854
77855 2006-10-16  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/clean-temp.c: Include fwriteerror.h.
77858
77859 2006-10-16  Bruno Haible  <bruno@clisp.org>
77860
77861         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77862
77863 2006-10-16  Bruno Haible  <bruno@clisp.org>
77864
77865         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77866         * lib/sigprocmask.h: Include <sys/types.h>.
77867         (sigset_t): Use the system's definition if present.
77868
77869 2006-10-17  Eric Blake  <ebb9@byu.net>
77870
77871         * lib/xvasprintf.c (includes): Assume config.h.
77872         * lib/xasprintf.c (includes): Likewise.
77873
77874 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77877         at least as wide as intmax_t.
77878
77879 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77880
77881         (Imported from Automake.)
77882         * build-aux/gnupload: Update to version 1.1 of directive file.
77883
77884 2006-10-16  Eric Blake  <ebb9@byu.net>
77885
77886         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77887         match Automake 1.10a.
77888
77889 2006-10-14  Bruno Haible  <bruno@clisp.org>
77890
77891         * modules/sigprocmask: New file.
77892         * lib/sigprocmask.h: New file.
77893         * lib/sigprocmask.c: New file.
77894         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77895         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77896         request sigprocmask.o.
77897         (gl_PREREQ_SIGPROCMASK): New macro.
77898         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77899         (Depends-on): Add sigprocmask.
77900         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77901         gt_SIGNALBLOCKING. Test for 'raise' only once.
77902         * lib/fatal-signal.c: Include sigprocmask.h.
77903         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77904         unblock_fatal_signals): Define always.
77905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77906         sigprocmask.
77907
77908 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         Sync from Automake.
77911         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77912         which incorrectly sets the mode of an existing destination
77913         directory.  In some cases the unpatched install-sh could do the
77914         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77915         system.  We hope this is rare in practice, but it's clearly worth
77916         fixing.  Problem reported by Alex Unleashed in
77917         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77918         Also, don't bother to check for -m bugs unless we're using -m;
77919         suggested by Stepan Kasal.
77920
77921 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77922
77923         Sync from Automake.
77924         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77925         `-c' flag, so they appear at the same position as in %FASTDEP%
77926         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77927         which ignores unknown options only after the first non-option.
77928         Bug report against M4 by Nelson H. F. Beebe.
77929
77930 2006-10-13  Jim Meyering  <jim@meyering.net>
77931
77932         Fix a bug in yesterday's change.
77933         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77934         p->fts_statp->st_dev would be used uninitialized.
77935         Ensures that we always call fts_stat on the very first entry.
77936         Miklos Szeredi reported that find -xdev stopped working.
77937
77938 2006-10-12  Bruno Haible  <bruno@clisp.org>
77939
77940         * gnulib-tool (func_get_automake_snippet): Append an automatically
77941         computed EXTRA_DIST augmentation.
77942         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77943         * modules/alloca-opt (Makefile.am): Likewise.
77944         * modules/allocsa (Makefile.am): Likewise.
77945         * modules/arcfour (Makefile.am): Likewise.
77946         * modules/arctwo (Makefile.am): Likewise.
77947         * modules/argmatch (Makefile.am): Likewise.
77948         * modules/argz (Makefile.am): Likewise.
77949         * modules/atexit (Makefile.am): Likewise.
77950         * modules/backupfile (Makefile.am): Likewise.
77951         * modules/byteswap (Makefile.am): Likewise.
77952         * modules/c-strtod (Makefile.am): Likewise.
77953         * modules/c-strtold (Makefile.am): Likewise.
77954         * modules/calloc (Makefile.am): Likewise.
77955         * modules/canon-host (Makefile.am): Likewise.
77956         * modules/canonicalize (Makefile.am): Likewise.
77957         * modules/chdir-long (Makefile.am): Likewise.
77958         * modules/chdir-safer (Makefile.am): Likewise.
77959         * modules/check-version (Makefile.am): Likewise.
77960         * modules/chown (Makefile.am): Likewise.
77961         * modules/cloexec (Makefile.am): Likewise.
77962         * modules/close-stream (Makefile.am): Likewise.
77963         * modules/closeout (Makefile.am): Likewise.
77964         * modules/crc (Makefile.am): Likewise.
77965         * modules/csharpexec (Makefile.am): Likewise.
77966         * modules/cycle-check (Makefile.am): Likewise.
77967         * modules/des (Makefile.am): Likewise.
77968         * modules/dev-ino (Makefile.am): Likewise.
77969         * modules/dirfd (Makefile.am): Likewise.
77970         * modules/dirname (Makefile.am): Likewise.
77971         * modules/dup2 (Makefile.am): Likewise.
77972         * modules/eealloc (Makefile.am): Likewise.
77973         * modules/error (Makefile.am): Likewise.
77974         * modules/euidaccess (Makefile.am): Likewise.
77975         * modules/exclude (Makefile.am): Likewise.
77976         * modules/exitfail (Makefile.am): Likewise.
77977         * modules/fcntl-safer (Makefile.am): Likewise.
77978         * modules/fcntl (Makefile.am): Likewise.
77979         * modules/file-type (Makefile.am): Likewise.
77980         * modules/fileblocks (Makefile.am): Likewise.
77981         * modules/filemode (Makefile.am): Likewise.
77982         * modules/filenamecat (Makefile.am): Likewise.
77983         * modules/fnmatch (Makefile.am): Likewise.
77984         * modules/fopen-safer (Makefile.am): Likewise.
77985         * modules/fpending (Makefile.am): Likewise.
77986         * modules/fprintftime (Makefile.am): Likewise.
77987         * modules/free (Makefile.am): Likewise.
77988         * modules/fsusage (Makefile.am): Likewise.
77989         * modules/ftruncate (Makefile.am): Likewise.
77990         * modules/fts (Makefile.am): Likewise.
77991         * modules/gc-arcfour (Makefile.am): Likewise.
77992         * modules/gc-des (Makefile.am): Likewise.
77993         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77994         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77995         * modules/gc-md4 (Makefile.am): Likewise.
77996         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77997         * modules/gc-sha1 (Makefile.am): Likewise.
77998         * modules/gc (Makefile.am): Likewise.
77999         * modules/getaddrinfo (Makefile.am): Likewise.
78000         * modules/getcwd (Makefile.am): Likewise.
78001         * modules/getdelim (Makefile.am): Likewise.
78002         * modules/getdomainname (Makefile.am): Likewise.
78003         * modules/getgroups (Makefile.am): Likewise.
78004         * modules/gethostname (Makefile.am): Likewise.
78005         * modules/gethrxtime (Makefile.am): Likewise.
78006         * modules/getline (Makefile.am): Likewise.
78007         * modules/getloadavg (Makefile.am): Likewise.
78008         * modules/getlogin_r (Makefile.am): Likewise.
78009         * modules/getndelim2 (Makefile.am): Likewise.
78010         * modules/getopt (Makefile.am): Likewise.
78011         * modules/getpagesize (Makefile.am): Likewise.
78012         * modules/getpass-gnu (Makefile.am): Likewise.
78013         * modules/getpass (Makefile.am): Likewise.
78014         * modules/getsubopt (Makefile.am): Likewise.
78015         * modules/gettime (Makefile.am): Likewise.
78016         * modules/gettimeofday (Makefile.am): Likewise.
78017         * modules/getugroups (Makefile.am): Likewise.
78018         * modules/getusershell (Makefile.am): Likewise.
78019         * modules/glob (Makefile.am): Likewise.
78020         * modules/group-member (Makefile.am): Likewise.
78021         * modules/hard-locale (Makefile.am): Likewise.
78022         * modules/hash (Makefile.am): Likewise.
78023         * modules/hmac-md5 (Makefile.am): Likewise.
78024         * modules/hmac-sha1 (Makefile.am): Likewise.
78025         * modules/human (Makefile.am): Likewise.
78026         * modules/idcache (Makefile.am): Likewise.
78027         * modules/imaxabs (Makefile.am): Likewise.
78028         * modules/imaxdiv (Makefile.am): Likewise.
78029         * modules/inet_ntop (Makefile.am): Likewise.
78030         * modules/inet_pton (Makefile.am): Likewise.
78031         * modules/intprops (Makefile.am): Likewise.
78032         * modules/inttostr (Makefile.am): Likewise.
78033         * modules/inttypes (Makefile.am): Likewise.
78034         * modules/isapipe (Makefile.am): Likewise.
78035         * modules/javaversion (Makefile.am): Likewise.
78036         * modules/lchmod (Makefile.am): Likewise.
78037         * modules/lchown (Makefile.am): Likewise.
78038         * modules/localcharset (Makefile.am): Likewise.
78039         * modules/long-options (Makefile.am): Likewise.
78040         * modules/lstat (Makefile.am): Likewise.
78041         * modules/malloc (Makefile.am): Likewise.
78042         * modules/mathl (Makefile.am): Likewise.
78043         * modules/mbchar (Makefile.am): Likewise.
78044         * modules/md2 (Makefile.am): Likewise.
78045         * modules/md4 (Makefile.am): Likewise.
78046         * modules/md5 (Makefile.am): Likewise.
78047         * modules/memcasecmp (Makefile.am): Likewise.
78048         * modules/memchr (Makefile.am): Likewise.
78049         * modules/memcmp (Makefile.am): Likewise.
78050         * modules/memcoll (Makefile.am): Likewise.
78051         * modules/memcpy (Makefile.am): Likewise.
78052         * modules/memmem (Makefile.am): Likewise.
78053         * modules/memmove (Makefile.am): Likewise.
78054         * modules/mempcpy (Makefile.am): Likewise.
78055         * modules/memrchr (Makefile.am): Likewise.
78056         * modules/memset (Makefile.am): Likewise.
78057         * modules/memxor (Makefile.am): Likewise.
78058         * modules/mkancesdirs (Makefile.am): Likewise.
78059         * modules/mkdir-p (Makefile.am): Likewise.
78060         * modules/mkdir (Makefile.am): Likewise.
78061         * modules/mkdtemp (Makefile.am): Likewise.
78062         * modules/mkstemp (Makefile.am): Likewise.
78063         * modules/mktime (Makefile.am): Likewise.
78064         * modules/modechange (Makefile.am): Likewise.
78065         * modules/mountlist (Makefile.am): Likewise.
78066         * modules/nanosleep (Makefile.am): Likewise.
78067         * modules/obstack (Makefile.am): Likewise.
78068         * modules/openat (Makefile.am): Likewise.
78069         * modules/pagealign_alloc (Makefile.am): Likewise.
78070         * modules/pathmax (Makefile.am): Likewise.
78071         * modules/physmem (Makefile.am): Likewise.
78072         * modules/poll (Makefile.am): Likewise.
78073         * modules/posixtm (Makefile.am): Likewise.
78074         * modules/posixver (Makefile.am): Likewise.
78075         * modules/putenv (Makefile.am): Likewise.
78076         * modules/quote (Makefile.am): Likewise.
78077         * modules/quotearg (Makefile.am): Likewise.
78078         * modules/raise (Makefile.am): Likewise.
78079         * modules/read-file (Makefile.am): Likewise.
78080         * modules/readline (Makefile.am): Likewise.
78081         * modules/readlink (Makefile.am): Likewise.
78082         * modules/readtokens (Makefile.am): Likewise.
78083         * modules/readutmp (Makefile.am): Likewise.
78084         * modules/realloc (Makefile.am): Likewise.
78085         * modules/regex (Makefile.am): Likewise.
78086         * modules/rename-dest-slash (Makefile.am): Likewise.
78087         * modules/rename (Makefile.am): Likewise.
78088         * modules/rijndael (Makefile.am): Likewise.
78089         * modules/rmdir (Makefile.am): Likewise.
78090         * modules/rpmatch (Makefile.am): Likewise.
78091         * modules/safe-read (Makefile.am): Likewise.
78092         * modules/safe-write (Makefile.am): Likewise.
78093         * modules/same-inode (Makefile.am): Likewise.
78094         * modules/same (Makefile.am): Likewise.
78095         * modules/save-cwd (Makefile.am): Likewise.
78096         * modules/savedir (Makefile.am): Likewise.
78097         * modules/setenv (Makefile.am): Likewise.
78098         * modules/settime (Makefile.am): Likewise.
78099         * modules/sha1 (Makefile.am): Likewise.
78100         * modules/sig2str (Makefile.am): Likewise.
78101         * modules/snprintf (Makefile.am): Likewise.
78102         * modules/stat-macros (Makefile.am): Likewise.
78103         * modules/stat-time (Makefile.am): Likewise.
78104         * modules/stdbool (Makefile.am): Likewise.
78105         * modules/stdint (Makefile.am): Likewise.
78106         * modules/stdlib-safer (Makefile.am): Likewise.
78107         * modules/stpcpy (Makefile.am): Likewise.
78108         * modules/stpncpy (Makefile.am): Likewise.
78109         * modules/strcase (Makefile.am): Likewise.
78110         * modules/strcasestr (Makefile.am): Likewise.
78111         * modules/strchrnul (Makefile.am): Likewise.
78112         * modules/strcspn (Makefile.am): Likewise.
78113         * modules/strdup (Makefile.am): Likewise.
78114         * modules/strerror (Makefile.am): Likewise.
78115         * modules/strftime (Makefile.am): Likewise.
78116         * modules/strndup (Makefile.am): Likewise.
78117         * modules/strnlen (Makefile.am): Likewise.
78118         * modules/strpbrk (Makefile.am): Likewise.
78119         * modules/strsep (Makefile.am): Likewise.
78120         * modules/strstr (Makefile.am): Likewise.
78121         * modules/strtod (Makefile.am): Likewise.
78122         * modules/strtoimax (Makefile.am): Likewise.
78123         * modules/strtok_r (Makefile.am): Likewise.
78124         * modules/strtol (Makefile.am): Likewise.
78125         * modules/strtoll (Makefile.am): Likewise.
78126         * modules/strtoul (Makefile.am): Likewise.
78127         * modules/strtoull (Makefile.am): Likewise.
78128         * modules/strtoumax (Makefile.am): Likewise.
78129         * modules/strverscmp (Makefile.am): Likewise.
78130         * modules/sys_socket (Makefile.am): Likewise.
78131         * modules/sys_stat (Makefile.am): Likewise.
78132         * modules/sysexits (Makefile.am): Likewise.
78133         * modules/time_r (Makefile.am): Likewise.
78134         * modules/timegm (Makefile.am): Likewise.
78135         * modules/timespec (Makefile.am): Likewise.
78136         * modules/tmpfile-safer (Makefile.am): Likewise.
78137         * modules/trim (Makefile.am): Likewise.
78138         * modules/unistd-safer (Makefile.am): Likewise.
78139         * modules/unlinkdir (Makefile.am): Likewise.
78140         * modules/unlocked-io (Makefile.am): Likewise.
78141         * modules/userspec (Makefile.am): Likewise.
78142         * modules/utime (Makefile.am): Likewise.
78143         * modules/utimecmp (Makefile.am): Likewise.
78144         * modules/utimens (Makefile.am): Likewise.
78145         * modules/vasnprintf (Makefile.am): Likewise.
78146         * modules/vasprintf (Makefile.am): Likewise.
78147         * modules/vsnprintf (Makefile.am): Likewise.
78148         * modules/xalloc (Makefile.am): Likewise.
78149         * modules/xgetcwd (Makefile.am): Likewise.
78150         * modules/xnanosleep (Makefile.am): Likewise.
78151         * modules/xreadlink (Makefile.am): Likewise.
78152         * modules/xstrtod (Makefile.am): Likewise.
78153         * modules/xstrtol (Makefile.am): Likewise.
78154         * modules/xstrtold (Makefile.am): Likewise.
78155         * modules/yesno (Makefile.am): Likewise.
78156         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78157
78158 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * modules/error (Makefile.am): Distribute files through
78161         EXTRA_DIST, not lib_SOURCES.
78162
78163 2006-10-12  Eric Blake  <ebb9@byu.net>
78164
78165         * modules/error (Makefile.am): Distribute files in /lib.
78166         * modules/obstack (Makefile.am): Likewise.
78167
78168 2006-10-12  Bruno Haible  <bruno@clisp.org>
78169
78170         * modules/acl (Makefile.am): Distribute all files in lib/ through
78171         EXTRA_DIST.
78172         * modules/arcfour (Makefile.am): Likewise.
78173         * modules/arctwo (Makefile.am): Likewise.
78174         * modules/argmatch (Makefile.am): Likewise.
78175         * modules/argz (Makefile.am): Likewise.
78176         * modules/atexit (Makefile.am): Likewise.
78177         * modules/backupfile (Makefile.am): Likewise.
78178         * modules/c-strtod (Makefile.am): Likewise.
78179         * modules/c-strtold (Makefile.am): Likewise.
78180         * modules/calloc (Makefile.am): Likewise.
78181         * modules/canon-host (Makefile.am): Likewise.
78182         * modules/canonicalize (Makefile.am): Likewise.
78183         * modules/chdir-long (Makefile.am): Likewise.
78184         * modules/chdir-safer (Makefile.am): Likewise.
78185         * modules/check-version (Makefile.am): Likewise.
78186         * modules/chown (Makefile.am): Likewise.
78187         * modules/cloexec (Makefile.am): Likewise.
78188         * modules/close-stream (Makefile.am): Likewise.
78189         * modules/closeout (Makefile.am): Likewise.
78190         * modules/crc (Makefile.am): Likewise.
78191         * modules/cycle-check (Makefile.am): Likewise.
78192         * modules/des (Makefile.am): Likewise.
78193         * modules/dirfd (Makefile.am): Likewise.
78194         * modules/dirname (Makefile.am): Likewise.
78195         * modules/dup2 (Makefile.am): Likewise.
78196         * modules/euidaccess (Makefile.am): Likewise.
78197         * modules/exclude (Makefile.am): Likewise.
78198         * modules/exitfail (Makefile.am): Likewise.
78199         * modules/fcntl-safer (Makefile.am): Likewise.
78200         * modules/file-type (Makefile.am): Likewise.
78201         * modules/fileblocks (Makefile.am): Likewise.
78202         * modules/filemode (Makefile.am): Likewise.
78203         * modules/filenamecat (Makefile.am): Likewise.
78204         * modules/fnmatch (Makefile.am): Likewise.
78205         * modules/fopen-safer (Makefile.am): Likewise.
78206         * modules/fpending (Makefile.am): Likewise.
78207         * modules/fprintftime (Makefile.am): Likewise.
78208         * modules/free (Makefile.am): Likewise.
78209         * modules/fsusage (Makefile.am): Likewise.
78210         * modules/ftruncate (Makefile.am): Likewise.
78211         * modules/fts (Makefile.am): Likewise.
78212         * modules/gc (Makefile.am): Likewise.
78213         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78214         * modules/getaddrinfo (Makefile.am): Likewise.
78215         * modules/getcwd (Makefile.am): Likewise.
78216         * modules/getdelim (Makefile.am): Likewise.
78217         * modules/getdomainname (Makefile.am): Likewise.
78218         * modules/getgroups (Makefile.am): Likewise.
78219         * modules/gethostname (Makefile.am): Likewise.
78220         * modules/gethrxtime (Makefile.am): Likewise.
78221         * modules/getline (Makefile.am): Likewise.
78222         * modules/getloadavg (Makefile.am): Likewise.
78223         * modules/getlogin_r (Makefile.am): Likewise.
78224         * modules/getopt (Makefile.am): Likewise.
78225         * modules/getpass (Makefile.am): Likewise.
78226         * modules/getpass-gnu (Makefile.am): Likewise.
78227         * modules/getsubopt (Makefile.am): Likewise.
78228         * modules/gettime (Makefile.am): Likewise.
78229         * modules/gettimeofday (Makefile.am): Likewise.
78230         * modules/getugroups (Makefile.am): Likewise.
78231         * modules/getusershell (Makefile.am): Likewise.
78232         * modules/glob (Makefile.am): Likewise.
78233         * modules/group-member (Makefile.am): Likewise.
78234         * modules/hard-locale (Makefile.am): Likewise.
78235         * modules/hash (Makefile.am): Likewise.
78236         * modules/hmac-md5 (Makefile.am): Likewise.
78237         * modules/hmac-sha1 (Makefile.am): Likewise.
78238         * modules/human (Makefile.am): Likewise.
78239         * modules/idcache (Makefile.am): Likewise.
78240         * modules/imaxabs (Makefile.am): Likewise.
78241         * modules/imaxdiv (Makefile.am): Likewise.
78242         * modules/inet_ntop (Makefile.am): Likewise.
78243         * modules/inet_pton (Makefile.am): Likewise.
78244         * modules/inttostr (Makefile.am): Likewise.
78245         * modules/isapipe (Makefile.am): Likewise.
78246         * modules/lchown (Makefile.am): Likewise.
78247         * modules/long-options (Makefile.am): Likewise.
78248         * modules/lstat (Makefile.am): Likewise.
78249         * modules/malloc (Makefile.am): Likewise.
78250         * modules/mathl (Makefile.am): Likewise.
78251         * modules/mbchar (Makefile.am): Likewise.
78252         * modules/md2 (Makefile.am): Likewise.
78253         * modules/md4 (Makefile.am): Likewise.
78254         * modules/md5 (Makefile.am): Likewise.
78255         * modules/memcasecmp (Makefile.am): Likewise.
78256         * modules/memchr (Makefile.am): Likewise.
78257         * modules/memcmp (Makefile.am): Likewise.
78258         * modules/memcoll (Makefile.am): Likewise.
78259         * modules/memcpy (Makefile.am): Likewise.
78260         * modules/memmem (Makefile.am): Likewise.
78261         * modules/memmove (Makefile.am): Likewise.
78262         * modules/mempcpy (Makefile.am): Likewise.
78263         * modules/memrchr (Makefile.am): Likewise.
78264         * modules/memset (Makefile.am): Likewise.
78265         * modules/memxor (Makefile.am): Likewise.
78266         * modules/mkancesdirs (Makefile.am): Likewise.
78267         * modules/mkdir (Makefile.am): Likewise.
78268         * modules/mkdir-p (Makefile.am): Likewise.
78269         * modules/mkdtemp (Makefile.am): Likewise.
78270         * modules/mkstemp (Makefile.am): Likewise.
78271         * modules/mktime (Makefile.am): Likewise.
78272         * modules/modechange (Makefile.am): Likewise.
78273         * modules/mountlist (Makefile.am): Likewise.
78274         * modules/nanosleep (Makefile.am): Likewise.
78275         * modules/openat (Makefile.am): Likewise.
78276         * modules/pagealign_alloc (Makefile.am): Likewise.
78277         * modules/physmem (Makefile.am): Likewise.
78278         * modules/poll (Makefile.am): Likewise.
78279         * modules/posixtm (Makefile.am): Likewise.
78280         * modules/posixver (Makefile.am): Likewise.
78281         * modules/putenv (Makefile.am): Likewise.
78282         * modules/quote (Makefile.am): Likewise.
78283         * modules/quotearg (Makefile.am): Likewise.
78284         * modules/raise (Makefile.am): Likewise.
78285         * modules/read-file (Makefile.am): Likewise.
78286         * modules/readline (Makefile.am): Likewise.
78287         * modules/readlink (Makefile.am): Likewise.
78288         * modules/readtokens (Makefile.am): Likewise.
78289         * modules/readutmp (Makefile.am): Likewise.
78290         * modules/realloc (Makefile.am): Likewise.
78291         * modules/regex (Makefile.am): Likewise.
78292         * modules/rename (Makefile.am): Likewise.
78293         * modules/rename-dest-slash (Makefile.am): Likewise.
78294         * modules/rijndael (Makefile.am): Likewise.
78295         * modules/rmdir (Makefile.am): Likewise.
78296         * modules/rpmatch (Makefile.am): Likewise.
78297         * modules/safe-read (Makefile.am): Likewise.
78298         * modules/safe-write (Makefile.am): Likewise.
78299         * modules/same (Makefile.am): Likewise.
78300         * modules/save-cwd (Makefile.am): Likewise.
78301         * modules/savedir (Makefile.am): Likewise.
78302         * modules/setenv (Makefile.am): Likewise.
78303         * modules/settime (Makefile.am): Likewise.
78304         * modules/sha1 (Makefile.am): Likewise.
78305         * modules/sig2str (Makefile.am): Likewise.
78306         * modules/snprintf (Makefile.am): Likewise.
78307         * modules/stdlib-safer (Makefile.am): Likewise.
78308         * modules/stpcpy (Makefile.am): Likewise.
78309         * modules/stpncpy (Makefile.am): Likewise.
78310         * modules/strcase (Makefile.am): Likewise.
78311         * modules/strcasestr (Makefile.am): Likewise.
78312         * modules/strchrnul (Makefile.am): Likewise.
78313         * modules/strcspn (Makefile.am): Likewise.
78314         * modules/strdup (Makefile.am): Likewise.
78315         * modules/strerror (Makefile.am): Likewise.
78316         * modules/strftime (Makefile.am): Likewise.
78317         * modules/strndup (Makefile.am): Likewise.
78318         * modules/strnlen (Makefile.am): Likewise.
78319         * modules/strpbrk (Makefile.am): Likewise.
78320         * modules/strsep (Makefile.am): Likewise.
78321         * modules/strstr (Makefile.am): Likewise.
78322         * modules/strtod (Makefile.am): Likewise.
78323         * modules/strtoimax (Makefile.am): Likewise.
78324         * modules/strtok_r (Makefile.am): Likewise.
78325         * modules/strtol (Makefile.am): Likewise.
78326         * modules/strtoll (Makefile.am): Likewise.
78327         * modules/strtoul (Makefile.am): Likewise.
78328         * modules/strtoull (Makefile.am): Likewise.
78329         * modules/strtoumax (Makefile.am): Likewise.
78330         * modules/strverscmp (Makefile.am): Likewise.
78331         * modules/time_r (Makefile.am): Likewise.
78332         * modules/timegm (Makefile.am): Likewise.
78333         * modules/tmpfile-safer (Makefile.am): Likewise.
78334         * modules/unistd-safer (Makefile.am): Likewise.
78335         * modules/unlinkdir (Makefile.am): Likewise.
78336         * modules/userspec (Makefile.am): Likewise.
78337         * modules/utime (Makefile.am): Likewise.
78338         * modules/utimecmp (Makefile.am): Likewise.
78339         * modules/utimens (Makefile.am): Likewise.
78340         * modules/vasnprintf (Makefile.am): Likewise.
78341         * modules/vasprintf (Makefile.am): Likewise.
78342         * modules/vsnprintf (Makefile.am): Likewise.
78343         * modules/xalloc (Makefile.am): Likewise.
78344         * modules/xgetcwd (Makefile.am): Likewise.
78345         * modules/xnanosleep (Makefile.am): Likewise.
78346         * modules/xreadlink (Makefile.am): Likewise.
78347         * modules/xstrtod (Makefile.am): Likewise.
78348         * modules/xstrtol (Makefile.am): Likewise.
78349         * modules/xstrtold (Makefile.am): Likewise.
78350         * modules/yesno (Makefile.am): Likewise.
78351
78352 2006-10-12  Jim Meyering  <jim@meyering.net>
78353
78354         * m4/getloadavg.m4: Revert the change below.
78355
78356         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78357         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78358         fail with a symlink, which is what coreutils' ./bootstrap now
78359         creates by default.
78360
78361 2006-10-12  Bruno Haible  <bruno@clisp.org>
78362
78363         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78364         mingw.
78365         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78366         MSVC and mingw explicitly.
78367
78368 2006-10-11  Simon Josefsson  <jas@extundo.com>
78369             Bruno Haible  <bruno@clisp.org>
78370
78371         Add support for multiple gnulib-tool invocations in the scope of a
78372         single configure.ac file.
78373         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78374         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78375         with the same contents as the _LIBADD variable.
78376         (func_emit_initmacro_start, func_emit_initmacro_end,
78377         func_emit_initmacro_done): New functions.
78378         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78379         gl_LIBOBJS and gl_LTLIBOBJS.
78380
78381 2006-10-11  Bruno Haible  <bruno@clisp.org>
78382
78383         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78384         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78385         autoreconf. Instead, invoke autopoint explicitly but move back the
78386         *.m4 files from gnulib.
78387
78388 2006-10-11  Bruno Haible  <bruno@clisp.org>
78389
78390         * gnulib-tool (func_usage): Make module names after --create-testdir
78391         optional.
78392         (func_create_testdir): If no module was specified, use nearly all
78393         modules.
78394
78395 2006-10-12  Jim Meyering  <jim@meyering.net>
78396
78397         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78398         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78399         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78400         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78401         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78402         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78403         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78404         (fts_set_stat_required): New function.
78405         (fts_open): Defer the calls to fts_stat, if possible or requested.
78406         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78407         into fts_stat itself.
78408         (fts_read): Perform any required (deferred) fts_stat call.
78409         (fts_build): Likewise, for the directory we're about to open and read.
78410         In the readdir loop, carefully decide whether each entry will require
78411         an eventual call to fts_stat, using dirent.d_type info if available.
78412         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78413         a command line argument into this function.  Update all callers.
78414         Map a return value of FTS_DOT to FTS_D for a command line argument.
78415         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78416         Thanks to Miklos Szeredi for his tenacity and for the initial
78417         bug report about "find" failing on a FUSE-based file system.
78418
78419         * lib/fts.c (fts_open): Use consistent indentation.
78420
78421 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78424         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78425         reported by Jim Meyering.  All uses of cache variables renamed
78426         to match Autoconf's.
78427         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78428         the other one.
78429
78430         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78431         Fix misspelling in diagnostic.
78432
78433 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78436         defined.  Problem reported by Matthew Woehlke.
78437
78438         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78439         Add support for Tandem NonStop R series.
78440         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78441         Use new macro.
78442
78443         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78444         (has_trailing_slash): Omit size arg; all callers changed.
78445         Omit 'inline', since it doesn't help performance and we'd
78446         need to configure it.
78447         Don't count //, ///, etc. as having a trailing slash.
78448         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78449         (rpl_rename_dest_slash): On failure, use rename's errno rather
78450         than (in some cases) an incorrect or junk errno.
78451         Simplify code by removing need to compute length; this does
78452         cause it to make two passes instead of one over the file name,
78453         but it's worth it.
78454
78455         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78456         change, since Autoconf's version may no longer be appropriate now
78457         that we are using CVS Autoconf's version.  Add support for Tandem.
78458
78459 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78460             Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78463         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78464         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78465         gl_AC_TYPE_LONG_LONG.
78466
78467         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78468         instead of HAVE_LONG_LONG.
78469         * lib/printf-args.c (printf_fetchargs): Likewise.
78470         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78471         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78472         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78473         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78474         gl_AC_TYPE_LONG_LONG.
78475
78476 2006-10-11  Bruno Haible  <bruno@clisp.org>
78477
78478         * m4/longlong.m4: Add comments.
78479         * m4/ulonglong.m4: Likewise.
78480
78481 2006-10-10  Bruno Haible  <bruno@clisp.org>
78482
78483         Make it possible to #define stpcpy, strdup to aliases.
78484         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78485         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78486
78487 2006-10-10  Bruno Haible  <bruno@clisp.org>
78488
78489         Make it possible to #define gcd to an alias.
78490         * lib/gcd.c: Include config.h.
78491
78492 2006-10-10  Bruno Haible  <bruno@clisp.org>
78493
78494         Make it possible to #define c_isascii to an alias.
78495         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78496         defined. Undefine the macros before defining them, to avoid gcc
78497         warnings.
78498         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78499         define NO_C_CTYPE_MACROS early.
78500
78501 2006-10-10  Bruno Haible  <bruno@clisp.org>
78502
78503         Make it possible to #define set_program_name to an alias.
78504         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78505         ENABLE_RELOCATABLE early.
78506
78507 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78508
78509         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78510         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78511         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78512         More generally, don't assume that 64-bit signed int is available
78513         if unsigned int is, and vice versa.
78514         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78515         unsigned symbols, not on their signed counterparts.
78516         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78517         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78518         (UINT64_C, UINTMAX_C):
78519         Likewise.
78520         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78521         unsigned counterparts.
78522         (Have_long_long, Unsigned): New macros.
78523         (Int): Renamed from INT.
78524         (strtoimax): Use the new macros.
78525         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78526         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78527         * modules/inttypes (inttypes.h): Substitute
78528         HAVE_UNSIGNED_LONG_LONG_INT.
78529         * modules/stdint (stdint.h): Likewise.
78530         (Files): Add m4/ulonglong.m4.
78531
78532 2006-10-10  Bruno Haible  <bruno@clisp.org>
78533
78534         Fix a gcc -Wshadow warning.
78535         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78536         to 'bucket'.
78537         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78538         gl_linked_indexof_from_to): Likewise.
78539         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78540         Likewise.
78541         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78542         Likewise.
78543         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78544         Reported by Eric Blake.
78545
78546 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78547
78548         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78549         for NetBSD.  Problem reported by Bruno Haible.
78550
78551 2006-10-09  Jim Meyering  <jim@meyering.net>
78552
78553         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78554         Patch from Bruno Haible.
78555
78556 2006-10-09  Jim Meyering  <jim@meyering.net>
78557
78558         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78559         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78560         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78561
78562 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         Don't include <config.h> twice; this doesn't work in some cases,
78565         e.g., when config.h has "#define intmax_t long long int" and
78566         we include <config.h>, <inttypes.h>, <config.h> in that order.
78567         Problem reported by Matthew Woehlke in:
78568         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78569         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78570         * lib/fts-cycle.c: Don't include config.h.
78571         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78572         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78573         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78574         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78575         inttypes.h.
78576         * lib/xstrtoumax.c: Likewise.
78577         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78578         __strtol and the like, so that this module is more like its siblings.
78579         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78580         Remove; no longer needed now that we assume gnulib inttypes.h.
78581
78582 2006-10-08  Bruno Haible  <bruno@clisp.org>
78583
78584         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78585         option.
78586
78587 2006-10-07  Jim Meyering  <jim@meyering.net>
78588
78589         * modules/inttypes (inttypes.h): Revert what seems to have been
78590         an inadvertent part of today's change: use "|", not "/" in the
78591         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78592
78593 2006-10-07  Bruno Haible  <bruno@clisp.org>
78594
78595         * modules/sublist: New file.
78596
78597 2006-10-07  Bruno Haible  <bruno@clisp.org>
78598
78599         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78600         * modules/argz (argz.h): Likewise.
78601         * modules/arpa_inet (arpa/inet.h): Likewise.
78602         * modules/byteswap (byteswap.h): Likewise.
78603         * modules/configmake (configmake.h): Likewise.
78604         * modules/fcntl (fcntl.h): Likewise.
78605         * modules/fnmatch (fnmatch.h): Likewise.
78606         * modules/getopt (getopt.h): Likewise.
78607         * modules/glob (glob.h): Likewise.
78608         * modules/inttypes (inttypes.h): Likewise.
78609         * modules/netinet_in (netinet/in.h): Likewise.
78610         * modules/poll (poll.h): Likewise.
78611         * modules/stdbool (stdbool.h): Likewise.
78612         * modules/stdint (stdint.h): Likewise.
78613         * modules/sys_select (sys/select.h): Likewise.
78614         * modules/sys_socket (sys/socket.h): Likewise.
78615         * modules/sys_stat (sys/stat.h): Likewise.
78616         * modules/sysexits (sysexits.h): Likewise.
78617         * modules/unistd (unistd.h): Likewise.
78618         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78619         Add a "DO NOT EDIT" comment to the generated file.
78620         (func_import): Likewise for gnulib-comp.m4.
78621
78622 2006-10-07  Bruno Haible  <bruno@clisp.org>
78623
78624         * lib/gl_sublist.h: New file.
78625         * lib/gl_sublist.c: New file.
78626
78627 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78630         name (relative to the original working directory) and the file
78631         name component (relative to the temporary working directory).  All
78632         callers changed.
78633         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78634         * lib/mkdir-p.c (make_dir_parents): Likewise.
78635         * lib/mkdir-p.h (make_dir_parents): Likewise.
78636
78637 2006-10-06  Eric Blake  <ebb9@byu.net>
78638
78639         Define several macros for use by the clean-temp module.
78640         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78641         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78642         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78643
78644         * lib/clean-temp.h (close_stream_temp): New declaration.
78645         * lib/clean-temp.c (includes): Pull in headers according to what
78646         other modules are in use.
78647         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78648
78649 2006-10-06  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78652         instead of fopen, fwriteerror.
78653
78654 2006-10-06  Bruno Haible  <bruno@clisp.org>
78655
78656         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78657         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78658         int.
78659         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78660         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78661         Return an error indicator.
78662         Suggested by Eric Blake.
78663
78664 2006-10-06  Bruno Haible  <bruno@clisp.org>
78665
78666         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78667         Reported by Eric Blake.
78668
78669 2006-10-06  Bruno Haible  <bruno@clisp.org>
78670
78671         * modules/closeout (Description): Mention stderr too.
78672
78673 2006-10-06  Bruno Haible  <bruno@clisp.org>
78674         and Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * lib/closeout.c (close_stdout): Also close stderr.
78677         * lib/closeout.h: Update comment.
78678
78679 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78682         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78683         * lib/dirchownmod.c: Include lchown.h.
78684         * lib/lchown.c: Don't include files that lchown.h now includes.
78685         Don't declare chown, since lchown.h now does that.
78686         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78687         (lchown): Define to rpl_chown if lchown is declared but
78688         does not exist.  Declare using a prototype if lchown is not
78689         declared.  Add a copyright notice.
78690         * lib/mkstemp.h: Include <unistd.h>.
78691         * lib/openat.c: Include lchown.h.
78692
78693         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78694         we now test for that separately.
78695         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78696         rather than O_NOFOLLOW, when testing whether it's possible to
78697         avoid a race condition reliably.
78698         * lib/savewd.c (savewd_chdir): Likewise.
78699
78700         Remove macros that are no longer needed now that stdint.h is
78701         reliable.
78702         * lib/fsusage.c (UINTMAX_MAX): Remove.
78703         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78704         * lib/utimecmp.c (SIZE_MAX): Remove.
78705
78706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78707
78708         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78709         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78710         O_NOATIME works.
78711
78712 2006-10-05  Bruno Haible  <bruno@clisp.org>
78713
78714         * lib/gl_list.h (gl_sortedlist_search_from_to,
78715         gl_sortedlist_indexof_from_to): New declarations.
78716         (gl_list_implementation): New fields sortedlist_search_from_to,
78717         sortedlist_indexof_from_to.
78718         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78719         inline functions.
78720         * lib/gl_list.c (gl_sortedlist_search_from_to,
78721         gl_sortedlist_indexof_from_to): New functions.
78722         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78723         function.
78724         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78725         (gl_array_sortedlist_search_from_to): New function.
78726         (gl_array_list_implementation): Update.
78727         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78728         function.
78729         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78730         (gl_carray_sortedlist_search_from_to): New function.
78731         (gl_carray_list_implementation): Update.
78732         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78733         gl_linked_sortedlist_indexof_from_to): New functions.
78734         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78735         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78736         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78737         gl_tree_sortedlist_indexof_from_to): New functions.
78738         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78739         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78740         Update.
78741         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78742         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78743         Update.
78744
78745 2006-10-05  Bruno Haible  <bruno@clisp.org>
78746
78747         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78748         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78749         (struct gl_list_implementation): Add fields search_from_to,
78750         indexof_from_to. Remove fields search, indexof.
78751         (gl_list_search): Use the search_from_to method.
78752         (gl_list_search_from, gl_list_search_from_to): New functions.
78753         (gl_list_indexof): Use the indexof_from_to method.
78754         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78755         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78756         (gl_list_search_from, gl_list_search_from_to): New functions.
78757         (gl_list_indexof): Use the indexof_from_to method.
78758         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78759         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78760         gl_array_indexof. Add start_index, end_index arguments.
78761         (gl_array_search_from_to): Renamed from gl_array_search. Add
78762         start_index, end_index arguments.
78763         (gl_array_remove, gl_array_list_implementation): Update.
78764         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78765         gl_carray_indexof. Add start_index, end_index arguments.
78766         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78767         start_index, end_index arguments.
78768         (gl_carray_remove, gl_carray_list_implementation): Update.
78769         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78770         gl_linked_search. Add start_index, end_index arguments.
78771         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78772         start_index, end_index arguments.
78773         (gl_linked_remove): Update.
78774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78776         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78777         field to 'size_t'.
78778         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78779         gl_tree_search. Add start_index, end_index arguments.
78780         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78781         start_index, end_index arguments.
78782         (gl_tree_remove): Update.
78783         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78784         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78785         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78786         function.
78787         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78788         gl_tree_search. Add start_index, end_index arguments.
78789         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78790         start_index, end_index arguments.
78791         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78792         Update.
78793         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78794
78795 2006-10-05  Bruno Haible  <bruno@clisp.org>
78796
78797         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78798
78799         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78800         fwriteerror_temp): New declarations.
78801         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78802         (descriptors): New variable.
78803         (cleanup): First, close the descriptors.
78804         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78805         fclose_temp, fwriteerror_temp): New functions.
78806
78807 2006-10-04  Jim Meyering  <jim@meyering.net>
78808
78809         * lib/fts.c (fts_open): Tiny comment change.
78810
78811 2006-10-04  Bruno Haible  <bruno@clisp.org>
78812
78813         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78814         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78815         gl_LOCK_BODY.
78816         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78817         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78818         gl_LOCK_EARLY_BODY.
78819         (gl_LOCK): Require gl_LOCK_BODY.
78820
78821 2006-10-04  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78824         (gl_oset_search_atleast): New declaration.
78825         (struct gl_oset_implementation): Add field 'search_atleast'.
78826         (gl_oset_search_atleast): New inline function.
78827         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78828         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78829         (gl_array_oset_implementation): Update.
78830         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78831         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78832         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78833
78834 2006-10-04  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78837
78838 2006-10-03  Bruno Haible  <bruno@clisp.org>
78839
78840         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78841         from gl_avltreehash_list_implementation.
78842
78843 2006-10-03  Bruno Haible  <bruno@clisp.org>
78844
78845         * lib/gl_oset.c (gl_oset_add): Fix return type.
78846
78847 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78848
78849         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78850
78851 2006-10-02  Eric Blake  <ebb9@byu.net>
78852
78853         * modules/strnlen (Depends-on): Add extensions.
78854
78855 2006-10-02  Eric Blake  <ebb9@byu.net>
78856
78857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78858         definition in 2.60+.
78859
78860 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78861
78862         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78863         checks.
78864
78865 2006-10-02  Bruno Haible  <bruno@clisp.org>
78866
78867         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78868         to the AUTOMAKE_OPTIONS.
78869         Reported by Jim Meyering.
78870
78871 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         Work around bug in Solaris 10 /proc file system:
78874         /proc/self/fd/NNN/.. isn't the parent directory of
78875         the directory whose file descriptor is NNN.  This needs to
78876         be worked around at run time, not compile time, since a
78877         program might be built on Solaris 8, where things work, and
78878         run on Solaris 10.
78879         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78880         to use the following interface instead:
78881         (OPENAT_BUFFER_SIZE): New macro.
78882         (openat_proc_name): New function.
78883         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78884         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78885         Likewise.
78886         * lib/openat-proc.c: New file.
78887         * modules/openat (Files): Add lib/openat-proc.c.
78888         (Depends-on): Add same-inode, stdbool.
78889         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78890
78891 2006-09-29  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78894         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78895         argument. Set stdout_closed before testing for ferror, not after.
78896         (fwriteerror, fwriteerror_no_ebadf): New functions.
78897
78898 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78899
78900         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78901
78902 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78903
78904         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78905         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78906
78907 2006-09-28  Jim Meyering  <jim@meyering.net>
78908
78909         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78910         Include <unistd.h>.
78911
78912 2006-09-28  Bruno Haible  <bruno@clisp.org>
78913
78914         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78915         * modules/linkedhash-list (Depends-on): Likewise.
78916         * modules/rbtreehash-list (Depends-on): Likewise.
78917
78918 2006-09-28  Bruno Haible  <bruno@clisp.org>
78919
78920         * lib/strndup.h: Simplify the redefinition of strndup.
78921         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78922         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78923
78924 2006-09-28  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78927         * lib/gl_linkedhash_list.c: Likewise.
78928         * lib/gl_rbtreehash_list.c: Likewise.
78929
78930 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78933         getaddrinfo.
78934
78935         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78936         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78937         it causes <stdio_ext.h> to cause a compile-time error.
78938         Problem reported by Nelson H. F. Beebe.
78939         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78940         of HAVE_DECL___PENDING.
78941
78942         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78943         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78944         declaration.
78945
78946 2006-09-27  Jim Meyering  <jim@meyering.net>
78947
78948         This file could end up with a definition for a function
78949         named __strndup, rather than rpl_strndup on a system with
78950         incomplete weak_alias support.
78951         * lib/strndup.c (strndup): Rename from __strndup.
78952         Remove #defines that used to map __strndup to strndup.
78953         Don't use K&R prototypes.
78954         Remove LIBC-related code, since this file is not sync'd with glibc.
78955         * lib/strndup.h: Revamp, accordingly.
78956         * m4/strndup.m4: Modernize.
78957
78958 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         * modules/savewd (Depends-on): Add 'raise'.
78961         * lib/savewd.c: Include <signal.h>, for 'raise'.
78962
78963 2006-09-26  Jim Meyering  <jim@meyering.net>
78964
78965         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78966         when we detect Darwin 8.7.0's acl_get_file bug.
78967         Rearrange to perform the new (below) run-test while $LIBS
78968         contains any acl-related library.  Set USE_ACL at the end.
78969         (gl_ACL_GET_FILE): New function.
78970
78971 2006-09-26  Eric Blake  <ebb9@byu.net>
78972
78973         * lib/verror.c: Include <config.h> unconditionally.
78974
78975 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * modules/clock-time (Maintainer): Add self.
78978         * modules/getlogin_r (Depends-on): Add extensions.
78979
78980 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78981
78982         * modules/clock-time: New module.
78983         * modules/nanosleep (Depends-on): Add clock-time.
78984         * modules/gethrxtime (Depends-on): Likewise.
78985         * modules/gettime (Depends-on): Likewise.
78986         * modules/settime (Depends-on): Likewise.
78987
78988         * modules/fts-lgpl: Depend on openat.
78989         * modules/mkancesdirs: Depend on savewd.
78990         * modules/mkdir-p: Likewise.
78991
78992 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78993
78994         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78995
78996         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78997         `gl_have_arbitrary_file_name_length_limit' to
78998         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78999         actually works between configure runs.
79000
79001 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79002             Bruno Haible  <bruno@clisp.org>
79003
79004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79005
79006 2006-09-25  Jim Meyering  <jim@meyering.net>
79007
79008         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79009         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79010
79011 2006-09-25  Eric Blake  <ebb9@byu.net>
79012
79013         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79014         exec's in 2006-09-18 patch when shuffling fds.
79015
79016 2006-09-25  Bruno Haible  <bruno@clisp.org>
79017
79018         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79019         Reported by Jim Meyering.
79020
79021 2006-09-24  Jim Meyering  <jim@meyering.net>
79022
79023         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79024         compare a pointer against a literal "0".  That caused failures with
79025         at least HP-UX's hpcc.
79026
79027 2006-09-22  Simon Josefsson  <jas@extundo.com>
79028
79029         * modules/gc-sha1:
79030         * modules/gc-md4:
79031         * modules/gc-hmac-sha1:
79032         * modules/gc-hmac-md5:
79033         * modules/gc-des:
79034         * modules/gc-arcfour: Distribute more files.
79035
79036 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79037
79038         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79039         (gl_linked_iterator_from_to): Initialize struct completely.
79040         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79041         (gl_tree_iterator_from_to): Likewise
79042         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79043         * lib/gl_array_list.c [lint] (gl_array_iterator)
79044         (gl_array_iterator_from_to): Likewise.
79045         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79046         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79047         (gl_carray_iterator_from_to): Likewise.
79048
79049         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79050         * lib/md4.c (md4_process_block): Remove unused variable.
79051         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79052         parentheses for clarity.
79053
79054 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79055
79056         * modules/bison-i18n (Depends-on): Add gettext.
79057
79058 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79059
79060         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79061         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79062         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79063         also add missing comma that caused broken test.
79064         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79065         stdlib.h, for `abort'.
79066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79067         variables.
79068         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79069         include unistd.h if present, for `rmdir'.
79070         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79071         variables.
79072         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79073         in the process include standard headers for prototypes.
79074         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79075         gets declared on GNU/Linux.
79076         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79077         unistd.h, for `rmdir'.
79078         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79079
79080         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79081         always true.
79082         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79083
79084         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79085
79086 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79087
79088         * gnulib-tool (func_version): Create output all at once.  This
79089         may help avoid triggering unnecessary SIGPIPEs, and at any
79090         rate it doesn't hurt.
79091
79092 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79093             Bruno Haible  <bruno@clisp.org>
79094
79095         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79096         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79097         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79098
79099         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79100         (gl_FUNC_VASPRINTF): Invoke it.
79101
79102 2006-09-22  Bruno Haible  <bruno@clisp.org>
79103
79104         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79105         getloadavg.c as first argument.
79106
79107 2006-09-22  Bruno Haible  <bruno@clisp.org>
79108
79109         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79110         at the beginning of the gl_INIT macro.
79111         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79112         gl_GETLOADAVG.
79113
79114 2006-09-22  Bruno Haible  <bruno@clisp.org>
79115
79116         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79117         module.
79118         Suggested by Ralf Wildenhues.
79119
79120 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         Import this patch from libc:
79123
79124         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79125
79126         * lib/regex_internal.c (re_string_reconstruct): Handle
79127         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79128         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79129         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79130         re_string_context_at.
79131
79132         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79133         now requires it.
79134         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79135         gl_REGEX now does it for us.
79136         (gl_REGEX): Add test taken from
79137         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79138
79139         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79140         Check that large offsets work.  Modernize Autoconf usages.
79141         Prefer "yes" to mean a good thing rather than a bad.
79142         Don't put "#define mkstemp" in config.h, as this might interfere
79143         with standard system headers that "#define mkstemp mkstemp64".
79144
79145         * modules/mkstemp (Depends-on): Add extensions, so that
79146         mkstemp is visible on some platforms.
79147         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79148         (Include): Change to "mkstemp.h" from <stdlib.h>.
79149         (Files): Add mkstemp.h.
79150
79151         * lib/mkstemp.h: New file, since some standard headers
79152         #define mkstemp.
79153         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79154         Include "mkstemp.h".
79155         Make the _LIBC code resemble glibc original more,
79156         e.g., use K&R style.
79157         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79158         (mkstemp): Remove, since mkstemp.h does this for us.
79159         * lib/stdlib--.h: Include mkstemp.h.
79160
79161         Import this patch from libc:
79162
79163         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79164
79165         * lib/tempname.c (__gen_tempname): Change attempts_min
79166         into a macro.  Use preprocessor to decide how to initialize
79167         attempts [Coverity CID 67].
79168
79169 2006-09-20  Bruno Haible  <bruno@clisp.org>
79170
79171         * lib/mkdtemp.c: Import from libc.
79172         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79173                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79174                 attempts_min into a macro.  Use preprocessor to decide how to
79175                 initialize attempts [Coverity CID 67].
79176         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79177                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79178                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79179
79180 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79181
79182         * gnulib-tool (func_exit): New function, to allow to pass the
79183         exit status portably through the trap.  Use everywhere.
79184         (--help, --version): Signal a write error.
79185         (trap): catch SIGPIPE, for write errors.
79186         Exit at the end of the trap, with the correct exit status.
79187
79188 2006-09-19  Karl Berry  <karl@gnu.org>
79189
79190         * doc/gnulib.texi: note about the license texinfo files.
79191
79192 2006-09-19  Eric Blake  <ebb9@byu.net>
79193
79194         * gnulib-tool: Avoid space-tab.
79195
79196 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79197
79198         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79199         that prevented coreutils 6.1 from building.  Problem reported
79200         by Petter Reinholdtsen.
79201
79202 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * gnulib-tool (avoidlist): Fix typo that broke options like
79205         --avoid=lock that are used by coreutils bootstrap.
79206
79207 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79208
79209         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79210         more systematically.
79211
79212 2006-09-18  Jim Meyering  <jim@meyering.net>
79213
79214         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79215
79216 2006-09-18  Bruno Haible  <bruno@clisp.org>
79217
79218         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79219
79220 2006-09-18  Bruno Haible  <bruno@clisp.org>
79221
79222         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79223         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79224         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79225         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79226         * m4/gettext.m4: Require autoconf >= 2.52.
79227         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79228         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79229         of gl_cv_header_inttypes_h.
79230
79231 2006-09-18  Bruno Haible  <bruno@clisp.org>
79232
79233         * lib/javaversion.c: Include configmake.h.
79234
79235 2006-09-18  Bruno Haible  <bruno@clisp.org>
79236
79237         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79238         avoid that the while loops be executed in a subshell.
79239
79240 2006-09-18  Bruno Haible  <bruno@clisp.org>
79241
79242         * MODULES.html.sh (func_module): Break long lines.
79243         Suggested by Bruce Korb <bkorb@gnu.org>.
79244
79245 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79246
79247         Speed up by a factor of 1.12.
79248         * gnulib-tool (nl): New variable.
79249         (func_import): Rewrite include directive extraction to only read each
79250         directive once.
79251
79252 2006-09-17  Bruno Haible  <bruno@clisp.org>
79253
79254         * modules/javaversion (Makefile.am): Remove DEFS setting.
79255         (Depends-on): Add configmake, for PKGDATADIR definition.
79256
79257 2006-09-17  Bruno Haible  <bruno@clisp.org>
79258
79259         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79260
79261 2006-09-17  Bruno Haible  <bruno@clisp.org>
79262
79263         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79264         (func_modules_transitive_closure, func_modules_add_dummy,
79265         func_modules_to_filelist, func_import, func_create_testdir,
79266         func_create_megatestdir, ...): Use it wherever possible.
79267         Suggested by Ralf Wildenhues.
79268
79269 2006-09-16  Karl Berry  <karl@gnu.org>
79270
79271         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79272         to avoid sectioning errors.
79273         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79274         [ifinfo]: blank line after @center-ed titles.
79275         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79276         Spell FSF address consistently with others.
79277         (These changes approved by rms.)
79278
79279 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79280
79281         Speed up by a factor of 1.61.
79282         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79283         already checked module names again.
79284
79285 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79286
79287         Speed up by a factor of 1.13.
79288         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79289         for new_files, and the input to func_add_or_update.
79290
79291 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79292
79293         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79294         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79295
79296 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * modules/mkancesdirs (Depends-on): Add fcntl.
79299         * modules/savewd: New file.
79300         * MODULES.html.sh (File system functions): Add savewd.
79301
79302         * modules/configmake (Makefile.am): Add support for the
79303         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79304
79305 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * m4/savewd.m4: New file.
79308
79309 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79312         (dirchownmod): New arg FD.  All callers changed.
79313         Use FD rather than opening the directory ourself, as opening is
79314         now the caller's responsibility.
79315         * lib/dirchownmod.h: Likewise.
79316         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79317         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79318         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79319         (test_dir): Remove.
79320         (mkancesdirs): Return length of prefix of FILE that has already
79321         been made, or -2 if there is a child doing the work.  Redo
79322         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79323         ".", and treat ".." specially since it might stray back into
79324         already-created areas.  Use a subprocess if necessary.  New arg
79325         WD; all users changed.  MAKE_DIR function should now return 1
79326         if it creates a directory that is not readable.  Return -2 if
79327         a child process is spun off.
79328         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79329         Adjust signature to match code.
79330         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79331         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79332         all users changed.
79333         * lib/savewd.c, lib/savewd.h: New files.
79334
79335 2006-09-15  Jim Meyering  <jim@meyering.net>
79336
79337         * modules/rename-dest-slash: New module.
79338         * MODULES.html.sh (posix_compat): Add it here.
79339
79340         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79341
79342 2006-09-15  Jim Meyering  <jim@meyering.net>
79343
79344         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79345         file.
79346
79347         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79348
79349 2006-09-15  Jim Meyering  <jim@meyering.net>
79350
79351         * lib/rename-dest-slash.c (has_trailing_slash): Use
79352         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79353         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79354         test before testing whether SRC is a directory.
79355         Suggestions from Bruno Haible.
79356
79357         Avoid a warning about an unused variable.
79358         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79359         into the #ifdef block where it's used.
79360
79361         * lib/rename-dest-slash.c: New file.
79362
79363 2006-09-14  Bruno Haible  <bruno@clisp.org>
79364
79365         * lib/allocsa.c: Include <config.h> unconditionally.
79366         * lib/asnprintf.c: Likewise.
79367         * lib/asprintf.c: Likewise.
79368         * lib/c-strcasecmp.c: Likewise.
79369         * lib/c-strcasestr.c: Likewise.
79370         * lib/c-strncasecmp.c: Likewise.
79371         * lib/c-strstr.c: Likewise.
79372         * lib/classpath.c: Likewise.
79373         * lib/clean-temp.c: Likewise.
79374         * lib/concatpath.c: Likewise.
79375         * lib/copy-file.c: Likewise.
79376         * lib/csharpcomp.c: Likewise.
79377         * lib/csharpexec.c: Likewise.
79378         * lib/execute.c: Likewise.
79379         * lib/fatal-signal.c: Likewise.
79380         * lib/findprog.c: Likewise.
79381         * lib/fwriteerror.c: Likewise.
79382         * lib/gl_array_list.c: Likewise.
79383         * lib/gl_array_oset.c: Likewise.
79384         * lib/gl_avltree_list.c: Likewise.
79385         * lib/gl_avltree_oset.c: Likewise.
79386         * lib/gl_avltreehash_list.c: Likewise.
79387         * lib/gl_carray_list.c: Likewise.
79388         * lib/gl_linked_list.c: Likewise.
79389         * lib/gl_linkedhash_list.c: Likewise.
79390         * lib/gl_list.c: Likewise.
79391         * lib/gl_oset.c: Likewise.
79392         * lib/gl_rbtree_list.c: Likewise.
79393         * lib/gl_rbtree_oset.c: Likewise.
79394         * lib/gl_rbtreehash_list.c: Likewise.
79395         * lib/imaxabs.c: Likewise.
79396         * lib/imaxdiv.c: Likewise.
79397         * lib/javacomp.c: Likewise.
79398         * lib/javaexec.c: Likewise.
79399         * lib/javaversion.c: Likewise.
79400         * lib/linebreak.c: Likewise.
79401         * lib/localcharset.c: Likewise.
79402         * lib/lock.c: Likewise.
79403         * lib/mbchar.c: Likewise.
79404         * lib/mbswidth.c: Likewise.
79405         * lib/mkdtemp.c: Likewise.
79406         * lib/pipe.c: Likewise.
79407         * lib/printf-args.c: Likewise.
79408         * lib/printf-parse.c: Likewise.
79409         * lib/progname.c: Likewise.
79410         * lib/progreloc.c: Likewise.
79411         * lib/readlink.c: Likewise.
79412         * lib/sh-quote.c: Likewise.
79413         * lib/stpcpy.c: Likewise.
79414         * lib/stpncpy.c: Likewise.
79415         * lib/strcasecmp.c: Likewise.
79416         * lib/strcasestr.c: Likewise.
79417         * lib/strcspn.c: Likewise.
79418         * lib/striconv.c: Likewise.
79419         * lib/strncasecmp.c: Likewise.
79420         * lib/strnlen1.c: Likewise.
79421         * lib/strstr.c: Likewise.
79422         * lib/strtok_r.c: Likewise.
79423         * lib/tls.c: Likewise.
79424         * lib/tmpdir.c: Likewise.
79425         * lib/unicodeio.c: Likewise.
79426         * lib/unsetenv.c: Likewise.
79427         * lib/vasnprintf.c: Likewise.
79428         * lib/vasprintf.c: Likewise.
79429         * lib/wait-process.c: Likewise.
79430         * lib/xallocsa.c: Likewise.
79431         * lib/xsetenv.c: Likewise.
79432         * lib/xstriconv.c: Likewise.
79433
79434 2006-09-13  Simon Josefsson  <jas@extundo.com>
79435
79436         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79437         that internally, suggested by Ralf Wildenhues
79438         <Ralf.Wildenhues@gmx.de>.
79439
79440 2006-09-13  Simon Josefsson  <jas@extundo.com>
79441
79442         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79443         @LIBOBJS@.
79444         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79445
79446 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79447
79448         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79449         longer worry about uses that don't define HAVE_CONFIG_H.
79450         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79451         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79452         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79453         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79454         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79455         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79456         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79457         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79458         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79459         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79460         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79461         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79462         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79463         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79464         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79465         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79466         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79467         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79468         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79469         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79470         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79471         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79472         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79473         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79474         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79475         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79476         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79477         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79478         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79479         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79480         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79481         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79482         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79483         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79484         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79485         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79486         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79487         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79488         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79489         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79490         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79491         Likewise.
79492
79493 2006-09-13  Eric Blake  <ebb9@byu.net>
79494
79495         * lib/getopt.c: Fix typo in last commit.
79496
79497 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79498
79499         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79500         dgettext.
79501
79502 2006-09-12  Jim Meyering  <jim@meyering.net>
79503
79504         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79505         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79506         Reported by Nelson H. F. Beebe.
79507
79508 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79509
79510         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79511         program_invocation_name and program_invocation_short_name are
79512         initialized.
79513         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79514         and program_invocation_short_name to argp.h, so they are visible
79515         to user programs.
79516         * lib/argp.h: Likewise
79517
79518 2006-09-10  Bruno Haible  <bruno@clisp.org>
79519
79520         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79521         m4/inttypes_h.m4, m4/uintmax_t.m4.
79522
79523 2006-09-10  Bruno Haible  <bruno@clisp.org>
79524
79525         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79526         gl_AC_TYPE_UINTMAX_T.
79527
79528 2006-09-10  Bruno Haible  <bruno@clisp.org>
79529
79530         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79531
79532 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79533
79534         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79535         convention.  Text proposed by Bruno Haible.
79536         (struct argp_option): Document the use of N_() wrappers.
79537
79538         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79539         '\v', and translate the two parts separately, instead of feeding
79540         the whole string to gettext.  This allows to exclude
79541         '\v' from the strings visible to the translator by writing doc
79542         strings as N_("..") "\v" N_("..").
79543
79544 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79545
79546         * config/srclist.txt: Undo latest change; the bug was fixed.
79547
79548 2006-09-09  Bruno Haible  <bruno@clisp.org>
79549
79550         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79551         assignments if building a library without libtool.
79552         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79553         in func_emit_lib_Makefile_am.
79554         (func_import): When building a static library libfoo.a, arrange to
79555         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79556         (func_create_testdir): Likewise.
79557         * modules/gc (configure.ac, Makefile.am): If building statically,
79558         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79559         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79560         * modules/striconv (configure.ac, Makefile.am): Likewise.
79561         Based on a suggestion by Ralf Wildenhues.
79562
79563 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79564
79565         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79566         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79567         Also:
79568
79569         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79570         Add year_2050_test to catch glibc bug 2821
79571         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79572
79573         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79574         Prefer #ifdef to #if.
79575
79576         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79577         Return from 'main' instead of calling 'exit'.
79578
79579 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79582         returned the maximum time_t value rather than (time_t) -1.
79583         Problem originally reported by William Bardwell
79584         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79585
79586         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79587         Moved to here ...
79588         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79589         ... from here.
79590
79591 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79594         2821 is fixed.
79595
79596 2006-09-08  Jim Meyering  <jim@meyering.net>
79597
79598         Don't make generated files read-only.  That would bother too many
79599         people.  However, do retain the ability to work when targets are
79600         read-only: remove the destination and temporary files before writing
79601         them (when generated via sed or echo), or by using the -f option for
79602         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79603         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79604         * modules/byteswap, modules/configmake, modules/fcntl:
79605         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79606         * modules/localcharset, modules/netinet_in, modules/poll:
79607         * modules/stdbool, modules/stdint, modules/sys_select:
79608         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79609
79610 2006-09-08  Jim Meyering  <jim@meyering.net>
79611
79612         Avoid new build failure on FreeBSD 6.0.
79613         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79614         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79615         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79616
79617 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79618
79619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79620
79621 2006-09-07  Jim Meyering  <jim@meyering.net>
79622
79623         Fix global typo in last change: use chmod u-w, not chmod u-x.
79624         Spotted by Paul Eggert and Bruce Korb.
79625         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79626         * modules/byteswap, modules/configmake, modules/fcntl:
79627         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79628         * modules/localcharset, modules/netinet_in, modules/poll:
79629         * modules/stdbool, modules/stdint, modules/sys_select:
79630         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79631
79632 2006-09-06  Jim Meyering  <jim@meyering.net>
79633
79634         Make generated files be read-only.
79635         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79636         Ensure that each generated file is now read-only.
79637         * modules/argz: Likewise.
79638         * modules/arpa_inet: Likewise.
79639         * modules/byteswap: Likewise.
79640         * modules/configmake: Likewise.
79641         * modules/fcntl: Likewise.
79642         * modules/fnmatch: Likewise.
79643         * modules/getopt: Likewise.
79644         * modules/glob: Likewise.
79645         * modules/inttypes: Likewise.
79646         * modules/netinet_in: Likewise.
79647         * modules/poll: Likewise.
79648         * modules/stdbool: Likewise.
79649         * modules/stdint: Likewise.
79650         * modules/sys_select: Likewise.
79651         * modules/sys_socket: Likewise.
79652         * modules/sys_stat: Likewise.
79653         * modules/sysexits: Likewise.
79654         * modules/localcharset: Same as above, but continue using temporary
79655         file named "t-$@" (why different?) rather than the "$@-t" used
79656         everywhere else.
79657
79658         * modules/sysexits (Makefile.am): Replace literal occurrences
79659         of "sysexit.h" more readable, and more consistent, "$@".
79660
79661 2006-09-06  Bruno Haible  <bruno@clisp.org>
79662
79663         * modules/striconv: New file.
79664         * modules/xstriconv: New file.
79665         * MODULES.html.sh (Internationalization functions): Add striconv,
79666         xstriconv.
79667
79668 2006-09-06  Bruno Haible  <bruno@clisp.org>
79669
79670         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79671         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79672         not using libtool correctly.
79673
79674 2006-09-06  Bruno Haible  <bruno@clisp.org>
79675
79676         * lib/striconv.h: New file.
79677         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79678         iconvstring.c.
79679         * lib/xstriconv.h: New file.
79680         * lib/xstriconv.c: New file.
79681
79682 2006-09-06  Bruno Haible  <bruno@clisp.org>
79683
79684         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79685         lib_..._LDFLAGS.
79686
79687 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79688
79689         * lib/argz_.h: Sync from Libtool.
79690
79691         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79692                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79693
79694         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79695
79696 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79697
79698         * modules/trim: New file.
79699
79700 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79701
79702         * lib/trim.h: New file.
79703         * lib/trim.c: New file.
79704
79705 2006-09-05  Bruno Haible  <bruno@clisp.org>
79706
79707         * MODULES.html.sh (String handling): Add trim.
79708
79709 2006-09-04  Karl Berry  <karl@gnu.org>
79710
79711         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79712         until next release.
79713
79714 2006-09-03  Bruno Haible  <bruno@clisp.org>
79715
79716         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79717         correctly.
79718
79719 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79722         not gl_GETLOADAVG.  Omit unneeded semicolons.
79723         Problems reported by Ralf Wildenhues in
79724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79725         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79726         at the end, which is the usual gnulib style.
79727
79728         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79729         of doing all the work ourselves.
79730         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79731         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79732
79733 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79734
79735         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79736         Problem reported by Ralf Wildenhues in
79737         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79738
79739         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79740         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79741
79742 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79743
79744         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79745         yesterday's patch by changing test -n to test -z.
79746
79747 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79750         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79751         the former is now obsolescent.
79752
79753         * modules/chdir-long (Depends-on): Add fcntl.
79754
79755 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79758         obsolescent, and programs should use gnulib instead.
79759         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79760         but with prefixes changed.
79761
79762 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79763
79764         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79765         or stdbool.h, because they might not exist while configuring.
79766
79767         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79768         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79769         does that for us.
79770         (O_DIRECTORY): Remove.
79771
79772 2006-08-31  Eric Blake  <ebb9@byu.net>
79773
79774         * gnulib-tool: Don't let emacs change spaces to TAB.
79775
79776 2006-08-31  Bruno Haible  <bruno@clisp.org>
79777
79778         * gnulib-tool: When calling func_import more than once, do it in a
79779         subshell.
79780         Reported by Eric Blake <ebb9@byu.net>.
79781
79782 2006-08-31  Bruno Haible  <bruno@clisp.org>
79783
79784         * gnulib-tool (nl): Remove variable.
79785         (sed_transform_lib_file): Use more robust test for config-h module.
79786         (func_import): Fix typo in 2006-08-25 patch.
79787
79788 2006-08-31  Bruno Haible  <bruno@clisp.org>
79789
79790         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79791         specified, augment Makefile.am variables instead of assigning them.
79792
79793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79794
79795         Work around a bug in both the Linux and SunOS 64-bit kernels:
79796         nanosleep mishandles sleeps for longer than 2**31 seconds.
79797         Problem reported by Frank v Waveren in
79798         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79800         Check for nanosleep bug.
79801         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79802
79803 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79804
79805         Work around a bug in both the Linux and SunOS 64-bit kernels:
79806         nanosleep mishandles sleeps for longer than 2**31 seconds.
79807         Problem reported by Frank v Waveren in
79808         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79809         * lib/nanosleep.c (BILLION): New constant.
79810         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79811         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79812         implementation.
79813
79814 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * modules/nanosleep (Depends-on): Add gettime.
79817
79818 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79819         and Simon Josefsson  <jas@extundo.com>
79820         and Oskar Liljeblad  <oskar@osk.mine.nu>
79821
79822         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79823         * gnulib-tool (func_import): New license type 'unmodifiable license
79824         text'.
79825         * modules/fdl: Use it.  Longer description.
79826         * module/gpl, module/lgpl: New files.
79827
79828 2006-08-30  Jim Meyering  <jim@meyering.net>
79829
79830         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79831         shadowing the parameter.
79832
79833 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79834
79835         Sync from Libtool:
79836
79837         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79838
79839         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79840         sharing with gnulib.  Report by Eric Blake.
79841
79842 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79843
79844         * modules/isapipe: New file.
79845         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79846
79847 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * modules/configmake (Makefile.am): Add a comment, and omit
79850         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79851         by Bruno Haible.
79852
79853 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * m4/isapipe.m4: New file.
79856
79857 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * lib/isapipe.c, lib/isapipe.h: New files.
79860
79861 2006-08-29  Jim Meyering  <jim@meyering.net>
79862
79863         * modules/configmake (Makefile.am): Make configmake.h depend on
79864         Makefile.  Otherwise, a stale configmake.h could hang around.
79865
79866 2006-08-29  Eric Blake  <ebb9@byu.net>
79867
79868         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79869         resolution of upstream bug 3044.
79870
79871 2006-08-29  Bruno Haible  <bruno@clisp.org>
79872
79873         * modules/localcharset (Depends-on): Add configmake.
79874         (Makefile.am): Remove setting of LIBDIR through DEFS.
79875
79876 2006-08-29  Bruno Haible  <bruno@clisp.org>
79877
79878         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79879         defined.
79880
79881 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * modules/fcntl: New file.
79884         * modules/chdir-safer (Depends-on): Add fcntl.
79885         * modules/fts: Likewise.
79886         * modules/mkdir-p: Likewise.
79887
79888         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79889         This undoes the most recent change, since we're now addressing the
79890         problem in a different way.
79891
79892         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79893         into output, since the output might be called Makefile.am even
79894         if $makefile_name is something different.
79895         (func_import): Use $makefile_am rather than
79896         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79897         empty.
79898
79899         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79900
79901 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79904         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79905         recent change to stdint.m4, since we're now addressing the problem in a
79906         different way.
79907
79908 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * m4/fcntl_h.m4: New file.
79911
79912 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         * lib/fcntl_.h: New file.
79915         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79916         the fcntl module.
79917         * lib/dirchownmod.c: Likewise.
79918         * lib/fts.c: Likewise.
79919
79920         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79921         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79922         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79923         just before including <inttypes.h>, to avoid circular inclusion.
79924
79925 2006-08-28  Jim Meyering  <jim@meyering.net>
79926
79927         * doc/visibility.texi: Actually read and correct the grammar of the
79928         sentence affected by yesterday's change.
79929
79930 2006-08-28  Eric Blake  <ebb9@byu.net>
79931
79932         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79933         needs wrapper.
79934
79935 2006-08-28  Eric Blake  <ebb9@byu.net>
79936
79937         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79938
79939 2006-08-28  Eric Blake  <ebb9@byu.net>
79940
79941         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79942
79943 2006-08-28  Bruno Haible  <bruno@clisp.org>
79944
79945         * modules/c-strstr: New file, from GNU gettext.
79946         * MODULES.html.sh (String handling): Add c-strstr.
79947
79948 2006-08-28  Bruno Haible  <bruno@clisp.org>
79949
79950         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79951         macros.
79952         Reported by Eric Blake.
79953
79954 2006-08-28  Bruno Haible  <bruno@clisp.org>
79955
79956         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79957         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79958         * lib/vasprintf.c: Include errno.h, limits.h.
79959         (EOVERFLOW): New fallback definition.
79960         (vasprintf): Test here whether the string length is > INT_MAX.
79961         * lib/vsnprintf.c: Include errno.h, limits.h.
79962         (EOVERFLOW): New fallback definition.
79963         (vsnprintf): Fix bug when generated string was too long for the buffer.
79964         Test here whether the string length is > INT_MAX.
79965
79966 2006-08-28  Bruno Haible  <bruno@clisp.org>
79967
79968         * lib/inttypes_.h (SCNX*): Remove definitions.
79969         Reported by Eric Blake.
79970
79971 2006-08-28  Bruno Haible  <bruno@clisp.org>
79972
79973         * lib/c-strstr.h: New file, from GNU gettext.
79974         * lib/c-strstr.c: New file, from GNU gettext.
79975
79976 2006-08-28  Bruno Haible  <bruno@clisp.org>
79977
79978         * gnulib-tool: Reorder some statements.
79979
79980 2006-08-28  Bruno Haible  <bruno@clisp.org>
79981
79982         * gnulib-tool: New option --makefile-name.
79983         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79984         $makefile_name.
79985         (func_import): Write $makefile_name to the cache file, and read it from
79986         there unless explicitly specified. Use $makefile_name as file name
79987         instead of Makefile.am. Adjust the recommendations accordingly.
79988
79989 2006-08-28  Bruno Haible  <bruno@clisp.org>
79990
79991         * gnulib-tool (func_verify_module): Check against misapplying patch.
79992
79993 2006-08-28  Bruno Haible  <bruno@clisp.org>
79994
79995         * gnulib-tool (func_relativize, func_relconcat): New functions.
79996         Give an error if --local-dir is given with --update.
79997         Remove trailing slashes from $local_gnulib_dir.
79998         (func_import): Store the relativized $local_gnulib_dir in
79999         gnulib-cache.m4, and read it from there if not specified explicitly.
80000
80001 2006-08-28  Bruno Haible  <bruno@clisp.org>
80002
80003         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80004         is the current directory. Respect also $local_gnulib_dir.
80005
80006 2006-08-28  Bruno Haible  <bruno@clisp.org>
80007             Simon Josefsson  <jas@extundo.com>
80008
80009         BeOS portability.
80010         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80011
80012 2006-08-27  Jim Meyering  <jim@meyering.net>
80013
80014         * doc/visibility.texi: Remove duplicate word: "pointer".
80015
80016 2006-08-26  Bruno Haible  <bruno@clisp.org>
80017
80018         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80019         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80020         (Makefile.am): Create inttypes.h from inttypes_.h.
80021         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80022
80023         * modules/imaxabs: New file.
80024
80025         * modules/imaxdiv: New file.
80026
80027 2006-08-26  Bruno Haible  <bruno@clisp.org>
80028
80029         * m4/inttypes.m4: New file.
80030         * m4/_inttypes_h.m4: Remove file.
80031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80032         PRI_MACROS_BROKEN.
80033         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80034
80035         * m4/imaxabs.m4: New file.
80036
80037         * m4/imaxdiv.m4: New file.
80038
80039 2006-08-26  Bruno Haible  <bruno@clisp.org>
80040
80041         * lib/inttypes_.h: New file.
80042         * lib/inttypes.h: Remove file.
80043         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80044
80045         * lib/imaxabs.c: New file.
80046
80047         * lib/imaxdiv.c: New file.
80048
80049 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         New config-h module, so that "make" output needn't be cluttered
80052         by -DHAVE_CONFIG_H.
80053         * MODULES.html.sh (Support for building libraries and executables):
80054         Add config-h.
80055         * modules/config-h: New file.
80056         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80057         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80058         the config-h module is used.
80059
80060         New configmake module, so that "make" output needn't be cluttered
80061         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80062         * MODULES.html.sh (Support for building libraries and executables):
80063         Add configmake.
80064         * modules/configmake: New file.
80065
80066 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * m4/config-h.m4: New file.
80069
80070 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * config/srclist.txt: Add elisp-comp.
80073
80074 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         * MODULES.html.sh (Support for building libraries and executables):
80077         Add elisp-comp.
80078         * build-aux/elisp-comp: New file.
80079         * modules/elisp-comp: New file.
80080
80081 2006-08-24  Bruno Haible  <bruno@clisp.org>
80082
80083         * gnulib-tool (func_create_testdir): Use non-default values of
80084         sourcebase and m4base.
80085
80086 2006-08-24  Bruno Haible  <bruno@clisp.org>
80087
80088         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80089         HTML structure.
80090
80091 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         * modules/openat (Depends-on): Add lchown.
80094
80095 2006-08-23  Bruno Haible  <bruno@clisp.org>
80096
80097         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80098         of gl_LOCK_EARLY instead of gl_LOCK.
80099
80100 2006-08-23  Bruno Haible  <bruno@clisp.org>
80101
80102         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80103         on OSF/1 to no.
80104         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80105
80106 2006-08-23  Bruno Haible  <bruno@clisp.org>
80107
80108         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80109         as unusable.
80110
80111         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80112         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80113         (gl_LOCK): New macro.
80114
80115 2006-08-22  Simon Josefsson  <jas@extundo.com>
80116
80117         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80118         to md5 module.
80119
80120 2006-08-22  Simon Josefsson  <jas@extundo.com>
80121
80122         * MODULES.html.sh: Add "Support for maintaining and release
80123         projects".
80124
80125         * build-aux/gnupload: New file, from coreutils.
80126
80127 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80128
80129         Avoid the need for AC_LIBSOURCES in m4 macros.
80130         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80131         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80132         * modules/check-version (EXTRA_DIST): Add check-version.h.
80133         * modules/crc (EXTRA_DIST): Add crc.h.
80134         * modules/des (EXTRA_DIST): Add des.h.
80135         * modules/gc (EXTRA_DIST): Add gc.h.
80136         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80137         * modules/getline (EXTRA_DIST): Add getline.h.
80138         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80139         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80140         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80141         * modules/md2 (EXTRA_DIST): Add md2.h.
80142         * modules/md4 (EXTRA_DIST): Add md4.h.
80143         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80144         * modules/read-file (EXTRA_DIST): Add read-file.h.
80145         * modules/readline (EXTRA_DIST): Add readline.h.
80146         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80147         rijndael-api-fst.h.
80148
80149 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         * m4/rijndael.m4 (gl_ARCFOUR):
80152         * m4/arctwo.m4 (gl_ARCTWO):
80153         * m4/check-version.m4 (gl_CHECK_VERSION):
80154         * m4/crc.m4 (gl_CRC):
80155         * m4/des.m4 (gl_DES):
80156         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80157         * m4/gc.m4 (gl_GC):
80158         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80159         * m4/getline.m4 (gl_FUNC_GETLINE):
80160         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80161         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80162         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80163         * m4/md2.m4 (gl_MD2):
80164         * m4/md4.m4 (gl_MD4):
80165         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80166         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80167         * m4/readline.m4 (gl_FUNC_READLINE):
80168         * m4/rijndael.m4 (gl_RIJNDAEL):
80169         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80170         to get the necessary .h files and whatnot.
80171
80172 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80175         gnulib rather than the other way around.
80176         * config/srclistvars.sh (COREUTILS): Remove.
80177
80178 2006-08-22  Jim Meyering  <jim@meyering.net>
80179
80180         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80181
80182         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80183
80184 2006-08-22  Eric Blake  <ebb9@byu.net>
80185
80186         * modules/regexprops-generic: New file.
80187         * MODULES.html.sh (Support for building documentation): List it.
80188
80189 2006-08-22  Eric Blake  <ebb9@byu.net>
80190
80191         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80192         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80193         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80194         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80195
80196 2006-08-22  Bruno Haible  <bruno@clisp.org>
80197
80198         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80199         and lib_LTLIBRARIES like the other lib_* variables.
80200
80201 2006-08-22  Bruno Haible  <bruno@clisp.org>
80202
80203         * build-aux/x-to-1.in: New file, from GNU gettext.
80204
80205 2006-08-22  Bruno Haible  <bruno@clisp.org>
80206
80207         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80208         <utmpx.h> exists.
80209
80210 2006-08-22  Bruno Haible  <bruno@clisp.org>
80211
80212         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80213         <utmpx.h> exists.
80214
80215 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         BeOS portability.
80218         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80219         exist.
80220         Problem reported by Bruno Haible.
80221
80222 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         Avoid the need for AC_LIBSOURCES in m4 macros.
80225         * modules/acl (EXTRA_DIST): Add acl.h.
80226         * modules/argmatch (Files): Add m4/argmatch.m4.
80227         (configure.ac): Add gl_ARGMATCH.
80228         (EXTRA_DIST): Renamed from lib_SOURCES, for
80229         consistency with the other modules.  Remove argmatch.c.
80230         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80231         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80232         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80233         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80234         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80235         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80236         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80237         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80238         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80239         * modules/closeout (EXTRA_DIST): Add closeout.h.
80240         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80241         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80242         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80243         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80244         dirname.h; remove basename.c and stripslash.c.
80245         * modules/exclude (EXTRA_DIST): Add exclude.h.
80246         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80247         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80248         * modules/file-type (EXTRA_DIST): Add file-type.h.
80249         * modules/filemode (EXTRA_DIST): Add filemode.h.
80250         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80251         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80252         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80253         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80254         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80255         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80256         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80257         * modules/getdate (EXTRA_DIST): Add getdate.c.
80258         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80259         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80260         * modules/getpass (EXTRA_DIST): Add getpass.h.
80261         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80262         * modules/group-member (EXTRA_DIST): Add group-member.h.
80263         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80264         * modules/hash (EXTRA_DIST): Add hash.h.
80265         * modules/human (EXTRA_DIST): Add human.h.
80266         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80267         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80268         * modules/lchown (EXTRA_DIST): Add lchown.h.
80269         * modules/long-options (EXTRA_DIST): Add long-options.h.
80270         * modules/lstat (EXTRA_DIST): Add lstat.h.
80271         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80272         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80273         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80274         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80275         * modules/memxor (EXTRA_DIST): Add memxor.h.
80276         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80277         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80278         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80279         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80280         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80281         * modules/physmem (EXTRA_DIST): Add physmem.h.
80282         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80283         * modules/posixver (EXTRA_DIST): Add posixver.h.
80284         * modules/quote (EXTRA_DIST): Add quote.h.
80285         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80286         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80287         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80288         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80289         regex_internal.h regexec.c.
80290         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80291         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80292         * modules/same (EXTRA_DIST): Add same.h.
80293         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80294         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80295         * modules/savedir (EXTRA_DIST): Add savedir.h.
80296         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80297         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80298         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80299         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80300         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80301         * modules/strdup (EXTRA_DIST): Add strdup.h.
80302         * modules/strftime (EXTRA_DIST): Add strftime.h.
80303         * modules/strndup (EXTRA_DIST): Add strndup.h.
80304         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80305         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80306         * modules/time_r (EXTRA_DIST): Add time_r.h.
80307         * modules/timespec (EXTRA_DIST): Add timespec.h.
80308         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80309         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80310         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80311         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80312         * modules/userspec (EXTRA_DIST): Add userspec.h.
80313         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80314         * modules/utimens (EXTRA_DIST): Add utimens.h.
80315         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80316         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80317         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80318         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80319         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80320         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80321         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80322         * modules/yesno (EXTRA_DIST): Add yesno.h.
80323
80324 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80325
80326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80327
80328         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80329         * m4/dev-ino.m4, same-inode.m4: Remove.
80330
80331         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80332         * m4/acl.m4 (AC_FUNC_ACL):
80333         * m4/backupfile.m4 (gl_BACKUPFILE):
80334         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80335         * m4/canon-host.m4 (gl_CANON_HOST):
80336         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80338         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80339         * m4/cloexec.m4 (gl_CLOEXEC):
80340         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80341         * m4/closeout.m4 (gl_CLOSEOUT):
80342         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80343         * m4/dirname.m4 (gl_DIRNAME):
80344         * m4/exclude.m4 (gl_EXCLUDE):
80345         * m4/exitfail.m4 (gl_EXITFAIL):
80346         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80347         * m4/file-type.m4 (gl_FILE_TYPE):
80348         * m4/filemode.m4 (gl_FILEMODE):
80349         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80350         * m4/fpending.m4 (gl_FUNC_FPENDING):
80351         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80352         * m4/fts.m4 (gl_FUNC_FTS):
80353         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80354         * m4/getdate.m4 (gl_GETDATE):
80355         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80356         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80357         * m4/getpass.m4 (gl_FUNC_GETPASS):
80358         * m4/gettime.m4 (gl_GETTIME):
80359         * m4/getugroups.m4 (gl_GETUGROUPS):
80360         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80361         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80362         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80363         * m4/hash.m4 (gl_HASH):
80364         * m4/idcache.m4 (gl_IDCACHE):
80365         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80366         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80367         * m4/long-options.m4 (gl_LONG_OPTIONS):
80368         * m4/lstat.m4 (gl_FUNC_LSTAT):
80369         * m4/md5.m4 (gl_MD5):
80370         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80371         * m4/memcoll.m4 (gl_MEMCOLL):
80372         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80373         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80374         * m4/memxor.m4 (gl_MEMXOR):
80375         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80376         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80377         * m4/modechange.m4 (gl_MODECHANGE):
80378         * m4/mountlist.m4 (gl_MOUNTLIST):
80379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80380         * m4/openat.m4 (gl_FUNC_OPENAT):
80381         * m4/pathmax.m4 (gl_PATHMAX):
80382         * m4/physmem.m4 (gl_PHYSMEM):
80383         * m4/posixtm.m4 (gl_POSIXTM):
80384         * m4/posixver.m4 (gl_POSIXVER):
80385         * m4/quote.m4 (gl_QUOTE):
80386         * m4/quotearg.m4 (gl_QUOTEARG):
80387         * m4/readtokens.m4 (gl_READTOKENS):
80388         * m4/readutmp.m4 (gl_READUTMP):
80389         * m4/regex.m4 (gl_REGEX):
80390         * m4/safe-read.m4 (gl_SAFE_READ):
80391         * m4/safe-write.m4 (gl_SAFE_WRITE):
80392         * m4/same.m4 (gl_SAME):
80393         * m4/save-cwd.m4 (gl_SAVE_CWD):
80394         * m4/savedir.m4 (gl_SAVEDIR):
80395         * m4/settime.m4 (gl_SETTIME):
80396         * m4/sha1.m4 (gl_SHA1):
80397         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80398         * m4/stat-macros.m4 (gl_STAT_MACROS):
80399         * m4/stat-time.m4 (gl_STAT_TIME):
80400         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80401         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80402         * m4/strdup.m4 (gl_FUNC_STRDUP):
80403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80404         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80405         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80406         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80407         * m4/time_r.m4 (gl_TIME_R):
80408         * m4/timespec.m4 (gl_TIMESPEC):
80409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80410         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80411         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80412         * m4/userspec.m4 (gl_USERSPEC):
80413         * m4/utimecmp.m4 (gl_UTIMECMP):
80414         * m4/utimens.m4 (gl_UTIMENS):
80415         * m4/xalloc.m4 (gl_XALLOC):
80416         * m4/xgetcwd.m4 (gl_XGETCWD):
80417         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80418         * m4/xreadlink.m4 (gl_XREADLINK):
80419         * m4/xstrtod.m4 (gl_XSTRTOD):
80420         * m4/yesno.m4 (gl_YESNO):
80421         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80422         to get the necessary .h files and whatnot.
80423
80424 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80425             Bruno Haible  <bruno@clisp.org>
80426
80427         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80428         /bin/sh understanding of '!' conditional negation.
80429
80430 2006-08-21  Jim Meyering  <jim@meyering.net>
80431
80432         * modules/openat (Depends-on): Really alphabetize.
80433
80434         * modules/acl (Depends-on): Add error and quote.
80435
80436         * check-module (find_included_lib_files): Add at-func.c to the
80437         ok-to-include-more-than-once white list.
80438
80439         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80440
80441 2006-08-21  Bruno Haible  <bruno@clisp.org>
80442
80443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80444         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80445         Reported by Martin Lambers <marlam@marlam.de>.
80446
80447 2006-08-21  Bruno Haible  <bruno@clisp.org>
80448
80449         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80450         specify an installation location, don't emit a noinst_LIBRARIES or
80451         noinst_LTLIBRARIES assignment.
80452
80453 2006-08-21  Bruno Haible  <bruno@clisp.org>
80454
80455         BeOS portability.
80456         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80457         BeOS has mbrtowc() but no <wctype.h>.
80458
80459 2006-08-21  Bruno Haible  <bruno@clisp.org>
80460
80461         BeOS portability.
80462         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80463         exist.
80464
80465 2006-08-21  Bruno Haible  <bruno@clisp.org>
80466
80467         BeOS portability.
80468         * lib/mbchar.h: Include <wctype.h> only if it exists.
80469
80470 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Remove files that are no longer needed by their respective modules.
80473         * m4/obstack.m4: Remove.
80474         * m4/strerror_r.m4: Remove.
80475         * m4/uint32_t.m4: Remove.
80476         * m4/uintptr_t.m4: Remove.
80477         * m4/ullong_max.m4: Remove.
80478         * m4/xstrtoimax.m4: Remove.
80479         * m4/xstrtoumax.m4: Remove.
80480
80481         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80482         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80483         dependencies now capture this.
80484
80485         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80486         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80487         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80488         * m4/human.m4 (gl_HUMAN): Likewise.
80489         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80490         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80491
80492         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80493
80494         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80495         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80496         stdint.
80497         * m4/human.m4 (gl_HUMAN): Likewise.
80498         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80499         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80500         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80501         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80502         * m4/xstrtol (gl_XSTRTOL): Likewise.
80503
80504         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80505         AC_TYPE_LONG_LONG_INT.
80506         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80507         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80508         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80509         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80510
80511         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80512         on stdbool.
80513
80514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80515         (gl_PREREQ_XSTRTOUL): Remove.
80516
80517         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80518
80519         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80520         mode.
80521
80522 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         Add and change modules to make it easier for coreutils to use
80525         gnulib-tool.
80526         * modules/backupfile (Files): Remove m4/d-ino.m4.
80527         (Depends-on): Add d-ino.
80528         * modules/cycle-check (Depends-on): Add stdint.
80529         (lib_SOURCES): Add cycle-check.h.
80530         * modules/d-ino: New module.
80531         * modules/d-type: New module.
80532         * modules/error (Files): Remove m4/strerror_r.m4.
80533         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80534         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80535         m4/inttypes_h.m4, m4/uintmax_t.m4.
80536         (Depends-on): Add stdint.
80537         (lib_SOURCES): Add fsusage.h.
80538         * modules/getcwd (Files): Remove d-ino.m4.
80539         (Depends-on): Add d-ino.
80540         * modules/getndelim2 (Depends-on): Add stdint.
80541         * modules/glob (Files): Remove m4/d-type.m4.
80542         (Depends-on): Add d-type.
80543         * modules/host-os: New module.
80544         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80545         m4/inttypes_h.m4, m4/uintmax_t.m4.
80546         * Depends-on: Add stdint.
80547         (lib_SOURCES): Add human.h.
80548         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80549         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80550         m4/uintmax_t.m4, m4/ulonglong.m4.
80551         (Depends-on): Add stdint.
80552         (EXTRA_DIST): Add inttostr.h.
80553         * modules/lchmod: New module.
80554         * modules/link-follow: New module.
80555         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80556         (Depends-on): Add lchmod.
80557         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80558         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80559         (Depends-on): Add stdint.
80560         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80561         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80562         (Depends-on): Add stdint.
80563         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80564         * modules/perl: New module.
80565         * modules/regex (Depends-on): Add stdint.
80566         * modules/rmdir-errno: New module.
80567         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80568         m4/intmax_t.m4.
80569         (Depends-on): Add stdint.
80570         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80571         m4/uintmax_t.m4.
80572         (Depends-on): Add stdint.
80573         * modules/unlink-busy: New module.
80574         * modules/utimecmp (Depends-on): Add stdint.
80575         * modules/uptime: New module.
80576         * modules/winsz-ioctl: New module.
80577         * modules/winsz-termios: New module.
80578         * modules/xnanosleep (Depends-on): Add nanosleep.
80579         * modules/ullong_max: Remove.
80580         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80581         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80582         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80583         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80584         (Depends-on): Add inttypes.
80585         (lib_SOURCES): Add xstrtol.h.
80586         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80587         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80588         * MODULES.html.sh: Move 'assert' into the assert section.
80589         Move 'dummy' into the linking section.
80590         Remove ullong_max.
80591         Add section for compatibility checks for POSIX:2001 functions,
80592         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80593         winsz-ioctl, and winsz-termios into it.
80594         Add lchmod.
80595         Add top-level Misc section and put host-os, perl, and uptime
80596         into it.
80597
80598 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80601         now assume the stdint module.  Do not include inttypes.h.
80602         * lib/fsusage.h: Likewise.
80603         * lib/getndelim2.c: Likewise.
80604         * lib/human.h: Likewise.
80605         * lib/inttostr.h: Likewise.
80606         * lib/obstack.c: Likewise.
80607         * lib/regex_internal.h: Likewise.
80608         * lib/tempname.c: Likewise.
80609         * lib/utimecmp.c: Likewise.
80610         * lib/xstrtol.h: Likewise.
80611
80612         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80613
80614         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80615         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80616         * lib/xtime.h: Likewise.
80617
80618 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80619
80620         * modules/openat (Files): Add lib/fchmodat.c.
80621         Fixes problem reported by Jay Youngman.
80622
80623 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80624
80625         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80626         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80627
80628 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80629             Bruno Haible  <bruno@clisp.org>
80630
80631         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80632         and is a script that invokes bison. Tighten the code. Add comments.
80633
80634 2006-08-18  Jim Meyering  <jim@meyering.net>
80635
80636         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80637         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80638         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80639         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80640
80641 2006-08-18  Bruno Haible  <bruno@clisp.org>
80642
80643         * modules/bison-i18n: New file.
80644         * MODULES.html.sh (Internationalization functions): Add it.
80645
80646 2006-08-18  Bruno Haible  <bruno@clisp.org>
80647
80648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80649         sys/statvfs.h. When getmntinfo was found, check its declaration and
80650         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80651
80652 2006-08-18  Bruno Haible  <bruno@clisp.org>
80653
80654         * m4/bison-i18n.m4: New file, from bison.
80655
80656 2006-08-18  Bruno Haible  <bruno@clisp.org>
80657
80658         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80659         (ME_DUMMY): Treat "kernfs" as a dummy.
80660         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80661
80662 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         Update from coreutils.
80665
80666         2006-08-15  Jim Meyering  <jim@meyering.net>
80667
80668         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80669
80670         2006-01-17  Jim Meyering  <jim@meyering.net>
80671
80672         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80673
80674         2006-01-11  Jim Meyering  <jim@meyering.net>
80675
80676         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80677         Check for the lchmod function.
80678
80679 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         Update from coreutils.
80682
80683         * lib/__fpending.h: Add copyright notice.
80684         * lib/fprintftime.h: Likewise.
80685         * lib/savedir.c: Use (C) in copyright notice.
80686         * lib/savedir.h: Likewise.
80687
80688         2006-08-15  Jim Meyering  <jim@meyering.net>
80689
80690         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80691         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80692         in support of the EXPECTED_ERRNO macro.
80693         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80694         definitions.  Instead, define the appropriate symbols and include
80695         "at-func.c".
80696         * lib/mkdirat.c (mkdirat): Likewise.
80697         * lib/fchmodat.c (fchmodat): Likewise.
80698         (ENOSYS): Remove definition.
80699         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80700         it.  Don't include "unistd--.h" -- it wasn't ever used.
80701
80702         2006-01-17  Jim Meyering  <jim@meyering.net>
80703
80704         Rewrite fts.c not to change the current working directory,
80705         by using openat, fstatat, fdopendir, etc..
80706
80707         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80708         (HAVE_OPENAT_SUPPORT): Define.
80709         [_LIBC] (fchdir): Don't undef or define; no longer used.
80710         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80711         Now, this `function' always succeeds, and consumes its file descriptor
80712         parameter -- so callers must not close such FDs.  Update callers.
80713         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80714         (diropen): Add parameter, SP.  Adjust all callers.
80715         Implement using diropen_fd, rather than open.
80716         (fts_open): Initialize new member, fts_cwd_fd.
80717         Remove fts_rft-setting code.
80718         (fts_close): Close fts_cwd_fd, if necessary.
80719         (__opendir2): Define in terms of opendir or opendirat,
80720         depending on whether the FST_NOCHDIR flag is set.
80721         (fts_build): Since fts_safe_changedir consumes its FD, and since
80722         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80723         and close the dup'd file descriptor upon failure.
80724         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80725         (fts_safe_changedir): Tweak semantics to reflect that this function
80726         now calls cwd_advance_fd and hence consumes its FD argument.
80727         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80728         [struct FTS] (fts_rft): Remove now-unused member.
80729         [struct FTS] (fts_cycle.state): Improve comment.
80730
80731         * lib/openat.c (openat_needs_fchdir): New function.
80732         * lib/openat.h (openat_needs_fchdir): Declare it.
80733
80734 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80737         Problem and fix reported by Pádraig Brady in
80738         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80739
80740 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80741
80742         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80743
80744 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80745
80746         * lib/memcoll.c (memcoll): Optimize for the common case where the
80747         arguments are bytewise equal.
80748
80749 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80750
80751         * doc/regexprops-generic.texi: Add a copyright notice.
80752
80753 2006-08-15  Bruno Haible  <bruno@clisp.org>
80754
80755         * modules/tmpdir (License): Change to LGPL.
80756
80757 2006-08-15  Bruno Haible  <bruno@clisp.org>
80758
80759         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80760         module.
80761
80762 2006-08-14  Simon Josefsson  <jas@extundo.com>
80763
80764         * config/srclist.txt: Add gnupload.
80765
80766 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         Change copyright notice from LGPL 2 to GPL 2, since that's the
80769         standard form used in the gnulib repository.
80770         * tests/test-lock.c: Likewise.
80771         * tests/test-stdint.c: Likewise.
80772         * tests/test-tls.c: Likewise.
80773
80774         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80775         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80776         Add copyright notice.
80777
80778         * check-module: Add copyright notice.  Output a copyright
80779         notice if "--version" is specified.
80780         * modules/COPYING: New file.
80781         * tests/test-getaddrinfo.c: Add copyright notice.
80782         * tests/test-verify.c: Likewise.
80783
80784 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         Change copyright notice from LGPL 2 to GPL 2, since that's the
80787         standard form used in the gnulib repository.
80788         * lib/lock.c: LGPL -> GPL.
80789         * lib/lock.h: Likewise.
80790         * lib/strnlen1.c: Likewise.
80791         * lib/strnlen1.h: Likewise.
80792         * lib/tls.c: Likewise.
80793         * lib/tls.h: Likewise.
80794         * lib/tmpdir.c: Likewise.
80795
80796         * lib/TODO: Remove; this belongs only in coreutils.
80797
80798 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80799
80800         Add copyright notices to long-enough files that lack them, since
80801         otherwise the files aren't clearly free.  Use the same notice that
80802         getdate.texi already uses.
80803         * doc/alloca-opt.texi: Add copyright notice.
80804         * doc/alloca.texi: Likewise.
80805         * doc/ctime.texi: Likewise.
80806         * doc/functions.texi: Likewise.
80807         * doc/gcd.texi: Likewise.
80808         * doc/gnulib-tool.texi: Likewise.
80809         * doc/inet_ntoa.texi: Likewise.
80810         * doc/visibility.texi: Likewise.
80811
80812         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80813         * doc/quote.texi: Add copyright notice.
80814
80815         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80816         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80817         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80818         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80819         is now obsolete, and give a pointer to the Sun list.
80820         Add copyright notice.
80821
80822 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80823
80824         * config/srclistvars.sh: Add copyright notice.
80825
80826 2006-08-14  Eric Blake  <ebb9@byu.net>
80827
80828         Import the following change from libc:
80829
80830         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80831
80832         Upstream bug 2997.
80833         * lib/misc/error.c: Add space between program name and message if file
80834         name is missing.
80835
80836 2006-08-12  Karl Berry  <karl@gnu.org>
80837
80838         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80839         remove, these originate in gnulib now.
80840
80841 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80842
80843         * doc/Makefile (standards.info standards.html standards.dvi):
80844         Also depend on make-stds.texi.
80845
80846 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80847
80848         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80849         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80850
80851         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80852         in wchar_t.  Problem reported by Eric Blake.
80853
80854         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80855         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80856         Also, help the compiler to keep LEN in a register.
80857
80858 2006-08-11  Eric Blake  <ebb9@byu.net>
80859
80860         * users.txt: Sort.  Add tar.
80861
80862 2006-08-11  Bruno Haible  <bruno@clisp.org>
80863
80864         * users.txt: New file.
80865
80866 2006-08-11  Bruno Haible  <bruno@clisp.org>
80867
80868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80869         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80870
80871 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * modules/snprintf (Depends-on): Remove minmax.
80874         (Maintainer): Add self and Bruno.
80875
80876 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80879         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80880         (EOVERFLOW): Define if the system does not.
80881         Do not include "minmax.h"; it wasn't used.
80882         (snprintf): Don't assume size_t promotes to an unsigned type.
80883         Fix bug when generated string was too long for the buffer: the
80884         buffer's contents are supposed to be the initial prefix of the
80885         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80886         exceeds INT_MAX; do the check ourselves.
80887
80888         Import the following changes from libc:
80889
80890         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80891
80892         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80893         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80894         set wc to the byte which couldn't be converted.
80895         (re_string_reconstruct): Don't clear valid_raw_len before calling
80896         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80897         tip_context using re_string_context_at.
80898
80899         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80900
80901         * lib/posix/regex.h: g++ still cannot handled [restrict].
80902
80903         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80904
80905         * lib/posix/regex.h: Remove special handling for VMS.
80906
80907 2006-08-10  Jim Meyering  <jim@meyering.net>
80908
80909         * modules/same-inode: New module.
80910         * modules/dev-ino: New module.
80911         * modules/cycle-check: Depend on these modules, rather than simply
80912         including their .h files.
80913         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80914         required via m4/cycle-check.m4.
80915         * modules/same: Depend on new same-inode module, rather than
80916         including same-inode.h.
80917         * modules/chdir-safer: New file.
80918
80919         * modules/chown (Depends-on): Add stat-macros.
80920
80921 2006-08-10  Jim Meyering  <jim@meyering.net>
80922
80923         * m4/cycle-check.m4: New file.
80924         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80925         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80926
80927 2006-08-10  Eric Blake  <ebb9@byu.net>
80928
80929         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80930         in from original proposal.
80931
80932 2006-08-10  Eric Blake  <ebb9@byu.net>
80933         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80934
80935         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80936         namespace.
80937
80938 2006-08-10  Bruno Haible  <bruno@clisp.org>
80939
80940         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80941         as well.
80942
80943 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         Sync from coreutils.
80946
80947         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80948
80949         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80950         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80951
80952 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80953
80954         * modules/restrict: Remove; no longer needed now that we assume
80955         Autoconf 2.59 or later.
80956         * MODULES.html.sh: Remove 'restrict'.
80957         * modules/argp (Depends-on): Remove 'restrict'.
80958         * modules/base64 (Depends-on): Likewise.
80959         * modules/gc (Depends-on): Likewise.
80960         * modules/getaddrinfo (Depends-on): Likewise.
80961         * modules/glob (Depends-on): Likewise.
80962         * modules/inet_ntop (Depends-on): Likewise.
80963         * modules/inet_pton (Depends-on): Likewise.
80964         * modules/memxor (Depends-on): Likewise.
80965         * modules/regex (Depends-on): Likewise.
80966         * modules/strtok_r (Depends-on): Likewise.
80967         * modules/time_r (Depends-on): Likewise.
80968
80969 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80970
80971         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80972         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80973         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80974         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80975         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80976         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80977         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80978         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80979
80980         Merge from coreutils.
80981         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80982         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80983         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80984         * m4/time_r.m4 (gl_TIME_R): Likewise.
80985
80986 2006-08-09  Karl Berry  <karl@gnu.org>
80987
80988         * config/srclist.txt: no more gettext-tools, per Bruno.
80989
80990 2006-08-08  Eric Blake  <ebb9@byu.net>
80991
80992         * modules/verror: New module.
80993         * MODULES.html.sh: Document it.
80994
80995 2006-08-08  Eric Blake  <ebb9@byu.net>
80996
80997         * lib/verror.h, lib/verror.c: New files.
80998
80999 2006-08-08  Eric Blake  <ebb9@byu.net>
81000
81001         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81002         verror_at_line output complies with GNU Coding Standards even when
81003         file is NULL.
81004
81005 2006-08-07  Bruno Haible  <bruno@clisp.org>
81006
81007         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81008         versions of AIX.
81009         Reported by Ralf Wildenhues.
81010
81011 2006-08-07  Bruno Haible  <bruno@clisp.org>
81012
81013         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81014         in an AC_DEFUN. Needed so that the autoconf snippets can use
81015         AC_REQUIRE.
81016
81017 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81018
81019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81020         Initialize pkgdata_DATA.
81021         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81022         overriding it.
81023
81024 2006-08-06  Eric Blake  <ebb9@byu.net>
81025
81026         * lib/error.h: Fold in some upstream changes from glibc.
81027         * lib/error.c: Likewise.
81028
81029 2006-08-04  Bruno Haible  <bruno@clisp.org>
81030
81031         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81032         Make the mostlyclean-local rule depend on mostlyclean-generic.
81033         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81034
81035 2006-07-31  Bruno Haible  <bruno@clisp.org>
81036
81037         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81038         <stdlib.h>, <string.h>.
81039
81040 2006-07-30  Bruno Haible  <bruno@clisp.org>
81041
81042         * modules/readlink (License): Change to LGPL.
81043
81044 2006-07-30  Bruno Haible  <bruno@clisp.org>
81045
81046         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81047         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81048         set PKGDATADIR to point to it.
81049
81050 2006-07-30  Bruno Haible  <bruno@clisp.org>
81051
81052         * modules/csharpexec (configure.ac): Comment out macro invocation.
81053         * modules/javaexec (configure.ac): Likewise.
81054         * modules/javacomp-script (configure.ac): Likewise.
81055
81056         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81057
81058 2006-07-30  Bruno Haible  <bruno@clisp.org>
81059
81060         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81061         linked-list.
81062
81063 2006-07-30  Bruno Haible  <bruno@clisp.org>
81064
81065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81066
81067 2006-07-30  Bruno Haible  <bruno@clisp.org>
81068
81069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81070         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81071         get removed.
81072
81073 2006-07-29  Bruno Haible  <bruno@clisp.org>
81074
81075         Make it possible for gnulib-tool to work with locally modified or
81076         augmented gnulib repositories.
81077         * gnulib-tool (func_usage): Document --local-dir option.
81078         (local_gnulib_dir): New variable.
81079         Handle --local-dir option.
81080         (func_lookup_file): New function.
81081         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81082         (func_get_description, func_get_filelist, func_get_description,
81083         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81084         func_get_automake_snippet, func_get_include_directive,
81085         func_get_license, func_get_maintainer): Use func_lookup_file.
81086         (func_import, func_create_testdir): Use func_lookup_file.
81087
81088 2006-07-29  Bruno Haible  <bruno@clisp.org>
81089
81090         * modules/setenv (Depends-on): Add unistd.
81091
81092 2006-07-29  Bruno Haible  <bruno@clisp.org>
81093
81094         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81095
81096 2006-07-29  Bruno Haible  <bruno@clisp.org>
81097
81098         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81099
81100 2006-07-29  Bruno Haible  <bruno@clisp.org>
81101
81102         * gnulib-tool (import, update): If there is no Makefile.am, look at
81103         aclocal.m4, instead of bailing out.
81104
81105 2006-07-29  Bruno Haible  <bruno@clisp.org>
81106
81107         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81108         Categorize the options by when they are useful.
81109
81110 2006-07-29  Bruno Haible  <bruno@clisp.org>
81111
81112         * gnulib-tool (func_usage): Document option --no-libtool.
81113         Handle option --no-libtool.
81114         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81115         for changed semantics of $libtool variable.
81116         (func_import): Likewise. If libtool is not used, show this through
81117         an option --no-libtool.
81118         (func_create_testdir): Update.
81119
81120 2006-07-29  Bruno Haible  <bruno@clisp.org>
81121
81122         * gnulib-tool (func_import): Extend error message about missing
81123         --doc-base.
81124
81125 2006-07-29  Bruno Haible  <bruno@clisp.org>
81126
81127         * gnulib-tool (func_import): Don't create the $docbase directory if
81128         there is no file to store there.
81129
81130 2006-07-29  Bruno Haible  <bruno@clisp.org>
81131
81132         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81133         relevant, look for configure.ac there, not in the current directory.
81134         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81135
81136 2006-07-29  Bruno Haible  <bruno@clisp.org>
81137
81138         * gnulib-tool (SORT): New variable.
81139         (func_usage): Undocument --assume-autoconf option.
81140         Remove --assume-autoconf option handling.
81141         (autoconf_minversion): Determine from the contents of configure.ac.
81142         (func_import): Remove autoconf_minversion handling.
81143         Suggested by Eric Blake.
81144
81145 2006-07-29  Bruno Haible  <bruno@clisp.org>
81146
81147         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81148
81149 2006-07-29  Bruno Haible  <bruno@clisp.org>
81150
81151         * config/srclist.txt (*setenv.[ch]): Remove rules.
81152
81153 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81154
81155         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81156
81157 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81158
81159         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81160         arpa/inet.h.
81161
81162 2006-07-28  Simon Josefsson  <jas@extundo.com>
81163
81164         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81165         * modules/inet_pton (Depends-on): Likewise.
81166
81167 2006-07-28  Simon Josefsson  <jas@extundo.com>
81168
81169         * m4/netinet_in_h.m4: New file.
81170
81171 2006-07-28  Simon Josefsson  <jas@extundo.com>
81172
81173         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81174         #include's.
81175
81176 2006-07-28  Simon Josefsson  <jas@extundo.com>
81177
81178         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81179         #include's.
81180
81181 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81182
81183         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81184         setgid on directories only if they set these bits.
81185         * lib/modechange.h: Remove obsolete comment about masks.
81186
81187 2006-07-28  Eric Blake  <ebb9@byu.net>
81188
81189         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81190         macro expansion.
81191
81192 2006-07-28  Bruno Haible  <bruno@clisp.org>
81193
81194         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81195
81196 2006-07-28  Bruno Haible  <bruno@clisp.org>
81197
81198         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81199
81200 2006-07-28  Bruno Haible  <bruno@clisp.org>
81201
81202         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81203         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81204         Define fallbacks.
81205         Avoids link error on FreeBSD 4.x.
81206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81207
81208         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81209         encoding.
81210         * lib/mbswidth.c (iswcntrl): Likewise.
81211
81212 2006-07-27  Bruno Haible  <bruno@clisp.org>
81213
81214         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81215         test.
81216
81217 2006-07-27  Bruno Haible  <bruno@clisp.org>
81218
81219         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81220         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81221         defined.
81222
81223 2006-07-26  Eric Blake  <ebb9@byu.net>
81224
81225         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81226
81227 2006-07-26  Eric Blake  <ebb9@byu.net>
81228
81229         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81230         like mingw that lack mkstemp.
81231         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81232         avoid compilation warning on mingw.
81233
81234 2006-07-26  Bruno Haible  <bruno@clisp.org>
81235
81236         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81237         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81238         INT_FAST*_MIN, INTPTR_MIN.
81239
81240 2006-07-25  Bruno Haible  <bruno@clisp.org>
81241
81242         * modules/version-etc (Depends-on): Add stdarg.
81243
81244 2006-07-25  Bruno Haible  <bruno@clisp.org>
81245
81246         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81247         complex commands.
81248
81249 2006-07-25  Bruno Haible  <bruno@clisp.org>
81250
81251         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81252         defined in <stdarg.h> or config.h.
81253
81254 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81257         (gl_STDIO_SAFER): Remove.
81258
81259 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * MODULES.html.sh (File stream based Input/Output):
81262         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81263         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81264         * modules/fopen-safer, modules/tmpfile-safer: New files.
81265         * modules/stdio-safer: Remove.
81266
81267 2006-07-24  Bruno Haible  <bruno@clisp.org>
81268
81269         * modules/tmpdir: New file.
81270         * MODULES.html.sh (File system functions): Add it.
81271
81272 2006-07-24  Bruno Haible  <bruno@clisp.org>
81273
81274         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81275         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81276
81277 2006-07-24  Bruno Haible  <bruno@clisp.org>
81278
81279         * modules/clean-temp: New file.
81280
81281 2006-07-24  Bruno Haible  <bruno@clisp.org>
81282
81283         * m4/tmpdir.m4: New file, from GNU gettext.
81284
81285 2006-07-24  Bruno Haible  <bruno@clisp.org>
81286
81287         * lib/tmpdir.h: New file, from GNU gettext.
81288         * lib/tmpdir.c: New file, from GNU gettext.
81289
81290 2006-07-24  Bruno Haible  <bruno@clisp.org>
81291
81292         * lib/clean-temp.h: New file, from GNU gettext.
81293         * lib/clean-temp.c: New file, from GNU gettext.
81294
81295 2006-07-23  Eric Blake  <ebb9@byu.net>
81296
81297         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81298         (Depends-on): Add binary-io.
81299
81300 2006-07-23  Eric Blake  <ebb9@byu.net>
81301
81302         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81303
81304 2006-07-23  Eric Blake  <ebb9@byu.net>
81305
81306         * lib/tmpfile-safer.c: New file.
81307         * lib/stdio-safer.h (fopen_safer): Add prototype.
81308         * lib/stdio--.h (tmpfile): Make safer.
81309
81310 2006-07-23  Bruno Haible  <bruno@clisp.org>
81311
81312         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81313         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81314         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81315         gl_linked_remove_at): Use it.
81316
81317 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81318         and Simon Josefsson <jas@extundo.com>
81319
81320         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81321
81322         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81323
81324 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81325
81326         * modules/close-stream: New file.
81327         * modules/closeout (Description): Make it clear that it exits
81328         with a diagnostic on error.
81329         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81330         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81331
81332 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * m4/close-stream.m4: New file.
81335
81336 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * lib/close-stream.c, lib/close-stream.h: New files.
81339
81340 2006-07-22  Bruno Haible  <bruno@clisp.org>
81341
81342         Merge from GNU gettext 0.15.
81343
81344         2006-05-01  Bruno Haible  <bruno@clisp.org>
81345
81346                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81347
81348         2006-07-22  Bruno Haible  <bruno@clisp.org>
81349
81350                 * modules/javaversion: New file.
81351                 * MODULES.html.sh (Java): Add javaversion.
81352
81353         2006-03-12  Bruno Haible  <bruno@clisp.org>
81354
81355                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81356
81357         2005-12-04  Bruno Haible  <bruno@clisp.org>
81358
81359                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81360                 (untested).
81361
81362         2006-06-21  Bruno Haible  <bruno@clisp.org>
81363
81364                 Avoid warnings from recent versions of mcs.
81365                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81366                 -o, -L, -r any more. Use options documented since mcs-1.0
81367                 instead. Similarly for -g.
81368
81369         2005-12-04  Bruno Haible  <bruno@clisp.org>
81370
81371                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81372                 .resources, not .resource.
81373
81374         2005-07-09  Bruno Haible  <bruno@clisp.org>
81375
81376                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81377                 add a .dll suffix.
81378                 Reported by Mark Junker <mjscod@gmx.de>.
81379
81380         2006-07-22  Bruno Haible  <bruno@clisp.org>
81381
81382                 * modules/gettext: Upgrade to gettext-0.15.
81383                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81384                 m4/visibility.m4.
81385                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81386
81387 2006-07-22  Bruno Haible  <bruno@clisp.org>
81388
81389         Merge from GNU gettext 0.15.
81390
81391         2006-03-25  Bruno Haible  <bruno@clisp.org>
81392
81393                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81394
81395         2006-07-21  Bruno Haible  <bruno@clisp.org>
81396
81397                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81398                 "1.1".
81399
81400         2006-05-09  Bruno Haible  <bruno@clisp.org>
81401
81402                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81403                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81404                 for the conftestver execution.
81405
81406         2006-05-01  Bruno Haible  <bruno@clisp.org>
81407
81408                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81409                 optional target-version argument. Verify that the compiler
81410                 groks source of the specified source-version, or add -source
81411                 option as necessary. Verify that the compiler produces
81412                 bytecode in the specified target-version, or add -target and
81413                 -source options as necessary. Make the result of the test
81414                 available as variable CONF_JAVAC. Also log error output in
81415                 config.log.
81416
81417         2006-03-11  Bruno Haible  <bruno@clisp.org>
81418
81419                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81420
81421         2006-05-09  Bruno Haible  <bruno@clisp.org>
81422
81423                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81424                 CLASSPATH_SEPARATOR to a semicolon.
81425
81426         2006-03-12  Bruno Haible  <bruno@clisp.org>
81427
81428                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81429                 available as variable CONF_JAVA, for subsequent autoconf
81430                 tests. Also log error output in config.log.
81431
81432         2006-07-19  Bruno Haible  <bruno@clisp.org>
81433
81434                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81435                 that getline works on glibc2 systems. Needed to avoid trouble
81436                 in relocatable.c.
81437                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81438
81439         2005-12-04  Bruno Haible  <bruno@clisp.org>
81440
81441                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81442                 launcher (untested).
81443
81444         2005-12-04  Bruno Haible  <bruno@clisp.org>
81445
81446                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81447
81448         2006-07-22  Bruno Haible  <bruno@clisp.org>
81449
81450                 * gettext.m4: Update from GNU gettext-0.15.
81451                 * nls.m4: Likewise.
81452                 * po.m4: Likewise.
81453                 * inttypes-pri.m4: Likewise.
81454                 * inttypes-h.m4: Renamed from inttypes.m4.
81455                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81456
81457 2006-07-22  Bruno Haible  <bruno@clisp.org>
81458
81459         Merge from GNU gettext 0.15.
81460
81461         2005-07-05  Bruno Haible  <bruno@clisp.org>
81462
81463                 * printf-args.c (printf_fetchargs): Work around broken
81464                 definition of wint_t on mingw.
81465
81466         2005-02-12  Bruno Haible  <bruno@clisp.org>
81467
81468                 * xallocsa.h: Add extern "C" for C++.
81469
81470         2006-05-17  Bruno Haible  <bruno@clisp.org>
81471
81472                 Cygwin portability.
81473                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81474
81475         2006-04-30  Bruno Haible  <bruno@clisp.org>
81476
81477                 * progreloc.c: Include <mach-o/dyld.h> if available.
81478                 (find_executable): Use _NSGetExecutablePath when possible.
81479
81480         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81481
81482                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81483                 function.
81484
81485         2005-12-29  Bruno Haible  <bruno@clisp.org>
81486
81487                 * progreloc.c (set_program_name_and_installdir): Fix
81488                 compilation error.
81489
81490         2005-12-04  Bruno Haible  <bruno@clisp.org>
81491
81492                 Cygwin portability.
81493                 * progreloc.c: Include <windows.h> also on Cygwin.
81494                 (find_executable): Add support for Cygwin.
81495                 (set_program_name_and_installdir): Handle also platforms with
81496                 nonempty EXEEXT.
81497
81498         2006-07-11  Bruno Haible  <bruno@clisp.org>
81499
81500                 * javacomp.c: Fix a comment.
81501                 Reported by Jim Meyering.
81502
81503         2006-04-30  Bruno Haible  <bruno@clisp.org>
81504
81505                 * javacomp.h (compile_java_class): Add source_version,
81506                 target_version arguments.
81507                 * javacomp.c: Rewritten to choose only a compiler that
81508                 respects the specified source_version and target_version.
81509
81510         2006-06-27  Bruno Haible  <bruno@clisp.org>
81511
81512                 Assume correct S_ISDIR macro.
81513                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81514
81515         2006-07-22  Bruno Haible  <bruno@clisp.org>
81516
81517                 * javaversion.h: New file, from GNU gettext.
81518                 * javaversion.c: New file, from GNU gettext.
81519                 * javaversion.java: New file, from GNU gettext.
81520                 * javaversion.class: New file, from GNU gettext.
81521
81522         2006-05-17  Bruno Haible  <bruno@clisp.org>
81523
81524                 Cygwin portability.
81525                 * javaexec.c (execute_java_class): Test for jview program
81526                 also on Cygwin.
81527
81528         2006-04-09  Bruno Haible  <bruno@clisp.org>
81529
81530                 * fatal-signal.c: Don't include string.h.
81531                 (at_fatal_signal): Use a copying loop instead of memcpy.
81532
81533         2005-12-04  Bruno Haible  <bruno@clisp.org>
81534
81535                 * csharpexec.c: Add support for 'clix' launcher (untested).
81536                 (execute_csharp_using_sscli): New function.
81537                 (execute_csharp_program): Call it.
81538
81539         2006-06-21  Bruno Haible  <bruno@clisp.org>
81540
81541                 Avoid warnings from recent versions of mcs.
81542                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81543                 -o, -L, -r any more. Use options documented since mcs-1.0
81544                 instead. Similarly for -g.
81545
81546         2005-07-09  Bruno Haible  <bruno@clisp.org>
81547
81548                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81549                 add a .dll suffix.
81550                 Reported by Mark Junker <mjscod@gmx.de>.
81551
81552         2006-06-17  Bruno Haible  <bruno@clisp.org>
81553
81554                 * config.charset: Update for NetBSD 3.0.
81555
81556         2006-05-17  Bruno Haible  <bruno@clisp.org>
81557
81558                 Cygwin portability.
81559                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81560
81561         2006-05-16  Bruno Haible  <bruno@clisp.org>
81562
81563                 * localcharset.c [CYGWIN]: Include <windows.h>.
81564                 (get_charset_aliases): For Cygwin, return the same CPxxx
81565                 aliases list as under WIN32.
81566                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81567                 the environment variables. Fall back to GetACP().
81568
81569         2006-04-05  Bruno Haible  <bruno@clisp.org>
81570
81571                 * config.charset: Update Juan Manuel Guerrero's address.
81572
81573         2005-02-12  Bruno Haible  <bruno@clisp.org>
81574
81575                 * allocsa.h: Add extern "C" for C++.
81576
81577         2005-02-10  Bruno Haible  <bruno@clisp.org>
81578
81579                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81580                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81581
81582         2006-07-22  Bruno Haible  <bruno@clisp.org>
81583
81584                 * gettext.h: Update to GNU gettext-0.15.
81585
81586 2006-07-22  Bruno Haible  <bruno@clisp.org>
81587
81588         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81589         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81590         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81591
81592 2006-07-21  Eric Blake  <ebb9@byu.net>
81593
81594         * modules/stdlib-safer: New file.
81595         * MODULES.html.sh (File stream based Input/Output): Add
81596         stdlib-safer.
81597
81598 2006-07-21  Eric Blake  <ebb9@byu.net>
81599
81600         * lib/stdlib-safer.h: New file from coreutils, required by
81601         stdlib--.h.
81602
81603 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81604
81605         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81606
81607 2006-07-20  Bruno Haible  <bruno@clisp.org>
81608
81609         * gnulib-tool: Recognize new option --assume-autoconf.
81610         (autoconf_minversion): New variable.
81611         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81612
81613 2006-07-20  Bruno Haible  <bruno@clisp.org>
81614
81615         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81616
81617 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81618
81619         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81620         Reindent and repaginate.
81621
81622 2006-07-19  Derek Price  <derek@ximbiot.com>
81623
81624         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81625         Correct grammar.
81626
81627 2006-07-17  Bruno Haible  <bruno@clisp.org>
81628
81629         * modules/list: New file.
81630         * modules/array-list: New file.
81631         * modules/carray-list, modules/carray-list-tests: New files.
81632         * modules/linked-list, modules/linked-list-tests: New files.
81633         * modules/avltree-list, modules/avltree-list-tests: New files.
81634         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81635         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81636         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81637         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81638         * modules/oset: New file.
81639         * modules/array-oset: New file.
81640         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81641         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81642         * tests/test-carray_list.c: New file.
81643         * tests/test-linked_list.c: New file.
81644         * tests/test-avltree_list.c: New file.
81645         * tests/test-rbtree_list.c: New file.
81646         * tests/test-linkedhash_list.c: New file.
81647         * tests/test-avltreehash_list.c: New file.
81648         * tests/test-rbtreehash_list.c: New file.
81649         * tests/test-avltree_oset.c: New file.
81650         * tests/test-rbtree_oset.c: New file.
81651         * MODULES.html.sh (Container data structures): New section.
81652
81653 2006-07-17  Bruno Haible  <bruno@clisp.org>
81654
81655         * m4/gl_list.m4: New file.
81656
81657 2006-07-17  Bruno Haible  <bruno@clisp.org>
81658
81659         * lib/gl_list.h: New file.
81660         * lib/gl_list.c: New file.
81661         * lib/gl_array_list.h: New file.
81662         * lib/gl_array_list.c: New file.
81663         * lib/gl_carray_list.h: New file.
81664         * lib/gl_carray_list.c: New file.
81665         * lib/gl_linked_list.h: New file.
81666         * lib/gl_linked_list.c: New file.
81667         * lib/gl_anylinked_list1.h: New file.
81668         * lib/gl_anylinked_list2.h: New file.
81669         * lib/gl_avltree_list.h: New file.
81670         * lib/gl_avltree_list.c: New file.
81671         * lib/gl_anyavltree_list1.h: New file.
81672         * lib/gl_anyavltree_list2.h: New file.
81673         * lib/gl_rbtree_list.h: New file.
81674         * lib/gl_rbtree_list.c: New file.
81675         * lib/gl_anyrbtree_list1.h: New file.
81676         * lib/gl_anyrbtree_list2.h: New file.
81677         * lib/gl_anytree_list1.h: New file.
81678         * lib/gl_anytree_list2.h: New file.
81679         * lib/gl_linkedhash_list.h: New file.
81680         * lib/gl_linkedhash_list.c: New file.
81681         * lib/gl_anyhash_list1.h: New file.
81682         * lib/gl_anyhash_list2.h: New file.
81683         * lib/gl_avltreehash_list.h: New file.
81684         * lib/gl_avltreehash_list.c: New file.
81685         * lib/gl_rbtreehash_list.h: New file.
81686         * lib/gl_rbtreehash_list.c: New file.
81687         * lib/gl_anytreehash_list1.h: New file.
81688         * lib/gl_anytreehash_list2.h: New file.
81689
81690         * lib/gl_oset.h: New file.
81691         * lib/gl_oset.c: New file.
81692         * lib/gl_array_oset.h: New file.
81693         * lib/gl_array_oset.c: New file.
81694         * lib/gl_avltree_oset.h: New file.
81695         * lib/gl_avltree_oset.c: New file.
81696         * lib/gl_rbtree_oset.h: New file.
81697         * lib/gl_rbtree_oset.c: New file.
81698         * lib/gl_anytree_oset.h: New file.
81699
81700 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81701
81702         * m4/mkancesdirs.m4: New file.
81703         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81704         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81705         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81706         it.
81707
81708 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81709
81710         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81711         * lib/mkancesdirs.h: New files.
81712         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81713         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81714         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81715         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81716         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81717         callers changed.  Revamp internals significantly, by not
81718         attempting to create directories that are temporarily more
81719         permissive than the final results.  Do not attempt to use
81720         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81721         This removes some race conditions, fixes some bugs, and simplifies
81722         things.  Use new dirchownmod function to do owner and mode changes.
81723         * lib/mkdir-p.h: Likewise.
81724         * lib/modechange.c (octal_to_mode): New function.
81725         (struct mode_change): New member mentioned.
81726         (make_node_op_equals): New arg mentioned.  All callers changed.
81727         (mode_compile): Keep track of which mode bits the user has explicitly
81728         mentioned.
81729         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81730         New arg PMODE_BITS, to keep track of which mode bits the user
81731         mentioned; it treats S_ISUID and S_ISGID speciall.
81732         All callers changed.
81733         * lib/modechange.h: Likewise.
81734
81735 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * MODULES.html.sh: Add mkancestors.
81738         * modules/mkancesdirs: New module.
81739         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81740         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81741         The chdir-safer and afs files are now orphans; I'll remove them
81742         unless someone speaks up.
81743         Add lib/dirchownmod.c, lib/dirchownmod.h.
81744         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81745         Add lchown, mkancesdirs.
81746         (Maintainer): Add self.
81747
81748 2006-07-15  Karl Berry  <karl@gnu.org>
81749
81750         * gnulib-tool: help message wording/arrangement.
81751
81752 2006-07-14  Simon Josefsson  <jas@extundo.com>
81753
81754         * doc/gnulib.texi (Libtool and Windows): New section.
81755
81756 2006-07-12  Simon Josefsson  <jas@extundo.com>
81757
81758         * modules/gendocs (License): Fix license, approved by Karl.
81759
81760 2006-07-12  Eric Blake  <ebb9@byu.net>
81761
81762         * MODULES.html.sh: Add gendocs.
81763
81764 2006-07-11  Eric Blake  <ebb9@byu.net>
81765
81766         * modules/fdl: New module, to install doc/fdl.texi.
81767         * MODULES.html.sh: Add new section for documentation modules.
81768         * gnulib-tool: Avoid space-tab.
81769         (--doc-base): New option, to manage files from doc.
81770
81771 2006-07-11  Eric Blake  <ebb9@byu.net>
81772
81773         * m4/absolute-header.m4: Fix comments to match recent change.
81774
81775 2006-07-11  Eric Blake  <ebb9@byu.net>
81776
81777         * gnulib-tool: List --doc-base before --tests-base.
81778
81779 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81780
81781         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81782
81783 2006-07-11  Bruno Haible  <bruno@clisp.org>
81784
81785         * README: Mention where to put documentation.
81786
81787 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81788
81789         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81790
81791 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81792
81793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81794         to stdint.m4.
81795
81796 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81799         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81800         "no/such/file/stdint.h" when there is no such file, so that
81801         the resulting C code can be parsed by dodgy compilers.
81802         Problems reported by Bob Proulx.
81803
81804 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81805
81806         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81807         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81808         macros into the GNU _D_EXACT_NAMLEN.
81809         * lib/savedir.c:  Likewise.
81810         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81811
81812 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81813         and Paul Eggert  <eggert@cs.ucla.edu>
81814
81815         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81816         * m4/savedir.m4:
81817         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81818         macros into the GNU _D_EXACT_NAMLEN.
81819
81820 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81821
81822         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81823         around the absolute name, to work around a problem with the HP-UX
81824         11.23 native C compiler, reported by Bob Proulx.
81825
81826 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81827
81828         * doc/maintain.texi, make-stds.texi: Sync from
81829         <http://savannah.gnu.org/projects/gnustandards>.
81830
81831 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81834
81835 2006-07-09  Jim Meyering  <jim@meyering.net>
81836
81837         * m4/glob.m4: Remove a doubled word in a comment.
81838
81839 2006-07-09  Jim Meyering  <jim@meyering.net>
81840
81841         * lib/argp-pv.c: Remove a doubled word in a comment.
81842         * lib/check-version.c (check_version): Likewise.
81843         * lib/javacomp.c (compile_java_class): Likewise.
81844
81845 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81848         for the benefit of people using Autoconf 2.60.  If you want to
81849         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81850         (or m4/onceonly.m4, if pre-2.57) manually.
81851
81852 2006-07-08  Jim Meyering  <jim@meyering.net>
81853
81854         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81855         comment.
81856         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81857         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81858         comment.
81859
81860 2006-07-08  Jim Meyering  <jim@meyering.net>
81861
81862         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81863
81864 2006-07-07  Simon Josefsson  <jas@extundo.com>
81865
81866         * tests/test-crc.c: Change expected crc value, the test vector
81867         were probably computed using the old broken crc.c?
81868
81869 2006-07-06  Simon Josefsson  <jas@extundo.com>
81870
81871         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81872         now the canonical place for the M4 file).
81873
81874         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81875         from the sys_socket dependency now.
81876
81877         * modules/inet_pton (Files): Ditto.
81878
81879         * modules/inet_ntop (Files): Ditto.
81880
81881 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81882
81883         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81884         not gl_PREREQ_GETUSERSHELL.
81885
81886 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81887
81888         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81889         with only one argument, for Autoconf 2.60.
81890         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81891         expand to nothing, so add a shell command to avoid syntax error.
81892         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81893
81894 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81895
81896         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81897
81898 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81901         no longer needed.  Check for isblank decl.
81902         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81903         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81904         of existence.
81905
81906 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81907
81908         * lib/getloadavg.c: Use __VMS, not VMS.
81909         * lib/getopt.c: Likewise.
81910         * lib/getpagesize.h: Likewise.
81911         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81912         and probably does not work.
81913
81914 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81915
81916         * lib/.cppi-disable: Add wcwidth.
81917         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81918         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81919         (ISGRAPH): Remove.  All uses changed to isgraph.
81920         (FOLD) [!defined _LIBC]: Remove special case.
81921         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81922         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81923         HAVE_ISBLANK.
81924         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81925         case.
81926
81927 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81928
81929         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81930         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81931         brackets.  Other minor changes to suppress some compiler
81932         warnings.
81933
81934 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81935         and Paul Eggert  <eggert@cs.ucla.edu>
81936
81937         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81938         of invoking obsolescent AC_HEADER_DIRENT macro.
81939         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81940         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81941         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81943         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81944         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81945         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81946         * m4/readdir.m4: Remove; no longer needed.
81947
81948 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81949         and Paul Eggert  <eggert@cs.ucla.edu>
81950
81951         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81952         Don't worry about this obsolete case any more.
81953         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81954         directories.
81955         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81956         worry about this obsolete case any more.
81957         * lib/fts.c: Likewise.
81958         * lib/getcwd.c: Likewise.
81959         * lib/glob.h: Likewise.
81960         * lib/savedir.c: Likewise.
81961
81962 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81963
81964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81965         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81966         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81967         needed.
81968         All uses removed.
81969         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81970         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81971         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81972         needed.
81973         * m4/getdate.m4 (gl_GETDATE): Likewise.
81974         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81975         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81976         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81977         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81978         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81979         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81980         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81981         needed.
81982
81983 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * lib/memcasecmp.c: Include <limits.h>.
81986         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81987         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81988         Don't assume isdigit succeeds only on '0' through '9'.
81989
81990 2006-07-05  Eric Blake  <ebb9@byu.net>
81991
81992         * modules/getaddrinfo (Depends-on): Add snprintf.
81993
81994 2006-07-05  Eric Blake  <ebb9@byu.net>
81995
81996         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81997         to avoid 'header present but could not be compiled' on cygwin.
81998
81999 2006-07-05  Eric Blake  <ebb9@byu.net>
82000
82001         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82002         missing from netdb.h.
82003         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82004
82005 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82006
82007         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82008         no longer needed.
82009         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82010         * m4/getdate.m4 (gl_GETDATE): Likewise.
82011         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82012         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82013         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82014         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82016
82017 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82018
82019         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82020         All uses of is_space replaced by isspace.
82021         * lib/exit.h: Don't talk about STDC_HEADERS.
82022         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82023         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82024         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82025         replaced by isprint etc.
82026         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82027         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82028         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82029         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82030         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82031         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82032
82033 2006-07-05  Bruno Haible  <bruno@clisp.org>
82034
82035         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82036         the function exists, before testing against AIX.
82037         Reported by Martin Lambers <marlam@marlam.de>.
82038
82039 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82040
82041         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82042         From Mark D. Baushke.
82043
82044 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82045
82046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82047         to the absolute name, not just one, to bypass Sun C 5.8's
82048         "warning: #include of /usr/include/... may be non-portable".
82049
82050 2006-07-04  Eric Blake  <ebb9@byu.net>
82051
82052         * modules/dirname-tests: New test module.
82053         * tests/test-dirname.c: New file, replacing dirname.c
82054         TEST_DIRNAME section that was recently deleted.
82055
82056 2006-07-04  Bruno Haible  <bruno@clisp.org>
82057
82058         Assume ANSI C header files and <ctype.h> functions.
82059         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82060         (mbsnwidth): Use isprint, iscntrl instead.
82061
82062 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82063
82064         Merge from coreutils.
82065         * MODULES.html.sh: Add xstrtold.
82066         * modules/xstrtold: New file.
82067         * modules/cycle-check (Files): Add lib/same-inode.h.
82068         * modules/dirname (Files): Add m4/double-slash-root.m4.
82069         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82070         * modules/mkdir-p (Files): Add lib/same-inode.h.
82071         * modules/same (Files): Add lib/same-inode.h.
82072
82073 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82074
82075         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82076         This is to keep the terminology clean; POSIX talks about
82077         "absolute pathnames", not "full pathnames", but the GNU
82078         Coding Standards say to use "path" for something else;
82079         so use "absolute" to keep both sides happy.
82080         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82081         Set gl_absolute_header, not gl_full_header_path.
82082         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82083         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82084         All uses changed.
82085
82086         Merge from coreutils.
82087
82088         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82089
82090         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82091         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82092         want to require the building of c-strtod.o.
82093         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82094         needs -lm directly.
82095         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82096
82097         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82098
82099         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82100         --as-needed option if available.  Problem reported by Albert Chin in
82101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82102         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82103         cc merely issues a bunch of annoying warnings for --as-needed
82104         (this problem was reported by Bob Proulx).  Also, try linking with
82105         -lm to detect a bug in binutils 2.16 (this problem was reported
82106         by Ralf Wildenhues).
82107
82108         2006-06-18  Jim Meyering  <jim@meyering.net>
82109
82110         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82111         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82112         macro.
82113         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82114         also check for glibc-2.4's abort-inducing bug.
82115
82116         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82117         Low-probability clean-up should be to use rmdir to get rid of
82118         the just-created directory, not unlink.
82119
82120         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82121         configure fail, and request a bug report to inform us about it.
82122         Add a comment that, barring reports to the contrary, in 2007 we'll
82123         assume ftruncate is universally available.
82124
82125         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82128
82129         2006-03-12  Jim Meyering  <jim@meyering.net>
82130
82131         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82132         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82133         * m4/same.m4 (gl_SAME): Likewise.
82134         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82135
82136         2006-03-11  Eric Blake  <ebb9@byu.net>
82137
82138         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82139         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82140         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82141         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82142
82143 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82146         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82147         reported by Mark D. Baushke, one in
82148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82149
82150         Merge from coreutils.
82151
82152         * lib/.cppi-disable: Add stdint_.h.
82153         * lib/.cvsignore: Add stdint.h.
82154
82155         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82156
82157         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82158         both double and long double versions.
82159         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82160         * lib/xstrtold.c: New file.
82161         * lib/xstrtod.h (xstrtold): New decl.
82162
82163         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82164
82165         * lib/filemode.c (setst): Remove.
82166         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82167         (arguably) clearer, and the generated code is a bit smaller on my
82168         Debian GNU/Linux stable x86 host.
82169
82170         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82171
82172         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82173         Assume that filemode.h includes sys/types.h and sys/stat.h.
82174         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82175         (ftypelet): Reorder to put common cases first, for efficiency.
82176         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82177         to do 'M'.
82178         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82179         of 10, for compatibility with FreeBSD.  All callers changed.
82180         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82181         types that can't be deduced solely from st_mode.  First arg is now a
82182         const pointer.
82183         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82184         (strmode): Renamed from mode_string.
82185         (filemodestring): New decl.
82186         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82187         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82188         needed.
82189         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82190
82191         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82192
82193         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82194         fsusage.h now does that.  Include fsusage.h first, to test interface.
82195         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82196         at most one method (the old code could have generated decls that
82197         didn't conform to C89, not that this was ever exercised).
82198         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82199
82200         2006-03-19  Jim Meyering  <jim@meyering.net>
82201
82202         Work even in a chroot where d_ino values for entries in "/"
82203         don't match the stat.st_ino values for the same names.
82204         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82205         number, iterate through all entries again, using lstat instead.
82206         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82207         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82208
82209         * lib/getcwd.c (__getcwd): Clarify a comment.
82210         Use memcpy in place of a call to strcpy.
82211
82212         2006-03-12  Jim Meyering  <jim@meyering.net>
82213
82214         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82215         matches that of the current directory (which we're about to chdir ".."
82216         out of), then save the dev-ino of the parent, instead.
82217
82218         * lib/same-inode.h (SAME_INODE): New file/macro.
82219         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82220         Include "same-inode.h", instead.
82221         * lib/same.c: Likewise.
82222         * lib/cycle-check.h: Include "same-inode.h".
82223         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82224         * lib/cycle-check.c (SAME_INODE): Remove definition.
82225         * lib/root-dev-ino.h: Include "same-inode.h".
82226
82227         2006-03-11  Eric Blake  <ebb9@byu.net>
82228
82229         * lib/same.c (same_name): s/base_name/last_component/
82230         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82231         * lib/filenamecat.c (file_name_concat): Likewise.
82232
82233         2006-03-11  Eric Blake  <ebb9@byu.net>,
82234                     Paul Eggert  <eggert@cs.ucla.edu>
82235
82236         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82237         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82238         drive prefix.
82239         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82240         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82241         (last_component): New method.
82242         * lib/dirname.c (dir_len): Determine when drive letters need a
82243         subsequent slash.  Preserve // when it is special.
82244         (dir_name): Don't append dot when drive letter is absolute.
82245         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82246         * lib/basename.c (base_name): New semantics - malloc the result.
82247         Preserve // when it is special.  Preserve relative files that look
82248         like drive letters.
82249         (base_len): Preserve // when it is special.
82250         (last_component): New method, similar to old base_name semantics.
82251         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82252         base_name.  Strip redundant slashes from ///.
82253
82254 2006-07-03  Jim Meyering  <jim@meyering.net>
82255
82256         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82257         macro is used before the first cycle_check call.
82258
82259 2006-07-03  Eric Blake  <ebb9@byu.net>
82260
82261         * modules/dirname (Depends-on): Add xstrndup.
82262
82263 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82264
82265         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82266         test cases, so that config.log is a bit easier to follow.
82267
82268 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82269
82270         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82271         both are 64 bits, since this seems to be the tradition, and this
82272         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82273         we ever run into a host that prefers long long to long in this
82274         case, we'll need another configure-time test.  Problem reported by
82275         Jim Meyering.
82276
82277 2006-07-02  Eric Blake  <ebb9@byu.net>
82278
82279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82280
82281 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82282
82283         * modules/inttypes (Depends-on): No longer depends on stdint.
82284         * modules/stdint (Description): Say more about assumptions.
82285         Say that the fast types might differ.  Say macros are used.
82286         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82287         (Makefile.am): Revise list of substituted symbols to match
82288         new stdint.m4.
82289         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82290         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82291         * tests/test-stdint.c (verify_same_types)
82292         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82293         the code conforms to C99/C89.
82294         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82295         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82296
82297 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82298
82299         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82300         but fix a bug, by requiring at least 64 bits.
82301         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82302         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82303         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82304         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82305
82306         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82307         changes.  Make 2.59 a prerequisite.  Check and substitute for
82308         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82309         inttypes.h.  Do not use special include files; just use the
82310         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82311         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82312         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82313         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82314         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82315         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82316         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82317         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82318         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82319         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82320         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82321         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82322         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82323         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82324         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82325         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82326         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82327         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82328         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82329         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82330         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82331         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82332         not check for things that C99 does not require, e.g., int8_t.  If
82333         a test isn't needed unless <stdint.h> isn't working, and is
82334         unlikely to be needed for any other reason, then don't do it
82335         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82336         size_t, since we assume C89 freestanding at least.  Do not check
82337         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82338         the right thing even if the types are not defined.  Instead use:
82339         (gl_STDINT_TYPE_PROPERTIES): New macro.
82340         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82341         testing whether <sys/types.h> clashes, as Autoconf does this for
82342         us now.  All uses removed.
82343         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82344         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82345         (gl_CHECK_TYPE_SAME):
82346         Remove; no longer needed.
82347         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82348         exists, since we'll return 0 anyway in that case.
82349         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82350
82351 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82352
82353         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82354         possible collision with system files.
82355         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82356         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82357         WCHAR_MIN and WCHAR_MAX in this case.
82358         (<stddef.h>): Do not include; no longer needed.
82359         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82360         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82361         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82362         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82363         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82364         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82365         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82366         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82367         !defined(__c99))]: Include in this case too, since it's harmless
82368         now.
82369         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82370         dangerous to do so.
82371         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82372         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82373         (_STDINT_MIN, _STDINT_MAX): New macros.
82374         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82375         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82376         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82377         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82378         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82379         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82380         macros, not typedefs; this simplifies things quite a bit.
82381         Use long int for all types narrower than int64_t.
82382         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82383         Define in terms of long long int or int64_t or long int,
82384         not int64_t or int32_t.  This saves some compile-time testing.
82385         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82386         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82387         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82388         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82389         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82390         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82391         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82392         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82393         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82394         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82395         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82396         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82397         undef any previous version and define our own version, for
82398         simplicity and consistency with the new macros for types.
82399         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82400         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82401         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82402         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82403         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82404         @WINT_T_SUFFIX@ to keep things simple here.
82405         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82406         Simplify by assuming typical 8/16/32/64 host, since we're
82407         already doing that elsewhere anyway.
82408         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82409         and assume long long int is 64 bits if available.  This
82410         speeds up 'configure'.
82411
82412 2006-07-01  Eric Blake  <ebb9@byu.net>
82413
82414         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82415         Reported by Andreas Buening.
82416
82417 2006-07-01  Eric Blake  <ebb9@byu.net>
82418
82419         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82420
82421 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82422
82423         * lib/getaddrinfo.c: fixed typo
82424
82425 2006-06-29  Jim Meyering  <jim@meyering.net>
82426
82427         * modules/strftime (Maintainer): Add my name, since with the
82428         FPRINTFTIME changes strftime.c has forked from glibc.
82429
82430 2006-06-29  Eric Blake  <ebb9@byu.net>
82431
82432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82433
82434 2006-06-29  Eric Blake  <ebb9@byu.net>
82435
82436         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82437
82438 2006-06-29  Eric Blake  <ebb9@byu.net>
82439
82440         * lib/stat_.h: New file.
82441
82442 2006-06-29  Eric Blake  <ebb9@byu.net>
82443
82444         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82445         unused static function.
82446
82447 2006-06-29  Eric Blake  <ebb9@byu.net>
82448
82449         * doc/functions.texi (Function Portability): Document missing lstat
82450         on mingw.
82451
82452 2006-06-29  Eric Blake  <ebb9@byu.net>
82453
82454         * MODULES.html.sh: Add sys_stat.
82455         * modules/sys_stat: New module.
82456         * modules/mkstemp (Depends-on): Add sys_stat.
82457
82458 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82459
82460         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82461
82462 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82463
82464         * m4/c-bs-a.m4: Removed.
82465
82466 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82467
82468         * lib/strftime.c: Assume strftime() exists.
82469
82470 2006-06-29  Derek Price  <derek@ximbiot.com>
82471
82472         * modules/c-bs-a: Removed - \a is C89.
82473         * MODULES.html.sh: Remove c-bs-a.
82474
82475 2006-06-29  Bruno Haible  <bruno@clisp.org>
82476
82477         * modules/wcwidth (License): Change to LGPL.
82478
82479 2006-06-28  Simon Josefsson  <jas@extundo.com>
82480
82481         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82482         on _WIN32.
82483
82484         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82485         getnameinfo.
82486
82487 2006-06-28  Simon Josefsson  <jas@extundo.com>
82488
82489         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82490
82491 2006-06-28  Simon Josefsson  <jas@extundo.com>
82492
82493         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82494         functions there.  It will succeed on Windows XP, but on Windows
82495         2000 and (presumably) earlier, it will fail, and use the internal
82496         re-implementation.
82497         (use_win32_p): New function.
82498         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82499         Support AI_NUMERICSERV to disable getservbyname.
82500         (getnameinfo): New function, only supports
82501         NI_NUMERICHOST|NI_NUMERICSERV for now.
82502
82503         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82504         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82505         getnameinfo.
82506
82507 2006-06-28  Eric Blake  <ebb9@byu.net>
82508
82509         * modules/wcwidth: New file.
82510         * modules/mbchar (Depends-on): Add wcwidth.
82511         * modules/mbswidth (Depends-on): Add wcwidth.
82512         * MODULES.html.sh: Add wcwidth.
82513
82514 2006-06-28  Eric Blake  <ebb9@byu.net>
82515
82516         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82518
82519 2006-06-28  Eric Blake  <ebb9@byu.net>
82520
82521         * lib/xvasprintf.h: Fix comments.
82522
82523 2006-06-28  Eric Blake  <ebb9@byu.net>
82524
82525         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82526         * lib/mbswidth.c (wcwidth): Move from here...
82527         * lib/wcwidth.h: ...to this new file.
82528
82529 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82530
82531         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82532
82533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82534         it's obsolete.
82535         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82536
82537 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82538
82539         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82540         Autoconf 2.60 says this stuff was obsolete.
82541
82542 2006-06-28  Bruno Haible  <bruno@clisp.org>
82543
82544         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82545
82546 2006-06-28  Bruno Haible  <bruno@clisp.org>
82547
82548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82549         gt_TYPE_WCHAR_T.
82550
82551 2006-06-28  Bruno Haible  <bruno@clisp.org>
82552
82553         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82554         declaration for wcwidth.
82555         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82556
82557 2006-06-28  Bruno Haible  <bruno@clisp.org>
82558
82559         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82560         (mkdir): Define using _mkdir.
82561
82562 2006-06-28  Bruno Haible  <bruno@clisp.org>
82563
82564         * lib/getaddrinfo.h: Fix POSIX URL.
82565         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82566         _WIN32.
82567         (use_win32_p): Make static.
82568         (getaddrinfo): Reject service name if it is empty or does not consist
82569         solely of decimal digits, or if its value is > 65535.
82570         (getnameinfo): Remove useless casts.
82571
82572 2006-06-27  Simon Josefsson  <jas@extundo.com>
82573
82574         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82575         Eggert and Martin Lambers.
82576
82577 2006-06-27  Simon Josefsson  <jas@extundo.com>
82578
82579         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82580         Eggert and Martin Lambers.
82581
82582 2006-06-27  Bruno Haible  <bruno@clisp.org>
82583
82584         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82585         result to 0, not to empty.
82586         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82587
82588 2006-06-27  Bruno Haible  <bruno@clisp.org>
82589
82590         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82591
82592 2006-06-26  Simon Josefsson  <jas@extundo.com>
82593
82594         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82595         present.
82596
82597 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82600         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82602
82603 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82604
82605         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82606
82607 2006-06-26  Bruno Haible  <bruno@clisp.org>
82608
82609         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82610
82611 2006-06-26  Bruno Haible  <bruno@clisp.org>
82612
82613         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82614
82615 2006-06-26  Bruno Haible  <bruno@clisp.org>
82616
82617         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82618         SGI C compiler in pre-C99 mode.
82619         Suggested by Mark D. Baushke and Larry Jones.
82620
82621 2006-06-26  Bruno Haible  <bruno@clisp.org>
82622
82623         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82624         WCHAR_MAX.
82625         Reported by Mark D. Baushke and Larry Jones.
82626
82627 2006-06-26  Bruno Haible  <bruno@clisp.org>
82628
82629         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82630         in pre-C99 mode.
82631         Suggested by Mark D. Baushke and Larry Jones.
82632
82633 2006-06-23  Simon Josefsson  <jas@extundo.com>
82634             Bruno Haible  <bruno@clisp.org>
82635
82636         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82637         Emit mostlyclean-local rule.
82638         (func_emit_tests_Makefile_am): Likewise.
82639         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82640
82641 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82642
82643         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82644
82645 2006-06-23  Bruno Haible  <bruno@clisp.org>
82646
82647         * tests/test-stdint.c: Update to match ISO C 99 Technical
82648         Corrigendum 1.
82649
82650 2006-06-23  Bruno Haible  <bruno@clisp.org>
82651
82652         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82653
82654 2006-06-23  Bruno Haible  <bruno@clisp.org>
82655
82656         * lib/stdint_.h: Treat IRIX like OpenBSD.
82657
82658 2006-06-23  Bruno Haible  <bruno@clisp.org>
82659
82660         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82661         ISO C 99 Technical Corrigendum 1.
82662
82663 2006-06-22  Simon Josefsson  <jas@extundo.com>
82664
82665         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82666         MinGW.
82667
82668 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82671         needed.  Some compiler complained about some of them.  Problem reported
82672         by Larry Jones in
82673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82674
82675 2006-06-21  Simon Josefsson  <jas@extundo.com>
82676
82677         * tests/test-getaddrinfo.c: New file.
82678
82679         * modules/getaddrinfo-tests: New file.
82680
82681         * MODULES.html.sh: Add inet_pton.
82682
82683         * modules/inet_pton: New file.
82684
82685 2006-06-21  Simon Josefsson  <jas@extundo.com>
82686
82687         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82688         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82689         of using the (limited) gnulib implementation on Windows XP.
82690
82691         * m4/inet_pton.m4: New file.
82692
82693 2006-06-21  Simon Josefsson  <jas@extundo.com>
82694
82695         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82696         variable.
82697
82698         * lib/socket_.h: Don't define WINVER.
82699
82700         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82701         slightly modified to work in gnulib.
82702
82703 2006-06-21  Simon Josefsson  <jas@extundo.com>
82704
82705         * doc/gnulib.texi (Windows sockets): Add.
82706
82707 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         * lib/read-file.c (fread_file): Start with buffer allocation of
82710         0 bytes rather than 1 byte; this simplifies the code.
82711         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82712         code to free buffer and save/restore errno.
82713         (internal_read_file): Remove unused local.
82714
82715 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82716
82717         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82718         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82719         Problem reported by Denis Excoffier in
82720         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82721
82722 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82723
82724         * modules/sys_socket, modules/socklen: Include sys/types since
82725         FreeBSD 4.x's sys/socket.h needs it.
82726
82727 2006-06-19  Simon Josefsson  <jas@extundo.com>
82728
82729         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82730
82731 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82734
82735 2006-06-19  Bruno Haible  <bruno@clisp.org>
82736
82737         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82738         and FULL_PATH_INTTYPES_H in angle brackets.
82739         Reported by Mark D. Baushke <mdb@gnu.org>.
82740
82741 2006-06-17  Eric Blake  <ebb9@byu.net>
82742
82743         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82744         errno.
82745
82746 2006-06-17  Bruno Haible  <bruno@clisp.org>
82747
82748         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82749         <sys/inttypes.h>.
82750
82751 2006-06-17  Bruno Haible  <bruno@clisp.org>
82752
82753         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82754         whether errno is declared. Assume <errno.h> declares errno.
82755
82756 2006-06-17  Bruno Haible  <bruno@clisp.org>
82757
82758         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82759
82760 2006-06-17  Bruno Haible  <bruno@clisp.org>
82761
82762         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82763         problem on Solaris 2.5.1.
82764
82765 2006-06-16  Eric Blake  <ebb9@byu.net>
82766
82767         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82768         * lib/unicodeio.c [!defined errno]: Likewise.
82769         * lib/strtol.c [!defined errno]: Likewise.
82770         * lib/strtod.c [!defined errno]: Likewise.
82771
82772 2006-06-15  Eric Blake  <ebb9@byu.net>
82773
82774         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82775
82776 2006-06-15  Eric Blake  <ebb9@byu.net>
82777
82778         * config/srclist.txt (ssize_t.m4): Lose sync.
82779
82780 2006-06-15  Bruno Haible  <bruno@clisp.org>
82781
82782         * modules/stdint (Files): Include m4/full-header-path.m4,
82783         m4/size_max.m4, m4/wchar_t.m4.
82784         (Makefile.am): Many more substitutions.
82785         * modules/stdint-tests: New file.
82786         * tests/test-stdint.c: New file.
82787
82788 2006-06-15  Bruno Haible  <bruno@clisp.org>
82789
82790         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82791         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82792         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82793         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82794         gl_CHECK_TYPE_SAME): New macros.
82795
82796 2006-06-15  Bruno Haible  <bruno@clisp.org>
82797
82798         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82799
82800 2006-06-15  Bruno Haible  <bruno@clisp.org>
82801
82802         * lib/stdint_.h: Rewritten to be fully auto-configured.
82803         Fixes bug on HP-UX/IA64.
82804
82805 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         * lib/getdate.y (__attribute__): Don't define if already defined.
82808         Problem reported by Larry Jones.
82809         * lib/utimens.c (__attribute__): Likewise.
82810
82811 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82812
82813         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82814         reported by Andreas Schwab.
82815
82816 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82817             Bruno Haible  <bruno@clisp.org>
82818
82819         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82820         check for the declaration of strnlen and a run test that exposes the
82821         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82822         rpl_strndup.
82823
82824 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82825             Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82828
82829 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82830
82831         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82832         compile test, for Tru64 4.0D.
82833
82834 2006-05-28  Karl Berry  <karl@gnu.org>
82835
82836         * config/srclist.txt (printf-args.c): lose sync.
82837
82838 2006-05-26  Martin Lambers  <marlam@marlam.de>
82839
82840         * lib/getpass.c: Updates the test for the native W32 API, and adds
82841         missing includes, thus fixing compilation warnings.
82842
82843 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82844
82845         * lib/exclude.c (exclude_fnmatch): New function.
82846         (excluded_file_name): Call exclude_fnmatch.
82847         * lib/exclude.h (excluded_file_name): New prototype
82848
82849 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82850
82851         * lib/tempname.c (small_open, large_open): New macros.
82852         (__open, __open64) [!_LIBC]: Remove.
82853         (__gen_tempname): Use small_open and large_open instead of __open
82854         and __open64.  This fixes a portability bug on HP-UX 11.11i
82855         reported by Simon Wing-Tang in
82856         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82857
82858 2006-05-24  Bruno Haible  <bruno@clisp.org>
82859
82860         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82861         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82862         Reported by Thorsten Maerz <torte@netztorte.de> via
82863         Aaron Stone <aaron@serendipity.cx>.
82864
82865 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82866
82867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82868         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82869         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82870         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82871         not really conditional on the cache.
82872         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82873
82874 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82877         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82878         (my_usleep): Don't mishandle maximum value.
82879
82880 2006-05-19  Jim Meyering  <jim@meyering.net>
82881
82882         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82883
82884 2006-05-17  Bruno Haible  <bruno@clisp.org>
82885
82886         Cygwin portability.
82887         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82888
82889 2006-05-17  Bruno Haible  <bruno@clisp.org>
82890
82891         * lib/stdint_.h: Fix recognition of Cygwin.
82892
82893 2006-05-15  Bruno Haible  <bruno@clisp.org>
82894
82895         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82896         on libtool patch by Ralf Wildenhues.
82897
82898 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82901         test for C99 conformance; (bool) 0.5 is an integer constant
82902         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82903         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82904
82905 2006-05-11  Simon Josefsson  <jas@extundo.com>
82906
82907         * m4/xvasprintf.m4: Fix obvious typo.
82908
82909 2006-05-11  Jim Meyering  <jim@meyering.net>
82910
82911         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82912         James Lemley.
82913
82914 2006-05-10  Simon Josefsson  <jas@extundo.com>
82915
82916         * lib/md4.c: Typo fix, update copyright years.
82917         (K1, K2): Don't use L because it turn computations into 64-bit on
82918         64-bit platforms.
82919
82920 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82921
82922         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82923         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82924         unwanted sign propagation, e.g., on hosts with 64-bit int.
82925         There still are some problems with reeelly weird theoretical hosts
82926         (e.g., 33-bit int) but it's not worth worrying about now.
82927         * lib/sha1.c (rol): Likewise.
82928         (K1, K2, K3, K4): Remove unnecessary L suffix.
82929
82930 2006-05-10  Bruno Haible  <bruno@clisp.org>
82931
82932         * lib/des.c: Cast to avoid warnings.
82933
82934 2006-05-09  Bruno Haible  <bruno@clisp.org>
82935
82936         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82937         (Depends-on): Depend also on xsize, stdarg.
82938         (configure.ac): Add gl_XVASPRINTF.
82939
82940 2006-05-09  Bruno Haible  <bruno@clisp.org>
82941
82942         * m4/xvasprintf.m4: New file.
82943
82944 2006-05-09  Bruno Haible  <bruno@clisp.org>
82945
82946         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82947         (EOVERFLOW): Define fallback value.
82948         (xstrcat): New function.
82949         (xvasprintf): Recognize the special case of a string concatenation.
82950
82951 2006-05-08  Eric Blake  <ebb9@byu.net>
82952
82953         * gnulib-tool (func_version): Base copyright year on CVS date.
82954         (func_emit_copyright_notice): New function.
82955         (func_emit_lib_Makefile_am): Use it.
82956         (func_emit_tests_Makefile_am): Likewise.
82957         (func_import): Likewise.
82958
82959 2006-05-08  Bruno Haible  <bruno@clisp.org>
82960
82961         * modules/stdarg: New file.
82962         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82963
82964 2006-05-08  Bruno Haible  <bruno@clisp.org>
82965
82966         * m4/stdarg.m4: New file, from GNU gettext.
82967
82968 2006-05-08  Bruno Haible  <bruno@clisp.org>
82969
82970         * config/srclist.txt (build-aux/config.rpath): different from latest
82971         release.
82972
82973 2006-05-08  Bruno Haible  <bruno@clisp.org>
82974
82975         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82976
82977 2006-05-05  Jim Meyering  <jim@meyering.net>
82978
82979         * m4/warning.m4: New file, derived from bison's file by the same name.
82980
82981 2006-05-03  Bruno Haible  <bruno@clisp.org>
82982
82983         * lib/stdint_.h: Shorter URL.
82984         * lib/inttypes.h: Likewise.
82985
82986 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82989
82990 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82991
82992         * lib/verify.h: Document the internals better.  Most of this change
82993         was written by Bruno Haible.
82994
82995 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82996
82997         * doc/verify.texi: New file, partly based on a proposal by
82998         Bruno Haible.
82999
83000 2006-05-02  Bruno Haible  <bruno@clisp.org>
83001
83002         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83003         test from here...
83004         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83005
83006 2006-04-29  Bruno Haible  <bruno@clisp.org>
83007
83008         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83009         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83010
83011 2006-04-29  Bruno Haible  <bruno@clisp.org>
83012
83013         * gnulib-tool: Make --update option actually work.
83014
83015 2006-04-29  Bruno Haible  <bruno@clisp.org>
83016
83017         * doc/gcd.texi: New file.
83018         * doc/gnulib.texi: Include it.
83019
83020 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83021
83022         * lib/getdate.y (get_date): When adding relative date, start with the
83023         initial time, not with the result of the first mktime call.
83024
83025 2006-04-25  Bruno Haible  <bruno@clisp.org>
83026
83027         * gnulib-tool (func_import): Output the include directives in three
83028         blocks, sorted separately.
83029         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83030
83031 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83032
83033         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83034         to define main with arguments, for C++.  Reported by Eric Blake.
83035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83036         Prefer 'int main ()' to 'int main (void)', for C++.
83037         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83038         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83039         for 'main', for C99 and C++.
83040
83041 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83044         Don't assume that exit status -1 is valid.
83045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83046         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83047         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83048         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83049         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83050         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83051         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83052         functions can be used without declaring them, or that you can
83053         exit with status -1.
83054         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83055
83056 2006-04-24  Karl Berry  <karl@gnu.org>
83057
83058         * config/srclist.txt (longdouble.m4): sync lost.
83059
83060 2006-04-24  Eric Blake  <ebb9@byu.net>
83061
83062         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83063
83064 2006-04-24  Bruno Haible  <bruno@clisp.org>
83065
83066         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83067         poll() implementation in AIX.
83068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83069
83070 2006-04-24  Bruno Haible  <bruno@clisp.org>
83071
83072         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83073         assigned exactly once.
83074
83075 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83076             Bruno Haible  <bruno@clisp.org>
83077
83078         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83079         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83080         for AM_CPPFLAGS.
83081
83082 2006-04-23  Bruno Haible  <bruno@clisp.org>
83083
83084         * modules/copy-file: Depend on unistd.
83085         * modules/execute: Likewise.
83086         * modules/fatal-signal: Likewise.
83087         * modules/findprog: Likewise.
83088         * modules/mkdtemp : Likewise.
83089         * modules/pipe: Likewise.
83090         * modules/wait-process: Likewise.
83091
83092 2006-04-23  Bruno Haible  <bruno@clisp.org>
83093
83094         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83095         condition was already detected.
83096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83097
83098 2006-04-23  Bruno Haible  <bruno@clisp.org>
83099
83100         * lib/copy-file.c: Include <unistd.h> unconditionally.
83101         * lib/execute.c: Likewise.
83102         * lib/fatal-signal.c: Likewise.
83103         * lib/findprog.c: Likewise.
83104         * lib/mkdtemp.c: Likewise.
83105         * lib/pipe.h: Likewise.
83106         * lib/pipe.c: Likewise.
83107         * lib/wait-process.h: Likewise.
83108
83109 2006-04-23  Bruno Haible  <bruno@clisp.org>
83110
83111         * gnulib-tool (func_usage): Fix --import description. Document
83112         --update.
83113         (func_import): Create temporary file in a temporary directory, if
83114         --dry-run is specified. Silence errors from 'grep' when there are no
83115         m4 files in $m4dir.
83116         (func_create_testdir): Silence errors from 'grep' when there are no
83117         m4 files in $m4dir.
83118         Reported by Karl Berry <karl@freefriends.org>.
83119
83120 2006-04-20  Bruno Haible  <bruno@clisp.org>
83121
83122         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83123         one argument, so that the code will be portable to Autoconf 2.60.
83124         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83125         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83126         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83127
83128 2006-04-19  Derek Price  <derek@ximbiot.com>
83129             Eric Blake  <ebb9@byu.net>
83130
83131         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83132         rather than "/full/path.h".  Update comment to match.  Shorten &
83133         generalize m4_translit call via AS_TR_CPP.
83134
83135 2006-04-19  Derek Price  <derek@ximbiot.com>
83136             Eric Blake  <ebb9@byu.net>
83137
83138         * lib/inttypes.h: Correct grammar in comment.
83139
83140 2006-04-18  Derek Price  <derek@ximbiot.com>
83141             Paul Eggert  <eggert@cs.ucla.edu>
83142
83143         * modules/inttypes: New file.
83144         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83145
83146 2006-04-18  Derek Price  <derek@ximbiot.com>
83147             Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83150         New files.
83151
83152 2006-04-18  Derek Price  <derek@ximbiot.com>
83153             Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         * lib/inttypes.h: New file.
83156         * lib/strtoimax.c: Assume <inttypes.h>.
83157
83158 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83159
83160         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83161         isn't mounted.  Problem reported by Kir Kolyshkin.
83162
83163 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83166         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83167         Derek R. Price.
83168         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83169         implementation.
83170
83171 2006-04-12  Eric Blake  <ebb9@byu.net>
83172
83173         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83174         is now done automatically by the corresponding Autoconf macro.
83175
83176 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83179         time_r.h.
83180
83181 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83182
83183         Merge regex changes from libc, removing some of our
83184         POSIX-conformance changes that were rejected and redoing them in a
83185         less-intrusive way.
83186
83187         * lib/regcomp.c (re_compile_internal, init_dfa):
83188         Length arg is now size_t, not Idx.  All uses changed.
83189         (peek_token): Forward decl now says internal_function.
83190         (__re_error_msgid, __re_error_msgid_idx):
83191         Now static rather than extern with attribute_hidden.
83192         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83193         For some reason libc prefers K&R style defns for external functions.
83194         (regerror) [!defined _LIBC]: Likewise.
83195         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83196         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83197         (build_range_exp, build_collating_symbol):
83198         Use K&R-style defn.
83199         (re_compile_fastmap): Use '\0' to memset, not 0.
83200         (utf8_sb_map): Make the calculations more obvious.
83201         (init_dfa, parse_bracket_exp, build_charclass_op):
83202         Call calloc and cast result, as glibc does.
83203         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83204         (build_range_exp, build_collating_symbol):
83205         Now internal functions.
83206
83207         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83208
83209         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83210         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83211         Don't depend on VMS; depend on __VMS instead, for POSIX
83212         namespace cleanness.
83213         (regoff_t): Define to ssize_t, not long int.
83214
83215         Remove the REG_ macros named below.  Instead, make the old names
83216         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83217         __USE_GNU_REGEX.
83218         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83219         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83220         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83221         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83222         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83223         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83224         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83225         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83226         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83227         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83228         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83229         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83230         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83231         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83232         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83233         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83234         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83235         (REG_NREGS):
83236         Remove.  All uses replaced by the old RE_* names.
83237         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83238         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83239         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83240         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83241         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83242         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83243         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83244         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83245         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83246         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83247         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83248         Don't bother having these macros be independent of each others'
83249         values, since they no longer exist in the POSIX name space.
83250
83251         Rename the following member names back to their old names,
83252         unless !__USE_GNU_REGEX.  All uses changed back.
83253         (buffer): Renamed from re_buffer.
83254         (allocated): Renamed from re_allocated.
83255         (used): Renamed from re_used.
83256         (syntax): Renamed from re_syntax.
83257         (fastmap): Renamed from re_fastmap.
83258         (translate): Renamed from re_translate.
83259         (can_be_null): Renamed from re_can_be_null.
83260         (regs_allocated): Renamed from re_regs_allocated.
83261         (fastmap_accurate): Renamed from re_fastmap_accurate.
83262         (no_sub): Renamed from re_no_sub.
83263         (not_bol): Renamed from re_not_bol.
83264         (not_eol): Renamed from re_not_eol.
83265         (newline_anchor): Renamed from re_newline_anchor.
83266         (num_regs): Renamed from rm_num_regs.
83267         (start): Renamed from rm_start.
83268         (end): Renamed from rm_end.
83269
83270         (free_state): Move up a bit.
83271
83272         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83273         #define to be empty.
83274         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83275         when that is what is intended.
83276         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83277         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83278         (MAX): New macro.
83279         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83280         All uses changed back to re_malloc, etc.  It's now the caller's
83281         responsibility to check for overflow; all callers changed.
83282         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83283         (re_x2nrealloc): Remove.
83284         (free_state): Remove decl.
83285
83286         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83287         (re_set_registers, re_exec):
83288         Use K&R-style defn.
83289
83290         2006-01-31  Roland McGrath  <roland@redhat.com>
83291
83292         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83293         Reported by Mike Frysinger <vapier@gentoo.org>.
83294
83295         2006-01-15  Andreas Jaeger  <aj@suse.de>
83296
83297         [BZ #1950]
83298         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83299         build_wcs_upper_buffer change.
83300         (build_wcs_upper_buffer): Change return type.
83301
83302         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83303
83304         * lib/regex_internal.h: Include <stdint.h> if available.
83305
83306         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83307
83308         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83309
83310         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83311
83312         * lib/regcomp.c: Adjust for changed secondary hash function.
83313
83314         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83315
83316         * lib/regex.h: Pretty printing.
83317         Clean up namespace a bit.
83318
83319         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83320
83321         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83322         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83323
83324         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83325                     Ulrich Drepper  <drepper@redhat.com>
83326
83327         [BZ #1302]
83328         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83329         changed.
83330         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83331
83332         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83333
83334         [BZ #281]
83335         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83336         * lib/regcomp.c: Remove unnecessary uses of
83337         unsigned RE_TRANSLATE_TYPE.
83338         * lib/regex_internal.h: Likewise.
83339         * lib/regex_internal.c: Likewise.
83340         * lib/regexec.c: Likewise.
83341         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83342
83343         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83344
83345         * lib/regexec.c (find_recover_state): Remove unnecessary
83346         initialization.
83347         (transit_state_bkref): Make DFA a const pointer.
83348         (get_subexp): Likewise.
83349         (check_arrival): Likewise.
83350         (update_cur_sifted_state): Likewise.
83351         (re_search_internal): Likewise.
83352         (prune_impossible_nodes): Likewise.
83353         (acquire_init_state_context): Likewise.
83354         (proceed_next_node): Likewise.
83355         (set_regs): Likewise.
83356         (free_fail_stack_return): Likewise.
83357         (check_arrival_expand_ecl): Mark DFA parameter as const.
83358         (check_arrival_expand_ecl_sub): Likewise.
83359         (check_subexp_limits): Likewise.
83360         (sub_epsilon_src_nodes):  Likewise.
83361         (add_epsilon_src_nodes):  Likewise.
83362         (merge_state_array): Likewise.
83363         (update_regs): Likewise.
83364         (build_trtable): Likewise.
83365         (sift_states_backward): Mark MCTX parameter as const.
83366         (build_sifted_states): Likewise.
83367         (update_cur_sifted_state): Likewise.
83368         (sift_states_mkref): Likewise.
83369         (check_arrival_expand_ecl): Mark eclosure as const.
83370         (check_dst_limits_calc_pos_1): Likewise.
83371         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83372         pointer.
83373
83374         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83375
83376         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83377         (transit_state_sb): Likewise.
83378         (transit_state_mb): Likewise.
83379         (sift_states_iter_mb): Likewise.
83380         (check_arrival_add_next_nodes): Likewise.
83381         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83382         [_LIBC] (re_search_2_stub): Use mempcpy.
83383
83384         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83385         mbrtowc for very simple UTF-8 case.
83386
83387         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83388         a pointer-to-const.
83389         (re_acquire_state_context): Likewise.
83390         * lib/regex_internal.h: Adjust prototypes.
83391
83392         * lib/regex.c: Prevent using C++ compilers.
83393
83394         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83395         (re_acquire_state_context): Likewise.
83396
83397 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83398
83399         * modules/regex (Depends-on): Add ssize_t.
83400
83401 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83404         translation table.
83405
83406 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83409
83410 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83411             Bruno Haible  <bruno@clisp.org>
83412
83413         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83414         <sys/types.h> and <inttypes.h>.
83415
83416 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83417
83418         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83419         `__error_t_defined', so argp.h will not typedef the former.
83420
83421 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83422
83423         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83424         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83425         glibc names.  Even if glibc is changed to conform to POSIX, the
83426         traditional names will be available anyway, since regex depends on
83427         the extensions module.  Also, fix a longstanding typo in the
83428         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83429         reported by Emanuele Giaquinta.  Also, change sense of cached
83430         variable, so that the message makes sense.
83431
83432 2006-03-24  Simon Josefsson  <jas@extundo.com>
83433
83434         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83435         including some doc fixes.
83436         (base64_encode_alloc): Fix +1 bug on allocation failures.
83437
83438 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83439
83440         * lib/base64.c (base64_encode): Do not read past end of array with
83441         unsanitized input on systems with CHAR_BIT > 8.
83442
83443 2006-03-24  Eric Blake  <ebb9@byu.net>
83444
83445         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83446
83447 2006-03-22  Karl Berry  <karl@gnu.org>
83448
83449         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83450         * config/srclistvars.sh (COREUTILS): new var.
83451
83452 2006-03-17  Jim Meyering  <jim@meyering.net>
83453
83454         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83455         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83456
83457 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83458
83459         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83460         no longer needs it.  Instead, check that regoff_t is as least
83461         as wide as ptrdiff_t.
83462
83463         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83464         so that our regex.h stays compatible with the installed regex.
83465         This is helpful for installers who configure --without-included-regex.
83466         Problem reported by Emanuele Giaquinta.
83467
83468 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83469
83470         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83471         Typedef to long int, not to off_, as POSIX will likely change
83472         in that direction.
83473
83474 2006-03-15  Eric Blake  <ebb9@byu.net>
83475
83476         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83477
83478 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83479
83480         * lib/argp-help.c (validate_uparams): Fix typo
83481         * lib/argp-parse.c (argp_default_options): Consistently begin help
83482         messages with a lowercase letter.
83483
83484 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83487         overrun buffers and shouldn't be used (much as gets shouldn't be
83488         used).
83489         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83490
83491 2006-03-08  Simon Josefsson  <jas@extundo.com>
83492
83493         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83494         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83495
83496 2006-03-08  Simon Josefsson  <jas@extundo.com>
83497
83498         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83499         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83500
83501 2006-03-08  Simon Josefsson  <jas@extundo.com>
83502
83503         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83504         signal that configure disabled the device.
83505
83506 2006-03-08  Simon Josefsson  <jas@extundo.com>
83507
83508         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83509         languages.
83510
83511 2006-03-07  Simon Josefsson  <jas@extundo.com>
83512
83513         * modules/getopt (Depends-on): Add unistd.
83514
83515         * modules/unistd: New file.
83516
83517 2006-03-07  Simon Josefsson  <jas@extundo.com>
83518
83519         * modules/gc-random: New file.
83520
83521 2006-03-07  Simon Josefsson  <jas@extundo.com>
83522
83523         * m4/unistd_h.m4: New file.
83524
83525 2006-03-07  Simon Josefsson  <jas@extundo.com>
83526
83527         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83528         test to be side-effect free by storing the result in the cache
83529         variable gl_cv_lib_readline, and moving the assignment of
83530         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83531         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83532
83533 2006-03-07  Simon Josefsson  <jas@extundo.com>
83534
83535         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83536         error on missing devices (the functions will return an error).
83537
83538         * m4/gc.m4: Move random stuff to gc-random.m4
83539
83540 2006-03-07  Simon Josefsson  <jas@extundo.com>
83541
83542         * lib/unistd_.h: New file.
83543
83544 2006-03-07  Simon Josefsson  <jas@extundo.com>
83545
83546         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83547
83548 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83549
83550         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83551         Problem reported by Juan Manuel Guerrero.
83552
83553 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83554
83555         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83556         the unistd module.
83557         * lib/getlogin_r.c: Likewise.
83558         * lib/getlogin_r.h: Likewise.
83559         * lib/glob.c: Likewise.
83560         * lib/pagealign_alloc.c: Likewise.
83561         * lib/unistd_.h: Remove; no longer needed.
83562
83563 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83564
83565         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83566         Add unistd.
83567         * modules/c-stack (Depends-on): Add unistd.
83568         * modules/getlogin_r: Likewise.
83569         * modules/glob: Likewise.
83570         * modules/pagealign_alloc: Likewise.
83571         * modules/unistd (Files): Remove lib/unistd_.h.
83572         (EXTRA_DIST): Remove.
83573         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83574         need unistd_.h.
83575         (MOSTLYCLEANFILES): Remove unistd.h-t.
83576
83577 2006-03-03  Simon Josefsson  <jas@extundo.com>
83578
83579         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83580
83581 2006-03-03  Simon Josefsson  <jas@extundo.com>
83582
83583         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83584         libidn and bison.
83585
83586 2006-03-03  Simon Josefsson  <jas@extundo.com>
83587
83588         * build-aux/maint.mk: Add indent target.
83589
83590 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83591
83592         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83593         our replacement poll.h in any case, to avoid a differing
83594         declaration from a system header.  Seen on AIX.
83595
83596 2006-03-01  Simon Josefsson  <jas@extundo.com>
83597
83598         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83599         <kasal@ucw.cz>.
83600
83601 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         * modules/gettime (Depends-on): Add extensions module.
83604         * modules/nanosleep (Depends-on): Likewise.
83605         * modules/settime (Depends-on): Likewise.
83606
83607 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83608
83609         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83610         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83611         pedantically.
83612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83613         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83614
83615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83616         not "==".  Reported by Ralf Wildenhues.
83617
83618 2006-03-01  Karl Berry  <karl@gnu.org>
83619
83620         * doc/Copyright/request-*: new files, synced from gnuorg.
83621
83622 2006-03-01  Karl Berry  <karl@gnu.org>
83623
83624         * config/srclist.txt (Copyright/*): new entries.
83625
83626 2006-02-28  Simon Josefsson  <jas@extundo.com>
83627
83628         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83629
83630 2006-02-27  Simon Josefsson  <jas@extundo.com>
83631
83632         * lib/base64.h: Indent #define's.  From Jim Meyering
83633         <jim@meyering.net>.
83634
83635 2006-02-27  Jim Meyering  <jim@meyering.net>
83636
83637         Revert the change of 2006-02-24, so these files can continue
83638         to be sync'd from gettext.
83639         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83640         of `config.h'.
83641
83642 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83643
83644         * modules/intprops: New file.
83645         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83646         Add intprops.
83647         * modules/getloadavg (Files): Remove lib/intprops.h.
83648         (Depends-on): Add intprops.
83649         * modules/human: Likewise.
83650         * modules/inttostr: Likewise.
83651         * modules/openat: Likewise.
83652         * modules/sig2str: Likewise.
83653         * modules/userspec: Likewise.
83654         * modules/utimecmp: Likewise.
83655         * modules/xnanosleep: Likewise.
83656         * modules/xstrtol: Likewise.
83657
83658 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83659
83660         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83661         * modules/lock-tests (TESTS): Use $(EXEEXT).
83662         * modules/tls-tests: Likewise.
83663         * modules/argp-tests: Likewise.
83664         (check_PROGRAMS): New var, replacing...
83665         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83666
83667 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83668
83669         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83670         `config.h'.
83671
83672 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83673
83674         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83675
83676 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83677
83678         Sync from coreutils.
83679         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83680         gl_CHDIR_SAFER.
83681
83682 2006-02-22  Jim Meyering  <jim@meyering.net>
83683
83684         Sync from coreutils.
83685         * m4/chdir-safer.m4: New file.
83686
83687 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83690         AT_FDCWD exceeds INT_MAX.
83691         * lib/openat.h (AT_FDCWD): Likewise.
83692
83693 2006-02-17  Eric Blake  <address@hidden>
83694
83695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83696
83697 2006-02-16  Simon Josefsson  <jas@extundo.com>
83698
83699         * modules/getaddrinfo (Depends-on): Add sys_socket.
83700
83701 2006-02-15  Simon Josefsson  <jas@extundo.com>
83702
83703         * build-aux/maint.mk: Add dsyntax-check rule.
83704
83705 2006-02-15  Eric Blake  <ebb9@byu.net>
83706
83707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83708         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83709         'present but cannot compile' warnings on cygwin.
83710         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83711         use ws2tcpip.h if sys/socket.h works.
83712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83713         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83714
83715 2006-02-14  Simon Josefsson  <jas@extundo.com>
83716
83717         * modules/maintainer-makefile (Files): Rename.
83718
83719         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83720         and (the local) Makefile.cfg to maint-cfg.mk.
83721
83722         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83723         to the latter.
83724
83725         * modules/maintainer-makefile: New module.
83726
83727         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83728         severaly stripped to make it possible to build it up from scratch
83729         with reliable tests.
83730
83731         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83732         fixes to permit overriding the default actions when configure and
83733         makefile are not available.
83734
83735 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83736
83737         Sync from coreutils.
83738         * modules/lstat (Depends-on): Don't depend on xalloc.
83739         (License): Change from GPL to LGPL, since this is now simply a
83740         replacement for a libc function.
83741
83742 2006-02-14  Jim Meyering  <jim@meyering.net>
83743
83744         Sync from coreutils.
83745
83746         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83747         failure on deficient systems, and simplify gnulib lgpl dependencies.
83748         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83749         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83750
83751         * lib/xalloc-die.c: Remove unused definition of N_.
83752
83753 2006-02-14  Jim Meyering  <jim@meyering.net>
83754
83755         Sync from coreutils.
83756         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83757         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83758         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83759         double-quote uses of that variable, to accommodate the rare case in
83760         which getmntent is available in none of the libraries checked.  This
83761         happens at least on FreeBSD 5.0.
83762
83763 2006-02-13  Simon Josefsson  <jas@extundo.com>
83764
83765         * gnulib-tool (Usage): Fix --import, from
83766         karl@freefriends.org (Karl Berry).
83767
83768 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83769
83770         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83771
83772 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83773
83774         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83775         "autoupdate" on 2005-12-12.
83776
83777 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83778
83779         * modules/closeout (Depends-on): Remove atexit.
83780
83781 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83784         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83785
83786 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83787
83788         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83789         __EXTENSIONS__ if this causes compilation to fail.  Problem
83790         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83791         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83792
83793 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83796         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83798         All uses changed.
83799
83800 2006-01-26  Simon Josefsson  <jas@extundo.com>
83801
83802         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83803         prototype is visible on mingw32.
83804
83805         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83806         for mingw32.
83807
83808         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83809         mingw32).
83810
83811 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83814         attempt to open for write; this always fails, at least on POSIX
83815         hosts.  This reinstates the 2006-01-09 change, which was
83816         inadvertently removed.
83817
83818 2006-01-26  Bruno Haible  <bruno@clisp.org>
83819
83820         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83821         Reported by Paul Eggert.
83822
83823 2006-01-26  Bruno Haible  <bruno@clisp.org>
83824             Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * lib/stdbool_.h (_Bool)
83827         [(! (defined __cplusplus || defined __BEOS__)
83828           && !defined __GNUC__
83829           && !(defined __HP_cc || defined __xlc__
83830                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83831                || defined __sgi))]:
83832         #define to signed char in these cases too; this simplifies
83833         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83834         etc., separately) and makes it more conservative.
83835
83836 2006-01-25  Simon Josefsson  <jas@extundo.com>
83837
83838         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83839         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83840         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83841
83842 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83843
83844         * lib/argp-namefrob.h: Bugfix. Remove stray #
83845
83846 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83849         so that we test the test.
83850         Check for yet another HP-UX cc bug involving *bool |= bool.
83851
83852 2006-01-25  Karl Berry  <karl@gnu.org>
83853
83854         * config/srclist.txt (vasnprintf.c): sync lost.
83855
83856 2006-01-25  Jim Meyering  <jim@meyering.net>
83857
83858         Sync from the stable (b5) branch of coreutils:
83859
83860         * lib/fts.c (fts_children): Don't let close() clobber errno from
83861         failed fchdir().
83862
83863         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83864         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83865         a dangling symlink.  That can also happen at least for ELOOP.
83866         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83867         FYI, this bug predates the inclusion of fts.c in coreutils.
83868
83869         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83870         in their own block, so pre-c99 compilers don't object.
83871
83872         Avoid the double-free (first in fts_read, second in fts_close) that
83873         would occur when an `active' directory is made inaccessible (e.g.,
83874         via chmod a-x) during a traversal.
83875         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83876         before returning.  Reproduce this failure by
83877         mkdir -p a/b; cd a; chmod a-x . b
83878         Reported by Stavros Passas.
83879
83880 2006-01-25  Jim Meyering  <jim@meyering.net>
83881
83882         * lib/fileblocks.c: Remove more useless parentheses.
83883         * lib/readutmp.h: Likewise.
83884
83885 2006-01-25  Bruno Haible  <bruno@clisp.org>
83886
83887         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83888         warnings.
83889         Reported by Paul Eggert.
83890
83891 2006-01-25  Bruno Haible  <bruno@clisp.org>
83892
83893         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83894         rid of a trap command. For Solaris sh.
83895         Reported by Mark D. Baushke <mdb@gnu.org>.
83896
83897 2006-01-24  Simon Josefsson  <jas@extundo.com>
83898
83899         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83900         Bruno.
83901
83902 2006-01-24  Karl Berry  <karl@gnu.org>
83903
83904         * config/srclist.txt (argp-namefrob.h): sync lost.
83905
83906 2006-01-24  Jim Meyering  <jim@meyering.net>
83907
83908         * modules/openat (Files): Add lib/intprops.h.
83909         From Mark D. Baushke.
83910
83911 2006-01-24  Jim Meyering  <jim@meyering.net>
83912
83913         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83914         Reported by Mark D. Baushke.
83915
83916 2006-01-24  Jim Meyering  <jim@meyering.net>
83917
83918         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83919
83920 2006-01-24  Bruno Haible  <bruno@clisp.org>
83921
83922         * modules/strnlen (Maintainer): Change from glibc to all.
83923
83924 2006-01-24  Bruno Haible  <bruno@clisp.org>
83925
83926         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83927         Patch by Paul Eggert.
83928
83929 2006-01-24  Bruno Haible  <bruno@clisp.org>
83930
83931         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83932         already has it.
83933         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83934         2005-11-26.
83935
83936         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83937         'signed char' to avoid problems with the built-in _Bool type.
83938         Reported by Paul Eggert on 2005-11-26.
83939
83940 2006-01-24  Bruno Haible  <bruno@clisp.org>
83941
83942         * gnulib-tool (func_import): Avoid constructing complicated sed
83943         expressions inside backquote.
83944         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83945
83946 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83947
83948         These changes imported from libc.
83949         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83950         test and two separate function calls.
83951         * lib/strndup.c (__strndup): Add libc_hidden_def.
83952
83953 2006-01-23  Simon Josefsson  <jas@extundo.com>
83954
83955         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83956         Remove the test_*_SOURCES variable: automake infers it by default.
83957         * modules/tls-tests: Likewise.
83958
83959 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         Work around porting bugs reported by Dieter in
83962         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83963         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83964         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83965         Include "getopt.h" first, to check interface.
83966         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83967         !HAVE_DECL_GETENV.
83968         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83969         (__strndup): Revert to K&R-style function dfns, the glibc style.
83970         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83971         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83972         Include strnlen.h first, to get prototype properly.
83973         (strnlen): Renamed from __strnlen.
83974         Remove weak alias.
83975
83976 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83977
83978         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83979
83980 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83981
83982         * config/srclist.txt: Adjust to reflect glibc reorganization.
83983         This affects only comments.
83984
83985 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83986
83987          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83988          Reported by Bruce Korb <bkorb@gnu.org>.
83989
83990 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83993         to pacify gcc -Wswitch-default.
83994
83995 2006-01-22  Bruno Haible  <bruno@clisp.org>
83996
83997         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83998         temporary buffer for sprintf, take into account the precision also
83999         for 'd', 'i', 'u', 'o', 'x', 'X'.
84000
84001 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84002
84003         * modules/argp-tests: New module
84004         * tests/test-argp.c: New file
84005         * tests/test-argp-2.sh: New file
84006
84007 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84008
84009         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84010         (__argp_base_name): Removed
84011         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84012         typo.
84013         (__argp_base_name): Provide macro definition or extern declaration
84014         depending on the configuration
84015
84016 2006-01-20  Simon Josefsson  <jas@extundo.com>
84017
84018         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84019
84020 2006-01-20  Simon Josefsson  <jas@extundo.com>
84021
84022         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84023
84024 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84025
84026         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84027         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84028         Suggested by Bruno Haible.
84029
84030 2006-01-20  Karl Berry  <karl@gnu.org>
84031
84032         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84033         until changes propagate, I guess.
84034
84035 2006-01-19  Simon Josefsson  <jas@extundo.com>
84036
84037         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84038
84039 2006-01-19  Simon Josefsson  <jas@extundo.com>
84040
84041         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84042
84043 2006-01-19  Simon Josefsson  <jas@extundo.com>
84044
84045         * gnulib-tool: Set check_PROGRAMS.
84046
84047         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84048         modules/des-tests, modules/gc-arcfour-tests,
84049         modules/gc-arctwo-tests, modules/gc-des-tests,
84050         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84051         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84052         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84053         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84054         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84055         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84056         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84057         test_*_SOURCES.
84058
84059 2006-01-18  Simon Josefsson  <jas@extundo.com>
84060
84061         * modules/socklen (Depends-on): Depend on sys_socket.
84062
84063 2006-01-18  Simon Josefsson  <jas@extundo.com>
84064
84065         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84066         modules/des-tests, modules/gc-arcfour-tests,
84067         modules/gc-arctwo-tests, modules/gc-des-tests,
84068         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84069         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84070         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84071         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84072         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84073         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84074         $(EXEEXT) to automake TESTS variable, for mingw32.
84075
84076 2006-01-17  Simon Josefsson  <jas@extundo.com>
84077
84078         * modules/socklen (Include): Need sys/socket.h.
84079
84080 2006-01-17  Bruno Haible  <bruno@clisp.org>
84081
84082         * modules/ssize_t (Include): Add <sys/types.h>.
84083
84084 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84085
84086         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84087         it's not portable and it doesn't work with cross-compiles.
84088         Problem reported by Bruno Haible.  Fix missing-$ typo in
84089         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84090         -zignore from being used with Sun's C compiler.
84091
84092 2006-01-12  Simon Josefsson  <jas@extundo.com>
84093
84094         * lib/base64.c: Fix warning, reported by Bruno Haible
84095         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84096
84097 2006-01-12  Bruno Haible  <bruno@clisp.org>
84098
84099         * modules/ldd: New file.
84100         * build-aux/ldd.sh.in: New file.
84101         * MODULES.html.sh (Support for building libraries and executables): Add
84102         ldd.
84103
84104 2006-01-12  Bruno Haible  <bruno@clisp.org>
84105
84106         * m4/ldd.m4: New file.
84107
84108 2006-01-12  Bruno Haible  <bruno@clisp.org>
84109
84110         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84111         endless loop while replacing $auxdir with build-aux.
84112
84113 2006-01-11  Simon Josefsson  <jas@extundo.com>
84114
84115         * lib/stdint_.h (SIZE_MAX): Add missing (.
84116
84117 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84118
84119         Sync from coreutils.
84120         * lib/md5.c: Fix commentary typos.
84121         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84122         * lib/md5.h (__attribute__): Remove; unused.
84123         * lib/sha1.c: Fix commentary to match md5 better.
84124         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84125         so that we don't need to worry about alignment.  All uses changed.
84126         This merges the 2005-10-28 md5 change into sha1.
84127
84128 2006-01-11  Jim Meyering  <jim@meyering.net>
84129
84130         Sync from coreutils.
84131         * lib/md5.c (OP): Fix spacing.
84132
84133 2006-01-11  Bruno Haible  <bruno@clisp.org>
84134
84135         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84136         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84137         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84138
84139 2006-01-11  Bruno Haible  <bruno@clisp.org>
84140
84141         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84142         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84143         the "early" section as well.
84144
84145 2006-01-11  Bruno Haible  <bruno@clisp.org>
84146
84147         Avoid "ar: no archive members specified" error on MacOS X.
84148         * gnulib-tool (func_modules_add_dummy): New function.
84149         (func_import, func_create_testdir): Invoke it.
84150
84151 2006-01-11  Bruno Haible  <bruno@clisp.org>
84152
84153         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84154         with $auxdir in AC_CONFIG_FILES statements.
84155
84156 2006-01-11  Bruno Haible  <bruno@clisp.org>
84157
84158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84159         Initialize also noinst_HEADERS to empty.
84160
84161 2006-01-11  Bruno Haible  <bruno@clisp.org>
84162
84163         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84164         variables.
84165         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84166         autoreconf.
84167
84168 2006-01-11  Bruno Haible  <bruno@clisp.org>
84169
84170         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84171         overridable by the user.
84172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84173
84174 2006-01-10  Simon Josefsson  <jas@extundo.com>
84175
84176         * modules/sys_socket: New file.
84177
84178 2006-01-10  Simon Josefsson  <jas@extundo.com>
84179
84180         * m4/sys_socket_h.m4: New file.
84181
84182 2006-01-10  Simon Josefsson  <jas@extundo.com>
84183
84184         * lib/socket_.h: New file.
84185
84186 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84187
84188         * modules/readutmp (Maintainer): Add myself.
84189
84190 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84191
84192         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84193         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84194         People who are still concerned with buggy memcmp implementations
84195         can invoke gl_FUNC_MEMCMP themselves.
84196
84197 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84198
84199         * lib/regex_internal.h (BITSET_WORD_BITS):
84200         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84201         preprocessor mishandles large unsigned values as if they were signed.
84202         Problem reported by Claudio Fontana in
84203         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84204
84205 2006-01-10  Jim Meyering  <jim@meyering.net>
84206
84207         Avoid the double-free (first in fts_read, second in fts_close) that
84208         would occur when an `active' directory is made inaccessible (e.g.,
84209         via chmod a-x) during a traversal.
84210         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84211         before returning.  Reproduce this failure by
84212         mkdir -p a/b; cd a; chmod a-x . b
84213         Reported by Stavros Passas.
84214
84215         Sync from coreutils.
84216         * lib/sha1.c: Tweak grammar in a comment.
84217
84218 2006-01-10  Jim Meyering  <jim@meyering.net>
84219
84220         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84221         Patch by Joerg Sonnenberger.
84222
84223 2006-01-10  Bruno Haible  <bruno@clisp.org>
84224
84225         * modules/readutmp: Depend on module free.
84226         * modules/strtok_r: Depend on module restrict.
84227
84228 2006-01-10  Bruno Haible  <bruno@clisp.org>
84229
84230         * modules/gettext (configure.ac): Add an invocation of
84231         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84232
84233 2006-01-10  Bruno Haible  <bruno@clisp.org>
84234
84235         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84236         Reported by Werner Lemberg <wl@gnu.org>.
84237
84238 2006-01-10  Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/localcharset.c: Update from GNU gettext.
84241
84242 2006-01-10  Bruno Haible  <bruno@clisp.org>
84243
84244         * lib/argp.h (__const): Remove macro. Use const instead.
84245         * lib/argp-fmtstream.h (__const): Likewise.
84246         * lib/glob_.h (__const): Remove macro.
84247         * lib/glob-libc.h: Use const instead of __const.
84248
84249 2006-01-10  Bruno Haible  <bruno@clisp.org>
84250
84251         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84252         variable.
84253         Needed to avoid an automake error regarding the 'gettext' module.
84254
84255 2006-01-09  Simon Josefsson  <jas@extundo.com>
84256
84257         * modules/inet_ntop (Depends-on): Add restrict.
84258
84259 2006-01-09  Simon Josefsson  <jas@extundo.com>
84260
84261         * modules/gc-rijndael-tests (License): Put under LGPL.
84262
84263         * modules/gc-des-tests (License): Likewise.
84264
84265         * modules/gc-arcfour-tests (License): Likewise.
84266
84267         * modules/gc-arctwo-tests (License): Likewise.
84268
84269         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84270
84271         * modules/gc-hmac-sha1-tests (Files): Likewise.
84272
84273         * modules/gc-hmac-md5-tests (License): Likewise.
84274
84275         * modules/gc-sha1-tests (License): Likewise.
84276
84277         * modules/gc-md5-tests (License): Likewise.
84278
84279         * modules/gc-md4-tests (License): Likewise.
84280
84281         * modules/gc-md2-tests (License): Likewise.
84282
84283         * modules/gc-tests (License): Likewise.
84284
84285         * modules/des-tests (License): Likewise.
84286
84287         * modules/md4-tests (License): Likewise.
84288
84289         * modules/md2-tests (License): Likewise.
84290
84291 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84292
84293         Sync from coreutils:
84294
84295         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84296         * modules/lib-ignore: New file.
84297         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84298         chdir-safer.m4, lchmod.m4.
84299         * modules/openat: Add mkdirat.c, openat-priv.h.
84300
84301 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84302
84303         Sync from coreutils.
84304         * m4/lib-ignore.m4: New file.
84305         * m4/lchmod.m4: New file.
84306
84307 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         Sync from coreutils.
84310         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84311         for write access: POSIX says that must fail.
84312         * lib/fts.c (diropen): Likewise.
84313         * lib/save-cwd.c (save_cwd): Likewise.
84314         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84315         well, for minor improvements on hosts that lack O_DIRECTORY.
84316         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84317         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84318         Fall back on chown if open failed with EACCES.
84319
84320         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84321         Report an error at compile-time if only a 1-second nominal clock
84322         resolution is found.
84323
84324         * lib/lchmod.h: New file.
84325         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84326         (make_dir_parents): Use lchown rather than chown, and
84327         lchmod rather than chmod.
84328
84329         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84330         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84331         "proc" reported by n0dalus.
84332
84333         * lib/mountlist.c: Include <limits.h>.
84334         (dev_from_mount_options)
84335         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84336         New function.  It no longer assumes "dev=" has the System V meaning
84337         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84338         (read_file_system_list)
84339         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84340         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84341         dev= in that case.
84342
84343         * lib/posixtm.h (PDS_PRE_2000): New macro.
84344         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84345         allow_century.  All usages changed.  Reject dates outside the range
84346         1969-1999 if PDS_PRE_2000 is used.
84347
84348 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84349
84350         Sync from coreutils.
84351         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84352         (Time of day items): Mention the possibility of leap seconds.
84353         Problem reported by Dr. David Alan Gilbert.
84354
84355 2006-01-09  Jim Meyering  <jim@meyering.net>
84356
84357         Sync from coreutils.
84358
84359         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84360
84361         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84362
84363         * lib/modechange.c (mode_compile): Reject an invalid mode string
84364         that starts with an octal digit.  From Andreas Gruenbacher.
84365
84366         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84367         and dup to open_safer and dup_safer, respectively.
84368         (openat_permissive): Fix typo in comment.
84369
84370         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84371         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84372         (_): Remove; no longer needed.
84373         (openat): Renamed from rpl_openat; no need for rpl_openat
84374         since openat.h renames openat for us.
84375         Replace most of the body with a call to openat_permissive,
84376         to avoid duplicate code.
84377         Port to (probably hypothetical) environments were mode_t is
84378         wider than int.
84379         (openat_permissive): Require mode arg, so that we can check
84380         types better.  Put it just after flags.  Change cwd failure
84381         indicator from pointer-to-bool to pointer-to-errno-value.
84382         All callers changed.
84383         Invoke openat_save_fail and/or openat_restore_fail if
84384         cwd_errno is null, so that openat can call us.
84385         (openat_permissive, fdopendir, fstatat, unlinkat):
84386         Simplify errno handling to avoid some duplicate code,
84387         as it's OK to set errno on success.
84388         * lib/openat.h: Revamp code so that function macros depend on
84389         __OPENAT_PREFIX only, not also on AT_FDCWD.
84390         (openat_ro): Remove.  Caller changed to use openat_permissive.
84391         (openat_permissive): Now a macro, if not a function.
84392         (openat_restore_fail, openat_save_fail): Now always functions,
84393         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84394
84395         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84396         and openat.c.
84397         * lib/mkdirat.c: Include openat-priv.h.
84398         Remove definitions of macros defined therein.
84399         * lib/openat.c: Likewise.
84400
84401         * lib/mkdirat.c (mkdirat): New file and function.
84402         * lib/openat.h (mkdirat): Declare.
84403
84404         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84405
84406         * lib/openat.h (openat_permissive): Declare.
84407         (openat_ro): Define.
84408
84409         * lib/openat.c (EXPECTED_ERRNO): New macro.
84410         (openat_permissive): New function -- used in remove.c rewrite.
84411         (all functions): Set errno just before returning, only if there
84412         was an actual failure.
84413         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84414
84415         Emulate openat-family functions using Linux's procfs, if possible.
84416         Idea and some code based on Ulrich Drepper's glibc changes.
84417
84418         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84419         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84420         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84421         before falling back on save_cwd and restore_cwd.
84422         (fdopendir, fstatat, unlinkat): Likewise.
84423
84424         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84425         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84426
84427         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84428         as second argument to va_arg.  Otherwise, some versions of gcc
84429         warn that `if this code is reached, the program will abort'.
84430
84431 2006-01-09  Jim Meyering  <jim@meyering.net>
84432
84433         Sync from coreutils.
84434         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84435         Require openat-priv.h.
84436
84437 2006-01-09  Bruno Haible  <bruno@clisp.org>
84438
84439         * modules/strnlen (Include): Use strnlen.h.
84440
84441 2006-01-09  Bruno Haible  <bruno@clisp.org>
84442
84443         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84444
84445 2006-01-09  Bruno Haible  <bruno@clisp.org>
84446
84447         * lib/sysexit_.h (EX_OK): New macro.
84448         Suggested by Martin Lambers <marlam@marlam.de>.
84449
84450 2006-01-09  Bruno Haible  <bruno@clisp.org>
84451
84452         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84453         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84454
84455 2006-01-09  Bruno Haible  <bruno@clisp.org>
84456
84457         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84458         numbers.
84459
84460 2006-01-09  Bruno Haible  <bruno@clisp.org>
84461
84462         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84463         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84464         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84465         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84466
84467 2006-01-09  Bruno Haible  <bruno@clisp.org>
84468
84469         * build-aux/javacomp.sh.in: New file, moved from lib/.
84470         * modules/javacomp-script (Files): Update.
84471         (configure.ac): Add AC_CONFIG_FILES invocation.
84472         (EXTRA_DIST): Remove variable.
84473
84474         * build-aux/javaexec.sh.in: New file, moved from lib/.
84475         * modules/javaexec (Files): Update.
84476         (configure.ac): Add AC_CONFIG_FILES invocation.
84477         (EXTRA_DIST): Remove javaexec.sh.in.
84478
84479         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84480         * modules/csharpcomp-script (Files): Update.
84481         (configure.ac): Add AC_CONFIG_FILES invocation.
84482         (EXTRA_DIST): Remove variable.
84483
84484         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84485         * modules/csharpexec (Files): Update.
84486         (configure.ac): Add AC_CONFIG_FILES invocation.
84487         (EXTRA_DIST): Remove csharpexec.sh.in.
84488
84489 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84490
84491         Sync from coreutils.
84492
84493         Add POSIX ACL support
84494         * lib/acl.h (copy_acl, set_acl): Add declarations.
84495         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84496         systems other than Linux.
84497         (chmod_or_fchmod): New function: use fchmod when possible,
84498         and chmod otherwise.
84499         (file_has_acl): Add a POSIX ACL implementation, with a
84500         Linux-specific subcase.
84501         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84502         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84503         acls are unsupported.
84504         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84505         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84506         are unsupported.
84507
84508 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84509
84510         Sync from coreutils.
84511         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84512
84513 2006-01-07  Bruno Haible  <bruno@clisp.org>
84514
84515         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84516         gl_EARLY.
84517
84518 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84521         Problem reported for Mingw by Mark Junker.
84522
84523 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84524
84525         * README: Gnulib normally doesn't generate a tarball.
84526
84527 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84530         long int, not int, for nanosecond counts, so that people who are
84531         used to POSIX struct timespec won't be surprised.  Reported by Jim
84532         Meyering.
84533
84534 2005-12-28  Bruno Haible  <bruno@clisp.org>
84535
84536         * build-aux/config.rpath: Update from GNU gettext.
84537
84538 2005-12-16  Jim Meyering  <jim@meyering.net>
84539
84540         * modules/fprintftime: New module.
84541         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84542
84543 2005-12-16  Jim Meyering  <jim@meyering.net>
84544
84545         * m4/fprintftime.m4: New file.
84546
84547 2005-12-16  Jim Meyering  <jim@meyering.net>
84548
84549         * lib/fprintftime.c, lib/fprintftime.h: New files.
84550
84551 2005-12-15  Simon Josefsson  <jas@extundo.com>
84552
84553         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84554         new m4/socklen.m4.
84555
84556 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84557
84558         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84559         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84560
84561 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84562
84563         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84564         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84565         struct uparams is valid. Fall back to the default values if it is
84566         not.
84567
84568 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84569
84570         * modules/argp (Files): Add argp-pin.c
84571         (Depends-on): dirname
84572         (lib_SOURCES): Add argp-pin.c
84573
84574 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84575
84576         * m4/argp.m4:  Check if program_invocation_name and
84577         program_invocation_short_name are declared and define appropriate
84578         macros if they are not.
84579
84580 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84581
84582         * lib/argp-help.c (__argp_base_name): New function
84583         (__argp_short_program_name): Rewrite using __argp_base_name
84584         * lib/argp-namefrob.h: Define program_invocation_name and
84585         program_invocation_short_name if requested
84586         (__argp_base_name): Add prototype
84587         * lib/argp-parse.c (argp_def): Use gettext wrappers
84588         (argp_default_parser): Use __argp_base_name
84589         * lib/argp-pin.c: New file. Defines program_invocation_name and
84590         program_invocation_short_name on systems that lack them.
84591
84592 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84593
84594         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84595         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84596         porting problem reported by Georg Schwarz in
84597         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84598
84599 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84602         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84603         porting problem reported by Georg Schwarz in
84604         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84605
84606 2005-12-05  Bruno Haible  <bruno@clisp.org>
84607
84608         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84609         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84610         Reported by Mark Junker <mjscod@gmx.de>.
84611
84612 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84615         Use implementation from Albert Chin, with some
84616         comments/corrections by Stepan Kasal and myself.
84617
84618 2005-12-02  Bruno Haible  <bruno@clisp.org>
84619
84620         * gnulib-tool (func_import): Accept GPLed build tool modules when
84621         --lgpl is given.
84622         * modules/csharpcomp-script: New file.
84623         * modules/csharpcomp: Depend on it.
84624         * modules/javacomp-script: New file.
84625         * modules/javacomp: Depend on it.
84626         Suggested by Simon Josefsson.
84627
84628 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84629
84630         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84631         statement, to work around an HP-UX 10.20 compiler bug reported by
84632         Peter O'Gorman.
84633
84634 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * modules/savedir (Depends-on): Add openat.
84637
84638 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84639
84640         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84641         (uintmax_t) [defined uintmax_t]: Do not declare.
84642         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84643         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84644         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84645         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84646         sake of portability to weird hosts that C allows (though we don't
84647         know of any practical examples).
84648
84649         * lib/savedir.h (fdsavedir): New decl.
84650         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84651         contains most of the former guts of savedir.
84652         (savedir): Use savedirstream.
84653         Include "openat.h".
84654
84655 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         * modules/obstack (Files): Add m4/ulonglong.m4.
84658         Problem reported by Davide Angelocola.
84659
84660 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84663         coreutils no longer futzes with rounding modes.
84664
84665 2005-11-14  Jim Meyering  <jim@meyering.net>
84666
84667         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84668         replacement of mkstemp.
84669
84670 2005-11-10  Simon Josefsson  <jas@extundo.com>
84671
84672         * lib/readline.c: Remove EOL.
84673
84674 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * modules/gethrxtime (Depends-on): Add gettime.
84677
84678 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84681         or gettimeofday; no longer needed.
84682
84683 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84684
84685         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84686         time business.
84687         (gethrxtime) [! (HAVE_NANOUPTIME
84688         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84689         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84690         our own approximation.
84691
84692 2005-11-08  Eric Blake  <ebb9@byu.net>
84693
84694         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84695
84696 2005-11-08  Eric Blake  <ebb9@byu.net>
84697
84698         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84699
84700 2005-11-04  Bruno Haible  <bruno@clisp.org>
84701
84702         * gnulib-tool: Implement --update mode.
84703
84704 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84705
84706         Fix porting problem reported by Theodoros V. Kalamatianos.
84707         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84708         Don't assume that futimes failing means we must fail.
84709
84710 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84711
84712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84713         variables to suggest the intended function of the PATH_MAX check.
84714
84715 2005-10-30  Kean Johnston  <jkj@sco.com>
84716
84717         Trivial changes to support SCO systems.
84718         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84719         as PATH_MAX.
84720         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84721         where __ptr is null when no I/O is pending.
84722
84723 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84724
84725         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84726         leave errno alone.  Problem reported by Dmitry V. Levin.
84727
84728 2005-10-28  Simon Josefsson  <jas@extundo.com>
84729
84730         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84731         Test more.
84732
84733         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84734
84735         * modules/md2, modules/md2-tests: New files.
84736
84737 2005-10-28  Simon Josefsson  <jas@extundo.com>
84738
84739         * m4/inet_ntop.m4: More tests.
84740
84741         * m4/gc-md2.m4, md2.m4: New file.
84742
84743 2005-10-28  Simon Josefsson  <jas@extundo.com>
84744
84745         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84746         "restrict" keywords, as per POSIX.  Protect the function
84747         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84748         Don't use K&R prototypes.  Check the sprintf return values.
84749         Re-define EAFNOSUPPORT if not present.  Indent.
84750
84751         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84752         suggested by Bruno Haible <bruno@clisp.org>.
84753
84754         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84755
84756         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84757
84758         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84759         libgcrypt).
84760
84761         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84762
84763         * lib/md2.h, lib/md2.c: New files.
84764
84765 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84766
84767         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84768         errno alone.  Problem reported by Frederic Jolliton.
84769
84770 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84771
84772         * modules/verify (License): Change from GPL to LGPL.  This is a
84773         tiny module and there are apparently near-equivalents that are
84774         under the BSD license.
84775
84776 2005-10-24  Simon Josefsson  <jas@extundo.com>
84777
84778         * modules/sha1: Relicense to LGPL.
84779
84780 2005-10-24  Simon Josefsson  <jas@extundo.com>
84781
84782         * lib/md4.h: Shrink buffer size, now that we changed the type.
84783
84784 2005-10-23  Simon Josefsson  <jas@extundo.com>
84785
84786         * gnulib-tool (func_import): Fix --tests-base.
84787
84788 2005-10-22  Simon Josefsson  <jas@extundo.com>
84789
84790         * modules/arcfour (Depends-on): Need stdint.
84791
84792 2005-10-22  Simon Josefsson  <jas@extundo.com>
84793
84794         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84795         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84796
84797 2005-10-22  Simon Josefsson  <jas@extundo.com>
84798
84799         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84800         suggested by Bruno Haible <bruno@clisp.org>.
84801
84802 2005-10-22  Simon Josefsson  <jas@extundo.com>
84803
84804         * lib/crc.h: Include stddef.h, for size_t.
84805
84806 2005-10-22  Simon Josefsson  <jas@extundo.com>
84807
84808         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84809         arcfour_context struct (simplify test vector testing in GNU
84810         Shishi).
84811
84812 2005-10-21  Simon Josefsson  <jas@extundo.com>
84813
84814         * modules/des, modules/des-tests: New files.
84815
84816         * modules/gc-des, modules/gc-des-tests: New files.
84817
84818         * tests/test-des.c, tests/test-gc-des.c: New file.
84819
84820 2005-10-21  Simon Josefsson  <jas@extundo.com>
84821
84822         * modules/arctwo, modules/arctwo-tests: New files.
84823
84824         * tests/test-arctwo.c: New file.
84825
84826         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84827
84828         * tests/test-gc-arctwo.c: New file.
84829
84830 2005-10-21  Simon Josefsson  <jas@extundo.com>
84831
84832         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84833         Bruno Haible <bruno@clisp.org>.
84834
84835         * m4/gc-des.m4: New file.
84836
84837 2005-10-21  Simon Josefsson  <jas@extundo.com>
84838
84839         * m4/arctwo.m4: New file.
84840
84841         * m4/gc-arctwo.m4: New file.
84842
84843 2005-10-21  Simon Josefsson  <jas@extundo.com>
84844
84845         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84846         block.
84847
84848 2005-10-21  Simon Josefsson  <jas@extundo.com>
84849
84850         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84851         <bruno@clisp.org>.
84852
84853         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84854
84855         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84856         Bruno Haible <bruno@clisp.org>.
84857
84858         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84859         <bruno@clisp.org>.
84860
84861 2005-10-21  Simon Josefsson  <jas@extundo.com>
84862
84863         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84864
84865 2005-10-21  Simon Josefsson  <jas@extundo.com>
84866
84867         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84868
84869 2005-10-21  Simon Josefsson  <jas@extundo.com>
84870
84871         * lib/des.h, lib/des.c: New files.
84872
84873         * lib/gc-gnulib.c: Support DES.c
84874
84875 2005-10-21  Simon Josefsson  <jas@extundo.com>
84876
84877         * lib/arctwo.h, lib/arctwo.c: New files.
84878
84879         * lib/gc-gnulib.c: Support ARCTWO.
84880
84881 2005-10-21  Simon Josefsson  <jas@extundo.com>
84882
84883         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84884         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84885
84886 2005-10-21  Simon Josefsson  <jas@extundo.com>
84887
84888         * gnulib-tool (func_import, func_create_testdir): Define automake
84889         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84890         Makefile.am snippet),
84891         suggested by Bruno Haible <bruno@clisp.org>.
84892
84893         * modules/gc (Makefile.am): Use it.
84894
84895 2005-10-21  Bruno Haible  <bruno@clisp.org>
84896
84897         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84898         patch.
84899
84900 2005-10-19  Simon Josefsson  <jas@extundo.com>
84901
84902         * tests/test-gc-rijndael.c: New file.
84903
84904         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84905
84906 2005-10-19  Simon Josefsson  <jas@extundo.com>
84907
84908         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84909         interface too.
84910
84911 2005-10-19  Simon Josefsson  <jas@extundo.com>
84912
84913         * tests/test-gc-arcfour.c: New file.
84914
84915         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84916
84917 2005-10-19  Simon Josefsson  <jas@extundo.com>
84918
84919         * modules/gc-md4, modules/gc-md4-tests: New file.
84920
84921         * tests/test-gc-md4.c: New file.
84922
84923 2005-10-19  Simon Josefsson  <jas@extundo.com>
84924
84925         * m4/gc-md4.m4: New file.
84926
84927 2005-10-19  Simon Josefsson  <jas@extundo.com>
84928
84929         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84930         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84931         <kasal@ucw.cz>.
84932
84933 2005-10-19  Simon Josefsson  <jas@extundo.com>
84934
84935         * m4/gc-arcfour.m4: New file.
84936
84937         * m4/gc-rijndael.m4: New file.
84938
84939 2005-10-19  Simon Josefsson  <jas@extundo.com>
84940
84941         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84942
84943 2005-10-19  Simon Josefsson  <jas@extundo.com>
84944
84945         * lib/gc-gnulib.c: Support ARCFOUR.
84946
84947 2005-10-19  Simon Josefsson  <jas@extundo.com>
84948
84949         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84950         support.
84951
84952         * lib/gc.h: Add ECB enum type.
84953
84954         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84955
84956 2005-10-18  Simon Josefsson  <jas@extundo.com>
84957
84958         * tests/test-md5.c: New file.
84959
84960         * modules/md5-tests: New file.
84961
84962 2005-10-18  Simon Josefsson  <jas@extundo.com>
84963
84964         * tests/test-md4.c: New file.
84965
84966         * modules/md4, modules/md4-tests: New files.
84967
84968 2005-10-18  Simon Josefsson  <jas@extundo.com>
84969
84970         * m4/md4.m4: New file.
84971
84972 2005-10-18  Simon Josefsson  <jas@extundo.com>
84973
84974         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84975
84976 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84977
84978         * gnulib-tool (func_create_testdir): Omit the second check whether
84979         BUILT_SOURCES in nonempty.
84980
84981 2005-10-17  Simon Josefsson  <jas@extundo.com>
84982
84983         * tests/test-rijndael.c: New file.
84984
84985 2005-10-17  Simon Josefsson  <jas@extundo.com>
84986
84987         * modules/sha1: Depend on stdint instead of md5.
84988
84989         * modules/md5: Depend on stdint, remove uint32_t.
84990
84991 2005-10-17  Simon Josefsson  <jas@extundo.com>
84992
84993         * modules/gc-sha1-tests: New file.
84994
84995         * tests/test-gc-sha1.c: New file.
84996
84997 2005-10-17  Simon Josefsson  <jas@extundo.com>
84998
84999         * m4/md5.m4: Remove call to uint32_t.m4.
85000
85001 2005-10-17  Simon Josefsson  <jas@extundo.com>
85002
85003         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85004
85005         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85006         md5.h.
85007
85008         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85009
85010         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85011
85012 2005-10-17  Simon Josefsson  <jas@extundo.com>
85013
85014         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85015
85016 2005-10-17  Simon Josefsson  <jas@extundo.com>
85017
85018         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85019
85020 2005-10-17  Simon Josefsson  <jas@extundo.com>
85021
85022         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85023
85024         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85025
85026 2005-10-17  Bruno Haible  <bruno@clisp.org>
85027
85028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85029         that it can also be used in a test.
85030
85031 2005-10-16  Bruno Haible  <bruno@clisp.org>
85032
85033         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85034         TESTS_ENVIRONMENT, so that individual tests can augment it.
85035
85036         * gnulib-tool (func_create_testdir): Use an intermediate target for
85037         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85038         macros, like $(ALLOCA_H), which cannot be passed through the command
85039         line.
85040
85041 2005-10-15  Simon Josefsson  <jas@extundo.com>
85042
85043         * modules/rijndael-tests: New file.
85044
85045         * modules/rijndael: New file.
85046
85047 2005-10-15  Simon Josefsson  <jas@extundo.com>
85048
85049         * m4/rijndael.m4: New file.
85050
85051 2005-10-15  Simon Josefsson  <jas@extundo.com>
85052
85053         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85054
85055         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85056
85057 2005-10-14  Simon Josefsson  <jas@extundo.com>
85058
85059         * tests/test-arcfour.c: New file.
85060
85061         * modules/arcfour, modules/arcfour-tests: New files.
85062
85063 2005-10-14  Simon Josefsson  <jas@extundo.com>
85064
85065         * m4/arcfour.m4: New file.
85066
85067 2005-10-14  Simon Josefsson  <jas@extundo.com>
85068
85069         * lib/arcfour.h, lib/arcfour.c: New files.
85070
85071 2005-10-14  Roland McGrath  <roland@redhat.com>
85072
85073         Import from libc.  [BZ #1331]
85074         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85075         macro argument.
85076         Reported by Matej Vela <vela@debian.org>.
85077
85078 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85079
85080         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85081         include <wchar.h>; no longer needed.
85082
85083 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85084
85085         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85086
85087 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85088         and  Ulrich Drepper  <drepper@redhat.com>
85089
85090         Import from libc.
85091         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85092         instead of inline stream orientation test and two separate
85093         function calls.  Pay no attention to USE_IN_LIBIO.
85094
85095 2005-10-13  Simon Josefsson  <jas@extundo.com>
85096
85097         * modules/gc-hmac-md5-tests: New file.
85098
85099         * tests/test-gc-hmac-sha1.c: New file.
85100
85101         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85102
85103         * modules/gc-hmac-md5-tests: New file.
85104
85105         * tests/test-gc-md5.c: New file.
85106
85107         * modules/gc-md5-tests: New file.
85108
85109 2005-10-13  Simon Josefsson  <jas@extundo.com>
85110
85111         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85112         Move memory allocation outside of loop.
85113
85114 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85115
85116         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85117         intermediate directory is in a read-only file system.  Problem
85118         reported by Eric Blake.
85119
85120 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85121
85122         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85123
85124 2005-10-12  Simon Josefsson  <jas@extundo.com>
85125
85126         * tests/test-hmac-sha1.c: New file.
85127
85128         * modules/hmac-sha1-tests: New file.
85129
85130         * modules/hmac-sha1: New file.
85131
85132 2005-10-12  Simon Josefsson  <jas@extundo.com>
85133
85134         * modules/gc-sha1: New file.
85135
85136 2005-10-12  Simon Josefsson  <jas@extundo.com>
85137
85138         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85139
85140         * tests/test-gc-pbkdf2-sha1.c: New file.
85141
85142 2005-10-12  Simon Josefsson  <jas@extundo.com>
85143
85144         * modules/gc-md5, modules/gc-hmac-md5: New files.
85145
85146         * modules/gc (Files): Remove md5, memxor and hmac files.
85147
85148 2005-10-12  Simon Josefsson  <jas@extundo.com>
85149
85150         * m4/gc-pbkdf2-sha1.m4: New file.
85151
85152         * m4/gc-hmac-sha1.m4: New file.
85153
85154         * m4/gc-sha1: New file.
85155
85156         * m4/hmac-sha1.m4: New file.
85157
85158 2005-10-12  Simon Josefsson  <jas@extundo.com>
85159
85160         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85161
85162         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85163
85164 2005-10-12  Simon Josefsson  <jas@extundo.com>
85165
85166         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85167         suggested by Bruno Haible <bruno@clisp.org>.
85168
85169 2005-10-12  Simon Josefsson  <jas@extundo.com>
85170
85171         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85172
85173 2005-10-12  Simon Josefsson  <jas@extundo.com>
85174
85175         * lib/gc-pbkdf2-sha1.c: New file.
85176
85177         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85178
85179 2005-10-12  Simon Josefsson  <jas@extundo.com>
85180
85181         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85182
85183         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85184
85185 2005-10-12  Simon Josefsson  <jas@extundo.com>
85186
85187         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85188         GC_USE_HMAC_MD5, respectively.
85189
85190         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85191         (gc_md5): Fix typo.
85192
85193         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85194
85195         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85196
85197         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85198
85199 2005-10-12  Bruno Haible  <bruno@clisp.org>
85200
85201         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85202         Reported by Stepan Kasal <kasal@ucw.cz>.
85203
85204 2005-10-11  Simon Josefsson  <jas@extundo.com>
85205
85206         * tests/test-crc.c: New file.
85207
85208         * modules/crc, modules/crc-tests: New files.
85209
85210 2005-10-11  Simon Josefsson  <jas@extundo.com>
85211
85212         * m4/crc.m4: New file.
85213
85214 2005-10-11  Simon Josefsson  <jas@extundo.com>
85215
85216         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85217
85218         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85219
85220         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85221
85222 2005-10-11  Simon Josefsson  <jas@extundo.com>
85223
85224         * lib/crc.h, lib/crc.c: New files.
85225
85226         * lib/gc.h (gc_hash_buffer): Add doc.
85227
85228 2005-10-11  Bruno Haible  <bruno@clisp.org>
85229
85230         * modules/c-strcasestr: New file.
85231         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85232
85233 2005-10-11  Bruno Haible  <bruno@clisp.org>
85234
85235         * modules/c-strcase: New file.
85236         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85237
85238 2005-10-11  Bruno Haible  <bruno@clisp.org>
85239
85240         * lib/strcasecmp.c: Include limits.h.
85241         (strcasecmp): Avoid integer overflow on exotic platforms.
85242         * lib/strncasecmp.c: Include limits.h.
85243         (strncasecmp): Avoid integer overflow on exotic platforms.
85244         Reported by Paul Eggert.
85245
85246 2005-10-11  Bruno Haible  <bruno@clisp.org>
85247
85248         * lib/c-strcasestr.h: New file, from GNU gettext.
85249         * lib/c-strcasestr.c: New file, from GNU gettext.
85250
85251 2005-10-11  Bruno Haible  <bruno@clisp.org>
85252
85253         * lib/c-strcase.h: New file, from GNU gettext.
85254         * lib/c-strcasecmp.c: New file, from GNU gettext.
85255         * lib/c-strncasecmp.c: New file, from GNU gettext.
85256
85257 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85258
85259         * modules/mempcpy (License): GPL -> LGPL.
85260         * modules/strchrnul (License): Likewise.
85261         * modules/sysexits (License): Likewise.
85262
85263 2005-10-08  Simon Josefsson  <jas@extundo.com>
85264
85265         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85266
85267 2005-10-07  Simon Josefsson  <jas@extundo.com>
85268
85269         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85270
85271 2005-10-06  Simon Josefsson  <jas@extundo.com>
85272
85273         * tests/test-hmac-md5.c: New file.
85274
85275         * modules/hmac-md5-tests: New file.
85276
85277         * modules/hmac-md5: New file.
85278
85279 2005-10-06  Simon Josefsson  <jas@extundo.com>
85280
85281         * m4/hmac-md5.m4: New file.
85282
85283         * m4/memxor.m4: Require gl_C_RESTRICT.
85284
85285 2005-10-06  Simon Josefsson  <jas@extundo.com>
85286
85287         * lib/memxor.c (memxor): Avoid casts and warnings.
85288
85289 2005-10-06  Simon Josefsson  <jas@extundo.com>
85290
85291         * lib/hmac-md5.c: New file.
85292
85293         * lib/hmac.h: New file.
85294
85295 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85298         promotes to int, not unsigned int, to catch the AIX 5.3
85299         compiler bug.
85300
85301 2005-10-05  Simon Josefsson  <jas@extundo.com>
85302
85303         * modules/memxor: New file.
85304
85305         * modules/iconv (Files): Move config.rpath to havelib, it is used
85306         there.
85307
85308         * modules/havelib (Files): Add config.rpath.
85309
85310 2005-10-05  Simon Josefsson  <jas@extundo.com>
85311
85312         * m4/memxor.m4: New file.
85313
85314 2005-10-05  Simon Josefsson  <jas@extundo.com>
85315
85316         * lib/memxor.c (memxor): Fix compiler error.
85317
85318         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85319         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85320
85321         * lib/memxor.h, lib/memxor.c: New files.
85322
85323         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85324         we assume all systems have it, suggested by Jim Meyering
85325         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85326         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85327         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85328         same reasons.
85329
85330 2005-10-05  Simon Josefsson  <jas@extundo.com>
85331
85332         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85333
85334 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85337         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85338         needed, since the source code now assumes these .h files.
85339
85340 2005-10-05  Derek Price  <derek@ximbiot.com>
85341
85342         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85343
85344 2005-10-05  Bruno Haible  <bruno@clisp.org>
85345
85346         * modules/stdint (License): Change to LGPL.
85347
85348 2005-10-04  Simon Josefsson  <jas@extundo.com>
85349
85350         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85351         D. Baushke" <mdb@gnu.org>.
85352
85353 2005-10-04  Bruno Haible  <bruno@clisp.org>
85354
85355         * lib/verify.h (verify_true): Provide alternative definition for C++.
85356
85357 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85358
85359         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85360         (SSIZE_MAX): New macro, if not already defined.
85361         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85362         than 2 GiB.
85363
85364 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85365
85366         Sync from coreutils.
85367         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85368         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85369         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85370         ULLONG_MAX doesn't work with 2.7.2.1.
85371
85372 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85373
85374         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85375         From Ben Pfaff.
85376
85377         * modules/exclude (Depends-on): Depend on verify.
85378         * modules/strtoimax (Depends-on): Likewise.
85379         * modules/utimecmp (Depends-on): Likewise.
85380
85381 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85382
85383         * lib/exclude.c: Include verify.h.
85384         (verify): Remove.  All callers changed to use verify.h's version.
85385         * lib/strtoimax.c: Likewise.
85386         * lib/utimecmp.c: Likewis.e
85387
85388         Sync from coreutils.
85389         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85390         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85391         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85392         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85393         bother returning ENOSYS if settimeofday or stime fails; just let
85394         them return whatever errno they want to return.
85395         * lib/utimens.c: Include unistd.h, for dup2.
85396         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85397         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85398
85399 2005-10-02  Jim Meyering  <jim@meyering.net>
85400
85401         Sync from coreutils.
85402         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85403         from glibc-2.2.5 that fails for read-only files.
85404
85405 2005-10-02  Jim Meyering  <jim@meyering.net>
85406
85407         Sync from coreutils.
85408         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85409         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85410         `#if HAVE_CONFIG_H'.
85411         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85412         Remove AT_FDCWD test.
85413         Do not consume the fd unless successful.
85414         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85415         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85416         block, so that we don't even try to compile it if settimeofday is
85417         available.  This works around a compilation failure on OSF1 V5.1,
85418         due to stime requiring a `long int*' while tv_sec is `int'.
85419
85420 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85421
85422         Sync from coreutils.
85423         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85424         against `yes', rather than just testing for nonempty.
85425
85426 2005-10-01  Simon Josefsson  <jas@extundo.com>
85427
85428         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85429         and Darwin.
85430
85431         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85432         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85433         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85434         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85435         Check if struct addrinfo is declared.
85436
85437 2005-10-01  Simon Josefsson  <jas@extundo.com>
85438
85439         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85440         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85441         AI_* and EAI_* definitions.  Protect function declarations.
85442
85443 2005-10-01  Jim Meyering  <jim@meyering.net>
85444
85445         Sync from coreutils.
85446
85447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85448         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85449         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85451         in the inet and nsl libraries.  Required on Solaris 5.7.
85452
85453 2005-10-01  Jim Meyering  <jim@meyering.net>
85454
85455         Sync from coreutils.
85456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85457         in the inet and nsl libraries.  Required on Solaris 5.7.
85458
85459 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85460
85461         * lib/getdelim.c (getdelim): Remove unused variables.
85462
85463 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85464
85465         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85466         so that the code works even with ancient cpp.  Portability problem
85467         with GCC 2.7.2.1 reported by Thomas M.Ott.
85468
85469 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85470
85471         * modules/regex (Depends-on): Add strcase.
85472
85473         * modules/gethostname (Licence): Change from GPL to LGPL, since
85474         gethostname.c is a trivial implementation of a standard library
85475         function.
85476         * modules/poll (License): Change from GPL to LGPL, since it's
85477         derived from LGPL code.
85478
85479 2005-09-27  Jim Meyering  <jim@meyering.net>
85480
85481         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85482         HAVE_CONFIG_H.
85483
85484         * lib/intprops.h (signed_type_or_expr__): Define.
85485         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85486         for unsigned types.
85487
85488 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85489
85490         * lib/verify.h (verify_expr): Remove, replacing with:
85491         (verify_true): New macro that returns true instead of void.
85492         (verify_type__): Remove.
85493         (verify): Use verify_true rather than verify_type__.
85494
85495 2005-09-26  Bruno Haible  <bruno@clisp.org>
85496
85497         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85498         is necessary.
85499         (lib_SOURCES): Remove mbchar.c.
85500         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85501         (Files): Add m4/mbrtowc.m4.
85502         * modules/mbiter: Likewise.
85503         * modules/mbuiter: Likewise.
85504
85505 2005-09-26  Bruno Haible  <bruno@clisp.org>
85506
85507         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85508         compile mbchar.c if they are not both present.
85509         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85510         * m4/mbiter.m4 (gl_MBITER): Likewise.
85511         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85512         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85513         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85514
85515 2005-09-25  Jim Meyering  <jim@meyering.net>
85516
85517         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85518         also uses socklen_t.
85519
85520 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         * lib/utimens.c (ENOSYS): Define if not already defined.
85523         (futimens): Support having a null PATH if the file descriptor
85524         is nonnegative.
85525
85526         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85527         Remove.
85528         (__attribute): Define to empty unless GCC 3.1 or later.
85529         This works around a core dump on OpenBSD 3.4, which has GCC
85530         2.95.3, which dumps core when given __attribute__(()).  It also
85531         simplifies other tests, since we really don't want to bother with
85532         worrying about which ancient version of GCC supported what.
85533         Original problem reported by Yoann Vandoorselaere, with part of
85534         the fix suggested by Derek Price.
85535
85536 2005-09-24  Jim Meyering  <jim@meyering.net>
85537
85538         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85539         so we can once again use a positive bitfield width of 1 -- now we
85540         don't have to explain why we were using a bitfield width of 2.
85541
85542 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85543
85544         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85545         and similarly for the other external symbols.  Problem reported
85546         by James Gallager.
85547
85548         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85549         bug reported by Jim Meyering.
85550
85551         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85552         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85553         not needed, since socklen is a prerequisite module.
85554
85555 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85558         Problem reported by Eric Blake.
85559         (getaddrinfo): Initialize se so that it's not garbage.
85560         Redo internal storage allocation so that it doesn't make unportable
85561         assumptions about alignment.
85562         Fix a memory leak.
85563
85564         * lib/utimens.c (futimens): Use futimesat if available.
85565         Prefer it to futimes since it doesn't have the futimes bug.
85566
85567         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85568         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85569         Instead, declare a function that returns a pointer to an array,
85570         and use verify_type__ to declare the size of the array.
85571         Problem and germ of a solution reported by Bruno Haible.
85572         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85573         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85574
85575 2005-09-23  Jim Meyering  <jim@meyering.net>
85576
85577         Sync from coreutils.
85578         Correct build failure (socklen_t not defined) on at least
85579         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85581
85582 2005-09-23  Jim Meyering  <jim@meyering.net>
85583
85584         * modules/getaddrinfo (Depends-on): Add socklen.
85585
85586 2005-09-23  Bruno Haible  <bruno@clisp.org>
85587
85588         * tests/test-verify.c: New file.
85589
85590 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85591
85592         Sync from coreutils.
85593
85594         * modules/argmatch (Depends-on): Add verify.
85595         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85596         unistd-safer.
85597         * modules/save-cwd (Depends-on): Likewise.
85598
85599         * modules/openat (Files): Add lib/openat-die.c.
85600         (Depends-on): Remove error, exitfail.
85601         Add dirname.
85602
85603         * modules/verify: New file.
85604         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85605         with "verify" module.
85606
85607 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85608
85609         Sync from coreutils.
85610
85611         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85612         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85613         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85614         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85615         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85616         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85617         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85618         Don't bother checking for string.h, stdlib.h, unistd.h.
85619         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85620         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85621         module's job.
85622         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85623         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85624
85625         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85626         (gl_GETDATE): Use it.
85627
85628         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85629
85630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85631
85632         Sync from coreutils.
85633
85634         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85635         stat-time.h.
85636         * lib/argmatch.h: Include verify.h
85637         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85638         (ARGMATCH_ASSERT): Remove; unused.
85639         * lib/canonicalize.c: Assume STDC_HEADERS.
85640         * lib/exclude.c: Include "strcase.h".
85641         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85642         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85643         and stdio-safer.h.
85644         (getusershell): Call fopen, not fopen_safer.
85645         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85646         Do not include unistd-safer.h.
85647         (save_cwd): Don't call fd_safer; no longer needed
85648         now that we include fcntl--.h.
85649
85650         * lib/getdate.y (relative_time): New type.
85651         (RELATIVE_TIME_0): New constant.
85652         (parser_control): Use relative_time instead of doing it ourselves.
85653         (%union): Add new relative_time rel member.
85654         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85655         Now typeless.
85656         (relunit, relunit_snumber): Now of type rel.
85657         (zone, rel, relunit, get_date): Adjust to above changes.
85658
85659         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85660         Do not include unistd-safer.h.
85661         (getloadavg): Don't call fd_safer; no longer needed
85662         now that we include fcntl--.h.
85663
85664         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85665         (make_dir_parents): Treat ENOSYS like EEXIST.
85666
85667         Improve quality of diagnostics on restore_cwd failure.
85668         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85669         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85670         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85671         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85672         each time through the loop.  Do not diagnose restore_cwd failure;
85673         that is the caller's job (and perhaps the caller does not care).
85674
85675         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85676         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85677         If the file already exists but is not a directory, don't bother
85678         to try to make its parents.
85679         Close potential file descriptor leak if we can't chdir("/") (!).
85680         Don't always return true if chdir($PWD) fails; return true only
85681         if the requested action was done successfully (except for the
85682         chdir($PWD)).
85683         Don't log final directory unless we actually made it.
85684         Refactor to avoid duplicate code to fix up permissions.
85685         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85686
85687         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85688         to make it a bit faster and (I hope) clearer.
85689         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85690         Fix bug in formats like %2N.
85691
85692         * lib/verify.h: New file.
85693
85694 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         Sync from coreutils.
85697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85698
85699 2005-09-22  Jim Meyering  <jim@meyering.net>
85700
85701         Sync from coreutils.
85702
85703         * m4/lstat.m4 (gl_FUNC_LSTAT):
85704         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85705         Remove obsolete comment.
85706         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85707         * m4/xstrtod.m4: Likewise.
85708
85709         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85710
85711 2005-09-22  Jim Meyering  <jim@meyering.net>
85712
85713         Sync from coreutils.
85714
85715         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85716
85717         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85718         the .tm_year member, since otherwise gcc-4.0 would now warn about
85719         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85720
85721         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85722         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85723
85724         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85725         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85726         when run in a time zone for which daylight savings time is in effect
85727         for the starting date.
85728
85729         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85730         stop us from restricting permissions of just-created absolute-named
85731         directories.
85732         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85733         to restore initial working directory.
85734         * lib/mkdir-p.c (make_dir_parents): New parameter:
85735         different_working_dir, to tell caller if/when we change the working
85736         directory and are unable to return to the initial one.
85737         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85738         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85739         `return false'.  This fixes a bug introduced on 2004-07-30.
85740
85741         * lib/openat.c (fdopendir): Be sure to close the supplied
85742         file descriptor before returning.  This makes our replacement
85743         implementation a little closer to Solaris's, where fdopendir
85744         ties the file descriptor to the returned DIR* pointer.
85745         * lib/openat.c (unlinkat): New function.
85746         * lib/openat.h (unlinkat): Add prototype.
85747         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85748         (openat_restore_fail): Rename from openat_restore_die.
85749         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85750
85751         Provide an alternative to exiting immediately upon save_cwd or
85752         restore_cwd failure.  Now, an application can arrange e.g.,
85753         to perform a longjump in that case.
85754         * lib/openat.c: Include dirname.h.
85755         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85756         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85757         and openat_restore_die rather than calling error directly.
85758         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85759
85760         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85761         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85762         define.
85763
85764         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85765         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85766                             int utc, int nanoseconds);
85767         Background:
85768         date should not have to allocate a megabyte of virtual memory to
85769         handle a format argument like +%1048575T.  When implemented with
85770         strftime, it must allocate such a buffer, use strftime to fill it
85771         in, print it, then free it.
85772         With fprintftime, it simply prints everything and exits.
85773         With no need for memory allocation, that's one fewer way to fail.
85774         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85775         optional field width, not before, so we accept %9:z, not %:9z.
85776         (my_strftime): Be sure to use L_('x') for literals.
85777
85778         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85779         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85780         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85781         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85782         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85783         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85784         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85785         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85786         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85787         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85788         * lib/xgethostname.c, lib/xreadlink.c:
85789         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85790
85791         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85792         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85793         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85794         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85795         and don't include <sys/file.h>).
85796
85797 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85798
85799         Sync from coreutils.
85800
85801         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85802         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85803         [!LDAV_DONE]: Avoid unused variable warning.
85804
85805 2005-09-21  Bruno Haible  <bruno@clisp.org>
85806
85807         * lib/unicodeio.h (unicode_to_mb): New declaration.
85808
85809 2005-09-20  Derek Price  <derek@ximbiot.com>
85810
85811         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85812         getaddrinfo.h.
85813
85814 2005-09-20  Bruno Haible  <bruno@clisp.org>
85815
85816         * gnulib-tool: Remove trailing slashes from the values specified for
85817         --source-base, --m4-base, --tests-base, --aux-dir.
85818         Suggested by Simon Josefsson <jas@extundo.com>.
85819
85820 2005-09-20  Bruno Haible  <bruno@clisp.org>
85821
85822         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85823         func_modules_to_filelist, func_import, func_create_testdir): Make all
85824         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85825         change when gnulib-tool is invoked in a different locale.
85826
85827 2005-09-19  Simon Josefsson  <jas@extundo.com>
85828
85829         * m4/socklen.m4: Fix typo.
85830
85831 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85832
85833         Use a consistent style for including <config.h>.
85834         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85835         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85836         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85837         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85838         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85839         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85840         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85841         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85842         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85843         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85844         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85845         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85846         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85847         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85848         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85849         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85850         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85851         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85852         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85853         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85854         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85855         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85856         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85857         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85858         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85859         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85860         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85861         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85862         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85863         lib/xstrtoumax.c, lib/yesno.c:
85864         Standardize inclusion of config.h.
85865         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85866         lib/inttostr.h:  Removed inclusion of config.h from header files.
85867         * lib/inttostr.c:  Adjusted in-tree users.
85868         * lib/timespec.h: Remove superfluous warning to include config.h.
85869         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85870         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85871         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85872         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85873         config.h with HAVE_CONFIG_H.
85874
85875 2005-09-19  Jim Meyering  <jim@meyering.net>
85876
85877         * modules/pathmax (License): Change to LGPL.
85878
85879 2005-09-19  Derek Price  <derek@ximbiot.com>
85880
85881         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85882
85883 2005-09-19  Bruno Haible  <bruno@clisp.org>
85884
85885         * gnulib-tool (import): Provide default for --tests-base.
85886
85887 2005-09-19  Bruno Haible  <bruno@clisp.org>
85888
85889         * doc/quote.texi: New file, extracted from gnulib.texi.
85890         * doc/ctime.texi: New file, extracted from gnulib.texi.
85891         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85892         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85893         * doc/gnulib.texi: Include them.
85894
85895 2005-09-18  Bruno Haible  <bruno@clisp.org>
85896
85897         Portability fix.
85898         * gnulib-tool (func_readlink): New function.
85899         (func_ln_if_changed): Use it.
85900
85901 2005-09-18  Bruno Haible  <bruno@clisp.org>
85902
85903         * gnulib-tool: Support --with-tests also with --import.
85904         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85905         (func_import): Use variables $testsbase and $inctests. Emit a
85906         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85907         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85908         SUBDIRS += $testsdir.
85909         (func_create_testdir): Update.
85910
85911 2005-09-18  Bruno Haible  <bruno@clisp.org>
85912
85913         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85914         instead of $dry_run.
85915         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85916         (func_ln_if_changed): Don't handle dry-run here.
85917         (func_import): In dry-run mode, detect more precisely which actions
85918         would be performed, and don't use "...ing" verbs.
85919
85920 2005-09-18  Bruno Haible  <bruno@clisp.org>
85921
85922         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85923         (func_import): Use join on two temporary files instead of three nested
85924         loops, in order to determine which files are new or old.
85925
85926 2005-09-18  Bruno Haible  <bruno@clisp.org>
85927
85928         * gnulib-tool (func_import): Comment out code that spits out the
85929         new files with --dry-run.
85930
85931 2005-09-18  Bruno Haible  <bruno@clisp.org>
85932
85933         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85934
85935 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85936
85937         * lib/stat-time.h: New file.
85938         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85939         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85940         in a different way.
85941         (timespec_cmp): New function.
85942         * lib/utimecmp.c: Include stat-time.h.
85943         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85944         members exist, not on the obsolescent ST_MTIM_NSEC.
85945         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85946
85947 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85950
85951 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         * MODULES.html.sh (File system functions): Add stat-time.
85954         * modules/stat-time: New file.
85955         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85956         is now done in a different way, by the stat-time module.
85957         * modules/utimecmp (Depends-on): Add stat-time.
85958
85959 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         * m4/st_mtim.m4: Remove.  Superseded by...
85962         * m4/stat-time.m4: New file.
85963         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85964         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85965
85966 2005-09-15  Derek Price  <derek@ximbiot.com>
85967
85968         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85969
85970 2005-09-15  Derek Price  <derek@ximbiot.com>
85971
85972         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85973         * lib/regex_internal.c: Ditto, using this...
85974         (__GNUC_PREREQ): ...new macro.
85975         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85976         using...
85977         (__GNUC_PREREQ): ...this new macro.
85978
85979         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85980
85981 2005-09-15  Derek Price  <derek@ximbiot.com>
85982             Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85985         changes, consolidating in...
85986         * lib/regex_internal.h: ...this file.
85987
85988 2005-09-13  Jim Meyering  <jim@meyering.net>
85989
85990         * lib/canon-host.c: Filter through gnu indent and reword comments
85991         slightly.
85992         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85993
85994 2005-09-13  Derek Price  <derek@ximbiot.com>
85995
85996         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85997         failure.
85998         Reported by Jim Meyering  <jim@meyering.net>.
85999
86000 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86001
86002         * lib/base64.c: Typo.
86003         (base64_encode): Put b64str in initialized data section.
86004
86005 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86006
86007         Merge glibc and coreutils changes into gnulib, plus a few
86008         extra fixes.
86009         * lib/md5.c: Use #error rather than a string.
86010         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86011         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86012         (__attribute__): Define to empty for non recent-GCC.
86013         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86014         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86015         Renamed from their non-__ counterparts, with new macros replacing
86016         them if not _LIBC.  Add __THROW attribute.
86017         (rol): Remove.
86018         (struct md5_ctx): Align buffer if using GCC.
86019         * lib/sha1.h (struct sha1_ctx): Likewise.
86020         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86021         The old name was backwards.
86022         (NOTSWAP): Remove; not used.
86023         (rol): New macro, moved here from md5.h.
86024         (sha1_process_block): Remove a FIXME that doesn't make sense.
86025
86026 2005-09-12  Derek Price  <derek@ximbiot.com>
86027
86028         Return usable errors from canon-host.
86029         * lib/canon-host.h: New file.
86030         * lib/canon-host.c (canon_host): Wrap...
86031         (canon_host_r): ...this new function, which now relies exclusively on
86032         getaddrinfo.
86033         (ch_strerror): New function.
86034         (last_cherror): New global.
86035         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86036         interface.
86037         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86038         void *.
86039         (freeaddrinfo): Free ai->ai_canonname when set.
86040
86041 2005-09-12  Derek Price  <derek@ximbiot.com>
86042
86043         Make canon-host require getaddrinfo.
86044         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86045         AC_LIBSOURCE canon-host.h.  Call...
86046         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86047         gl_GETADDRINFO.
86048         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86049
86050 2005-09-12  Derek Price  <derek@ximbiot.com>
86051
86052         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86053         LGPL.
86054         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86055
86056 2005-09-12  Derek Price  <derek@ximbiot.com>
86057
86058         * lib/gai_strerror.c: Include config.h when available.  Include
86059         getaddrinfo.h before other headers to test interface.
86060         Reported by Larry Jones <lawrence.jones@ugs.com>.
86061
86062 2005-09-12  Derek Price  <derek@ximbiot.com>
86063             Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * modules/glob (Files): Add glob-libc.h.
86066
86067 2005-09-12  Derek Price  <derek@ximbiot.com>
86068             Paul Eggert  <eggert@cs.ucla.edu>
86069
86070         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86071         glob_.h, glob-libc.h.
86072         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86073
86074 2005-09-12  Derek Price  <derek@ximbiot.com>
86075             Paul Eggert  <eggert@cs.ucla.edu>
86076
86077         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86078         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86079         protecting things that should be done only in gnulib contexts.
86080         * lib/glob_.h: New file, containing only the glob things needed for
86081         gnulib.
86082         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86083         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86084         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86085         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86086         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86087         and to respect the namespace rules better.
86088
86089 2005-09-08  Simon Josefsson  <jas@extundo.com>
86090
86091         * modules/socklen: New file.
86092
86093 2005-09-08  Simon Josefsson  <jas@extundo.com>
86094
86095         * m4/socklen.m4: New file.
86096
86097 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86098
86099         * modules/utimens (Files): Add m4/utimbuf.m4, since
86100         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86101         Reported by Sergey Poznyakoff.
86102
86103 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86106         definitions, since that's the preferred style in glibc.
86107         Fix a minor spacing issue, and update copyright notice to match
86108         glibc's.
86109
86110 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86111
86112         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86113
86114 2005-09-06  Simon Josefsson  <jas@extundo.com>
86115
86116         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86117         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86118
86119 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86120
86121         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86122         warning.
86123
86124 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         * config/srclist.txt: Add glibc bug 1302.
86127
86128 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86129
86130         Change bitset word type from unsigned int to unsigned long int,
86131         as this has better performance on typical 64-bit hosts.
86132         Port bitset code to hosts with unusual word sizes.
86133         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86134         (build_collating_symbol):
86135         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86136         argument is a bitset.  This is merely a style issue, but it makes
86137         it clearer that an entire array is expected.
86138         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86139         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86140         Port to the case where bitset_word is not the same as unsigned int.
86141         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86142         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86143         Likewise.
86144         * lib/regexec.c (check_dst_limits_calc_pos_1,
86145         check_subexp_matching_top):
86146         (build_trtable, group_nodes_into_DFAstates):
86147         Likewise.
86148         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86149         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86150         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86151         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86152         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86153         * lib/regcomp.c (optimize_subexps, lower_subexp):
86154         Work even if bitset_word has holes in its bitwise representation.
86155         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86156         * lib/regexec.c (check_dst_limits_calc_pos_1,
86157         check_subexp_matching_top):
86158         Likewise.
86159         * lib/regex_internal.c (re_string_reconstruct):
86160         Don't assume UCHAR_MAX == 255.
86161         * lib/regex_internal.h (bitset_set_all): Likewise.
86162         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86163         All uses changed.
86164         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86165         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86166         All uses changed.
86167         (BITSET_WORD_MAX): New macro.
86168         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86169         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86170         (bitset_empty, bitset_copy):
86171         Prefer sizeof (bitset) to multiplying it out ourselves.
86172         (bitset_not_merge): Remove; unused.
86173         (bitset_contain): Return bool, not unsigned int with one bit on.
86174         All callers changed.
86175         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86176         alignment than re_node_set; do this by defining a new internal
86177         type struct dests_alloc and using it to allocate memory.
86178
86179 2005-09-05  Bruno Haible  <bruno@clisp.org>
86180
86181         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86182         links.
86183
86184 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86185
86186         * modules/size_max (Makefile.am): Add size_max.h
86187
86188 2005-09-04  Derek Price  <derek@ximbiot.com>
86189
86190         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86191
86192 2005-09-03  Simon Josefsson  <jas@extundo.com>
86193
86194         * gnulib-tool: Fix typo.
86195
86196 2005-09-03  Simon Josefsson  <jas@extundo.com>
86197
86198         * config/srclist.txt: Add glibc bug 1293.
86199
86200 2005-09-03  Derek Price  <derek@ximbiot.com>
86201
86202         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86203         From Larry Jones <lawrence.jones@ugs.com>.
86204
86205 2005-09-02  Simon Josefsson  <jas@extundo.com>
86206
86207         * modules/socklen: New file.
86208
86209 2005-09-02  Simon Josefsson  <jas@extundo.com>
86210
86211         * modules/havelib: New module.
86212
86213         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86214         Use havelib.
86215
86216 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86217
86218         Check for arithmetic overflow when calculating sizes, to prevent
86219         some buffer-overflow issues.  These patches are conservative, in the
86220         sense that when I couldn't determine whether an overflow was possible,
86221         I inserted a run-time check.
86222         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86223         macros.
86224         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86225         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86226         (re_xnrealloc, re_x2nrealloc): New inline functions.
86227         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86228         parse_bracket_exp):
86229         (build_equiv_class, build_charclass): Check for arithmetic overflow
86230         in size expression calculations.
86231         * lib/regex_internal.c (re_string_realloc_buffers):
86232         (build_wcs_upper_buffer, re_node_set_add_intersect):
86233         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86234         (re_dfa_add_node, register_state): Likewise.
86235         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86236         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86237         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86238         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86239
86240 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86243         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86244
86245 2005-09-02  Bruno Haible  <bruno@clisp.org>
86246
86247         Support for lib vs. lib64 distinction on biarch platforms.
86248         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86249         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86250         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86251
86252 2005-09-02  Bruno Haible  <bruno@clisp.org>
86253
86254         * gnulib-tool (import): In the other first-use case, provide defaults
86255         as well.
86256
86257 2005-09-02  Bruno Haible  <bruno@clisp.org>
86258
86259         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86260         patches not yet found in the latest gettext release.
86261
86262 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86263
86264         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86265         to avoid a collision with bits/local_lim.h in glibc.
86266         All uses changed.  Problem reported by Dmitry V. Levin in
86267         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86268
86269         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86270         bugs in int versus size_t comparisons.
86271         (re_string_context_at): Fix bug where the code assumed that
86272         Idx is signed.
86273
86274         Use bool where appropriate.
86275         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86276         All callers changed.
86277         (calc_eclosure_iter): Likewise, for ROOT arg.
86278         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86279         (build_charclass_op): Likewise, for NON_MATCH arg.
86280         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86281         (re_string_construct_common): Likewise, for ICASE arg.
86282         * lib/regexec.c (re_search_2_stub, re_search_stub):
86283         Likewise, for RET_LEN arg.
86284         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86285         (set_regs): Likewise, for FL_BACKTRACK arg.
86286         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86287         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86288         (calc_eclosure_iter, parse_bracket_exp):
86289         Use bool for internal variables that are booleans.
86290         * lib/regexec.c (re_search_internal, check_matching,
86291         proceed_next_node):
86292         (set_regs, build_sifted_states, sift_states_bkref):
86293         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86294         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86295         (find_collation_sequence_value):
86296         Likewise.
86297         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86298         (re_node_set_compare):
86299         Return bool, not int. All callers changed.
86300         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86301         (build_trtable, check_node_accept): Likewise.
86302         * lib/regex_internal.h: Include stdbool.h.
86303
86304         Fix bugs uncovered when converting to bool.
86305         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86306         failure instead of charging ahead blindly.
86307         * lib/regex_internal.c (register_state): Likewise.
86308         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86309         for freeing internal storage.
86310         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86311         bitset pieces used as boolean, to avoid undefined behavior
86312         on hosts that do int overflow checking.
86313
86314 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86315
86316         * config/srclist.txt: Add glibc bugs 1285-1287.
86317
86318 2005-09-01  Jim Meyering  <jim@meyering.net>
86319
86320         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86321         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86322         Require gl_STAT_MACROS, too.
86323
86324 2005-09-01  Bruno Haible  <bruno@clisp.org>
86325
86326         * gnulib-tool (import): In the first-use case, provide defaults.
86327
86328 2005-09-01  Bruno Haible  <bruno@clisp.org>
86329
86330         * gnulib-tool (func_import): Remove the .tmp files.
86331
86332 2005-09-01  Bruno Haible  <bruno@clisp.org>
86333
86334         * gnulib-tool (func_import): Fix handling of symbolic links.
86335
86336 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86337
86338         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86339         old glibc regex code mishandles strings longer than 2**31 bytes.
86340         This patch fixes this when the regex code is used in gnulib
86341         (i.e., outside glibc).
86342
86343         This patch should not affect the use of the regex code inside
86344         glibc.  No doubt this problem also needs to be handled for glibc
86345         as well, but the result will be an incompatible change to the
86346         glibc ABI, and the old ABI will have to be supported too.  That
86347         can be the the subject for another patch.
86348
86349         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86350         governing whether the rest of this patch is active.  By default,
86351         the macro is disabled and the patch has no effect.
86352         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86353         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86354         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86355         (re_match_2, re_set_registers): Use the new types.
86356         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86357         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86358         New macros.
86359         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86360         (re_string_context_at, bin_tree_t, re_dfastate_t):
86361         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86362         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86363         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86364         (re_string_char_size_at, re_string_wchar_at):
86365         (re_string_elem_size_at):
86366         Use the new types and macros to port to 64-bit hosts.
86367         Use unsigned types for internal values, so that the code
86368         mostly works even for arrays larger than SSIZE_MAX.
86369         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86370         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86371         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86372         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86373         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86374         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86375         (calc_inveclosure, parse_dup_op, build_range_exp):
86376         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86377         (fetch_number, create_token_tree, mark_opt_subexp):
86378         Likewise.
86379         * lib/regex_internal.c (re_string_construct_common,
86380         create_ci_newstate):
86381         (create_cd_newstate, re_string_allocate, re_string_construct):
86382         (re_string_realloc_buffers, build_wcs_upper_buffer):
86383         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86384         (re_string_reconstruct, re_string_peek_byte_case):
86385         (re_string_fetch_byte_case, re_string_context_at):
86386         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86387         (re_node_set_init_copy, re_node_set_add_intersect):
86388         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86389         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86390         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86391         (re_acquire_state, re_acquire_state_context, register_state):
86392         Likewise.
86393         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86394         search_cur_bkref_entry):
86395         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86396         (re_search_internal, re_search_2_stub, re_search_stub)
86397         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86398         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86399         (update_cur_sifted_state, check_dst_limits):
86400         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86401         (check_subexp_limits, sift_states_bkref, merge_state_array):
86402         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86403         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86404         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86405         (expand_bkref_cache, check_node_accept_bytes):
86406         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86407         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86408         (acquire_init_state_context, check_halt_node_context):
86409         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86410         (sift_states_backward, clean_state_log_if_needed):
86411         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86412         (find_recover_state, transit_state_sb, transit_state_mb):
86413         (transit_state_bkref, build_trtable, match_ctx_clean):
86414         Likewise.
86415         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86416         to work around an assumption that REG_MISSING is negative.
86417
86418         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86419         (seek_collating_symbol_entry) [defined _LIBC]:
86420         (lookup_collation_sequence_value) [defined _LIBC]:
86421         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86422         Use prototypes rather than old-style function definitions.
86423         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86424         (transit_state_sb) [0]:
86425         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86426
86427         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86428         rm_eo.
86429
86430         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86431         (optimize_subexps, lower_subexp):
86432         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86433         since the signed shift might overflow.  Use 1u<<31 instead.
86434         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86435         Likewise.
86436         * lib/regexec.c (check_dst_limits_calc_pos_1,
86437         check_subexp_matching_top): Likewise.
86438
86439         * lib/regcomp.c (optimize_subexps, lower_subexp):
86440         Use CHAR_BIT rather than 8, for clarity.
86441         * lib/regexec.c (check_dst_limits_calc_pos_1):
86442         (check_subexp_matching_top): Likewise.
86443         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86444         have to worry about portability issues when shifting it left.
86445         Remove no-longer-needed test for table_size > 0.
86446         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86447         in a word, as the resulting behavior is undefined.
86448         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86449         in one case, a <= should have been an <, and in another case the
86450         whole test was missing.
86451         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86452         the standard name CHAR_BIT.
86453         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86454         this is not true on one's complement and signed-magnitude hosts.
86455
86456         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86457         next_last_offset.
86458         (struct re_dfa_t): Remove unused member states_alloc.
86459         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86460
86461 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86462
86463         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86464         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86465         and large-file glibc and in 32-bit large-file Solaris.
86466
86467 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86470         lengths fit in regoff_t; this isn't true if regoff_t is the same
86471         width as size_t.
86472         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86473         (= START + RANGE) instead of RANGE.  This avoids overflow
86474         problems when regoff_t is the same width as size_t.
86475         All callers changed.
86476         (re_search_2_stub): Check for overflow when adding the
86477         sizes of the two strings.
86478         (re_search_stub): Check for overflow when adding START
86479         to RANGE; if it occurs, substitute the extreme value.
86480
86481 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86484
86485 2005-08-31  Jim Meyering  <jim@meyering.net>
86486
86487         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86488         a pointer-to-const.
86489         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86490         (register_state): Likewise.
86491         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86492         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86493         (group_nodes_into_DFAstates): Likewise.
86494
86495 2005-08-31  Jim Meyering  <jim@meyering.net>
86496
86497         * check-module: Add a FIXME comment.
86498
86499 2005-08-31  Eric Blake  <ebb9@byu.net>
86500
86501         * modules/unistd-safer (Files): Add unistd--.h.
86502         * modules/stdio-safer (Files): Add stdio--.h.
86503
86504 2005-08-31  Derek Price  <derek@ximbiot.com>
86505
86506         * lib/getdelim.c (getdelim): Return EOF on EOF.
86507         Reported by Larry Jones <lawrence.jones@ugs.com>.
86508
86509 2005-08-31  Bruno Haible  <bruno@clisp.org>
86510
86511         Avoid unnecessary diffs in the generated lib/Makefile.am.
86512         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86513         the generated files.
86514         (func_import): Don't set cmd.
86515
86516 2005-08-31  Bruno Haible  <bruno@clisp.org>
86517
86518         * lib/strstr.c: Include <stddef.h>, for NULL.
86519         * lib/strcasestr.c: Likewise.
86520         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86521
86522 2005-08-31  Bruno Haible  <bruno@clisp.org>
86523
86524         * gnulib-tool: New option --macro-prefix.
86525         (func_import): Use macro_prefix.
86526         (import): Handle option --macro-prefix.
86527
86528 2005-08-31  Bruno Haible  <bruno@clisp.org>
86529
86530         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86531         Also use new variables cached_lgpl, cached_libtool.
86532
86533 2005-08-31  Bruno Haible  <bruno@clisp.org>
86534
86535         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86536         always instantiating them.
86537
86538 2005-08-31  Bruno Haible  <bruno@clisp.org>
86539
86540         * gnulib-tool (func_import): Read the previous cached settings
86541         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86542         earlier added by gnulib but are now dropped. Warn when a gnulib file
86543         overwrites a non-gnulib file.
86544
86545 2005-08-31  Bruno Haible  <bruno@clisp.org>
86546
86547         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86548         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86549         projects that don't keep autogenerated files in CVS. Put into
86550         actioncmd only the specified modules, not the transitive closure.
86551
86552 2005-08-31  Bruno Haible  <bruno@clisp.org>
86553
86554         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86555         Create directories that shall be filled.
86556         (import): Don't look for gl_* macros in configure.ac. Recurse across
86557         all directories containing a gnulib-cache.m4 files, if meaningful.
86558
86559 2005-08-31  Bruno Haible  <bruno@clisp.org>
86560
86561         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86562         (import): Set seen_libtool when we see gl_LIBTOOL.
86563
86564 2005-08-31  Bruno Haible  <bruno@clisp.org>
86565
86566         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86567         declaration macro definitions from generated gnulib.m4.
86568
86569 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86570
86571         * lib/iconvme.h: Add prototype for iconv_alloc.
86572
86573 2005-08-29  Simon Josefsson  <jas@extundo.com>
86574
86575         * lib/iconvme.c: Fix errno.
86576
86577 2005-08-29  Bruno Haible  <bruno@clisp.org>
86578
86579         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86580         that it works when the directory contains spaces.
86581
86582 2005-08-29  Bruno Haible  <bruno@clisp.org>
86583
86584         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86585
86586 2005-08-29  Bruno Haible  <bruno@clisp.org>
86587
86588         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86589         Emit more advice.
86590
86591 2005-08-29  Bruno Haible  <bruno@clisp.org>
86592         and Stepan Kasal  <kasal@ucw.cz>
86593
86594         * check-module: If more parameters are given, check each of them
86595         separately; add more exceptions, as noted by Jim Meyering.
86596         (check_module): New procedure.
86597         (%exempt_header): Now contains all exceptions.
86598
86599 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86600
86601         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86602
86603 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86604
86605         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86606
86607 2005-08-28  Bruno Haible  <bruno@clisp.org>
86608
86609         * m4/gnulib-tool.m4: New file.
86610
86611 2005-08-27  Jim Meyering  <jim@meyering.net>
86612
86613         * modules/unistd-safer (Files): Add pipe-safer.c.
86614         * modules/fcntl-safer (Files): Add creat-safer.c.
86615
86616 2005-08-27  Jim Meyering  <jim@meyering.net>
86617
86618         * m4/stdlib-safer.m4: New file.  From coreutils.
86619         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86620         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86621         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86622         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86623         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86624
86625 2005-08-27  Jim Meyering  <jim@meyering.net>
86626
86627         * lib/fopen-safer.c: Merge minor changes from coreutils.
86628         * lib/dup-safer.c: Likewise.
86629         * lib/fd-safer.c: Likewise.
86630
86631         Merge from coreutils.
86632         * lib/stdio--.h: New file.
86633         * lib/stdlib--.h: New file.
86634         * lib/mkstemp-safer.c: New file.
86635
86636         GNU tar needs these.
86637         * lib/pipe-safer.c: New file.
86638         * lib/creat-safer.c: New file.
86639         * lib/fcntl--.h (creat): Define to creat_safer.
86640         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86641         * lib/unistd--.h (pipe): Define to pipe_safer.
86642         * lib/unistd-safer.h: Declare pipe_safer.
86643
86644 2005-08-26  Simon Josefsson  <jas@extundo.com>
86645
86646         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86647         Haible <bruno@clisp.org>.
86648
86649 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86650
86651         * lib/regex_internal.h: Remove all references to
86652         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86653         or better.
86654         (bitset_not, bitset_merge, bitset_not_merge):
86655         (bitset_mask, re_string_allocate, re_string_construct):
86656         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86657         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86658         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86659         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86660         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86661         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86662         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86663         (re_acquire_state_context):
86664         Remove unnecessary forward decls.
86665         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86666         Put __attribute at function definition,
86667         now that the function decl has been removed.
86668         * lib/regex_internal.c (re_string_peek_byte_case):
86669         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86670         Likewise.
86671
86672 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86673
86674         * m4/regex.m4: Add AC_PREREQ(2.50).
86675         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86676
86677 2005-08-25  Simon Josefsson  <jas@extundo.com>
86678
86679         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86680         __fsetlocking.
86681
86682 2005-08-25  Simon Josefsson  <jas@extundo.com>
86683
86684         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86685         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86686         GLIBC specific code.
86687
86688 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86689
86690         Make regex safe for g++.  This fixes one real bug (an "err"
86691         that should have been "*err").  g++ problem reported by
86692         Sam Steingold.
86693         * lib/regex_internal.h (re_calloc): New macro, consistent with
86694         re_malloc etc.  All callers of calloc changed to use re_calloc.
86695         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86696         not int.  All callers changed.
86697         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86698         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86699         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86700         (find_recover_state): Change "err" to "*err"; this fixes what
86701         appears to be a real bug.
86702         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86703         versus int.
86704
86705 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86706
86707         * modules/regex (Depends-on): Add malloc, since the code
86708         assumes that !malloc(0) means failure.
86709
86710 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86711
86712         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86713
86714         alloca modernization/simplification for regex.
86715         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86716         needs to be at the start of the file, and can be moved into
86717         regex_internal.h and simplified.
86718         * lib/regex_internal.h: Include <alloca.h>.
86719         (__libc_use_alloca) [!defined _LIBC]: New macro.
86720         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86721         now works outside glibc.
86722
86723 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86724
86725         * config/srclist.txt: Add glibc bugs 1241, 1245.
86726
86727 2005-08-25  Jim Meyering  <jim@meyering.net>
86728
86729         * lib/open-safer.c: Include <config.h>.
86730         Otherwise, we'd lose LARGEFILE support in any file using
86731         e.g. "fcntl--.h"
86732
86733 2005-08-25  Bruno Haible  <bruno@clisp.org>
86734
86735         * m4/minmax.m4: Require autoconf 2.52.
86736         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86737         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86738         alternatives of translit over the alphabet.
86739         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86740
86741 2005-08-24  Simon Josefsson  <jas@extundo.com>
86742
86743         * tests/test-getpass.c: New file.
86744
86745 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86748         for GNU regex features.
86749
86750 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86751
86752         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86753         * lib/regex.h (regerror): Likewise.
86754
86755         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86756         requires this.  (The code never needed it.)
86757
86758         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86759         All uses of recently-renamed identifiers changed to use the new,
86760         POSIX-compliant names.  The code will build and run just fine
86761         without these changes, but it's better to eat our own dog food
86762         and use the standard-conforming names.
86763
86764         * lib/regex.h: Fix a multitude of POSIX name space violations.
86765         These changes have an effect only for programs that define
86766         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86767         do not change anything for programs compiled in the normal way.
86768         Also, there is no effect on the ABI.
86769
86770         (_REGEX_SOURCE): New macro.
86771         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86772         defined and _GNU_SOURCE is not; this fixes a name space violation.
86773
86774         Rename the following macros to obey POSIX requirements.
86775         The old names are still visible as macros if _REGEX_SOURCE is defined.
86776         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86777         RE_BACKSLASH_ESCAPE_IN_LISTS.
86778         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86779         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86780         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86781         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86782         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86783         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86784         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86785         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86786         (REG_INTERVALS): renamed from RE_INTERVALS.
86787         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86788         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86789         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86790         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86791         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86792         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86793         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86794         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86795         RE_UNMATCHED_RIGHT_PAREN_ORD.
86796         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86797         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86798         (REG_DEBUG): renamed from RE_DEBUG.
86799         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86800         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86801         unusual, since we can't clash with the POSIX REG_ICASE.
86802         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86803         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86804         (REG_NO_SUB): renamed from RE_NO_SUB.
86805         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86806         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86807         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86808         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86809         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86810         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86811         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86812         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86813         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86814         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86815         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86816         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86817         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86818         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86819         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86820         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86821         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86822         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86823         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86824         (REG_FIXED): Renamed from REGS_FIXED.
86825         (REG_NREGS): Renamed from RE_NREGS.
86826
86827         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86828         of other REG_* macros, since POSIX says the user is allowed to
86829         #undef these macros selectively.
86830
86831         (reg_errcode_t): Update comment stating what other tables need
86832         to be consistent.
86833
86834         Rename the following enum values to obey POSIX requirements.
86835         The old names are still visible as macros.
86836         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86837         is not defined, since GNU is supposed to be a superset of POSIX as
86838         much as possible, and since we want reg_errcode_t to be a signed
86839         type for implementation consistency.
86840         (_REG_NOERROR): Renamed from REG_NOERROR.
86841         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86842         (_REG_BADPAT): Renamed from REG_BADPAT.
86843         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86844         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86845         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86846         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86847         (_REG_EBRACK): Renamed from REG_EBRACK.
86848         (_REG_EPAREN): Renamed from REG_EPAREN.
86849         (_REG_EBRACE): Renamed from REG_EBRACE.
86850         (_REG_BADBR): Renamed from REG_BADBR.
86851         (_REG_ERANGE): Renamed from REG_ERANGE.
86852         (_REG_ESPACE): Renamed from REG_ESPACE.
86853         (_REG_BADRPT): Renamed from REG_BADRPT.
86854         (_REG_EEND): Renamed from REG_EEND.
86855         (_REG_ESIZE): Renamed from REG_ESIZE.
86856         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86857         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86858         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86859         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86860         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86861
86862         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86863         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86864         changed.  But support the old name if the new one is not defined
86865         and if _REGEX_SOURCE.
86866
86867         Change the following member names in struct re_pattern_buffer.
86868         The old names are still supported if !_REGEX_SOURCE.
86869         The new names are always supported, regardless of _REGEX_SOURCE.
86870         (re_buffer): Renamed from buffer.
86871         (re_allocated): Renamed from allocated.
86872         (re_used): Renamed from used.
86873         (re_syntax): Renamed from syntax.
86874         (re_fastmap): Renamed from fastmap.
86875         (re_translate): Renamed from translate.
86876         (re_can_be_null): Renamed from can_be_null.
86877         (re_regs_allocated): Renamed from regs_allocated.
86878         (re_fastmap_accurate): Renamed from fastmap_accurate.
86879         (re_no_sub): Renamed from no_sub.
86880         (re_not_bol): Renamed from not_bol.
86881         (re_not_eol): Renamed from not_eol.
86882         (re_newline_anchor): Renamed from newline_anchor.
86883
86884         Change the following member names in struct re_registers.
86885         The old names are still supported if !_REGEX_SOURCE.
86886         The new names are always supported, regardless of _REGEX_SOURCE.
86887         (rm_num_regs): Renamed from num_regs.
86888         (rm_start): Renamed from start.
86889         (rm_end): Renamed from end.
86890
86891         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86892         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86893         Prepend __ to parameter names.
86894
86895         Undo yesterday's changes.
86896
86897 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86898
86899         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86900         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86901         lib/regex.c.
86902
86903 2005-08-24  Jim Meyering  <jim@meyering.net>
86904
86905         Sync from coreutils.
86906         * m4/fcntl-safer.m4: New file.
86907
86908         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86909         and object files for this module.
86910
86911 2005-08-24  Jim Meyering  <jim@meyering.net>
86912
86913         Sync from coreutils.
86914         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86915
86916 2005-08-24  Jim Meyering  <jim@meyering.net>
86917
86918         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86919         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86920
86921 2005-08-24  Jim Meyering  <jim@meyering.net>
86922
86923         * modules/fcntl-safer: New module.
86924         * modules/fts (Depends-on): Add fcntl-safer.
86925         * MODULES.html.sh (File descriptor based Input/Output):
86926         Add fcntl-safer.
86927
86928 2005-08-24  Bruno Haible  <bruno@clisp.org>
86929
86930         Support for unit test modules.
86931         * modules/README: Mention tests modules.
86932         * modules/TEMPLATE-TESTS: New file.
86933         * gnulib-tool: New options --extract-tests-module, --with-tests and
86934         --tests-base (unused for the moment).
86935         (testsbase, inctests): New variables.
86936         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86937         (func_verify_module): Exclude TEMPLATE-TESTS.
86938         (func_verify_nontests_module, func_verify_tests_module): New functions.
86939         (func_get_dependencies): Add implicit dependency for tests modules.
86940         (func_get_tests_module): New function.
86941         (func_modules_transitive_closure): When --with-tests was specified,
86942         include the unit tests as well, unless explicitly avoided.
86943         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86944         (func_emit_tests_Makefile_am): New function.
86945         (func_create_testdir): When --with-tests was specified, emit a
86946         tests/ directory.
86947         * MODULES.html.sh (Future developments): Update.
86948
86949 2005-08-24  Bruno Haible  <bruno@clisp.org>
86950
86951         * modules/tls-tests: New file.
86952         * tests/test-tls.c: New file, from GNU gettext.
86953
86954 2005-08-24  Bruno Haible  <bruno@clisp.org>
86955
86956         * modules/lock-tests: New file.
86957         * tests/test-lock.c: New file, from GNU gettext.
86958
86959 2005-08-24  Bruno Haible  <bruno@clisp.org>
86960
86961         * lib/lock.h: Add multiple inclusion guard.
86962         * lib/tls.h: Add multiple inclusion guard.
86963
86964 2005-08-24  Bruno Haible  <bruno@clisp.org>
86965
86966         * gnulib-tool: Add support for the --aux-dir option to
86967         --create-testdir, --create-megatestdir, --test, --megatest.
86968         (func_create_testdir, func_create_megatestdir): Optionally emit a
86969         AC_CONFIG_AUX_DIR directive.
86970         (create-testdir, create-megatestdir, test, megatest): Provide a
86971         default value for $auxdir.
86972
86973 2005-08-24  Bruno Haible  <bruno@clisp.org>
86974
86975         * gnulib-tool (import): Use compound statement instead of subshell
86976         where possible.
86977
86978 2005-08-24  Bruno Haible  <bruno@clisp.org>
86979
86980         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86981
86982 2005-08-24  Bruno Haible  <bruno@clisp.org>
86983
86984         * gnulib-tool (func_version): Update.
86985
86986 2005-08-24  Bruno Haible  <bruno@clisp.org>
86987
86988         * gnulib-tool (func_import, func_create_testdir,
86989         func_create_megatestdir): Quote all autoconf macro arguments.
86990
86991 2005-08-24  Bruno Haible  <bruno@clisp.org>
86992
86993         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86994         option --force, because --force causes the aclocal.m4 of each
86995         subdirectory to be newer than the corresponding config.h.in.
86996
86997 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86998
86999         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87000         All contents moved to gl_REGEX.
87001         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87002         assume that it does.
87003
87004 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87005
87006         * lib/regex.h (REG_NOSYS)
87007         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87008         Define, since POSIX requires it as of 2001.
87009         (_REG_ENOSYS)
87010         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87011         New private symbol, used to keep the enum signed in all cases.
87012         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87013         Youngman in
87014         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87015
87016         * lib/regex_internal.c (re_string_skip_chars, register_state):
87017         (calc_state_hash):
87018         Remove forward decls; no longer needed now that we use prototypes.
87019         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87020         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87021         (clean_state_log_if_needed): Likewise.
87022
87023 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87024
87025         * config/srclist.txt: Add glibc bugs 1231-1233.
87026
87027 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87028
87029         Fix problems reported by Sam Steingold in
87030         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87031         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87032         assumed that reg_errcode_t is a signed type, which is not
87033         necessarily true if _XOPEN_SOURCE is not defined.
87034         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87035         since some compilers warn about it otherwise.
87036
87037 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87038
87039         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87040         (init_word_char, create_initial_state, duplicate_node_closure):
87041         (fetch_token, peek_token_bracket, build_range_exp):
87042         (build_collating_symbol): Remove forward decls; no longer needed
87043         now that we use prototypes.
87044
87045         * lib/regcomp.c:
87046         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87047         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87048         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87049         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87050         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87051         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87052         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87053         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87054         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87055         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87056         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87057         (build_charclass, build_charclass_op, fetch_number, create_tree):
87058         (create_token_tree, mark_opt_subexp, duplicate_tree):
87059         Use prototypes rather than old-style definitions.
87060
87061         * lib/regex_internal.c:
87062         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87063         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87064         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87065         (re_string_reconstruct, re_string_peek_byte_case):
87066         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87067         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87068         (re_node_set_init_copy, re_node_set_add_intersect):
87069         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87070         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87071         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87072         (re_acquire_state, re_acquire_state_context, register_state):
87073         (create_ci_newstate, create_cd_newstate, free_state):
87074         Likewise.
87075         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87076         re_search_2):
87077         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87078         (re_search_internal, prune_impossible_nodes):
87079         (acquire_init_state_context, check_matching, static):
87080         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87081         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87082         (update_regs, sift_states_backward, build_sifted_states):
87083         (clean_state_log_if_needed, merge_state_array):
87084         (update_cur_sifted_state, add_epsilon_src_nodes):
87085         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87086         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87087         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87088         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87089         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87090         (check_arrival, check_arrival_add_next_nodes):
87091         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87092         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87093         (check_node_accept_bytes, check_node_accept, extend_buffers):
87094         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87095         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87096         (sift_ctx_init):
87097         Likewise.
87098
87099         * lib/regex_internal.h:
87100         (re_string_allocate, re_string_construct, re_string_reconstruct):
87101         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87102         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87103         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87104         (re_string_context_at, re_string_peek_byte_case):
87105         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87106         is defined, since we now use prototypes always.
87107
87108         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87109         C89 or better.  All uses removed.
87110
87111 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87112
87113         * config/srclist.txt: Add glibc bugs 1220-1227.
87114
87115 2005-08-20  Jim Meyering  <jim@meyering.net>
87116
87117         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87118         of unused local, dfa.
87119
87120 2005-08-20  Bruno Haible  <bruno@clisp.org>
87121
87122         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87123
87124 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87125
87126         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87127         (re_node_set_insert_last, re_dfa_add_node):
87128         Rename local variables to avoid GCC shadowing warnings.
87129
87130 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87131
87132         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87133         [defined lint]: Suppress bogus uninitialized-variable warnings.
87134
87135         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87136         and let the caller return REG_ESPACE if out of space.  This
87137         removes an uninitialied-variable warning with GCC 4.0.1, and also
87138         avoids taking the address of a local variable.  All callers
87139         changed.
87140
87141 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87142
87143         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87144         $LIBCSRC/posix/regexec.c.
87145         Add glibc bug 1217 for regcomp.c.
87146
87147 2005-08-19  Jim Meyering  <jim@meyering.net>
87148
87149         * lib/regexec.c (proceed_next_node): Redo local variables to
87150         avoid GCC shadowing warnings.
87151
87152 2005-08-18  Bruno Haible  <bruno@clisp.org>
87153
87154         * lib/strstr.c (strstr): Fix return value in multibyte case.
87155         * lib/strcasestr.c (strcasestr): Likewise.
87156
87157 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87158
87159         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87160
87161 2005-08-17  Jim Meyering  <jim@meyering.net>
87162
87163         Make the %s format (seconds since the epoch) work for a negative
87164         number and when used with a zero-padded field width, e.g. %015s.
87165
87166         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87167         label so that it precedes the code to set `digits'.  Otherwise,
87168         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87169         print `00-22'.  Now, it prints `-0022', as it should.
87170
87171 2005-08-17  Bruno Haible  <bruno@clisp.org>
87172
87173         * modules/strstr (Files): Add m4/mbrtowc.m4.
87174         (Depends-on): Add mbuiter.
87175
87176 2005-08-17  Bruno Haible  <bruno@clisp.org>
87177
87178         * modules/strcasestr: New file.
87179         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87180         strcasestr.
87181
87182 2005-08-17  Bruno Haible  <bruno@clisp.org>
87183
87184         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87185
87186 2005-08-17  Bruno Haible  <bruno@clisp.org>
87187
87188         * modules/mbuiter: New file.
87189         * MODULES.html.sh (Extended multibyte and wide character utilities):
87190         Add mbuiter.
87191
87192 2005-08-17  Bruno Haible  <bruno@clisp.org>
87193
87194         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87195         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87196
87197 2005-08-17  Bruno Haible  <bruno@clisp.org>
87198
87199         * m4/strcasestr.m4: New file.
87200
87201 2005-08-17  Bruno Haible  <bruno@clisp.org>
87202
87203         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87204         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87205
87206 2005-08-17  Bruno Haible  <bruno@clisp.org>
87207
87208         * lib/strcasestr.h: New file.
87209         * lib/strcasestr.c: New file.
87210
87211 2005-08-17  Bruno Haible  <bruno@clisp.org>
87212
87213         * lib/strcasecmp.c: Use mbuiter.h.
87214
87215 2005-08-17  Bruno Haible  <bruno@clisp.org>
87216
87217         * lib/mbuiter.h: New file.
87218
87219 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87220
87221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87222         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87223         and gl_GETOPT are both invoked via different paths (as happens
87224         with GNU tar CVS because it uses both argp and getopt), the former
87225         wins.
87226
87227 2005-08-16  Bruno Haible  <bruno@clisp.org>
87228
87229         * modules/tls: New file.
87230         * MODULES.html.sh (Multithreading): Add tls.
87231
87232 2005-08-16  Bruno Haible  <bruno@clisp.org>
87233
87234         * modules/strnlen1: New file.
87235         * MODULES.html.sh (String handling): Add strnlen1.
87236
87237 2005-08-16  Bruno Haible  <bruno@clisp.org>
87238
87239         * modules/strcase (Files): Add m4/mbrtowc.m4.
87240         (Depends-on): Add strnlen1, mbchar.
87241
87242 2005-08-16  Bruno Haible  <bruno@clisp.org>
87243
87244         * modules/mbiter: New file.
87245         * MODULES.html.sh (Extended multibyte and wide character utilities):
87246         Add mbiter.
87247
87248 2005-08-16  Bruno Haible  <bruno@clisp.org>
87249
87250         * modules/mbfile: New file.
87251         * MODULES.html.sh (Extended multibyte and wide character utilities):
87252         Add mbfile.
87253
87254 2005-08-16  Bruno Haible  <bruno@clisp.org>
87255
87256         * modules/mbchar: New file.
87257         * MODULES.html.sh (Extended multibyte and wide character utilities):
87258         New section.
87259
87260 2005-08-16  Bruno Haible  <bruno@clisp.org>
87261
87262         * m4/tls.m4: New file, from GNU gettext.
87263
87264 2005-08-16  Bruno Haible  <bruno@clisp.org>
87265
87266         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87267         always.
87268         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87269
87270 2005-08-16  Bruno Haible  <bruno@clisp.org>
87271
87272         * m4/mbiter.m4: New file.
87273
87274 2005-08-16  Bruno Haible  <bruno@clisp.org>
87275
87276         * m4/mbfile.m4: New file.
87277
87278 2005-08-16  Bruno Haible  <bruno@clisp.org>
87279
87280         * m4/mbchar.m4: New file.
87281
87282 2005-08-16  Bruno Haible  <bruno@clisp.org>
87283
87284         * lib/tls.h: New file, from GNU gettext.
87285         * lib/tls.c: New file, from GNU gettext.
87286
87287 2005-08-16  Bruno Haible  <bruno@clisp.org>
87288
87289         * lib/strnlen1.h: New file.
87290         * lib/strnlen1.c: New file.
87291
87292 2005-08-16  Bruno Haible  <bruno@clisp.org>
87293
87294         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87295         (mbi_init): Update.
87296         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87297         NUL byte, not after it.
87298
87299 2005-08-16  Bruno Haible  <bruno@clisp.org>
87300
87301         * lib/strcase.h (strcasecmp): Add note in comments.
87302         * lib/strncasecmp.c: Use code from strcasecmp.c.
87303         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87304         (strcasecmp): Work correctly in multibyte locales.
87305
87306 2005-08-16  Bruno Haible  <bruno@clisp.org>
87307
87308         * lib/mbiter.h: New file.
87309
87310 2005-08-16  Bruno Haible  <bruno@clisp.org>
87311
87312         * lib/mbfile.h: New file.
87313
87314 2005-08-16  Bruno Haible  <bruno@clisp.org>
87315
87316         * lib/mbchar.h: New file.
87317         * lib/mbchar.c: New file.
87318
87319 2005-08-16  Bruno Haible  <bruno@clisp.org>
87320
87321         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87322         the valid ones. Makes the comparison operations transitive:
87323         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87324         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87325
87326 2005-08-15  Simon Josefsson  <jas@extundo.com>
87327
87328         * modules/ssize_t (License): Change to 'unlimited'.
87329
87330         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87331
87332 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87333
87334         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87335         Add comments for each pending glibc patch.
87336
87337 2005-08-15  Bruno Haible  <bruno@clisp.org>
87338
87339         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87340         __cplusplus is defined.
87341
87342 2005-08-14  Jim Meyering  <jim@meyering.net>
87343
87344         Sync from coreutils.
87345
87346         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87347         Use the hash-table-based cycle-detection code not just when
87348         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87349         Reported by James Youngman in
87350         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87351         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87352         FTS_TIGHT_CYCLE_CHECK.
87353         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87354         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87355         once again.
87356         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87357         * lib/fts.c (fd_safer): Remove decl.
87358         Include fcntl--.h rather than unistd-safer.h
87359         (fts_safe_changedir): Don't call fd_safer; no longer needed
87360         now that we include fcntl--.h.
87361
87362 2005-08-12  Simon Josefsson  <jas@extundo.com>
87363
87364         * modules/getndelim2: Use ssize_t module.
87365         * modules/getnline: Likewise.
87366         * modules/safe-read: Likewise.
87367         * modules/xreadlink: Likewise.
87368
87369         * modules/ssize_t: New file.
87370
87371 2005-08-12  Simon Josefsson  <jas@extundo.com>
87372
87373         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87374
87375 2005-08-12  Simon Josefsson  <jas@extundo.com>
87376
87377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87378         ssize_t.
87379
87380 2005-08-12  Simon Josefsson  <jas@extundo.com>
87381
87382         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87383         readline, getdelim and check_version.
87384         (Support for systems lacking ISO C 99: Sizes of integer types):
87385         Add size_max.
87386
87387 2005-08-12  Bruno Haible  <bruno@clisp.org>
87388
87389         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87390
87391 2005-08-11  Simon Josefsson  <jas@extundo.com>
87392
87393         * modules/readline: New file.
87394
87395         * modules/strnlen (Files): Add strnlen.h.
87396
87397 2005-08-11  Simon Josefsson  <jas@extundo.com>
87398
87399         * m4/readline.m4: New file.
87400
87401 2005-08-11  Simon Josefsson  <jas@extundo.com>
87402
87403         * lib/readline.h, readline.c: New file.
87404
87405 2005-08-11  Simon Josefsson  <jas@extundo.com>
87406
87407         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87408         gl_AVOID.
87409
87410 2005-08-11  Bruno Haible  <bruno@clisp.org>
87411
87412         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87413
87414 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87415
87416         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87417
87418 2005-08-10  Simon Josefsson  <jas@extundo.com>
87419
87420         * tests/test-iconvme.c: New file.
87421
87422 2005-08-10  Simon Josefsson  <jas@extundo.com>
87423
87424         * m4/strnlen.m4: New file.
87425
87426         * m4/strndup.m4: Don't check for strnlen declaration, done in
87427         strnlen.m4.
87428
87429 2005-08-10  Simon Josefsson  <jas@extundo.com>
87430
87431         * lib/strndup.c: Use strnlen.h.
87432
87433         * lib/strnlen.h: New file.
87434
87435 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87436
87437         * README: Typos.
87438
87439 2005-08-02  Simon Josefsson  <jas@extundo.com>
87440
87441         * modules/readline: New file.
87442
87443 2005-08-02  Simon Josefsson  <jas@extundo.com>
87444
87445         * modules/getdelim: New file.
87446
87447         * modules/getline: Rewrite, don't use getndelim2.
87448
87449 2005-08-02  Simon Josefsson  <jas@extundo.com>
87450
87451         * m4/getline.m4: Separate out getdelim stuff into separate module.
87452
87453         * m4/getdelim.m4: New file.
87454
87455 2005-08-02  Simon Josefsson  <jas@extundo.com>
87456
87457         * lib/getline.h, getline.c: Rewrite.
87458
87459         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87460
87461 2005-07-31  Bruno Haible  <bruno@clisp.org>
87462
87463         * lib/lock.h (gl_lock_initializer): New macro.
87464         (gl_lock_define_initialized): Use it.
87465         (gl_rwlock_initializer): New macro.
87466         (gl_rwlock_define_initialized): Use it.
87467         (gl_recursive_lock_initializer): New macro.
87468         (gl_recursive_lock_define_initialized): Use it.
87469
87470 2005-07-30  Karl Berry  <karl@gnu.org>
87471
87472         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87473         Report from Ben Pfaff, regarding getopt.
87474
87475 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87476
87477         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87478         normal way.
87479         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87480         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87481         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87482         (gl_GETOPT): Use the new macros.  Most of the implementation
87483         is moved to the new macros.  This is for programs like Emacs
87484         that don't want all the functionality of gl_GETOPT.
87485
87486 2005-07-26  Bruno Haible  <bruno@clisp.org>
87487
87488         * m4/lock.m4: Update from GNU gettext.
87489
87490 2005-07-26  Bruno Haible  <bruno@clisp.org>
87491
87492         * lib/lock.h: Update from GNU gettext.
87493         * lib/lock.c: Update from GNU gettext.
87494
87495 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87496
87497         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87498         obsolescent AC_TRY_RUN.  Include the default includes files, for
87499         'exit'.
87500
87501 2005-07-24  Bruno Haible  <bruno@clisp.org>
87502
87503         * modules/visibility: New file.
87504         * MODULES.html.sh (Misc): Add visibility.
87505
87506 2005-07-24  Bruno Haible  <bruno@clisp.org>
87507
87508         * m4/visibility.m4: New file.
87509
87510 2005-07-24  Bruno Haible  <bruno@clisp.org>
87511
87512         * doc/visibility.texi: New file.
87513
87514 2005-07-22  Bruno Haible  <bruno@clisp.org>
87515
87516         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87517         $(ALLOCA_H), redundant through BUILT_SOURCES.
87518         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87519         redundant through BUILT_SOURCES.
87520         * modules/byteswap (Makefile.am): Remove explicit dependency on
87521         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87522         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87523         $(FNMATCH_H), redundant through BUILT_SOURCES.
87524         * modules/getopt (Makefile.am): Remove explicit dependency on
87525         $(GETOPT_H), redundant through BUILT_SOURCES.
87526         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87527         redundant through BUILT_SOURCES.
87528         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87529         redundant through BUILT_SOURCES.
87530         * modules/stdbool (Makefile.am): Remove explicit dependency on
87531         $(STDBOOL_H), redundant through BUILT_SOURCES.
87532         * modules/stdint (Makefile.am): Remove explicit dependency on
87533         $(STDINT_H), redundant through BUILT_SOURCES.
87534         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87535         Remove explicit dependency on $(SYSEXITS_H).
87536         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87537
87538 2005-07-18  Simon Josefsson  <jas@extundo.com>
87539
87540         * lib/check-version.c (check_version): Accept identical versions too.
87541
87542 2005-07-18  Bruno Haible  <bruno@clisp.org>
87543
87544         * modules/lock: New file.
87545         * MODULES.html.sh (Multithreading): New section.
87546
87547 2005-07-18  Bruno Haible  <bruno@clisp.org>
87548
87549         * m4/lock.m4: New file, from GNU gettext.
87550
87551 2005-07-18  Bruno Haible  <bruno@clisp.org>
87552
87553         * lib/lock.h: New file, from GNU gettext.
87554         * lib/lock.c: New file, from GNU gettext.
87555
87556 2005-07-18  Bruno Haible  <bruno@clisp.org>
87557
87558         * lib/lock.h (gl_once_t): New type.
87559         (gl_once_define, gl_once): New macros.
87560         * lib/lock.c (fresh_once): New variable.
87561         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87562         functions.
87563
87564 2005-07-16  Simon Josefsson  <jas@extundo.com>
87565
87566         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87567         workaround, suggested by Bruno.
87568
87569 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87570
87571         * modules/xalloc (Depends-on): Add xalloc-die.
87572         * modules/xvasprintf (Depends-on): Add xalloc-die.
87573
87574 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87575
87576         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87577         with a minor change.
87578
87579 2005-07-15  Bruno Haible  <bruno@clisp.org>
87580
87581         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87582         When using lib/poll.c, define poll as rpl_poll.
87583
87584 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87585
87586         * modules/argp (Depends-on): Remove unlocked-io.
87587
87588 2005-07-14  Derek Price  <derek@ximbiot.com>
87589
87590         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87591         for glob symlink bug.
87592
87593 2005-07-14  Bruno Haible  <bruno@clisp.org>
87594
87595         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87596         Instead, test for *_unlocked function declarations directly.
87597
87598 2005-07-11  Simon Josefsson  <jas@extundo.com>
87599
87600         * modules/size_max: New file.
87601
87602         * modules/xsize: Depend on size_max module for size_max.m4.
87603
87604 2005-07-11  Simon Josefsson  <jas@extundo.com>
87605
87606         * lib/size_max.h: New file.
87607
87608 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87609
87610         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87611         copyright symbol and the year.
87612         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87613         (version_etc_va): Use parameterized copyright notice.
87614         Reword to conform to the current GNU coding standards.
87615
87616 2005-07-11  Karl Berry  <karl@gnu.org>
87617
87618         * doc/gnulib.texi (Quoting): new node.
87619         (Initial import): more info, from Patrice.
87620
87621 2005-07-11  Bruno Haible  <bruno@clisp.org>
87622
87623         * gnulib-tool (func_usage): Document option --avoid.
87624         (Command line options): Handle --avoid.
87625         (func_acceptable): New function.
87626         (func_modules_transitive_closure): Use it.
87627
87628 2005-07-11  Bruno Haible  <bruno@clisp.org>
87629
87630         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87631         Reported by Jim Meyering.
87632
87633 2005-07-10  Bruno Haible  <bruno@clisp.org>
87634
87635         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87636         Needed when size_t is smaller than 'unsigned int'.
87637         Reported by Paul Eggert.
87638
87639 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87640
87641         * modules/argp (Depends-on): Add unlocked-io
87642
87643 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87644
87645         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87646         block of defines.
87647
87648 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87651         fix now.
87652
87653 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87654         and Paul Eggert  <eggert@cs.ucla.edu>
87655
87656         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87657         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87658
87659 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87660
87661         * modules/regex (Files): Add lib/regex_internal.c,
87662         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87663         (Depends-on): Add extensions.
87664         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87665
87666 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87667
87668         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87669         pathconf.
87670         * m4/same.m4 (gl_SAME): Likewise.
87671         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87672
87673         * m4/regex.m4: Adjust to new libc regex implementation.
87674         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87675         all the .c and .h parts of (the new) regex.
87676         Quote the m4 stuff better.
87677         Check for RE_ICASE bug of old gnulib.
87678         Check for REG_STARTEND of recent libc.
87679         Rename local variables from jm_* to gl_*.
87680         Quote operand of "test -f".
87681         Say "recent enough" version of libc, not "version 2".
87682         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87683         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87684         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87685         Remove check for btowc, isascii.
87686         Require AM_LANGINFO_CODESET.
87687
87688 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87689
87690         * lib/regex.c, regex.h: Sync from libc.
87691         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87692         * lib/regexec.c:
87693         New files, synced from libc, except that regex_internal.h
87694         currently has a small porting fix.
87695
87696 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87699         regex_internal.c, regexec.c.
87700         Add regex_internal.h too, but as a comment, since the libc version
87701         is currently broken in gnulib mode.
87702
87703 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87704
87705         Support programs like Emacs that use gnulib but not gettext.
87706         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87707         * modules/gettext-h: New file.
87708         * modules/gettext (Files): Remove lib/gettext.h.
87709         (Depends-on): Add gettext-h.
87710         (Makefile.am): Remove lib_SOURCES.
87711         * modules/argmatch, modules/c-stack, modules/closeout:
87712         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87713         * modules/execute, modules/file-type, modules/getaddrinfo:
87714         * modules/getopt, modules/human, modules/javacomp:
87715         * modules/javaexec, modules/mkdir-p, modules/obstack:
87716         * modules/openat, modules/pagealign_alloc, modules/pipe:
87717         * modules/quotearg, modules/regex, modules/rpmatch:
87718         * modules/unicodeio, modules/userspec, modules/version-etc:
87719         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87720         * modules/xsetenv:
87721         Depend on gettext-h, not gettext.
87722
87723 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87724
87725         * gnulib-tool (func_import): Add support for 'public domain' license.
87726         * modules/alloca, modules/atexit, modules/memmove:
87727         Now public domain, not GPL.
87728         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87729         * modules/realloc, modules/strerror, modules/strtod:
87730         Now LGPL, not GPL.
87731
87732 2005-07-05  Bruno Haible  <bruno@clisp.org>
87733
87734         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87735         autoconf CVS. Needed for mingw.
87736
87737 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87738
87739         Remove the dependency of the strftime module on the tzset module.
87740         * modules/strftime (Depends-on): Remove dependency on tzset.
87741
87742 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87743
87744         Remove the dependency of the strftime module on the tzset module.
87745         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87746         gl_FUNC_TZSET_CLOBBER.
87747
87748 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87749
87750         Remove the dependency of the strftime module on the tzset module.
87751         * lib/strftime.c (my_strftime)
87752         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87753         Copy the input structure, to work around some of the bug with
87754         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87755         Solaris releases, you should also use the tzset module, but we won't
87756         require it as a dependency any more since we don't want LGPLed code
87757         to depend on GPLed code.
87758
87759 2005-07-02  Jim Meyering  <jim@meyering.net>
87760
87761         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87762         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87763         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87764         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87765
87766 2005-07-02  Jim Meyering  <jim@meyering.net>
87767
87768         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87769
87770 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87771
87772         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87773         declares only 'struct timespec;' (!).
87774
87775 2005-07-01  Jim Meyering  <jim@meyering.net>
87776
87777         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87778         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87779         * lib/save-cwd.c, tempname.c:
87780         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87781         and don't include <sys/file.h>).
87782
87783 2005-06-29  Jim Meyering  <jim@meyering.net>
87784
87785         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87786         type name.  Use the variable name instead.
87787         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87788         Likewise.
87789
87790 2005-06-28  Simon Josefsson  <jas@extundo.com>
87791
87792         * modules/check-version (Files): Add check-version.m4.
87793
87794 2005-06-28  Simon Josefsson  <jas@extundo.com>
87795
87796         * m4/check-version.m4: New file, suggested by Jim Meyering
87797         <jim@meyering.net>.
87798
87799 2005-06-28  Simon Josefsson  <jas@extundo.com>
87800
87801         * lib/check-version.h, lib/check-version.c: New files.
87802
87803 2005-06-28  Simon Josefsson  <jas@extundo.com>
87804
87805         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87806         collision with global variable.  Better indentation.  Don't
87807         increment buffer pointer beyond buffer end.  Based on comments
87808         from Paul Eggert <eggert@cs.ucla.edu>.
87809
87810         * lib/base64.h: Indent.
87811
87812 2005-06-28  Simon Josefsson  <jas@extundo.com>
87813
87814         * doc/gnulib.texi (Library version handling): New section.
87815
87816 2005-06-28  Jim Meyering  <jim@meyering.net>
87817
87818         * check-module (find_included_lib_files): Hard-code another
87819         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87820         but modules/fts-lgpl (correctly) does not list those files.
87821
87822         * modules/canonicalize (Files): Add lib/pathmax.h.
87823
87824 2005-06-25  Simon Josefsson  <jas@extundo.com>
87825
87826         * modules/check-version: New file.
87827
87828 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87829
87830         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87831         initializer of struct addrinfo, as an indication that we don't
87832         care how many members the structure has.
87833
87834 2005-06-24  Derek Price  <derek@ximbiot.com>
87835         and Bruno Haible  <bruno@clisp.org>
87836
87837         Remove stat module & update lstat.
87838         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87839         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87840         * m4/stat.m4: Remove this file.
87841
87842 2005-06-24  Derek Price  <derek@ximbiot.com>
87843         and Bruno Haible  <bruno@clisp.org>
87844
87845         Remove stat module & update lstat.
87846         * lib/stat.c: Remove this file...
87847         (slash_aware_lstat): ...moving this content and its support...
87848         * lib/lstat.c (rpl_lstat): ...into here.
87849         * lib/lstat.h: New file.
87850
87851 2005-06-24  Derek Price  <derek@ximbiot.com>
87852         and Bruno Haible  <bruno@clisp.org>
87853
87854         Remove stat module & update lstat.
87855         * config/srclist.txt (libc sources): Remove stat.
87856
87857 2005-06-24  Derek Price  <derek@ximbiot.com>
87858         and Bruno Haible  <bruno@clisp.org>
87859
87860         Remove stat module & update lstat.
87861         * MODULES.html.sh (stat): Remove.
87862         * MODULES.html: Regenerated.
87863         * modules/lstat (Description): Correct function name.
87864         (Files): Add "lstat.h".
87865         (Depends-on): Remove stat, add xalloc, stat-macros.
87866         * modules/stat: Remove this file.
87867         (Include): Add "lstat.h", remove <sys/stat.h>.
87868
87869 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87870
87871         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87872         (ranged_convert): Don't save conversion in a temporary struct.
87873         This causes a warning with GCC 4.0.0, and anyway in the typical
87874         case it's not worth the extra 100 bytes or so of code.
87875         (ranged_convert, __mktime_internal): When calling a function via a
87876         pointer P, use P () rather than (*P) (), as we now assume C89 or
87877         better.
87878
87879 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87880
87881         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87882         "who -r" failed to give output.  Problem reported by Tim Waugh.
87883
87884         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87885         (xcalloc): Use it to avoid needless tests.
87886         Problem reported by Jim Meyering.
87887
87888 2005-06-20  Derek Price  <derek@ximbiot.com>
87889
87890         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87891         unnecessary for Autoconfs > 2.59c.
87892
87893 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87894
87895         * lib/argp.h (__option_is_short): Check upper limit of
87896         __key. Isprint() requires its argument to have the value
87897         of an unsigned char or EOF.
87898
87899 2005-06-16  Jim Meyering  <jim@meyering.net>
87900
87901         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87902         when either N or S is zero.
87903
87904 2005-06-16  Derek Price  <derek@ximbiot.com>
87905
87906         * m4/bison.m4: Declare YACC & YFLAGS precious.
87907
87908 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87909
87910         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87911         multibyte string or pattern, fall back on unibyte matching.
87912         Problem reported by James Youngman.
87913
87914 2005-06-08  Bruno Haible  <bruno@clisp.org>
87915
87916         * modules/csharpcomp: New file.
87917         * MODULES.html.sh (C#): Add csharpcomp.
87918
87919 2005-06-08  Bruno Haible  <bruno@clisp.org>
87920
87921         * m4/csharpcomp.m4: New file, from GNU gettext.
87922
87923 2005-06-08  Bruno Haible  <bruno@clisp.org>
87924
87925         * lib/csharpcomp.h: New file, from GNU gettext.
87926         * lib/csharpcomp.c: New file, from GNU gettext.
87927         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87928
87929 2005-06-08  Bruno Haible  <bruno@clisp.org>
87930
87931         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87932         warning on mingw.
87933
87934 2005-06-07  Derek Price  <derek@ximbiot.com>
87935
87936         Sync from CVS.
87937         * lib/glob_.h: Indent nested #ifdef.
87938
87939 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87940
87941         Sync from coreutils.
87942         Use "file name" when talking about file names, instead of "filename"
87943         or "path", as per the GNU coding standards.
87944         * lib/mkdir-p.c: Renamed from makepath.c.
87945         (make_dir_parents): Renamed from make_path.  All callers changed.
87946         * lib/mkdir-p.h: Likewise.  All includers changed.
87947         * lib/filenamecat.c: Renamed from path-concat.c.
87948         (file_name_concat): Renamed from path_concat.  All callers changed.
87949         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87950         * lib/filenamecat.h: Likewise.  All includers changed.
87951         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87952         in comments or local variable names.
87953         * lib/basename.c: Likewise.
87954         * lib/canonicalize.c, canonicalize.h: Likewise.
87955         * lib/dirname.c, dirname.h: Likewise.
87956         * lib/euidaccess.c: Likewise.
87957         * lib/exclude.c: Likewise
87958         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87959         * lib/fsusage.c, fsuage.h: Likewise.
87960         * lib/fts.c, fts_.h: Likewise.
87961         * lib/getcwd.c: Likewise.
87962         * lib/getloadavg.c: Likewise.
87963         * lib/mkstemp.c: Likewise.
87964         * lib/mountlist.c, mountlist.h: Likewise.
87965         * lib/openat.c, openat.h: Likewise.
87966         * lib/readlink-stub.c: Likewise.
87967         * lib/readutmp.c, readutmp.h: Likewise.
87968         * lib/rename.c: Likewise.
87969         * lib/rmdir.c: Likewise.
87970         * lib/same.c: Likewise.
87971         * lib/savedir.c: Likewise.
87972         * lib/stripslash.c: Likewise.
87973         * lib/tempname.c: Likewise.
87974         * lib/xreadlink.c: Likewise.
87975         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87976         All uses changed.
87977         * lib/exclude.h: Likewise.
87978
87979         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87980         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87981         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87982         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87983         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87984         files have been getting away with it for years (MORE/BSD 4.3
87985         is extinct now).
87986         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87987         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87988
87989         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87990         Define to 256, not 255, as per modern POSIX.
87991
87992 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87993
87994         Sync from coreutils.
87995         Use "file name" when talking about file names, instead of "filename"
87996         or "path", as per the GNU coding standards.
87997         * MODULES.html.sh: mkdir-p renamed from makepath.
87998         filenamecat renamed from path-concat.
87999         * modules/filenamecat: Renamed from modules/path-concat.
88000         (Files): filenamecat.h and filenamecat.c renamed from
88001         path-concat.h and path-concat.c.
88002         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88003         (Include): filenamecat.h, not path-concat.h.
88004         * modules/mkdir-p: Renamed from modules/makepath.
88005         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88006         makepath.c.
88007         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88008         (Include): mkdir-p.h, not makepath.h.
88009
88010 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88011
88012         Sync from coreutils.
88013         * m4/mkdir-p.m4: Renamed from makepath.m4.
88014         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88015         Rename files from makepath.c to mkdir-p.c, and from
88016         makepath.h to mkdir-p.h.
88017         * m4/filenamecat.m4: Renamed from path-concat.m4.
88018         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88019         Rename files from path-concat.c to filenamecat.c,
88020         and from path-concat.h to filenamecat.h.
88021         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88022         "file name" in local variables or comments.
88023         * m4/rename.m4: Likewise.
88024
88025 2005-06-01  Bruno Haible  <bruno@clisp.org>
88026
88027         * modules/csharpexec: New file.
88028         * MODULES.html.sh (C#): New section.
88029
88030 2005-06-01  Bruno Haible  <bruno@clisp.org>
88031
88032         * m4/csharp.m4: New file, from GNU gettext.
88033         * m4/csharpexec.m4: New file, from GNU gettext.
88034
88035 2005-06-01  Bruno Haible  <bruno@clisp.org>
88036
88037         * lib/csharpexec.h: New file, from GNU gettext.
88038         * lib/csharpexec.c: New file, from GNU gettext.
88039         * lib/csharpexec.sh.in: New file, from GNU gettext.
88040
88041 2005-05-31  Derek Price  <derek@ximbiot.com>
88042             Paul Eggert  <eggert@cs.ucla.edu>
88043
88044         Sync from cvs.
88045         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88046
88047 2005-05-31  Derek Price  <derek@ximbiot.com>
88048             Paul Eggert  <eggert@cs.ucla.edu>
88049
88050         Sync from cvs.
88051         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88052
88053 2005-05-29  Derek Price  <derek@ximbiot.com>
88054
88055         * config/srclist.txt (glob_.h, glob.c): Add these files.
88056
88057 2005-05-29  Derek Price  <derek@ximbiot.com>
88058
88059         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88060         * modules/glob: New file.
88061         * modules/getlogin_r: Add link to POSIX spec in description.
88062
88063 2005-05-29  Derek Price  <derek@ximbiot.com>
88064             Paul Eggert  <eggert@cs.ucla.edu>
88065
88066         * m4/glob.m4: New file.
88067
88068 2005-05-29  Derek Price  <derek@ximbiot.com>
88069             Paul Eggert  <eggert@cs.ucla.edu>
88070
88071         * lib/glob_.h, lib/glob.c: New files.
88072
88073 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88074
88075         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88076         * modules/fts-lgpl (Depends-on): Remove gettext.
88077
88078 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88079
88080         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88081         and don't require gt_INTTYPES_PRI.
88082
88083 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88084
88085         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88086
88087         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88088         the configuration hassle isn't worth it.
88089         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88090         (LONGEST_MODIFIER, PRIuMAX): Remove.
88091
88092 2005-05-27  Bruno Haible  <bruno@clisp.org>
88093
88094         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88095
88096 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88097
88098         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88099         _POSIX_PTHREAD_SEMANTICS for Solaris.
88100
88101 2005-05-25  Derek Price  <derek@ximbiot.com>
88102
88103         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88104
88105 2005-05-25  Derek Price  <derek@ximbiot.com>
88106             Paul Eggert  <eggert@cs.ucla.edu>
88107
88108         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88109         * lib/getlogin_r.c, getlogin_r.h: New files.
88110
88111 2005-05-25  Bruno Haible  <bruno@clisp.org>
88112             Derek Price  <derek@ximbiot.com>
88113
88114         * lib/getlogin_r.h: Simplify API documentation.
88115
88116 2005-05-23  Derek Price  <derek@ximbiot.com>
88117
88118         * modules/minmax (Files): Add m4/minmax.m4.
88119         (configure.ac): Add gl_MINMAX.
88120
88121 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88122
88123         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88124         so that unistd-safer.h (GPL'ed code) need not be included.
88125
88126 2005-05-22  Bruno Haible  <bruno@clisp.org>
88127
88128         * m4/minmax.m4: New file.
88129         Based on a patch by Derek Price <derek@ximbiot.com>.
88130
88131 2005-05-22  Bruno Haible  <bruno@clisp.org>
88132
88133         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88134         (INT64_MIN): Fix definition.
88135         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88136
88137         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88138         NEED_SIGNED_INT_TYPES.
88139
88140         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88141         HAVE_SYSTEM_INTTYPES.
88142
88143 2005-05-22  Bruno Haible  <bruno@clisp.org>
88144
88145         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88146         Also include <sys/param.h> if it defines MIN, MAX.
88147         Based on a patch by Derek Price <derek@ximbiot.com>.
88148
88149 2005-05-21  Jim Meyering  <jim@meyering.net>
88150
88151         * modules/fts (Files): Add m4/inttypes-pri.m4.
88152         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88153
88154 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88155
88156         New fts module.
88157         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88158         (setup_dir, free_dir): New functions.
88159         (enter_dir, leave_dir): Define trivial
88160         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88161         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88162         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88163         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88164         Move to fts-cycle.c.
88165         (fts_open): Use setup_dir.
88166         (fts_close): Use free_dir.
88167         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88168         This adds a label and some gotos, but the alternatives were messier.
88169         Check for memory allocation failure when entering a dir.
88170         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88171         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88172         (FTS): New member fts_cycle, that is a union that contains the
88173         old active_dir_ht and cycle_state.  All uses changed to mention
88174         fts_cycle.ht and fts_cycle.state.
88175         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88176         fts.c, with the following changes:
88177         (setup_dir, free_dir): New functions.
88178         (enter_dir): Now returns bool.  Return true if successful, false
88179         if memory exhausted.  All callers changed.
88180         Do not bother partly cleaning up on
88181         memory allocation failure; that is free_dir's job.
88182         However, free ad if hash_insert fails, to avoid memory leak.
88183         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88184         fts->fts_options to see which union member to use.
88185
88186 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88187
88188         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88189         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88190
88191 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88192
88193         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88194
88195 2005-05-20  Jim Meyering  <jim@meyering.net>
88196
88197         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88198         Now a macro, to pacify GCC.
88199
88200 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88201
88202         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88203         of -1.
88204
88205 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88206
88207         * lib/chown.c (rpl_chown): Return -1 on failure.
88208
88209 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88210
88211         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88212         Don't check for stddef.h.
88213         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88214         don't use its results.
88215         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88216         since we include them unconditionally.  Don't require
88217         AM_STDBOOL_H, since stdbool is a prerequisite.
88218         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88219         since we assume C89 or better.
88220         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88221         as we don't use their results.
88222         Don't check for fchdir, memmove, memset, strrchr, as we use
88223         them unconditionally.
88224         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88225         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88226
88227 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88228
88229         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88230         Include <stddef.h> unconditionally, since we assume C89 now.
88231         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88232         * lib/fts.c: Include fts_.h first, to check interface.
88233         Do not include intprops.h; no longer needed.
88234         Include cycle-check.h and hash.h, since fts_.h no longer does.
88235         Remove unnecessary casts of closedir to void.
88236         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88237         decide whether to decrement nlinks.
88238         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88239         (FTS): Use struct hash_table * instead of Hash_table, so that
88240         we no longer need to include hash.h here.
88241
88242 2005-05-18  Jim Meyering  <jim@meyering.net>
88243
88244         * modules/dirfd (License): Change to LGPL.  Most of the code
88245         is already in the public domain.
88246
88247 2005-05-18  Jim Meyering  <jim@meyering.net>
88248
88249         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88250         Reported by Yoann Vandoorselaere.
88251
88252 2005-05-17  Jim Meyering  <jim@meyering.net>
88253
88254         * m4/fts.m4: New file, from coreutils.
88255
88256 2005-05-17  Jim Meyering  <jim@meyering.net>
88257
88258         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88259
88260 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88261
88262         Sync from coreutils.
88263         * m4/unlinkdir.m4: New file.
88264
88265 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88266
88267         Sync from coreutils.
88268         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88269         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88270         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88271         White space changes only.
88272         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88273         special.
88274         * lib/yesno.c: Include getline.h, not ctype.h.
88275         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88276         Use getline to remove arbitrary restriction on response length.
88277
88278 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88279
88280         * config/srclist-update: Spell out "Street" in FSF postal
88281         mail address; this is the style the FSF seems to prefer.
88282
88283         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88284         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88285         this updates FSF postal mail address.
88286
88287         Sync from coreutils.
88288         * modules/unlinkdir: New file.
88289         * modules/yesno (Depends-on): Add getline.
88290         * MODULES.html.sh (File system functions): Add unlinkdir.
88291
88292 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88293
88294         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88295         lib/strsep.h:
88296         Change the initial comment to refer to GPL, not LGPL.
88297         gnulib-tool will change it to LGPL as needed.
88298
88299         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88300         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88301         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88302         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88303         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88304         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88305         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88306         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88307         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88308         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88309         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88310         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88311         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88312         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88313         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88314         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88315         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88316         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88317         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88318         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88319         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88320         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88321         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88322         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88323         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88324         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88325         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88326         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88327         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88328         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88329         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88330         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88331         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88332         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88333         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88334         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88335         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88336         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88337         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88338         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88339         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88340         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88341         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88342         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88343         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88344         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88345         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88346         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88347         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88348         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88349         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88350         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88351         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88352         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88353         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88354         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88355         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88356         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88357         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88358         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88359         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88360         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88361         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88362         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88363         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88364         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88365         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88366         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88367         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88368         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88369         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88370         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88371         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88372         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88373         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88374         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88375         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88376         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88377         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88378         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88379         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88380         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88381         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88382         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88383         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88384         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88385         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88386         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88387         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88388         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88389         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88390         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88391         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88392         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88393         lib/yesno.c, lib/yesno.h:
88394         Update FSF postal mail address.
88395
88396 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88397
88398         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88399         tests/test-memmem.c, tests/test-stpncpy.c:
88400         Update FSF postal mail address.
88401
88402 2005-05-13  Bruno Haible  <bruno@clisp.org>
88403
88404         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88405         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88406         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88407         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88408         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88409         Add support for 64-bit integers in the MSVC compiler.
88410
88411 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88412
88413         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88414
88415 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88416
88417         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88418
88419 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88420
88421         * doc/getdate.texi (General date syntax): Don't say that date
88422         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88423         Problem reported by Nic Ferrier.
88424
88425 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88426
88427         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88428         specified in ai_socktype. Fix invalid ai_protocol
88429         check. ai_protocol is usually set to 0 or depending on
88430         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88431         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88432         ai_socktype / ai_protocol in the returned addrinfo structure.
88433
88434 2005-05-10  Simon Josefsson  <jas@extundo.com>
88435
88436         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88437         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88438
88439 2005-05-10  Karl Berry  <karl@gnu.org>
88440
88441         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88442         (from http://www.gnu.org/licenses).
88443         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88444         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88445         fdl.texi suffices.
88446
88447 2005-05-10  Karl Berry  <karl@gnu.org>
88448
88449         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88450         (COPYING.DOC): remove.
88451
88452         * config/srclist-update: new FSF address.
88453
88454 2005-05-10  Derek Price  <derek@ximbiot.com>
88455
88456         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88457         possible.
88458
88459 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88460             Bruno Haible  <bruno@clisp.org>
88461
88462         * modules/inet_ntop: New file.
88463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88464         inet_ntop.
88465
88466 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88467             Bruno Haible  <bruno@clisp.org>
88468
88469         * m4/inet_ntop.m4: New file.
88470
88471 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88472             Bruno Haible  <bruno@clisp.org>
88473
88474         * lib/inet_ntop.h: New file.
88475         * lib/inet_ntop.c: New file, from glibc with modifications.
88476
88477 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88478
88479         * modules/time_r (License): Change to LGPL.
88480         * modules/extensions (License): Change to LGPL.  Actually,
88481         the license is more permissive than that, but currently gnulib-tool
88482         doesn't know how to handle more-permissive licenses.
88483
88484         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88485         Problem reported by Dave Love.
88486
88487 2005-05-08  Jim Meyering  <jim@meyering.net>
88488
88489         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88490         blank.
88491
88492 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88493
88494         * modules/argmatch (Depends-on): Add stdbool.
88495         * modules/backupfile (Depends-on): Likewise.
88496         * modules/chdir-long (Depends-on): Likewise.
88497         * modules/closeout (Depends-on): Likewise.
88498         * modules/cycle-check (Depends-on): Likewise.
88499         * modules/dirname (Depends-on): Likewise.
88500         * modules/fnmatch (Depends-on): Likewise.
88501         * modules/fsusage (Depends-on): Likewise.
88502         * modules/fwriteerror (Depends-on): Likewise.
88503         * modules/getcwd (Depends-on): Likewise.
88504         * modules/getloadavg (Depends-on): Likewise.
88505         * modules/hard-locale (Depends-on): Likewise.
88506         * modules/makepath (Depends-on): Likewise.
88507         * modules/mountlist (Depends-on): Likewise.
88508         * modules/nanosleep (Depends-on): Likewise.
88509         * modules/posixtm (Depends-on): Likewise.
88510         * modules/quotearg (Depends-on): Likewise.
88511         * modules/readtokens (Depends-on): Likewise.
88512         * modules/readtokens0 (Depends-on): Likewise.
88513         * modules/readutmp (Depends-on): Likewise.
88514         * modules/save-cwd (Depends-on): Likewise.
88515         * modules/strftime (Depends-on): Likewise.
88516         * modules/userspec (Depends-on): Likewise.
88517         * modules/utimecmp (Depends-on): Likewise.
88518         * modules/xgetcwd (Depends-on): Likewise.
88519         * modules/xnanosleep (Depends-on): Likewise.
88520         * modules/xstrtod (Depends-on): Likewise.
88521         * modules/yesno (Depends-on): Likewise.
88522
88523 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88524
88525         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88526         needless checks.
88527
88528 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88529
88530         Merge from coreutils.  Among other things,
88531         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88532         * lib/fd-safer.c: New file.
88533         * lib/fcntl-safer.h, open-safer.c: Remove.
88534         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88535         * lib/dup-safer.c: Include unistd-safer.h first.
88536         Don't include errno.h.
88537         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88538         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88539         * lib/file-type.c: Rely on file-type.h change.
88540         * lib/getloadavg.c: Include unistd-safer.h.
88541         (getloadavg): Use safer open.
88542         * lib/getusershell.c: Include "stdio-safer.h".
88543         (getusershell): Use safer fopen.
88544         * lib/long-options.c (long_options): Use NULL rather than 0.
88545         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88546         'free'.
88547         * lib/modechange.c: Likewise.
88548         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88549         (MODE_DONE): New constant.
88550         (struct mode_change): Remove 'next' member.
88551         (make_node_op_equals): New function; like the old one of the
88552         same name, except it allocates an array.
88553         (mode_compile, mode_create_from_ref): Use it.
88554         (mode_compile): Allocate result as an array, not a linked list.
88555         Parse octal string ourself, so that we catch mistakes like "+0".
88556         (mode_adjust): Arg is an array, not a linked list.
88557         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88558         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88559         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88560         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88561         Remove.  This is now stat-macros.h's job.
88562         (talloc): Remove.  All callers replaced by xalloc, so that
88563         our invokers don't have to worry about reporting memory failures.
88564         (make_node_op_equals): Remove.
88565         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88566         New constants.
88567         (struct mode_change): Moved here from modechange.h.
88568         (mode_append_entry): Remove.
88569         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88570         apps to have incorrect behavior.  Use simpler algorithm for head
88571         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88572         Detect more invalid usages rather than having somewhat-random behavior.
88573         Don't insert an "a=" action, as that leads to incorrect behavior.
88574         (mode_compile, mode_create_from_ref): Return NULL on error instead
88575         of an enum, since now there's only one way to have an error.  All
88576         callers changed.
88577         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88578         at the correct time.  Simplify calculation of "+u" and its ilk.
88579         Don't mishandle "+X".
88580         (mode_free): Remove "register" and localize decls.
88581         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88582         (struct mode_change): Move to modechange.c; callers don't
88583         need to see this stuff.
88584         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88585         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88586         (mode_change, mode_adjust): Reflect the new signatures noted above.
88587         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88588         that might redefine system include files.
88589         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88590         (my_usleep): Use NULL rather than (void *) 0.
88591         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88592         Use siginterrupt to specify that system calls should be interrupted.
88593         (rpl_nanosleep): Move initialization of suspended closer to call of
88594         my_usleep.
88595         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88596         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88597         (desirable_utmp_entry): New function.
88598         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88599         using x2nrealloc, to simplify logic.
88600         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88601         size calculation.  Do not assume utmp file is a regular file.
88602         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88603         (READ_UTMP_CHECK_PIDS): New constant.
88604         * lib/save-cwd.c: Include unistd-safer.h.
88605         (save_cwd): Use fd_safer.
88606         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88607         [!_LIBC] Include "stat-macros.h" instead.
88608         * lib/unistd-safer.h (fd_safer): New decl.
88609
88610 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88611
88612         * modules/getloadavg (Depends-on): Add unistd-safer.
88613         * modules/getusershell (Depends-on): Add stdio-safer.
88614         * modules/lstat (Depends-on): Remove xalloc.
88615         * modules/mkstemp (Depends-on): Add stat-macros.
88616         * modules/modechange (Depends-on): Remove xstrtol.
88617         Add stat-macros, xalloc.
88618         * modules/save-cwd (Depends-on): Add unistd-safer.
88619         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88620         * modules/unistd-safer (Files): Add lib/fd-safer.c
88621         (Makefile.am): Remove lib_SOURCES.
88622
88623         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88624         Remove fcntl-safer; unistd-safer supersedes it.
88625
88626 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88627
88628         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88629         AC_HEADER_STAT.
88630         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88631         (gl_PREREQ_CHOWN): Remove.
88632         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88633         it.  Don't require AC_HEADER_STAT.
88634         (gl_PREREQ_LSTAT): Remove.
88635         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88636         Don't require AC_HEADER_STAT.
88637         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88638         (gl_PREREQ_RMDIR): Remove.
88639         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88640         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88641         the stat-macros module a prerequisite.
88642         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88643         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88644         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88645         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88646         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88647         variable names.
88648         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88649         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88650         variable prefixes.
88651         * m4/fcntl-safer.m4: Remove.
88652         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88653         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88654         Invoke gl_PREREQ_FD_SAFER.
88655         (gl_PREREQ_FD_SAFER): New macro.
88656         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88657         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88658         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88659         Remove duplicate call to AC_LIBOBJ(readutmp).
88660         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88661
88662         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88663         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88664
88665 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88666
88667         * MODULES.html.sh (Misc): Add byteswap.
88668
88669 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88670
88671         * modules/getcwd (Depends-on): Add extensions.
88672         * modules/openat (Depends-on): Likewise.
88673
88674 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88675
88676         * modules/byteswap: New file.
88677
88678 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88679
88680         * m4/byteswap.m4: New file.
88681
88682 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88683
88684         * lib/byteswap_.h: New file.
88685
88686 2005-04-25  Karl Berry  <karl@gnu.org>
88687
88688         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88689
88690 2005-04-25  Albert Chin  <china@thewrittenword.com>
88691
88692         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88693         Toolkit C bug.
88694
88695 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88696
88697         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88698         (func_ln_if_changed): Remove forcibly for no error message
88699         in case file does not exist.
88700
88701 2005-04-19  Simon Josefsson  <jas@extundo.com>
88702
88703         * gnulib-tool (Options): Make --symlink mean --symbolic.
88704
88705 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88706
88707         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88708
88709 2005-04-16  Simon Josefsson  <jas@extundo.com>
88710
88711         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88712
88713 2005-04-15  Simon Josefsson  <jas@extundo.com>
88714
88715         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88716
88717 2005-04-15  Simon Josefsson  <jas@extundo.com>
88718
88719         * gnulib-tool: Rename --symlink to --symbolic.
88720
88721 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88722
88723         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88724         symbolic links to files instead of copying/moving.  Add --aux-dir,
88725         specifying directory relative --dir where auxiliary build tools
88726         are placed.
88727
88728 2005-04-14  Bruno Haible  <bruno@clisp.org>
88729
88730         * modules/allocsa (License): Change to LGPL.
88731         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88732
88733 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88734
88735         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88736         that "UTC +1 second" continues to work.  Problem reported
88737         by Dmitry V. Levin.
88738         (relunit_snumber): New rule.
88739         (relunit): Use it.
88740
88741 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88742
88743         * lib/getdate.y (universal_time_zone_table): New constant.
88744         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88745         universal_time_zone_table.
88746         (lookup_zone): Prefer universal_time_zone_table to
88747         local_time_zone_table, so that "GMT" time stamps are allowed in
88748         London during the summer.  Problem reported by Ian Abbott.
88749
88750 2005-04-12  Jim Meyering  <jim@meyering.net>
88751
88752         * lib/human.c (humblock): Set *options even when returning due to
88753         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88754         warning from gcc-4.
88755
88756 2005-04-09  Jim Meyering  <jim@meyering.net>
88757
88758         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88759         -Wuninitialized: initialize tm0.tm_year.
88760
88761 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88762
88763         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88764         count, since there's no maximum.  All uses changed.
88765         Add member dsts_seen.
88766         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88767         not being INT_MAX.
88768         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88769         Use pc_rels_seen to decide whether a date is absolute.
88770
88771         * lib/getdate.y (number): Don't overwrite year.
88772         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88773         check.
88774
88775 2005-04-02  Simon Josefsson  <jas@extundo.com>
88776
88777         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88778         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88779
88780 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88781
88782         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88783         where no absolute path name can be longer than PATH_MAX.
88784
88785 2005-03-27  Jim Meyering  <jim@meyering.net>
88786
88787         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88788
88789 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88790
88791         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88792         "one's complement" -> "ones' complement" in comment, as per Knuth.
88793         "value of type" -> "type or expression" in comment.
88794         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88795
88796 2005-03-26  Jim Meyering  <jim@meyering.net>
88797
88798         Comment nits.
88799         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88800         Correct typos: s/or/of/.
88801
88802 2005-03-26  Jim Meyering  <jim@meyering.net>
88803
88804         * modules/check-include-files: Move to ../ and rename to...
88805         * check-module: ...this.
88806
88807 2005-03-25  Jim Meyering  <jim@meyering.net>
88808
88809         * modules/xvasprintf (Files): Add xalloc.h.
88810
88811 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88812
88813         * modules/gettext (Files): config/config.rpath ->
88814         build-aux/config.rpath
88815         * modules/iconv (Files): Likewise.
88816         Problem reported by Oskar Liljeblad.
88817
88818 2005-03-23  Jim Meyering  <jim@meyering.net>
88819
88820         * modules/check-include-files: New script to check for
88821         missing dependencies, multiple includes, etc.
88822
88823         * modules/c-strtold (Depends-on): Add xalloc.
88824         * modules/c-strtod (Depends-on): Add xalloc.
88825         * modules/hash (Depends-on): Add xalloc.
88826         (Files): Remove lib/xalloc.h.
88827
88828         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88829         * modules/userspec (Files): Add lib/inttostr.h.
88830
88831 2005-03-23  Jim Meyering  <jim@meyering.net>
88832
88833         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88834
88835 2005-03-22  Jim Meyering  <jim@meyering.net>
88836
88837         * modules/stat-macros: New module.
88838         * modules/canonicalize, modules/euidaccess, modules/file-type,
88839         * modules/filemode, modules/lchown, modules/makepath,
88840         * modules/rmdir, modules/stat: Depend on new stat-macros module
88841         rather than listing lib/stat-macros.h manually.
88842         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88843
88844 2005-03-22  Jim Meyering  <jim@meyering.net>
88845
88846         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88847
88848 2005-03-22  Bruno Haible  <bruno@clisp.org>
88849
88850         * config/srclist.txt: Replace target directory 'config' with
88851         'build-aux'.
88852         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88853         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88854         ../build-aux/.
88855
88856 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88857
88858         * modules/chdir-long (Depends-on): Add mempcpy.
88859
88860         * modules/acl, modules/backupfile, modules/c-strtod,
88861         modules/c-strtold, modules/canon-host, modules/canonicalize,
88862         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88863         modules/exclude, modules/exitfail, modules/file-type,
88864         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88865         modules/getdate, modules/getline, modules/getpagesize,
88866         modules/getpass, modules/getugroups, modules/group-member,
88867         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88868         modules/inttostr, modules/long-options, modules/makepath,
88869         modules/md5, modules/memcasecmp, modules/memcoll,
88870         modules/modechange, modules/mountlist, modules/path-concat,
88871         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88872         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88873         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88874         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88875         modules/strftime, modules/strndup, modules/strverscmp,
88876         modules/timespec, modules/unlocked-io, modules/userspec,
88877         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88878         modules/yesno:
88879         Remove lib_SOURCES line from Makefile.am section, as this is now
88880         done automatically by the corresponding Autoconf macro.
88881
88882 2005-03-21  Jim Meyering  <jim@meyering.net>
88883
88884         Changes imported from coreutils.
88885
88886         * lib/cycle-check.c: Don't include xalloc.h.
88887
88888         * lib/path-concat.c: Don't include assert.h.
88889         (path_concat): Remove assertion that would have triggered
88890         for ABASE starting with more than one slash.
88891         Reported by Andreas Schwab.
88892
88893         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88894         properly when ABASE is an absolute file name.
88895         Correct the description of this function.
88896         Include <assert.h>.
88897         Add an assertion and a test driver.
88898         This fixes a bug introduced on 2004-07-02.
88899         Andreas Schwab reported the resulting failure of cp --parents:
88900         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88901
88902 2005-03-21  Jim Meyering  <jim@meyering.net>
88903
88904         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88906
88907 2005-03-21  Jim Meyering  <jim@meyering.net>
88908         and  Paul Eggert  <eggert@cs.ucla.edu>
88909
88910         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88911         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88912         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88913         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88914         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88915         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88916         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88917         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88918         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88919         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88920         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88921         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88922         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88923         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88924         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88925         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88926         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88927         for these modules.
88928
88929 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88930
88931         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88932         (which shouldn't happen), generate nothing instead of returning 0
88933         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88934
88935 2005-03-16  Bruno Haible  <bruno@clisp.org>
88936
88937         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88938         HAVE_LONGLONG_64BIT.
88939
88940 2005-03-16  Bruno Haible  <bruno@clisp.org>
88941
88942         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88943         HAVE_LONGLONG_64BIT.
88944
88945 2005-03-16  Bruno Haible  <bruno@clisp.org>
88946
88947         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88948         HAVE_LONGLONG_64BIT.
88949
88950 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88951
88952         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88953         reliably distinguish strftime failure from empty output on POSIX
88954         hosts.
88955
88956 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88957
88958         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88959         (iconv_string): Don't guess a size-zero buffer, as that might cause
88960         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88961         result would be 'too large', where 'too large' is (heuristically)
88962         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88963         overflow concerns.  This will prevent some unwanted malloc failures
88964         when the inputs are very large.
88965
88966 2005-03-15  Karl Berry  <karl@gnu.org>
88967
88968         * config/srclist.txt (config.rpath): from gettext.
88969         * config/config.rpath: update.
88970
88971 2005-03-15  Bruno Haible  <bruno@clisp.org>
88972
88973         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88974         to 'negate'.
88975
88976         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88977         variable.
88978
88979         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88980         results.
88981
88982 2005-03-14  Simon Josefsson  <jas@extundo.com>
88983
88984         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88985         <fx@gnu.org>.
88986
88987 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88988
88989         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88990         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88991         intprops.h.
88992         * lib/strtol.c: Likewise.
88993
88994 2005-03-14  Jim Meyering  <jim@meyering.net>
88995
88996         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88997         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88998         to be nonzero so that we (and caller) can detect the difference
88999         between a valid zero-length expansion and an error return, even
89000         when the underlying strftime fails before writing anything into
89001         that location.
89002
89003 2005-03-14  Bruno Haible  <bruno@clisp.org>
89004
89005         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89006         Update from GNU gettext 0.14.3.
89007
89008 2005-03-10  Jim Meyering  <jim@meyering.net>
89009
89010         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89011
89012 2005-03-10  Jim Meyering  <jim@meyering.net>
89013
89014         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89015         so that this module works on systems without fchdir.
89016
89017 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89018
89019         Factor int-properties macros into a single file, except for
89020         glibc-related files.
89021         * lib/intprops.h: New file.
89022         * lib/getloadavg.c: Include it instead of limits.h.
89023         (INT_STRLEN_BOUND): Remove.
89024         * lib/human.c: Include intprops.h.
89025         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89026         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89027         302/1000.
89028         * lib/inttostr.h: Include intprops.h instead of limits.h.
89029         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89030         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89031         for consistency with intprops.h.
89032         (time_t_is_integer, twos_complement_arithmetic): Use them.
89033         * lib/sig2str.h: Include <signal.h>, intprops.h.
89034         (INT_STRLEN_BOUND): Remove.
89035         * lib/strftime.c (TYPE_SIGNED): Remove.
89036         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89037         * lib/strtol.c: Adjust comments to match intprops.h.
89038         * lib/userspec.c: Include intprops.h.
89039         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89040         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89041         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89042         instead of rolling our own expressions.
89043         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89044
89045         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89046         instead of int.
89047         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89048         the right thing even if adding 1900 would overflow.  Similarly
89049         for tm_mon + 1 and tm_yday + 1.
89050         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89051         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89052         (DO_SIGNED_NUMBER): New macro.
89053         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89054
89055 2005-03-07  Bruno Haible  <bruno@clisp.org>
89056
89057         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89058
89059 2005-03-07  Bruno Haible  <bruno@clisp.org>
89060
89061         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89062
89063 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89064
89065         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89066         (func_import): Only replace files via --import when they have actually
89067         changed.
89068
89069 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89070
89071         * m4/mmap-anon.m4: New file.
89072         * m4/pagealign_alloc.m4: New file.
89073
89074 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89075             Bruno Haible  <bruno@clisp.org>
89076
89077         * modules/pagealign_alloc: New file.
89078         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89079
89080 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89081             Bruno Haible  <bruno@clisp.org>
89082
89083         * lib/pagealign_alloc.h: New file.
89084         * lib/pagealign_alloc.c: New file.
89085
89086 2005-03-03  Bruno Haible  <bruno@clisp.org>
89087
89088         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89089         Use an all-permissive copyright notice, recommended by RMS.
89090
89091 2005-03-02  Bruno Haible  <bruno@clisp.org>
89092
89093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89094         of AIX, the replacement has to be done only after <string.h> is
89095         included, therefore not in config.h. stpncpy.h does the replacement,
89096         and stpncpy.c uses it.
89097
89098 2005-03-02  Bruno Haible  <bruno@clisp.org>
89099
89100         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89101         stpncpy.c uses it.
89102
89103 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89104
89105         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89106         The workaround isn't strictly needed for POSIX conformance, and
89107         it's too much of a pain to configure and maintain.  We'll ask
89108         people to fix their kernels instead.
89109         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89110         (NANOSLEEP_BUG_WORKAROUND): Remove.
89111         (xnanosleep): Remove the workaround.
89112
89113 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89114
89115         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89116         Reported by Derek Price.
89117         (Include): Add "timespec.h".
89118
89119         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89120
89121 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89122
89123         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89124         to detect nanosleep bug.
89125
89126 2005-03-01  Bruno Haible  <bruno@clisp.org>
89127
89128         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89129
89130 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         * modules/gethrxtime: New file.
89133         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89134         (Depends-on): Add gethrxtime.
89135         (configure.ac): Add gl_XNANOSLEEP.
89136         (Makefile.am): Remove lib_SOURCES line.
89137
89138 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89139
89140         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89141         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89142
89143 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89144
89145         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89146         * lib/timespec.h (gettime): Return void, since it always
89147         succeeds now.  All uses changed.
89148         * lib/gettime.c (gettime): Likewise.
89149         [HAVE_NANOTIME]: Prefer nanotime.
89150         Assume gettimeofday succeeds, as POSIX requires.
89151         Assime time () succeeds, since other code already does.
89152         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89153         (timespec_subtract): Remove.
89154         (NANOSLEEP_BUG_WORKAROUND): New constant.
89155         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89156         things considerably.  Use it only on GNU/Linux hosts, since the
89157         workaround shouldn't be needed elsewhere.
89158
89159 2005-02-24  Bruno Haible  <bruno@clisp.org>
89160
89161         * modules/gettext (Files): Add m4/glibc2.m4.
89162
89163 2005-02-24  Bruno Haible  <bruno@clisp.org>
89164
89165         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89166         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89167         * m4/progtest.m4:
89168         Update from GNU gettext 0.14.2.
89169         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89170
89171 2005-02-24  Bruno Haible  <bruno@clisp.org>
89172
89173         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89174         * lib/config.charset: Update from GNU gettext 0.14.2.
89175
89176 2005-02-24  Bruno Haible  <bruno@clisp.org>
89177
89178         * lib/gettext.h: Update from GNU gettext 0.14.2.
89179
89180 2005-02-23  Simon Josefsson  <jas@extundo.com>
89181
89182         * m4/iconvme.m4: New file.
89183
89184 2005-02-23  Jim Meyering  <jim@meyering.net>
89185
89186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89187         change.
89188         Thanks to Bruno Haible for catching it.
89189
89190 2005-02-22  Simon Josefsson  <jas@extundo.com>
89191
89192         * modules/iconvme: New file.
89193
89194         * MODULES.html.sh: Add iconvme.
89195
89196 2005-02-22  Simon Josefsson  <jas@extundo.com>
89197
89198         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89199
89200 2005-02-22  Simon Josefsson  <jas@extundo.com>
89201
89202         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89203
89204 2005-02-22  Jim Meyering  <jim@meyering.net>
89205
89206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89207         s/ifndef/ifdef/.
89208
89209 2005-02-20  Neil Conway  <neilc@samurai.com>
89210
89211         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89212         returned by OSX/Darwin if the specified buffer is not large
89213         enough for the hostname.
89214
89215 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89216
89217         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89218         pass it to _help, otherwise the latter coredumps trying to
89219         dereference state.root_argp.
89220
89221 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89222
89223         * modules/chdir-long (Depends-on): Add memrchr.
89224         * modules/memrchr (Files): Add lib/memrchr.h.
89225         (Include): "memrchr.h".
89226
89227 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89228
89229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89230
89231 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89232
89233         * lib/memrchr.h: New file.
89234         * lib/chdir-long.c: Include it.
89235         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89236         Don't bother including stddef.h.
89237
89238 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89239
89240         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89241         inclusion.
89242         Include <sys/types.h>, for dev_t.
89243         (ME_DUMMY, ME_REMOTE): Move from here....
89244         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89245         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89246         Dmitry V. Levin.
89247         Include mountlist.h first, to test the interface.
89248
89249 2005-01-29  Bruno Haible  <bruno@clisp.org>
89250
89251         * lib/progname.c (program_name): Initialize.
89252         Needed when linking statically on MacOS X.
89253
89254 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89255
89256         Sync from coreutils.
89257         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89258         (Depends-on): Add c-strtod.
89259         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89260
89261 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89262
89263         Sync from coreutils.
89264         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89265
89266         Remove files that are specific to coreutils.
89267         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89268
89269 2005-01-28  Bruno Haible  <bruno@clisp.org>
89270
89271         * modules/javacomp: New file.
89272         * MODULES.html.sh (Java): Add javacomp.
89273
89274 2005-01-28  Bruno Haible  <bruno@clisp.org>
89275
89276         * m4/javacomp.m4: New file, from GNU gettext.
89277
89278 2005-01-28  Bruno Haible  <bruno@clisp.org>
89279
89280         * lib/javacomp.sh.in: New file, from GNU gettext.
89281         * lib/javacomp.h: New file, from GNU gettext.
89282         * lib/javacomp.c: New file, from GNU gettext.
89283
89284 2005-01-26  Simon Josefsson  <jas@extundo.com>
89285
89286         * lib/gai_strerror.c: Use GPL in header.
89287
89288 2005-01-26  Bruno Haible  <bruno@clisp.org>
89289
89290         * modules/javaexec: New file.
89291         * MODULES.html.sh (Java): Add javaexec.
89292
89293 2005-01-26  Bruno Haible  <bruno@clisp.org>
89294
89295         * m4/javaexec.m4: New file, from GNU gettext.
89296
89297 2005-01-26  Bruno Haible  <bruno@clisp.org>
89298
89299         * lib/javaexec.sh.in: New file, from GNU gettext.
89300         * lib/javaexec.h: New file, from GNU gettext.
89301         * lib/javaexec.c: New file, from GNU gettext.
89302
89303 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89304
89305         * modules/lchown (Depends-on): Remove lchown.h
89306
89307 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89308
89309         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89310         must be defined if the header file was not found, in order
89311         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89312
89313 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89314
89315         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89316         initializers for struct pentry_state.
89317         (__argp_error): Check return value of __asprintf
89318         (__argp_failure): Translate error message
89319
89320         * lib/argp-parse.c: Removed braces around the expansion of N_()
89321
89322 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89323
89324         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89325         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89326         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89327         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89328         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89329         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89330         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89331         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89332         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89333         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89334         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89335         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89336         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89337         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89338         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89339         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89340         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89341         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89342         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89343         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89344         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89345         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89346         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89347         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89348         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89349         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89350         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89351         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89352         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89353         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89354         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89355         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89356         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89357         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89358         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89359         Use an all-permissive copyright notice, recommended by RMS.
89360
89361 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89362
89363         * modules/chdir-long (Depends-on): Remove mempcpy.
89364
89365 2005-01-21  Jim Meyering  <jim@meyering.net>
89366
89367         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89368         same value as for Solaris 9.
89369
89370         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89371         component length.  This included changing the parameter to be
89372         of type `char *' rather than `char const *'.
89373         * lib/chdir-long.h (chdir_long): Update prototype.
89374
89375         * lib/openat.c (fdopendir, fstatat): New functions.
89376         * lib/openat.h: Include headers required for use of DIR and struct
89377         stat.
89378         [AT_SYMLINK_NOFOLLOW]: Define.
89379         (fdopendir, fstatat): Add prototypes.
89380
89381 2005-01-21  Bruno Haible  <bruno@clisp.org>
89382
89383         * modules/classpath: New file.
89384         * MODULES.html.sh (Java): Add classpath.
89385
89386 2005-01-21  Bruno Haible  <bruno@clisp.org>
89387
89388         * lib/classpath.h: New file, from GNU gettext.
89389         * lib/classpath.c: New file, from GNU gettext.
89390
89391 2005-01-20  Simon Josefsson  <jas@extundo.com>
89392
89393         * modules/version-etc-fsf: New file.
89394
89395 2005-01-20  Simon Josefsson  <jas@extundo.com>
89396
89397         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89398         * lib/version-etc.c: Remove version_etc_copyright.
89399         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89400         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89401
89402 2005-01-20  Simon Josefsson  <jas@extundo.com>
89403
89404         * lib/base64.h (isbase64): Add.
89405
89406         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89407         using a unsigned prototype, don't inline.
89408         (base64_decode): Use it.
89409
89410 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89411
89412         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89413         it.
89414
89415 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89416
89417         * lib/save-cwd.c (save_cwd): Remove code to support the case
89418         where fchdir is missing or flaky.
89419
89420 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89421
89422         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89423
89424 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89425
89426         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89427         AC_LIBSOURCES now does this.
89428         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89429         with new ullong_max module.
89430
89431 2005-01-19  Bruno Haible  <bruno@clisp.org>
89432
89433         * modules/sh-quote: New file.
89434         * MODULES.html.sh (Executing programs): Add sh-quote.
89435
89436 2005-01-19  Bruno Haible  <bruno@clisp.org>
89437
89438         * lib/sh-quote.h: New file, from GNU gettext.
89439         * lib/sh-quote.c: New file, from GNU gettext.
89440
89441 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89442
89443         Merge from coreutils.
89444         * m4/ullong_max.m4: New file.
89445         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89446         (gl_MACROS): Assume localeconv exists.
89447
89448 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89449
89450         Merge changes from coreutils, as described below in several
89451         changelogs dated today.
89452
89453         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89454         (O_DIRECTORY): Remove; not needed here, since "." must be
89455         a directory.  All uses removed.
89456         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89457         universal on Suns, and we also need to test for IRIX.
89458         Revamp code to use 'if' rather than '#if'.
89459         Avoid unnecessary comparison of cwd->desc to 0.
89460
89461         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89462         for known valid error numbers rather than observed invalid ones.
89463
89464 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         * modules/ullong_max: New file.
89467
89468         * modules/chdir-long, modules/openat: New files.
89469         * modules/save-cwd (Depends-on): Depend on chdir-long.
89470         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89471
89472 2005-01-18  Jim Meyering  <jim@meyering.net>
89473
89474         Merge from coreutils.
89475         * m4/chdir-long.m4, m4/openat.m4: New files.
89476         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89477         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89478         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89479         is sane and DOES follow symlinks.  Besides, testing 20 different
89480         systems found no broken chown implementations.
89481         Prompted by a change in rsync's copy of this macro.
89482         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89483
89484         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89485
89486         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89487         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89488         NULL-means-set-to-current-time semantics.
89489         Remove temporary file immediately, rather than waiting
89490         for configure's at-exit trap code to do it.
89491
89492 2005-01-18  Jim Meyering  <jim@meyering.net>
89493
89494         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89495
89496         * lib/utimens.c (futimens): Account for the fact that futimes
89497         can also fail with errno == ENOSYS or errno == ENOENT.
89498         Patch from Dmitry V. Levin.
89499
89500         Change the name of the robust chdir function from chdir to chdir_long.
89501         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89502         (restore_cwd): Use chdir_long, not chdir.
89503         * lib/chdir-long.c: Renamed from chdir.c.
89504         * lib/chdir-long.h: Renamed from chdir.h.
89505         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89506         Hurd.
89507
89508 2005-01-18  Bruno Haible  <bruno@clisp.org>
89509
89510         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89511         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89512         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89513         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89514         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89515         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89516         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89517         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89518         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89519         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89520         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89521         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89522         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89523         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89524         Use an all-permissive copyright notice, recommended by RMS.
89525
89526 2005-01-18  Bob Proulx  <bob@proulx.com>
89527
89528         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89529         simplify offsetof() macro construct to avoid compile failure with
89530         native HP-UX 11.0 ANSI C compiler.
89531
89532 2005-01-17  Bruno Haible  <bruno@clisp.org>
89533
89534         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89535         redundant because stpncpy.m4 takes care of it.
89536
89537 2005-01-17  Bruno Haible  <bruno@clisp.org>
89538
89539         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89540
89541 2005-01-17  Bruno Haible  <bruno@clisp.org>
89542
89543         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89544         used.
89545
89546 2005-01-17  Bruno Haible  <bruno@clisp.org>
89547
89548         * lib/fwriteerror.h (fwriteerror): Change specification to include
89549         fclose.
89550         * lib/fwriteerror.c: Include <stdbool.h>.
89551         (fwriteerror): At the end, close the file stream. Record whether
89552         stdout was already closed.
89553
89554 2005-01-17  Bruno Haible  <bruno@clisp.org>
89555
89556         * lib/execute.c (environ): Declare if needed.
89557         * lib/pipe.c (environ): Likewise.
89558         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89559
89560 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89561
89562         * modules/argp: Depend on vsnprintf
89563
89564 2005-01-10  Jim Meyering  <jim@meyering.net>
89565
89566         * modules/closeout (Depends-on): Add atexit.
89567
89568 2005-01-06  Bruno Haible  <bruno@clisp.org>
89569
89570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89571
89572 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89573
89574         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89575         definitions to be after all include files, to avoid collisions.
89576         Problem reported by Bob Proulx.
89577
89578 2005-01-04  Jim Meyering  <jim@meyering.net>
89579
89580         Changes imported from coreutils.
89581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89582         as the mkstemp template, use a temporary directory and an
89583         8.3-friendly template to avoid trouble on systems like DJGPP.
89584         Reported by Juan M. Guerrero via Stepan Kasal.
89585         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89586         close. Remove the temporary directory right away, rather than waiting
89587         for configure's at-exit trap code to do it.
89588         Suggestion from Stepan Kasal.
89589
89590 2005-01-01  Simon Josefsson  <jas@extundo.com>
89591
89592         * gnulib-tool: Print #include directives when --import'ing.
89593
89594 2004-12-28  Simon Josefsson  <jas@extundo.com>
89595
89596         * tests/test-base64.c: Include required header files.  Remove
89597         unused variables.
89598
89599 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89600
89601         * modules/error (Depends-on): Remove gettext.
89602
89603 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89604
89605         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89606         not needed.  This removes a dependency on the gettext module.
89607         [defined _LIBC]: Do not include <libintl.h>; not needed.
89608
89609 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89610
89611         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89612         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89613
89614 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89615
89616         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89617         HAVE_DECL_STRTOLD.
89618
89619 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89620
89621         * modules/getdate (Depends-on): Remove alloca-opt.
89622
89623 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89624
89625         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89626
89627 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89628
89629         * lib/argp-parse.c: Include <stddef.h>.
89630         (alignof, alignto): New macros.
89631         (parser_init): Don't assume that void * is aligned sufficiently
89632         for struct option.
89633
89634         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89635         need to extend the stack.
89636         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89637         large.
89638
89639 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89640
89641         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89642
89643 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89644
89645         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89646         (2004-10-24) change.  Apparently this was a false alarm.
89647
89648         * modules/getdate: Depend on alloca-opt, not alloca.
89649
89650 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89651
89652         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89653         Remove now-obsolete comment about AIX.
89654         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89655         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89656         (YYMAXDEPTH): New macro.
89657
89658 2004-12-18  Simon Josefsson  <jas@extundo.com>
89659
89660         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89661
89662 2004-12-18  Bruno Haible  <bruno@clisp.org>
89663
89664         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89665
89666 2004-12-18  Bruno Haible  <bruno@clisp.org>
89667
89668         * lib/fatal-signal.c (fatal_signals): Make non-const.
89669         (init_fatal_signals): New function.
89670         (uninstall_handlers, install_handlers): Ignore signals that were set to
89671         SIG_IGN.
89672         (at_fatal_signal): Call init_fatal_signals.
89673         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89674         SIG_IGN.
89675         Reported by Paul Eggert.
89676
89677 2004-12-18  Bruno Haible  <bruno@clisp.org>
89678
89679         * doc/alloca.texi: New file.
89680         * doc/alloca-opt.texi: New file.
89681
89682 2004-12-17  Jim Meyering  <jim@meyering.net>
89683
89684         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89685         Otherwise, install-sh could exit with improper exit status when
89686         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89687
89688 2004-12-16  Simon Josefsson  <jas@extundo.com>
89689
89690         * tests/test-base64.c: Add license.
89691
89692 2004-12-15  Stepan Kasal  <address@hidden>
89693
89694         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89695
89696 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89697
89698         * modules/getcwd (Files): Add m4/d-ino.m4.
89699         Suggested by Mark D. Baushke.
89700
89701 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89702
89703         * lib/getdate.y (textint): New member "negative".
89704         (time_zone_hhmm): New function.
89705         Expect 14 shift-reduce conflicts, not 13.
89706         (o_colon_minutes): New rule.
89707         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89708         (yylex): Set the "negative" member of signed numbers.
89709
89710 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89711
89712         * doc/getdate.texi (Time of day items, Time zone items):
89713         Describe new formats +00:00, UTC+00:00.
89714
89715 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89716
89717         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89718         spurious "-l"s.  Problem reported by Stepan Kasal.
89719
89720 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89721
89722         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89723         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89724
89725 2004-12-04  Simon Josefsson  <jas@extundo.com>
89726
89727         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89728         Vandoorselaere <yoann@prelude-ids.org>.
89729
89730 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89731
89732         Changes imported from coreutils.
89733         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89734         exist.
89735         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89736
89737 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89738
89739         Changes imported from coreutils.
89740         * lib/hard-locale.c: Assume <locale.h> exists.
89741         Include "strdup.h".
89742         (GLIBC_VERSION): New macro.
89743         (hard_locale): Assume setlocale exists.
89744         Rewrite to avoid #ifdef.
89745         Use strdup rather than malloc + strcpy.
89746         * lib/human.c: Assume <locale.h> exists.
89747         (human_readable): Assume localeconv exists.
89748
89749 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89750
89751         * modules/hard-locale (Depends-on): Add strdup.
89752
89753 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89754
89755         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89756         convert T2, not T.  (Imported from libc.)
89757
89758 2004-11-30  Simon Josefsson  <jas@extundo.com>
89759
89760         * modules/restrict (License): Change to LGPL.
89761
89762 2004-11-30  Simon Josefsson  <jas@extundo.com>
89763
89764         * m4/restrict.m4: Add copyright and copying conditions.
89765
89766 2004-11-30  Simon Josefsson  <jas@extundo.com>
89767
89768         * m4/base64.m4: New file.
89769
89770 2004-11-30  Simon Josefsson  <jas@extundo.com>
89771
89772         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89773         base64.
89774
89775         * tests/test-base64.c: New file.
89776
89777         * modules/base64: New file.
89778
89779 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89780
89781         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89782         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89783
89784         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89785
89786 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89787
89788         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89789         (__getcwd.c): Don't restore errno; glibc doesn't.
89790         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89791         first, falling back to our code only if its results look suspicious.
89792         Ensure that the resulting buffer is only as large as necessary.
89793
89794         * lib/readutmp.c: Include readutmp.h first.
89795         Include <errno.h>, since readutmp.h no longer does that.
89796         * lib/readutmp.h: Don't include <errno.h>,
89797         <sys/param.h>, <time.h>; not needed to establish interface.
89798         (errno): Remove decl.
89799         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89800         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89801         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89802
89803 2004-11-28  Simon Josefsson  <jas@extundo.com>
89804
89805         * lib/base64.h, base64.c: New file.
89806
89807 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89808
89809         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89810
89811 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89812
89813         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89814         (Depends-on): Remove pathmax, same.  Add mempcpy.
89815         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89816         (Makefile.am): Append getcwd.h to lib_SOURCES.
89817         (Include): Add getcwd.h.
89818         (Maintainer): Change from Jim Meyering to "all, glibc",
89819         since getdate now uses intended-for-glibc code.
89820         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89821         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89822
89823 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89824
89825         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89826         HP's ANSI C compiler.
89827         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89828         Declaring int functions causes warnings on some modern systems and
89829         shouldn't be needed to compile on ancient ones.
89830         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89831         defined.
89832
89833         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89834         with the following changes.
89835         (__set_errno): Parenthesize properly.
89836         Include <stdbool.h>.
89837         (MIN, MAX, MATCHING_INO): New macros.
89838         (__getcwd): Define with prototype, not K&R form.
89839         Use heuristics to allocate default buffer on stack if possible.
89840         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89841         behavior, and to avoid the PATH_MAX limit when computing
89842         ../../../../...
89843         Use MATCHING_INO to compare inode number to file.
89844         Check for arithmetic overflow in size calculations.
89845         Fix bug in reallocation of dot array that caused getcwd to fail
89846         on directories nested deeper than 75.
89847         Be more careful about saving errno on error.
89848         Do not use realloc; use only free+malloc, as this is a bit
89849         more flexible and avoids a needless copy operation.
89850         Do not inspect st_dev and st_ino for symbolic links; POSIX
89851         doesn't specify the latter.
89852         Check for closedir errors.
89853         Avoid needless casts.
89854         Use "#ifdef weak_alias" around weak_alias, to be like other
89855         glibc code.
89856         The following changes to getcwd.c have effect only when used in
89857         gnulib; they have no effect inside glibc proper.
89858         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89859         as alloca isn't used.
89860         (alloca, __alloca): Likewise.
89861         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89862         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89863         unconditionally, as gnulib assumes C89 or better.
89864         Do not include <sys/param.h>.
89865         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89866         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89867         better.
89868         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89869         Include <dirent.h> in a way that is compatible with modern Autoconf.
89870         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89871         New macros, if not already defined.
89872         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89873         Use "_LIBC", not "defined _LIBC", for consistency.
89874         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89875         a mempcpy module.
89876         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89877         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89878         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89879         credit only to Jim Meyering and adjust the copyright dates.
89880         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89881         <stdlib.h>, <unistd.h>, "pathmax.h".
89882         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89883         (INITIAL_BUFFER_SIZE): Remove.
89884         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89885
89886 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89887
89888         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89889         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89890         Use the _ONCE methods, for efficiency.
89891         Check for fcntl.h.  In test program, include <errno.h>
89892         and <fcntl.h> if available.  Remove old K&R cruft from
89893         test program.  Check for common errors in GNU/Linux,
89894         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89895         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89896         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89897         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89898         name accordingly.
89899         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89900         accommodate new getcwd.c.
89901         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89902         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89903         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89904         that's all we need now.
89905
89906 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89907
89908         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89909         argp-parse.c depends on getopt internals, that means we should
89910         always use our getopt, to be on the safe side.
89911         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89912         order not to spoil the result of an eventual previous invocation
89913         of gl_GETOPT_SUBSTITUTE.
89914
89915 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89916
89917         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89918         redefinition warnings. To avoid them, include the defines
89919         in `#if !defined __need_getopt ... #endif'. The only place
89920         where __getopt_argv_const is used is in definitions
89921         of getopt_long and getopt_long_only below, which are as well
89922         protected by `#ifndef __need_getopt'.
89923         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89924         __need_getopt after including <stdio.h> and <unistd.h> These
89925         headers might have defined it.
89926
89927 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89928
89929         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89930
89931 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89932
89933         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89934         (futimens): New function, which uses futimes if available.
89935         (futimens, utimens): Support timespec==NULL, with same semantics
89936         as utime and utimens.
89937         * lib/utimens.h (futimens): New decl.
89938
89939 2004-11-23  Jim Meyering  <jim@meyering.net>
89940
89941         * lib/getopt_.h: Remove trailing blanks.
89942
89943 2004-11-23  Jim Meyering  <jim@meyering.net>
89944
89945         * lib/__fpending.c: Add comment.
89946
89947 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89948
89949         * modules/canonicalize (Depends-on): Add xreadlink.
89950         Problem reported by James Youngman.
89951
89952 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89953
89954         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89955         New macros.
89956         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89957         optopt): Use them instead of invoking ## directly; otherwise, the
89958         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89959
89960 2004-11-19  Bruno Haible  <bruno@clisp.org>
89961
89962         * lib/strtok_r.c: Move comments from here...
89963         * lib/strtok_r.h: ... to here.
89964
89965 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89966
89967         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89968         implementations that mishandle size_t overflow.
89969
89970 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89971
89972         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89973         might fail.  Problem reported by Yoann Vandoorselaere.
89974         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89975         implementations that mishandle size_t overflow.
89976
89977 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89978
89979         * modules/canon-host (Depends-on): Add strdup.
89980
89981 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89982
89983         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89984
89985 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89986
89987         * lib/canon-host.c: Include "strdup.h".
89988         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89989         Use strdup instead of malloc/strcpy to duplicate strings.
89990
89991         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89992         (human_space_before_unit): New constant.
89993         * lib/human.c (human_readable): Support it.
89994
89995         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89996         (xgetcwd): Set errno correctly when failing.
89997         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89998         the failure is actually due to a PATH_MAX problem.
89999
90000         Further getopt changes to make it more likely that glibc will
90001         buy the changes back.
90002         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90003         (getopt): Use it, so to preserve glibc semantic
90004         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90005         when compiling for libc.
90006         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90007         (getopt_long, getopt_long_only): Use it.
90008
90009         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90010         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90011         (getopt): Argv is now char * const *, as per standard.
90012         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90013         not char *__getopt_argv_const *.
90014         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90015         _getopt_long_only_r): Likewise.
90016         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90017         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90018         _getopt_long_r, _getopt_long_only_r): Likewise.
90019         * lib/getopt_.h (__getopt_argv_const): Remove.
90020         (getopt): Argv is now char * const *, as per standard.
90021
90022         * lib/getdate.y (tORDINAL): New token.
90023         (day, relunit): Allow it for relative times.
90024         (relative_time_table): Use tORDINAL for ordinals.
90025
90026 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90027
90028         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90029         Document that "second" isn't allowed as an ordinal number.
90030
90031 2004-11-16  Jim Meyering  <jim@meyering.net>
90032
90033         * modules/closeout (Depends-on): Add fpending.
90034
90035 2004-11-15  Jim Meyering  <jim@meyering.net>
90036
90037         * lib/closeout.c: Include "__fpending.h" once again.
90038         Include <stdbool.h>.
90039         (close_stdout): Don't fail just because stdout was closed initially,
90040         since some programs don't write to stdout in the normal course of
90041         operation (other than --version and --help), and we don't want this
90042         function to make e.g. `touch file >&-' fail.
90043         But do fail if it was closed and someone has tried to write to it.
90044         E.g., `printf foo >&-' must fail.
90045
90046 2004-11-13  Jim Meyering  <jim@meyering.net>
90047
90048         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90049
90050 2004-11-12  Simon Josefsson  <jas@extundo.com>
90051
90052         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90053         small doc fix is still pending.
90054
90055 2004-11-11  Simon Josefsson  <jas@extundo.com>
90056
90057         * modules/strtok_r: New file.
90058
90059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90060         strtok_r.
90061
90062 2004-11-11  Simon Josefsson  <jas@extundo.com>
90063
90064         * m4/strtok_r.m4: New file.
90065
90066         * m4/getopt.m4: Replace opterr.
90067
90068 2004-11-11  Simon Josefsson  <jas@extundo.com>
90069
90070         * lib/strtok_r.h, strtok_r.c: New file.
90071
90072 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90073
90074         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90075         of replacing opterr, getopt, etc.  This should handle the
90076         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90077
90078 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90079
90080         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90081         we can stop lying to compilers about the constness of argv when we
90082         are compiled outside glibc.
90083         (getopt, getopt_long, getopt_long_only): Use it.
90084         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90085         _getopt_internal, getopt): Likewise.
90086         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90087         _getopt_long_only_r): Likewise.
90088         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90089         _getopt_long_r, _getopt_long_only_r): Likewise.
90090
90091         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90092         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90093         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90094         the other external symbols.
90095         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90096         declaration, since the above renaming now works around collisions.
90097
90098 2004-11-11  Jim Meyering  <jim@meyering.net>
90099
90100         * lib/linebreak.c: Remove trailing blanks.
90101         * lib/alloca_.h: Likewise.
90102         * lib/acosl.c: Likewise.
90103         * lib/euidaccess.c: Likewise.
90104         * lib/allocsa.h: Likewise.
90105
90106 2004-11-10  Simon Josefsson  <jas@extundo.com>
90107
90108         * m4/getaddrinfo.m4: New file.
90109
90110 2004-11-10  Simon Josefsson  <jas@extundo.com>
90111
90112         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90113
90114 2004-11-10  Simon Josefsson  <jas@extundo.com>
90115
90116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90117         getaddrinfo.
90118
90119         * modules/getaddrinfo: New file.
90120
90121 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90122
90123         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90124
90125 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90126
90127         * lib/mktime.c (SHR): New macro, which is a portable
90128         substitute for >> that should work even on Crays.
90129         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90130         Problem reported by Mark D. Baushke in
90131         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90132         * lib/getdate.y (SHR): Likewise.
90133         (tm_diff): Use it.
90134         * lib/strftime.c (SHR): Likewise.
90135         (tm_diff): Use it.
90136         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90137         quote_these_too, so that right shifts are well defined.  All uses
90138         changed.
90139
90140 2004-11-10  Jim Meyering  <jim@meyering.net>
90141
90142         Ensure that no close failure goes unreported.
90143         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90144         return early when it seems there's nothing to flush.
90145         Don't include __fpending.h.
90146
90147 2004-11-10  Jim Meyering  <jim@meyering.net>
90148
90149         * modules/closeout (Depends-on): Remove fpending.
90150
90151 2004-11-10  Jim Meyering  <jim@meyering.net>
90152
90153         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90154
90155 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90156
90157         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90158         gl_FUNC_STRFTIME.
90159         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90160         and AC_REQUIRE when possible, to avoid duplicate checks.
90161         Check for <wchar.h>.
90162
90163 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90164
90165         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90166
90167 2004-11-09  Bruno Haible  <bruno@clisp.org>
90168
90169         * m4/sockpfaf.m4: New file.
90170
90171 2004-11-05  Bruno Haible  <bruno@clisp.org>
90172
90173         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90174         Reported by Mark D. Baushke <mdb@cvshome.org>.
90175
90176 2004-11-04  Bruno Haible  <bruno@clisp.org>
90177
90178         2004-09-11  Bruno Haible  <bruno@clisp.org>
90179                 * allocsa.valgrind: New file.
90180         2004-02-06  Bruno Haible  <bruno@clisp.org>
90181                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90182                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90183                 Reported by Christopher Seip <chris.seip@hp.com>.
90184
90185 2004-11-04  Bruno Haible  <bruno@clisp.org>
90186
90187         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90188         (Makefile.am): Distribute it.
90189
90190 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90191
90192         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90193         with errno == ERANGE if the buffer is too small.
90194         Problem reported by Mark D. Baushke.
90195
90196 2004-11-03  Albert Chin  <china@thewrittenword.com>
90197             Paul Eggert  <eggert@cs.ucla.edu>
90198
90199         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90200         equivalent, substitute $ac_type for equivalent type rather than
90201         blindly using uint32_t *always* which won't work if uint32_t is not
90202         available.  Define _UINT32_T to work around typedef of uint32_t if
90203         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90204         2.5.1.
90205
90206 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90207
90208         * m4/jm-macros.m4: Sync from coreutils.
90209         (gl_MACROS): Check for mbrlen, for pathchk.
90210         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90211
90212 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90213
90214         * lib/xreadlink.c (MAXSIZE): New macro.
90215         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90216         size does not exceed MAXSIZE.  Avoid cast.
90217         As suggested by Mark D. Baushke in
90218         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90219         if readlink fails with buffer size just under MAXSIZE, try again
90220         with MAXSIZE.
90221
90222 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90223
90224         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90225
90226 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90227         and  Paul Eggert  <eggert@cs.ucla.edu>
90228
90229         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90230         (get_date): Overparenthesize to avoid GCC warning.
90231
90232 2004-11-02  Bruno Haible  <bruno@clisp.org>
90233
90234         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90235         returns void.
90236
90237 2004-11-02  Bruno Haible  <bruno@clisp.org>
90238
90239         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90240         function returns void.
90241
90242 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90243
90244         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90245         fflush_unlocked, flockfile, funlockfile, funlockfile,
90246         fputs_unlocked, putc_unlocked.
90247
90248 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90249
90250         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90251         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90252         already declared.
90253
90254 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90255
90256         * modules/getdate (Files): Add doc/getdate.texi.
90257         (Depends-on): Add setenv, xalloc.
90258
90259 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90260
90261         * lib/getdate.y: Add support for TZ="foo" within a date string.
90262         Fix some bugs near time_t boundaries.  Reject dates with
90263         out-of-range components, e.g., "Sept 31".
90264         Include <stdlib.h>, "setenv.h", "xalloc.h".
90265         (ISDIGIT_LOCALE): Remove; unused.
90266         Note that the TZ and time functions used here are not reentrant.
90267         (mktime_ok, get_tz): New functions.
90268         (TZBUFSIZE): New constant.
90269         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90270         This requires that we sometimes generate our own TZ="XXX..." setting.
90271
90272 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90273
90274         * doc/getdate.texi: New file, from coreutils with modifications for
90275         the new TZ parsing.
90276
90277 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90278
90279         * lib/mktime.c (not_equal_tm): Remove redundant check.
90280
90281 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90282
90283         * modules/regex (lib_SOURCES): Add regex.c.
90284         Reported by James Youngman in
90285         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90286
90287 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90288
90289         * lib/getdate.y: Use Bison 1.875 features, and some minor
90290         code cleanups.  This change does not affect semantics.
90291         Don't include <stdlib.h>; no longer needed.
90292         Don't include unlocked-io.h; only the "#if TEST" code uses
90293         stdio, and performance isn't crucial there.
90294         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90295         Bison 1.875 features as described below.
90296         All uses of "PC." replaced by "pc->".
90297         (YYSTYPE): Add a forward declaration.
90298         (yylex, yyerror): Use full prototypes in forward decls.
90299         Use "%pure-parser" rather than obsolescent "%pure_parser".
90300         Use %parse-param and %lex-param instead of obsolescent
90301         YYPARSE_PARAM and YYLEX_PARAM.
90302         (meridian_table, month_and_day_table, time_units_table,
90303         relative_time_table, time_zone_table, military_table,
90304         lookup_zone, lookup_word, get_date):
90305         Use NULL instead of 0 where appropriate.
90306         (to_hour): Avoid abort (), to avoid a dependency on
90307         stdlib.h.
90308         (yyerror, yylex): Now accepts parser_control * arg.
90309         (main) [TEST]: Use '\0' rather than 0 for char.
90310
90311 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90312
90313         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90314
90315 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90316
90317         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90318         It's now the caller's responsibility to handle the case where
90319         !HAVE_GETPAGESIZE && !defined getpagesize.
90320
90321         * lib/mktime.c (leapyear): Arg is long int, not int.
90322
90323 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90324
90325         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90326
90327 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90328
90329         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90330         missing.  Problem reported by James Youngman.
90331
90332 2004-10-16  Simon Josefsson  <jas@extundo.com>
90333
90334         * gnulib-tool: Fix comments.  Fix parse problem.
90335         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90336
90337 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90338
90339         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90340         implementation of getopt_long.  Problem reported by Alexander Taler in:
90341         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90342
90343 2004-10-15  Bruno Haible  <bruno@clisp.org>
90344
90345         * gnulib-tool: Untabify. Initialize supplied_libname.
90346         (func_usage): More homogenous output.
90347         (func_modules_transitive_closure, func_modules_to_filelist,
90348         func_emit_lib_Makefile_am): New functions.
90349         (func_import): New function, extracted from big case statement. Use
90350         func_get_license, func_modules_transitive_closure,
90351         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90352         opt_lgpl. Don't use test -a, as it's not portable.
90353         (func_create_testdir): Use func_modules_transitive_closure,
90354         func_modules_to_filelist, func_emit_lib_Makefile_am.
90355
90356 2004-10-15  Bruno Haible  <bruno@clisp.org>
90357
90358         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90359
90360 2004-10-15  Bruno Haible  <bruno@clisp.org>
90361
90362         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90363         the portions belonging to each module.
90364         Suggested by Derek Robert Price <derek@ximbiot.com>.
90365
90366 2004-10-12  Simon Josefsson  <jas@extundo.com>
90367
90368         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90369         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90370         to real functions.
90371
90372 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90373
90374         * modules/vsnprintf: New file.
90375
90376 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90377
90378         * m4/vsnprintf.m4: New file.
90379
90380 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90381
90382         * lib/vsnprintf.h: New file.
90383         * lib/vsnprintf.c: New file.
90384
90385 2004-10-11  Bruno Haible  <bruno@clisp.org>
90386
90387         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90388         vsnprintf.
90389
90390 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90391
90392         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90393
90394 2004-10-07  Bruno Haible  <bruno@clisp.org>
90395
90396         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90397         fits into the provided buffer.
90398
90399 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90400
90401         * lib/diacrit.c, diacrit.h: Add GPL notice.
90402
90403         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90404         notice.
90405         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90406         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90407         This avoids a potential constant-folding bug.
90408
90409 2004-10-05  Bruno Haible  <bruno@clisp.org>
90410
90411         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90412         for the declaration of strsep.
90413
90414 2004-10-05  Bruno Haible  <bruno@clisp.org>
90415
90416         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90417
90418 2004-10-04  Simon Josefsson  <jas@extundo.com>
90419
90420         * modules/memmem: New file.
90421         * tests/test-memmem.c: New file.
90422         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90423
90424 2004-10-04  Simon Josefsson  <jas@extundo.com>
90425
90426         * m4/memmem.m4: New file.
90427
90428 2004-10-04  Simon Josefsson  <jas@extundo.com>
90429
90430         * lib/memmem.h: New file.
90431         * lib/memmem.c: New file, taken from glibc.
90432
90433 2004-10-04  Simon Josefsson  <jas@extundo.com>
90434
90435         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90436         '#ifdef USE_UNLOCKED_IO'.
90437
90438 2004-10-04  Simon Josefsson  <jas@extundo.com>
90439
90440         * config/srclist.txt: Add memmem from glibc.
90441
90442 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90443
90444         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90445
90446         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90447         modules/exclude, modules/getdate, modules/getline,
90448         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90449         modules/getusershell, modules/linebuffer, modules/md5,
90450         modules/mountlist, modules/posixtm, modules/readtokens,
90451         modules/readutmp, modules/regex, modules/sha1,
90452         modules/version-etc, modules/yesno:
90453         Remove dependency on unlocked-io.
90454
90455 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90456
90457         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90458
90459         * m4/unlocked-io.m4: Add copyright notice.
90460         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90461
90462 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90463
90464         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90465         * lib/xmalloc.c (xmemdup): Likewise.
90466         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90467         XFREE): Remove these long-obsolescent macros.
90468         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90469         * lib/xstrdup.c: Remove.
90470
90471         * lib/regex.c (re_comp): Cast gettext return value to char *,
90472         Problem reported by Martin Neitzel via Mark D. Baushke.
90473
90474 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90475
90476         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90477         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90478         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90479         regex.c, sha1.c, version-etc.c, yesno.c:
90480         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90481         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90482         the includer's responsibility.
90483
90484         Sync from coreutils.
90485
90486         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90487         points to the start of a string, as the C Standard says the
90488         resulting behavior is undefined.
90489
90490         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90491         simple -> simple_backups, numbered_existing ->
90492         numbered_existing_backups, numbered -> numbered_backups
90493         to avoid shadowing problems.  All uses changed.
90494         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90495         * lib/backupfile.c (check_extension, numbered_backup):
90496         Rename locals to avoid shadowing 'basename'.
90497         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90498         once.
90499
90500         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90501         * lib/.cvsignore: Add getopt.h.
90502
90503 2004-10-04  Bruno Haible  <bruno@clisp.org>
90504
90505         * modules/README: New file.
90506         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90507         not a module.
90508
90509 2004-10-02  Jim Meyering  <jim@meyering.net>
90510
90511         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90512
90513 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90514
90515         * modules/strsep: New file.
90516
90517 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90518
90519         * m4/strsep.m4: New file.
90520
90521 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90522
90523         * lib/strsep.h: New file.
90524         * lib/strsep.c: New file.
90525
90526 2004-10-01  Simon Josefsson  <jas@extundo.com>
90527
90528         * lib/snprintf.c (snprintf): Handle size==0.
90529
90530 2004-10-01  Simon Josefsson  <jas@extundo.com>
90531             Bruno Haible  <bruno@clisp.org>
90532
90533         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90534         (snprintf): Declare 'args'.
90535
90536 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90537
90538         * lib/snprintf.c: Remove comments as to why each header is needed.
90539
90540 2004-10-01  Bruno Haible  <bruno@clisp.org>
90541
90542         * MODULES.html.sh: Add strsep.
90543
90544 2004-09-30  Simon Josefsson  <jas@extundo.com>
90545
90546         * modules/snprintf: New file.
90547
90548 2004-09-30  Simon Josefsson  <jas@extundo.com>
90549
90550         * m4/snprintf.m4: New file.
90551
90552 2004-09-30  Simon Josefsson  <jas@extundo.com>
90553
90554         * lib/snprintf.h, lib/snprintf.c: New files.
90555
90556 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90557
90558         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90559         (hol_entry_help): Never translate an empty string.
90560         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90561         * lib/argp.h (OPTION_NO_TRANS): New option.
90562
90563 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90564
90565         * modules/argp (Maintainer): Replace Simon Josefsson
90566         by Sergey Poznyakoff.
90567
90568 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90569
90570         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90571         changes merged back into glibc.
90572
90573 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90574
90575         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90576
90577 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90578
90579         * lib/xvasprintf.c: Include xalloc.h.
90580         (xvasprintf): Use xalloc_die, not xmalloc_die.
90581
90582 2004-09-29  Bruno Haible  <bruno@clisp.org>
90583
90584         * modules/alloca-opt: New file, derived from modules/alloca.
90585         * modules/allocsa: Depend on alloca-opt instead of alloca.
90586         * modules/setenv: Likewise.
90587         * modules/vasnprintf: Likewise.
90588         * MODULES.html.sh: Add alloca-opt.
90589
90590 2004-09-28  Simon Josefsson  <jas@extundo.com>
90591
90592         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90593         LGPL, and to replace license template from GPL to LGPL.
90594
90595 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90596
90597         * modules/dummy: Change license to LGPL.
90598
90599 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90600
90601         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90602
90603 2004-09-24  Simon Josefsson  <jas@extundo.com>
90604
90605         * modules/minmax (License): Change from GPL to LGPL.
90606
90607 2004-09-23  Simon Josefsson  <jas@extundo.com>
90608
90609         * gnulib-tool (--import): Typo.
90610
90611 2004-09-23  Simon Josefsson  <jas@extundo.com>
90612
90613         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90614
90615 2004-09-22  Bruno Haible  <bruno@clisp.org>
90616
90617         * modules/*: Add 'License' field.
90618         * gnulib-tool: Accept --extract-license option.
90619         (func_get_license): New function.
90620
90621 2004-09-21  Bruno Haible  <bruno@clisp.org>
90622
90623         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90624         Reported by Simon Josefsson.
90625
90626 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90627
90628         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90629         gl_AC_TYPE_LONG_LONG.
90630
90631 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90632
90633         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90634
90635 2004-09-18  Simon Josefsson  <jas@extundo.com>
90636         and  Paul Eggert  <eggert@cs.ucla.edu>
90637
90638         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90639         calls with autoreconf.  Define GL_LIB.
90640
90641 2004-09-14  Karl Berry  <karl@gnu.org>
90642
90643         * config/srclist.txt: unsync setenv.c, sigh.
90644
90645 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90646
90647         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90648         Problem reported by Bruno Haible in:
90649         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90650
90651 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90652
90653         * config/srclist.txt: Comment out argp-pvh.c.
90654
90655 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90656
90657         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90658         in case some system header has #define'd it.  Problem reported by
90659         Soeren D. Schulze in
90660         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90661
90662 2004-09-09  Karl Berry  <karl@gnu.org>
90663
90664         * regex.[ch]: delete from the root.  These were supposed to be
90665                 synced with emacs cvs, but this has not happened for about
90666                 a year, and anyway nothing else uses emacs regex.[ch].
90667                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90668                 lib/regex[.ch] is untouched.
90669
90670 2004-09-09  Bruno Haible  <bruno@clisp.org>
90671
90672         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90673
90674 2004-09-09  Bruno Haible  <bruno@clisp.org>
90675
90676         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90677         modifications.
90678         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90679
90680 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90681
90682         * modules/xvasprintf: New file.
90683         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90684
90685 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90686
90687         * lib/xvasprintf.h: New file.
90688         * lib/xvasprintf.c: New file.
90689         * lib/xasprintf.c: New file.
90690
90691 2004-09-08  Bruno Haible  <bruno@clisp.org>
90692
90693         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90694
90695 2004-09-08  Bruno Haible  <bruno@clisp.org>
90696
90697         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90698         length is > INT_MAX.
90699         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90700         more.
90701
90702 2004-09-08  Bruno Haible  <bruno@clisp.org>
90703
90704         * lib/stdint_.h: New file, taken from GNU clisp.
90705
90706 2004-09-08  Bruno Haible  <bruno@clisp.org>
90707             Oskar Liljeblad  <oskar@osk.mine.nu>
90708
90709         * modules/stdint: New file.
90710         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90711
90712 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90713
90714         Import from coreutils.
90715         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90716         strings on unbounded length.  alloca's performance benefits aren't
90717         that important here.
90718         (V_STRDUP): Remove.
90719         (parse_with_separator): New function, with most of the internals
90720         of the old parse_user_spec.  Allow user to omit both user and group,
90721         for compatibility with FreeBSD.
90722         Clone only the user name, not the entire spec.
90723         Do not set *uid, *gid unless entirely successful.
90724         Avoid memory leak in some failing cases.
90725         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90726         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90727         (parse_user_spec): Rewrite to use parse_with_separator.
90728
90729 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90730
90731         * modules/userspec: Don't depend on alloca.
90732
90733 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90734
90735         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90736
90737 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90738
90739         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90740         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90741         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90742
90743 2004-08-16  Simon Josefsson  <jas@extundo.com>
90744
90745         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90746         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90747         Add --dry-run for --import.
90748         Let user provided command line parameters override configure.ac
90749         settings.
90750
90751 2004-08-12  Simon Josefsson  <jas@extundo.com>
90752
90753         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90754         as discussed with Paul Eggert in threads rooted at
90755         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90756         and
90757         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90758         Before, the test was empty, and relied on ELIDE_CODE in source
90759         code.)
90760         (gl_PREREQ_GETOPT): New macro.
90761         (gl_GETOPT): Use them.
90762
90763 2004-08-12  Simon Josefsson  <jas@extundo.com>
90764
90765         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90766         * lib/getopt_.h: Renamed from getopt.h.
90767
90768 2004-08-12  Simon Josefsson  <jas@extundo.com>
90769
90770         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90771         Change default library name from libfoo to libgnu.
90772         Now, if you have a configure.ac that says:
90773                 gl_SOURCE_BASE(gl)
90774                 gl_M4_BASE(gl/m4)
90775                 gl_MODULES(error getopt etcetera)
90776                 gl_INIT
90777         you can import all you need by running:
90778                 ../gnulib/gnulib-tool --import
90779
90780         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90781         (Makefile.am): Rewrite, use logic from argz.
90782         (Include): Use <getopt.h> instead of "getopt.h".
90783
90784 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90785
90786         * modules/argp (Files): Add m4/unlocked-io.m4.
90787         (Depends-on): Add extensions.
90788
90789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90790
90791         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90792         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90793         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90794         Check for program_invocation_name, program_invocation_short_name,
90795         flockfile, funlockfile, features.h, _getopt_long_only_r.
90796
90797 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90798
90799         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90800         its complicated substitute.
90801         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90802         and program_invocation_name.
90803         (__argp_basename) [!_LIBC]: Remove; the only use was
90804         replaced by its body.
90805         (__argp_short_program_name): Change condition from
90806         !defined __argp_short_program_name to
90807         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90808         to match argp-namefrob.h.
90809         (__argp_failure): Don't assume strerror_r returns char *.
90810         * lib/argp-parse.c (N_): Define unconditionally.
90811         (argp_default_options): Fill out initializers with 0 to avoid
90812         gcc warnings.
90813
90814 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90815
90816         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90817         getopt1.c.
90818
90819 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90820
90821         Merge from coreutils.
90822
90823         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90824
90825         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90826         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90827
90828 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90829
90830         Merge from coreutils.
90831
90832         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90833         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90834         for Reliant Unix 5.43.
90835
90836         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90837         (union fooround): Use uintmax_t, not long int.
90838         The rest is a merge from libc:
90839         [defined _LIBC]: Include <shlib-compat.h>.
90840         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90841
90842         * lib/settime.c (settime): Recode to avoid warning with
90843         Sun Forte C 6U2.
90844
90845         * lib/strverscmp.c: Convert to UTF-8.
90846
90847 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90848
90849         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90850         m4/uintmax_t.m4.
90851
90852 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90853
90854         * modules/xalloc-die: New file.
90855         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90856
90857         * modules/md5 (Files): Add m4/uint32_t.m4.
90858         * modules/sha1: Renamed from modules/sha.
90859         (Files):
90860         Rename lib/sha.h to lib/sha1.h.
90861         Rename lib/sha.c to lib/sha1.c.
90862         Rename m4/sha.m4 to m4/sha1.m4.
90863         (lib_SOURCES): Likewise.
90864         (configure.ac): Rename gl_SHA to gl_SHA1.
90865         (Include): sha.h -> sha1.h.
90866
90867 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90868
90869         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90870         * m4/sha1.m4: Renamed from sha.m4.
90871         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90872
90873 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90874
90875         * lib/obstack.h (obstack_empty_p):
90876         Don't assume that chunk->contents is suitably aligned.
90877         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90878         Likewise. Problem reported by Benno in
90879         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90880
90881         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90882         readable.  This could be improved further but it'd take some work.
90883
90884 2004-08-08  Simon Josefsson  <jas@extundo.com>
90885
90886         * modules/xgethostname (Depends-on): Remove exit and error (not
90887         used).
90888
90889         * modules/getpass-gnu: Add getpass.h.
90890         (Depends-on): Add stdbool.
90891         * modules/getpass: Add getpass.h.
90892
90893 2004-08-08  Simon Josefsson  <jas@extundo.com>
90894
90895         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90896         Check getpass declaration.
90897
90898 2004-08-08  Simon Josefsson  <jas@extundo.com>
90899
90900         * lib/xgethostname.c: Don't include error.h (not used).
90901
90902         * lib/getpass.h: Add.
90903         * lib/getpass.c: Include getpass.h first.
90904
90905 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90906
90907         * lib/xalloc-die.c: New file.
90908         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90909         All uses removed.
90910         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90911         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90912         xalloc-die.c.
90913         (_, N_, xalloc_die): Move to xalloc-die.c.
90914         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90915         so that we needn't mess with xalloc_msg_memory_exhausted.
90916
90917         * lib/sha1.h: Renamed from sha.h.
90918         (SHA1_H): Renamed from _SHA_H.
90919         (sha1_ctx): Renamed from sha_ctx.
90920         (sha1_init_ctx): Renamed from sha_init_ctx.
90921         (sha1_process_block): Renamed from sha_process_block.
90922         (sha1_process_bytes): Renamed from sha_process_bytes.
90923         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90924         (sha1_read_ctx): Renamed from sha_read_ctx.
90925         (sha1_stream): Renamed from sha_stream.
90926         (sha1_buffer): Renamed from sha_buffer.
90927         * lib/sha1.c: Likewise; renamed from sha.c.
90928         Do not include <sys/types.h>.
90929         Include <stddef.h> rather than <stdlib.h>.
90930
90931 2004-08-08  Bruno Haible  <bruno@clisp.org>
90932
90933         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90934         FILESYSTEM_PREFIX_LEN.
90935         * lib/progreloc.c: Likewise.
90936         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90937
90938 2004-08-06  Simon Josefsson  <jas@extundo.com>
90939
90940         * modules/progname (Depends-on): Don't depend on stdbool.
90941
90942 2004-08-06  Simon Josefsson  <jas@extundo.com>
90943
90944         * modules/getsubopt: New file.
90945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90946         getsubopt.
90947
90948 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90949
90950         More merge from coreutils.
90951
90952         * m4/utimens.m4, m4/utimecmp.m4: New files.
90953         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90954         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90955         prereq.m4, sha.m4: Import changes from coreutils.
90956
90957 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90958
90959         More merge from coreutils.
90960         * modules/raise, modules/readtokens0, modules/utimens:
90961         * modules/utimecmp, module/xnanosleep: New files.
90962         * modules/strftime: Add lib/strftime.h.
90963         Change include from <time.h> to "strftime.h".
90964         * modules/yesno: Add lib/yesno.h.
90965         * modules/backupfile: Remove lib/addext.c.
90966         * modules/euidaccess: Add stat-macros.h.
90967         * modules/canonicalize, modules/euidaccess,
90968         modules/filemode, modules/lchown, modules/makepath,
90969         modules/rmdir, modules/stat: Likewise.
90970
90971 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90972
90973         Merge from tar.
90974         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90975         SIZE_MAX is a valid preprocessor constant.
90976         (__argp_basename): Change from "#ifndef _LIBC"
90977         to "#ifndef __argp_short_program_name", so that
90978         we don't compile these functions for tar.
90979
90980         More merges from coreutils.
90981         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90982         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90983         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90984         * lib/addext.c: Remove; no longer needed.
90985         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90986         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90987         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90988         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90989         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90990         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90991         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90992         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90993         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90994         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90995         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90996         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90997         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90998         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90999         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91000         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91001         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91002         Import changes from coreutils.
91003
91004 2004-08-05  Simon Josefsson  <jas@extundo.com>
91005
91006         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91007
91008 2004-08-05  Simon Josefsson  <jas@extundo.com>
91009
91010         * m4/getsubopt.m4: New file.
91011
91012 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91013
91014         Merge from coreutils.
91015
91016         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91017         * m4/getcwd-path-max.m4: New files.
91018
91019         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91020         FILESYSTEM_PREFIX_LEN ->
91021         FILE_SYSTEM_PREFIX_LEN.
91022         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91023         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91024         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91025         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91026
91027         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91028         prerequisite modules now handle the DOS stuff.
91029         Don't check for unistd.h.
91030
91031 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91032
91033         Merge from coreutils.
91034
91035         * lib/.gdb-history: Remove; this doesn't belong here.
91036
91037         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91038         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91039         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91040         * lib/getcwd.c: New files.
91041
91042         * lib/dirname.h: Include <stdbool.h>.
91043         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91044         for consistency with POSIX terminology.  All uses changed.
91045         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91046         (strip_trailing_slashes): Use bool for booleans.
91047         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91048
91049         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91050         sometimes returns a positive errno value even when it succeeds.
91051         (print_errno_message) [!LIBC]: Fall back on strerror if
91052         __strerror_r fails.
91053
91054         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91055         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91056         (longest_relative_suffix): New function.
91057         (path_concat): Use it.  Assume first argument is not NULL.
91058         Port to DOS.  Omit redundant separators.
91059         Report an error instead of returning NULL.
91060         Use mempcpy instead of memcpy.
91061         (xpath_concat): Remove: not declared or used.
91062
91063         * lib/same.h: Include <stdbool.h>
91064         (same_name): Return bool, not int.
91065         * lib/same.c (same_name): Likewise.
91066         (errno): Don't declare; we assume C89 or better now.
91067
91068         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91069         if not already defined.
91070
91071         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91072         * lib/dup-safer.c (errno): Likewise.
91073
91074 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91075
91076         Merge from coreutils.
91077         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91078         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91079         * modules/path-concat: Don't depend on strdup.
91080
91081 2004-08-03  Simon Josefsson  <jas@extundo.com>
91082
91083         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91084         * lib/progname.h: Don't include stdbool.h.
91085
91086 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91087
91088         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91089         * MODULES.html.sh (func_all_modules): Remove fatal.
91090
91091 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91092
91093         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91094
91095 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91096
91097         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91098         working.
91099
91100 2004-08-02  Simon Josefsson  <jas@extundo.com>
91101
91102         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91103         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91104         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91105
91106 2004-08-01  Simon Josefsson  <jas@extundo.com>
91107
91108         * lib/xgetdomainname.c: Include stdlib.h, for free().
91109
91110 2004-07-19  Bruno Haible  <bruno@clisp.org>
91111
91112         * MODULES.html.sh (func_all_modules): Add dummy.
91113
91114 2004-07-16  Simon Josefsson  <jas@extundo.com>
91115
91116         * modules/dummy: New file.
91117
91118 2004-07-16  Simon Josefsson  <jas@extundo.com>
91119
91120         * lib/dummy.c: New file.
91121
91122 2004-07-16  Bruno Haible  <bruno@clisp.org>
91123
91124         * lib/backupfile.h: Add extern "C" for C++.
91125         * lib/closeout.h: Likewise.
91126         * lib/copy-file.h: Likewise.
91127         * lib/findprog.h: Likewise.
91128         * lib/full-write.h: Likewise.
91129         * lib/pathname.h: Likewise.
91130         * lib/progname.h: Likewise.
91131         * lib/stpcpy.h: Likewise.
91132         * lib/stpncpy.h: Likewise.
91133         * lib/strcase.h: Likewise.
91134         * lib/strstr.h: Likewise.
91135         * lib/xalloc.h: Likewise.
91136
91137         * lib/mbswidth.h: Add extern "C" for C++.
91138         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91139
91140 2004-07-13  Robert Millan  <robertmh@gnu.org>
91141
91142         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91143
91144 2004-07-09  Simon Josefsson  <jas@extundo.com>
91145
91146         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91147         failed without this.)
91148
91149 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91150
91151         * modules/chown (Files): Add lib/fchown-stub.c, since
91152         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91153
91154 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91155
91156         * lib/fchown-stub.c: New file.
91157
91158 2004-06-24  Jim Meyering  <jim@meyering.net>
91159
91160         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91161
91162 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91163
91164         * modules/argz: Omit "#include".
91165
91166         * MODULES.html.sh (func_all_modules): Add calloc, to match
91167         2004-06-01 addition of calloc module.
91168
91169 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91170
91171         * m4/argz.m4: New file, which is autoupdated from libtool.
91172
91173 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91174
91175         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91176         libtool.
91177
91178 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91179
91180         * config/srclist-update: Don't insist on "USA." before the
91181         close-comment, as libtool omits the period and puts the */ on a
91182         separate line.
91183         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91184         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91185
91186 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91187
91188         * modules/argz: New file.
91189         * MODULES.html.sh (func_all_modules): Add argz.
91190
91191 2004-06-12  Jim Meyering  <jim@meyering.net>
91192         and  Paul Eggert  <eggert@cs.ucla.edu>
91193
91194         * modules/hash (Files): Add lib/xalloc.h.
91195         * modules/pipe (Depends-on): Add wait-process.
91196         * modules/stat (Depends-on): Add xalloc.
91197         * modules/userspec (Files): Add lib/userspec.h.
91198         * modules/xstrto
91199
91200         Upgrade from gettext-0.13.
91201         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91202         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91203         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91204
91205 2004-06-10  Jim Meyering  <jim@meyering.net>
91206
91207         * lib/calloc.c: New file.
91208
91209 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91210
91211         * lib/getdate.y (yylex): Allow space between sign and number.
91212         Problem reported by Dan Jacobson.
91213
91214 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91215
91216         Merge from coreutils CVS.
91217
91218         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91219         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91220         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91221         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91222         xstrtol.m4: Fix copyright date and/or serial number.
91223
91224         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91225         See if we need an fchown replacement.
91226         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91227         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91228         and use the replacement function if we detect either defect.
91229
91230         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91231         gl_UTIMECMP.
91232
91233 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91234         and  Jim Meyering  <jim@meyering.net>
91235
91236         Merge from coreutils CVS.
91237
91238         * lib/stat-macros.h: New file, with contents from file-type.h
91239         and coreutils' system.h.
91240         * lib/file-type.c: Include "stat-macros.h".
91241         * lib/file-type.h (file_type): Move all macro definitions to new file,
91242         stat-macros.h.
91243
91244         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91245         Wrap old code with this conditional.
91246         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91247         function that does not dereference symlinks.
91248         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91249
91250         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91251         dependency problems.
91252         (xreadlink): Accept new arg SIZE, for efficiency.
91253         All decls and uses changed.
91254         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91255
91256         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91257         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91258
91259         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91260         sysexits.h.
91261
91262 2004-06-01  Jim Meyering  <jim@meyering.net>
91263
91264         * m4/calloc.m4: New file.
91265
91266 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91267
91268         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91269         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91270         Also, fix a typo in a diagnostic.
91271
91272 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91273
91274         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91275         or AC_FUNC_REALLOC.
91276
91277 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91278
91279         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91280         macros to be defined.
91281         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91282         the allocator returns NULL because the requested size is zero.
91283
91284 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91285
91286         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91287         var.  Add comment explaining why libc still defines it.  This
91288         merges the following patch from glibc:
91289         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91290
91291 2004-05-20  Andreas Schwab  <schwab@suse.de>
91292
91293         * m4/free.m4: Replace free if it not known to work, not the other
91294         way round.
91295
91296 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91297
91298         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91299         present in glibc since revision 1.1 of this file.
91300         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91301         obstack_alignment_mask, obstack_alloc, obstack_base,
91302         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91303         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91304         obstack_grow0, obstack_init, obstack_int_grow,
91305         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91306         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91307         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91308         nonexistent functions.
91309
91310 2004-05-18  Karl Berry  <karl@gnu.org>
91311
91312         * config/srclist.txt: break link for vasnprintf.c.
91313
91314 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91315
91316         Port obstack to the AS/400, where pointers are 16 bytes wide and
91317         you cannot cast an integer to a valid pointer.  This patch is
91318         currently waiting to be integrated into glibc; see
91319         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91320
91321         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91322         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91323         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91324         (struct obstack): temp member is now a union of a pointer and
91325         an integer, instead of an integer.  All integer uses changed.
91326         This does not affect the physical layout of struct obstack,
91327         except on hosts (like the AS/400) where the size or alignment of
91328         void * is greater than that of ptrdiff_t.
91329         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91330         __STDC__)]: Store temporary in pointer member of union, not
91331         integer member.
91332         * lib/obstack.c: Include <stddef.h>, for offsetof.
91333         (struct fooalign): Remove; it doesn't need a name.
91334         (union fooround): Change double to long double, and add void *.
91335         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91336         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91337         not a macro.  Hence the values are always int; so remove all
91338         casts-to-int in uses.
91339
91340 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91341
91342         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91343         we can get this patch merged into glibc.
91344
91345 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91346             Paul Eggert  <eggert@cs.ucla.edu>
91347
91348         * m4/argp: Depend on alloca.
91349
91350 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91351             Paul Eggert  <eggert@cs.ucla.edu>
91352
91353         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91354         freecoding.
91355
91356 2004-05-17  Bruno Haible  <bruno@clisp.org>
91357
91358         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91359         precision that consists of a '.' followed by an empty digit string.
91360         Patch by Tor Lillqvist <tml@iki.fi>.
91361
91362 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91363
91364         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91365         for backward compatibility with older code.  We need our own
91366         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91367         it under some other name, and our alloca.h will define it.
91368
91369 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91370             Derek Price  <derek@ximbiot.com>
91371
91372         * lib/alloca.c: Include <alloca.h>, to get our interface.
91373         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91374         include <alloca.h> first.  Use C89 prototype for alloca; this
91375         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91376         Use #elif for simplicity, since we can assume C89 now.
91377         Don't try to source the system alloca.h since it will not be found
91378         and to prevent recursively including its replacement.
91379         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91380         * lib/regex.c: Likewise.
91381
91382 2004-05-16  Derek Price  <derek@ximbiot.com>
91383             Paul Eggert  <eggert@cs.ucla.edu>
91384
91385         getline cleanup.  This changes the getndelim2 API: both order of
91386         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91387         no delimiter).
91388
91389         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91390         interface does that.
91391         (getline): Always use getdelim, so that we don't have two
91392         copies of this code.
91393         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91394         if available.
91395         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91396         (GETNDELIM2_MAXIMUM): New macro.
91397         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91398         instead of the old practice of delim2==0.  All callers changed.
91399         Return -1 on overflow, instead of returning junk.
91400         Do not set *linesize unless allocation succeeds.
91401         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91402         that we include sys/types.h.
91403         * lib/getnline.h: Likewise.
91404         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91405         (getndelim2): Reorder arguments.
91406         * lib/getnline.c (getnline, getndelim):
91407         Don't discard the NMAX argument.
91408         (getnline): Invoke getndelim, to avoid code duplication.
91409         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91410         of (size_t) -1 by callers of the getnline family.
91411
91412 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91413
91414         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91415         Check for gettimeofday.
91416         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91417         Check for settimeofday, stime.
91418
91419 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91420
91421         * lib/nanosleep.c (suspended): Change its type from int to
91422         sig_atomic_t volatile.
91423         (first_call): Make it private to rpl_nanosleep, and have it
91424         be zero initially as that's a bit faster.
91425         (my_usleep): Round up fractional times instead of truncating them,
91426         as this is the usual meaning for 'sleep'.
91427
91428         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91429         doesn't work.
91430         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91431         (ENOSYS): Define if not defined.
91432         (settime): Fall back on stime if it exists and settimeofday fails.
91433         But don't bother with fallbacks if a method fails with errno == EPERM.
91434
91435 2004-05-11  Jim Meyering  <jim@meyering.net>
91436
91437         Prior to this change, the save_cwd caller required read access to the
91438         current directory on most systems (ones with the fchdir function).
91439
91440         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91441         fails, try write-only, and finally, resort to using xgetcwd.
91442
91443 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91444
91445         * lib/obstack.c, obstack.h: Import changes from libc.
91446
91447 2004-04-28  Bruno Haible  <bruno@clisp.org>
91448
91449         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91450         also implicitly appends .exe to executables.
91451         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91452         accepts Windows pathnames.
91453         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91454         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91455         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91456         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91457         Reported by Derek Robert Price <derek@ximbiot.com>.
91458
91459 2004-04-21  Karl Berry  <karl@gnu.org>
91460
91461         * config/srclist.txt (localcharset.c): break sync.
91462
91463 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91464
91465         * m4/host-os.m4: Add a copyright notice.
91466
91467 2004-04-20  Jim Meyering  <jim@meyering.net>
91468
91469         Change UTILS_ to gl_ in AC_DEFINE'd names.
91470         Change utils_- and jm_-prefixed variables, too.
91471         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91472         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91474
91475         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91476         Don't emit trailing blanks.
91477         Also rename jm_-prefixed variables to have gl_ prefix.
91478
91479         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91480         Also rename jm_-prefixed variables to have gl_ prefix.
91481
91482         * m4/jm-macros.m4: Reflect the renamings.
91483         * m4/prereq.m4: Likewise.
91484
91485 2004-04-20  Jim Meyering  <jim@meyering.net>
91486
91487         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91488         memory.
91489
91490 2004-04-20  Jim Meyering  <jim@meyering.net>
91491             Bruno Haible  <bruno@clisp.org>
91492
91493         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91494         memory when realloc fails.
91495
91496 2004-04-19  Jim Meyering  <jim@meyering.net>
91497
91498         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91499         now that readutmp.c may call `free (0)'.
91500
91501 2004-04-19  Bruno Haible  <bruno@clisp.org>
91502
91503         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91504         * m4/inttypes_h.m4: Likewise.
91505         * m4/stdint_h.m4: Likewise.
91506         * m4/intmax_t.m4: Likewise.
91507         * m4/uintmax_t.m4: Likewise.
91508
91509 2004-04-18  Jim Meyering  <jim@meyering.net>
91510
91511         * m4/prereq.m4: Don't forbid jm_ prefix.
91512
91513         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91514         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91515         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91516         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91517         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91518         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91519         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91520         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91521         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91522         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91523         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91524         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91525         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91526         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91527         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91528         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91529         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91530         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91531         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91532
91533 2004-04-18  Jim Meyering  <jim@meyering.net>
91534
91535         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91536         failure, don't leak memory and do call END_UTMP_ENT.
91537
91538 2004-04-16  Jim Meyering  <jim@meyering.net>
91539
91540         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91541         coreutils' stat program.
91542         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91543
91544 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91545
91546         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91547         C89.
91548         (CHAR_BIT): Remove, since we assume C89.
91549         Include <stdint.h> if available, as per current Autoconf CVS advice.
91550
91551 2004-03-31  Jim Meyering  <jim@meyering.net>
91552
91553         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91554         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91555         * m4/xalloc.m4: Likewise.
91556
91557 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91558
91559         Merge from coreutils.
91560
91561         * m4/inttostr.m4: New file.
91562         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91563         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91564         Require gl_CLOCK_TIME.
91565         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91566
91567 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91568
91569         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91570         not bool, to be more consistent with Unix conventions.
91571         Suggested by Bruno Haible.
91572
91573         Merge from coreutils.
91574
91575         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91576         * lib/umaxtostr.c: New files.
91577
91578         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91579         the usual <time.h> dance.
91580         (get_date): Change signature to support fractional time stamps.
91581         All callers changed.
91582         * lib/getdate.y: Include "getdate.h" first, as we can now
91583         assume C89 and don't need to worry about 'const'.
91584         Similarly, include "unlocked-io.h" near start, not in middle.
91585         Include <limits.h>.
91586         (textint.value): Use long int rather than int.
91587         (textint.digits): Use size_t rather than int.
91588         (BILLION, LOG10_BILLION): New constants.
91589         (parser_control): New member rel_ns.  Members day_ordinal,
91590         time_zone, month, day, hour, minutes, rel_year, rel_month,
91591         rel_day, rel_hour, rel_minutes, rel_seconds
91592         are now long int, not int.  Member seconds is now struct timespec,
91593         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91594         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91595         not int.
91596         (%union.intval): Now long int, not int.
91597         New member timespec.
91598         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91599         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91600         (spec): Now is a timespec or an item list.
91601         (timespec, items): New nonterminals.
91602         (time, rel, relunit, number, get_date):
91603         Add support for fractional seconds.
91604         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91605         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91606         (to_hour): First arg is now long int, not int.
91607         (to_year): Returns long int, not int.
91608         Don't treat year -70 like 70.
91609         (tm_diff): Returns long int, not int.
91610         (lookup_word): Use bool instead of int when appropriate.
91611         (yylex): Use size_t for count, not int.
91612         Detect overflow when parsing large integer constants.
91613         Add support for fractions.
91614         (get_date): Make pointers 'const' if possible.
91615         Use more-portable code to detect integer overflow.
91616         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91617         Don't use ctime; it's not reliable if the year has >4 digits.
91618
91619         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91620         This is for compatibility with BSD.
91621
91622         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91623         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91624         From coreutils' system.h.
91625
91626         * lib/userspec.c: Don't include "posixver.h".
91627         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91628         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91629         compatible extension.  Simplify code by removing a boolean int
91630         that was always nonzero if a string was nonnull.
91631
91632 2004-03-30  Jim Meyering  <jim@meyering.net>
91633
91634         Merge from coreutils.
91635
91636         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91637         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91638         on some systems one must include <grp.h> before it.
91639         Reported by Christian Krackowizer.
91640
91641 2004-03-30  Jim Meyering  <jim@meyering.net>
91642
91643         Merge from coreutils.
91644
91645         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91646
91647         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91648         an empty input stream.
91649
91650         * lib/readtokens.c: Include <stdbool.h>.
91651         (readtoken): Use `size_t' rather than int/long.
91652         All callers adjusted.
91653         Use `bool' rather than `int' where appropriate.
91654         Use memset rather than an explicit loop.
91655         Use x2nrealloc rather than xrealloc.
91656         Allow the use of `\0' as a delimiter.
91657         (readtokens): Likewise.
91658         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91659
91660 2004-03-30  Jim Meyering  <jim@meyering.net>
91661
91662         * m4/realloc.m4: Remove file, since now it does no more than
91663         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91664         the `configure.ac' section of module/realloc.
91665         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91666
91667 2004-03-30  Bruno Haible  <bruno@clisp.org>
91668
91669         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91670         nonnull.
91671
91672 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91673
91674         Merge changes to getloadavg.c from coreutils and Emacs.
91675
91676         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91677         Define to an expression, not to the empty string.
91678         Include cloexec.h and xalloc.h.
91679         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91680         Use set_cloexec_flag rather than rolling our own.
91681         * lib/cloexec.c, lib/cloexec.h: New files.
91682
91683 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91684
91685         * m4/cloexec.m4: New file.
91686
91687 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91688
91689         * lib/getopt.h: Sync with libc CVS.
91690
91691 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91692             Bruno Haible  <bruno@clisp.org>
91693
91694         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91695         mbswidth.
91696
91697 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91698             Bruno Haible  <bruno@clisp.org>
91699
91700         * lib/mbswidth.h: Include <wchar.h> only if
91701         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91702         <wchar.h>.
91703         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91704
91705 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91706
91707         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91708         Sync with libc CVS.
91709         * lib/getopt_int.h: New file, also synced from libc.
91710
91711 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91712
91713         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91714         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91715         Bring back getopt.c, getopt.h, getopt1.c.
91716
91717 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91718
91719         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91720         All uses changed.  Check for sa_sigaction member; this fixes
91721         a bug first reported by Jason Andrade in
91722         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91723
91724 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91725
91726         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91727         '#if' expressions.  Unlike the code it replaces, it does not
91728         depend on (defined _SC_PAGESIZE).  However, it does depend on
91729         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91730         first reported by Jason Andrade in
91731         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91732
91733 2004-02-25  Simon Josefsson  <jas@extundo.com>
91734
91735         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91736
91737 2004-02-25  Simon Josefsson  <jas@extundo.com>
91738
91739         * lib/strdup.h: New file.
91740         * lib/strdup.c: Include it.
91741         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91742         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91743
91744 2004-02-23  Karl Berry  <karl@gnu.org>
91745
91746         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91747         (from fencepost.gnu.org:/gd/gnuorg).
91748
91749 2004-02-23  Karl Berry  <karl@gnu.org>
91750
91751         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91752         * config/srclist.txt: add maintain/standards documents.
91753
91754 2004-02-18  Bruno Haible  <bruno@clisp.org>
91755
91756         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91757         Reported by Derek Robert Price <derek@ximbiot.com>.
91758
91759 2004-02-16  Karl Berry  <karl@gnu.org>
91760
91761         * config/mkinstalldirs, install-sh: update from automake.
91762
91763 2004-02-06  Karl Berry  <karl@gnu.org>
91764
91765         * m4/po.m4: update from gettext 0.14.1.
91766
91767 2004-02-06  Karl Berry  <karl@gnu.org>
91768
91769         * lib/config.charset: update from gettext 0.14.1.
91770
91771 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91772
91773         Add comments and code, prompted by suggestions from Bruno Haible
91774         for sh-quote.
91775         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91776         describing the enum quoting_style values.
91777         * lib/quotearg.c (quotearg_alloc): New function.
91778         (quotearg_buffer_restyled): Treat lone { and } as special.
91779         Treat = as special.  Work around bug with older shells
91780         that "see" a '\' that is really the 2nd byte of a multibyte char.
91781         Quote empty string with shell_quoting_style.
91782
91783 2004-02-03  Bruno Haible  <bruno@clisp.org>
91784
91785         * m4/pipe.m4: New file, from GNU gettext.
91786
91787 2004-02-03  Bruno Haible  <bruno@clisp.org>
91788
91789         * lib/pipe.h: New file, from GNU gettext.
91790         * lib/pipe.c: New file, from GNU gettext.
91791
91792 2004-01-27  Bruno Haible  <bruno@clisp.org>
91793
91794         * m4/execute.m4: New file, from GNU gettext.
91795
91796 2004-01-27  Bruno Haible  <bruno@clisp.org>
91797
91798         * lib/execute.h: New file, from GNU gettext.
91799         * lib/execute.c: New file, from GNU gettext.
91800         * lib/w32spawn.h: New file, from GNU gettext.
91801
91802 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91803
91804         Merge from diffutils.
91805
91806         * lib/file-type.c (file_type): Add typed memory objects.
91807         * lib/file-type.h (S_TYPEISTMO): New macro.
91808
91809         * lib/c-stack.h (c_stack_action): Remove argv argument.
91810         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91811         (die): Don't calculate message unless segv_action returns.
91812         (get_stack_location, min_address_from_argv, max_address_from_argv,
91813         volatile stack_base, volatile_stack_size): Remove.
91814         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91815         that every segmentation violation is a stack overflow.  (Ouch!)
91816         See Debian bug 136249 (still outstanding) for more info about why
91817         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91818
91819 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91820
91821         Exit-status fix from coreutils.
91822
91823         Use exit_failure consistently in place of EXIT_FAILURE,
91824         so that program exit statuses are consistent on failure.
91825
91826         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91827         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91828         * lib/argmatch.h: Comment fix to match the above.
91829         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91830         Now a macro referring to exit_failure, instead of a separate
91831         variable.  Include "exitfail.h" to get it.
91832         * lib/xstrtol.h: Include "exitfail.h".
91833         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91834
91835         * lib/long-options.c (parse_long_options): Use prototype
91836         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91837         for clarity.
91838
91839 2004-01-21  Jim Meyering  <jim@meyering.net>
91840
91841         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91842         so as not to conflict with a different-sized __mktime_internal
91843         function in GNU libc.
91844         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91845         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91846
91847 2004-01-20  Karl Berry  <karl@gnu.org>
91848
91849         * config/config.guess: update from config.
91850
91851         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91852
91853 2004-01-20  Bruno Haible  <bruno@clisp.org>
91854
91855         Safer stack allocation.
91856         * lib/setenv.c: Include allocsa.h.
91857         (alloca): Remove fallback definition.
91858         (freea): Remove macro.
91859         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91860         instead of freea.
91861
91862 2004-01-20  Bruno Haible  <bruno@clisp.org>
91863
91864         * m4/eealloc.m4: New file, from GNU gettext.
91865
91866 2004-01-20  Bruno Haible  <bruno@clisp.org>
91867
91868         * m4/allocsa.m4: New file, from GNU gettext.
91869
91870 2004-01-20  Bruno Haible  <bruno@clisp.org>
91871
91872         * lib/xallocsa.h: New file, from GNU gettext.
91873         * lib/xallocsa.c: New file, from GNU gettext.
91874
91875 2004-01-20  Bruno Haible  <bruno@clisp.org>
91876
91877         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91878
91879 2004-01-20  Bruno Haible  <bruno@clisp.org>
91880
91881         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91882         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91883         specially.
91884
91885 2004-01-20  Bruno Haible  <bruno@clisp.org>
91886
91887         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91888         patch.
91889
91890 2004-01-20  Bruno Haible  <bruno@clisp.org>
91891
91892         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91893
91894 2004-01-20  Bruno Haible  <bruno@clisp.org>
91895
91896         * lib/eealloc.h: New file.
91897
91898 2004-01-20  Bruno Haible  <bruno@clisp.org>
91899
91900         * lib/binary-io.h: Avoid warnings on Cygwin.
91901
91902 2004-01-20  Bruno Haible  <bruno@clisp.org>
91903
91904         * lib/allocsa.h: New file, from GNU gettext.
91905         * lib/allocsa.c: New file, from GNU gettext.
91906
91907 2004-01-18  Karl Berry  <karl@gnu.org>
91908
91909         * doc/gpl.texi, doc/lgpl.texi: new files.
91910
91911 2004-01-18  Karl Berry  <karl@gnu.org>
91912
91913         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91914         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91915
91916 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91917
91918         Merge from coreutils.
91919
91920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91921         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91922         (gl_DEFAULT_POSIX2_VERSION): Move
91923         the documentation from 'configure' into 'config.hin',
91924         so that 'configure --help' isn't burdened by it and
91925         we don't have to worry about its formatting there.
91926         Reword the documentation so that it's more succinct
91927         and can be run together into a single paragraph.
91928         * m4/same.m4 (gl_SAME): Check for pathconf.
91929
91930 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91931
91932         Merge from coreutils.
91933
91934         * lib/posixver.c: Include posixver.h.
91935
91936         * lib/same.c: Include <stdbool.h>, <limits.h>.
91937         (_POSIX_NAME_MAX): Define if not defined.
91938         (MIN): New macro.
91939         (same_name): If file names are silently truncated, report
91940         that the file names are the same if they are the same after
91941         the silent truncation.
91942
91943         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91944         conversion function.
91945         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91946         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91947         longer needed.
91948
91949 2004-01-15  Jim Meyering  <jim@meyering.net>
91950
91951         Merge from coreutils.
91952
91953         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91954         if no library is required.
91955         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91956         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91957         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91958         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91959         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91960         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91961         value, $ac_cv_search_crypt, if it's "none required".
91962         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91963         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91964         not gl_FUNC_GETLOADAVG.
91965         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91966         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91967
91968 2004-01-15  Jim Meyering  <jim@meyering.net>
91969
91970         Merge from coreutils.
91971
91972         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91973         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91974         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91975
91976         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91977         optional configure-time default.
91978
91979         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91980
91981         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91982
91983 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91984
91985         Merge from coreutils.
91986
91987         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91988         value, $ac_cv_search_nanosleep, if it's "none required".
91989
91990 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91991
91992         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91993         with like-named macro in fnmatch.c.
91994         (EXT): Use an internal constant instead.
91995
91996         Merge fnmatch patches from glibc.
91997         * lib/fnmatch.c (mbsinit): Remove define.
91998         Add libc_hidden_ver (__fnmatch, fnmatch).
91999         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92000         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92001
92002 2004-01-14  Karl Berry  <karl@gnu.org>
92003
92004         * config/install-sh: update from automake.
92005
92006 2004-01-13  Karl Berry  <karl@gnu.org>
92007
92008         * config/install-sh: update from automake.
92009
92010 2004-01-09  Karl Berry  <karl@gnu.org>
92011
92012         * config/install-sh: update from automake.
92013
92014 2004-01-05  Karl Berry  <karl@gnu.org>
92015
92016         * config/config.{sub,guess}: update from config.
92017
92018 2003-12-31  Karl Berry  <karl@gnu.org>
92019
92020         * config/depcomp: update from automake.
92021
92022 2003-12-14  Karl Berry  <karl@gnu.org>
92023
92024         * lib/config.charset: update from gettext-runtime.
92025
92026 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92027
92028         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92029         Bug reported by Alfred M. Szmidt.
92030
92031 2003-12-03  Bruno Haible  <bruno@clisp.org>
92032
92033         * m4/gettext.m4: Upgrade from gettext-0.13.
92034         * m4/po.m4: Upgrade from gettext-0.13.
92035         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92036         * m4/intmax.m4: New file, from gettext-0.13.
92037         * m4/printf-posix.m4: New file, from gettext-0.13.
92038
92039 2003-11-29  Karl Berry  <karl@gnu.org>
92040
92041         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92042
92043 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92044             Bruno Haible  <bruno@clisp.org>
92045
92046         * lib/printf-parse.h: Don't include sys/types.h.
92047         (ARG_NONE): New macro.
92048         (char_directive): Change type of *arg_index fields to size_t.
92049         * lib/printf-parse.c: Don't include sys/types.h.
92050         (SSIZE_MAX): Remove macro.
92051         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92052         Remove unnecessary overflow check.
92053         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92054         fields.
92055
92056 2003-11-25  Bruno Haible  <bruno@clisp.org>
92057
92058         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92059
92060 2003-11-25  Bruno Haible  <bruno@clisp.org>
92061
92062         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92063         gt_TYPE_SSIZE_T.
92064
92065 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92066
92067         * modules/alloca: Remove dependency on xalloc.
92068
92069 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92070
92071         * lib/alloca.c: Remove dependency on xalloc module.
92072         (xalloc_die): Remove.
92073         (memory_full) [!defined emacs]: New macro.
92074         [!defined emacs]: Don't include xalloc.h.
92075         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92076         address arithmetic overflows.  Change datatypes a bit to avoid
92077         unnecessary casts.
92078
92079 2003-11-22  Jim Meyering  <jim@meyering.net>
92080
92081         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92082         s/size/size_t/.
92083
92084 2003-11-21  Karl Berry  <karl@gnu.org>
92085
92086         * config/config.{sub,guess}: update from config.
92087
92088 2003-11-18  Karl Berry  <karl@gnu.org>
92089
92090         * config/config.{sub,guess}: update from config.
92091
92092         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92093
92094 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92095
92096         * README: Mention that S+T cannot overflow if S is the size of
92097         an existing object and T is sufficiently small.
92098
92099 2003-11-17  Jim Meyering  <jim@meyering.net>
92100
92101         On systems without utime and without a utimes function capable of
92102         dealing with a NULL struct utimbuf* argument, this utime replacement
92103         could -- in unusual circumstances -- leak a file descriptor.
92104         * lib/utime.c: Include <unistd.h> and <errno.h>.
92105         (utime_null): Be sure to close `fd' and to preserve errno.
92106         Reported by Geoff Collyer via Arnold Robbins.
92107
92108 2003-11-17  Bruno Haible  <bruno@clisp.org>
92109
92110         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92111         (Depends-on): Add xsize.
92112
92113 2003-11-17  Bruno Haible  <bruno@clisp.org>
92114
92115         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92116
92117 2003-11-17  Bruno Haible  <bruno@clisp.org>
92118
92119         * lib/vasnprintf.c (alloca): Remove fallback definition.
92120         (freea): Remove definition.
92121         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92122         Reported by Paul Eggert.
92123
92124 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92125             Bruno Haible  <bruno@clisp.org>
92126
92127         Protect against address arithmetic overflow.
92128         * lib/printf-args.h: Include stddef.h.
92129         (arguments): Change type of field 'count' to size_t.
92130         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92131         'unsigned int' where appropriate.
92132         * lib/printf-parse.h: Include sys/types.h.
92133         (char_directive): Change type of *arg_index fields to ssize_t.
92134         (char_directives): Change type of fields 'count', max_*_length to
92135         size_t.
92136         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92137         (SSIZE_MAX): Define fallback value.
92138         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92139         instead of 'int' where appropriate. Check a_allocated, d_allocated
92140         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92141         * lib/vasnprintf.c: Include xsize.h.
92142         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92143         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92144         overflow. Avoid wraparound when converting a width or precision from
92145         decimal to binary.
92146
92147 2003-11-16  Bruno Haible  <bruno@clisp.org>
92148
92149         Update from GNU gettext.
92150         * lib/printf-parse.c: Generalize to it can be compiled for wide
92151         strings.
92152         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92153         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92154         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92155         SNPRINTF): New macros.
92156         Don't include <alloca.h> if the file is used inside libintl.
92157         (local_wcslen): New function, for Solaris 2.5.1.
92158         (VASNPRINTF): Use it instead of wcslen.
92159
92160 2003-11-16  Bruno Haible  <bruno@clisp.org>
92161
92162         * lib/xsize.h (xmax): New function.
92163         (xsum, xsum3, xsum4): Declare as "pure" functions.
92164
92165 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92166
92167         * modules/xalloc (Files): Undo latest change, since xalloc.h
92168         no longer needs SIZE_MAX or PTRDIFF_MAX.
92169
92170 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92171
92172         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92173         gl_PTRDIFF_MAX.
92174
92175 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92176
92177         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92178         "return", to pacify some unknown compiler.  Problem reported
92179         by Joerg Schilling.
92180
92181 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92182
92183         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92184         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92185         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92186         heuristic is just as accurate as far as we know, and it removes a
92187         dependency on size_max.m4 and ptrdiff_max.m4.
92188
92189 2003-11-11  Bruno Haible  <bruno@clisp.org>
92190
92191         * modules/xsize (Files): Add m4/size_max.m4.
92192         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92193
92194 2003-11-11  Bruno Haible  <bruno@clisp.org>
92195
92196         * m4/size_max.m4: New file.
92197         * m4/ptrdiff_max.m4: New file.
92198         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92199         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92200         (gl_XALLOC): Invoke it.
92201
92202 2003-11-11  Bruno Haible  <bruno@clisp.org>
92203
92204         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92205         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92206         defined.
92207
92208 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92209
92210         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92211         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92212         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92213         From Bruno Haible.
92214         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92215         not (size_t) -1, since it's defined here.
92216
92217 2003-11-09  Karl Berry  <karl@gnu.org>
92218
92219         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92220
92221 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92224         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92225         Reject sizes of exactly SIZE_MAX bytes.
92226         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92227         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92228
92229 2003-11-05  Bruno Haible  <bruno@clisp.org>
92230
92231         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92232         SIZE_MAX defined in <limits.h> on Solaris.
92233
92234 2003-11-04  Jim Meyering  <jim@meyering.net>
92235
92236         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92237         variable names, rather than @VAR@.
92238         * modules/poll: Likewise.
92239
92240 2003-11-04  Bruno Haible  <bruno@clisp.org>
92241
92242         * modules/xsize: New file.
92243         * modules/linebreak: Depend on xsize.
92244         * MODULES.html.sh (func_all_modules): Add xsize.
92245
92246 2003-11-04  Bruno Haible  <bruno@clisp.org>
92247
92248         * m4/xsize.m4: New file.
92249
92250 2003-11-04  Bruno Haible  <bruno@clisp.org>
92251
92252         * lib/xsize.h: New file.
92253         * lib/linebreak.c: Include xsize.h.
92254         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92255         argument for overflow.
92256         Suggested by Paul Eggert.
92257
92258 2003-11-03  Karl Berry  <karl@gnu.org>
92259
92260         * config/config.{guess,sub}: update from config.
92261
92262 2003-11-03  Jim Meyering  <jim@meyering.net>
92263
92264         * modules/userspec (lib_SOURCES): Add userspec.h.
92265         (Include): Add "userspec.h".
92266         Improve description.
92267
92268 2003-11-03  Jim Meyering  <jim@meyering.net>
92269
92270         * lib/userspec.c: Include "userspec.h".
92271         * lib/userspec.h: New file.
92272
92273 2003-11-03  Bruno Haible  <bruno@clisp.org>
92274
92275         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92276
92277 2003-11-03  Bruno Haible  <bruno@clisp.org>
92278
92279         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92280         available, to avoid (extremely rare) race condition.
92281         Suggested by Paul Eggert.
92282
92283 2003-11-02  Karl Berry  <karl@gnu.org>
92284
92285         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92286
92287 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92288
92289         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92290         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92291         (read_filesystem_list): Set and use me_type_malloced.
92292         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92293         whatever the type happens to be), for brevity and consistency.
92294         Check for size calculation overflow on Alphas running OSF/1.
92295
92296 2003-10-31  Jim Meyering  <jim@meyering.net>
92297
92298         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92299
92300         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92301
92302 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92303             Bruno Haible  <bruno@clisp.org>
92304
92305         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92306         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92307
92308 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92309
92310         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92311         netbsd*-gnu*.  Suggested by Robert Millan.
92312
92313 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92314
92315         * modules/group-member: Depend on stdbool.
92316
92317 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92318
92319         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92320
92321 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92322
92323         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92324         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92325         after the 'gnu' in these cases.  This fixes some bugs in the
92326         previous change, and is based on suggestions by Robert Millan.
92327
92328 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92329
92330         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92331         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92332         no longer needed.
92333         * lib/quotearg.c (quotearg_n_options): Use it.
92334         * lib/group-member.c: Include <stdbool.h>.
92335         (free_group_info): Arg is now const *; don't free arg.
92336         (get_group_info): Now returns bool and accepts struct group_info *,
92337         rather than returning a malloc'ed struct group_info *.
92338         All uses changed.  Check for overflow in internal size calculation.
92339
92340         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92341         rather than xmalloc/xrealloc.
92342         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92343         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92344         conformance bug: the old code used a pointer after freeing the
92345         storage that it addressed.
92346         * lib/hash.c (hash_initialize): Simplify the code by using
92347         xalloc_oversized rather than doing it by hand.
92348         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92349         the buffer preserved.  Use free and xmalloc instead.
92350         * lib/quotearg.c (quotearg_n_options): Likewise.
92351         Use a simpler test for size overflow.  Don't use xalloc_oversized
92352         because unsigned int might be wider than size_t (!); this suggests
92353         that we should switch from unsigned int to size_t for slot numbers.
92354
92355 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92356
92357         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92358         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92359         NetBSD kernels.  Requested by Richard Stallman.
92360
92361 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92362
92363         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92364         to allocate the returned structure.  Do not allocate a subarray,
92365         as x2nrealloc will do that.
92366         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92367         instead of xnrealloc.
92368         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92369
92370 2003-10-27  Bruno Haible  <bruno@clisp.org>
92371
92372         * lib/stdbool_.h: Better support for BeOS.
92373
92374 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92375
92376         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92377         now uses inline.
92378
92379 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92380
92381         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92382         callers that want to do their own size-overflow checking.  Include
92383         <stdbool.h>, since xalloc_oversized returns bool.
92384         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92385         to use xalloc_oversized.
92386
92387         Add two functions x2realloc, x2nrealloc, for programs that grow
92388         arrays dynamically by doubling their sizes.
92389         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92390         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92391         New functions.
92392
92393         Port to C99 semantics for 'inline' of external functions.
92394         Bug reported by Bruno Haible.
92395         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92396         with the old contents of xnmalloc.
92397         (xnmalloc, xmalloc): Use it.
92398         (xnrealloc_inline): New static inline function,
92399         with the old contents of xnrealloc.
92400         (xnrealloc, xrealloc): Use it.
92401
92402         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92403         that.
92404
92405 2003-10-26  Karl Berry  <karl@gnu.org>
92406
92407         * config/srclist.txt (COPYING.DOC): no longer available from
92408         /gd/gnuorg; don't know where the ultimate source is.
92409
92410 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92411
92412         Fix several address-calculation bugs in the hash modules,
92413         plus some minor code cleanup.
92414
92415         * lib/hash.h: Include <stdbool.h>, for bool.
92416         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92417         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92418         hash_get_n_entries, hash_get_max_bucket_length,
92419         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92420         hash_rehash): Use size_t rather than unsigned.
92421         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92422         hash_get_n_buckets_used, hash_get_n_entries,
92423         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92424         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92425         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92426         Likewise.
92427         (SIZE_MAX): Define if not defined.
92428         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92429         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92430         hash_print):
92431         Use const * when possible.
92432         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92433         (check_tuning): Fix bug: if tuning parameters were very close to
92434         0 or 1, rounding errors could have caused subscript violations.
92435         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92436         (hash_initialize): Add 'fail:' label
92437         to free table and return NULL, and use it to simplify code.
92438         Use calloc rather than clearing the storage ourself.
92439         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92440         buffer size calculations.
92441         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92442         Include <stddef.h>, for size_t.
92443         * lib/hash-pjw.c (hash_pjw): Likewise.
92444         Switch to method described by Bruno Haible.
92445         Include <limits.h>, for CHAR_BIT.
92446         (SIZE_BITS): New macro.
92447
92448 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92449
92450         * m4/getline.m4 (AM_FUNC_GETLINE):
92451         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92452         hosts.  Problem reported by Derek Robert Price in
92453         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92454         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92455         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92456
92457 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92458
92459         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92460         ceiling the allocation at NMAX bytes rather than silently
92461         discarding input bytes before NMAX is reached.  This makes
92462         a difference only if NMAX exceeds SIZE_MAX / 2.
92463
92464         * lib/obstack.c: Merge from glibc.
92465         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92466         Add libc_hidden_def (_obstack_newchunk).
92467         (_obstack_free) [! defined _LIBC]: Remove.
92468         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92469         a clone of the function body.
92470         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92471         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92472
92473         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92474         glibc.
92475         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92476         arg to memcpy.
92477
92478         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92479         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92480         Don't use lvalue casts, as GCC plans to remove support for them
92481         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92482         was also present in the non-GCC version, indicating that this
92483         code had always been buggy and had never been widely used.
92484         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92485         Use the fast variant of each macro, rather than copying the
92486         definiens of the fast variant; that way, we'll be more likely to
92487         catch future bugs in the fast variants.
92488
92489 2003-10-20  Bruno Haible  <bruno@clisp.org>
92490
92491         * modules/wait-process: New file.
92492         * MODULES.html.sh (func_all_modules): Add wait-process.
92493
92494 2003-10-20  Bruno Haible  <bruno@clisp.org>
92495
92496         * m4/wait-process.m4: New file.
92497
92498 2003-10-20  Bruno Haible  <bruno@clisp.org>
92499
92500         * lib/wait-process.h: New file, from GNU gettext.
92501         * lib/wait-process.c: New file, from GNU gettext.
92502
92503 2003-10-19  Jim Meyering  <jim@meyering.net>
92504
92505         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92506         HPUX 10.20.
92507
92508 2003-10-18  Karl Berry  <karl@gnu.org>
92509
92510         * config/config.guess: update from config.
92511
92512 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92513
92514         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92515         (getgroups): First arg is int, not size_t.
92516         Don't let 'free' mangle errno.
92517
92518 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92519
92520         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92521
92522 2003-10-16  Karl Berry  <karl@gnu.org>
92523
92524         * config/config.{guess,sub}: update from config.
92525
92526 2003-10-16  Jim Meyering  <jim@meyering.net>
92527
92528         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92529         memcpy.
92530
92531 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92532
92533         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92534         (SIZE_MAX): Remove.
92535         (new_exclude, add_exclude_file): Initial size no longer needs to
92536         be a power of 2.
92537         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92538         our own address arithmetic overflow checking.
92539
92540         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92541         (fnmatch): Do not alloca more than 2000 wide characters;
92542         instead, use malloc for large buffers.
92543         Check for address arithmetic overflow, and return -1
92544         with errno set to ENOMEM in that case.
92545         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92546         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92547         instead, return -1.  Check for address arithmetic overflow.
92548
92549 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92550
92551         Handle invalid suffixes and overflow independently, so that
92552         callers can treat them independently as needed.  Fix some bugs in
92553         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92554         suffix for a human-readable blocksize.  The major caller-visible
92555         change is the addition of a new
92556         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92557         that both overflow and suffix chars were found.
92558
92559         * lib/human.c (humblock): Don't check separately for invalid suffix
92560         char; that is xstrtoumax's job (now that its bug is fixed).
92561         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92562         INTMAX_MAX]: New macros.
92563         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92564         TYPE_MAXIMUM): New macros.
92565         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92566         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92567         if overflow occurs, as it's what __strtol does and it's more useful
92568         in practice.
92569         (__xstrtol): If __strtol reports some error other than ERANGE,
92570         reflect it to the caller as LONGINT_INVALID.  If it reports
92571         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92572         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92573         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92574         value.
92575         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92576         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92577         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92578         [defined UINTMAX_MAX]: New macros.
92579
92580 2003-10-14  Bruno Haible  <bruno@clisp.org>
92581
92582         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92583
92584 2003-10-14  Bruno Haible  <bruno@clisp.org>
92585
92586         * m4/sig_atomic_t: New file, from GNU gettext.
92587         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92588
92589 2003-10-14  Bruno Haible  <bruno@clisp.org>
92590
92591         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92592         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92593         Also use volatile where needed.
92594
92595 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92596
92597         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92598         Change maintainer from Bruno Haible to 'all'.
92599
92600 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92601
92602         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92603
92604 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92605
92606         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92607         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92608         and define in terms of the other primitives.
92609         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92610         (SIZE_MAX): Define if not already defined.
92611         (array_size_overflow): New function.
92612         (xalloc_die): Abort instead of exiting if 'error' returns.
92613         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92614         (xmalloc, xrealloc): Use them.
92615         (xcalloc): Check for address arithmetic overflow.
92616         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92617         a bit faster than strcpy.
92618
92619 2003-10-10  Simon Josefsson  <jas@extundo.com>
92620
92621         * modules/argp (Depends-on): Add restrict and strcase.
92622
92623 2003-10-10  Simon Josefsson  <jas@extundo.com>
92624
92625         * m4/argp.m4: Add AC_C_INLINE.
92626
92627 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92628
92629         Merge getpass from libc, plus a few fixes.
92630
92631         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92632         Include <stdbool.h>.
92633         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92634         __fsetlocking to empty.
92635         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92636         do include <bits/libc-lock.h>.
92637         Do not include <fcntl.h>; not needed.
92638         [_LIBC]: Include <wchar.h>.
92639         (NOTCANCEL_MODE): New macro.
92640         (flockfile, funlockfile) [_LIBC]: New macros.
92641         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92642         [!_LIBC]: New macros.
92643         (call_fclose): New function.
92644         (getpass): Use it.  Save tty stream separately; this simplifies the
92645         code and makes it more reliable if stdin happens to equal stdout.
92646         Invoke __fsetlocking on tty.
92647         Handle thread cancellation if needed.
92648         Namespace cleanup (use __tcgetattr, __getline).
92649         Use bool for Booleans.
92650         [USE_IN_LIBIO]: Handle wide streams.
92651         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92652         stream might go where.
92653
92654         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92655         doesn't have to include <stdio.h> before us.
92656         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92657         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92658         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92659         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92660         if not declared, so that we can use getpass.c code from libc without
92661         rewriting it.
92662         (flockfile, ftrylockfile, funlockfile): New macros.
92663
92664 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92665
92666         * modules/getpass: Depend on stdbool.
92667
92668 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92669
92670         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92671
92672 2003-10-07  Karl Berry  <karl@gnu.org>
92673
92674         * config/config.{guess,sub}: update from config.
92675
92676 2003-10-06  Jim Meyering  <jim@meyering.net>
92677             Bruno Haible  <bruno@clisp.org>
92678
92679         This lets translators provide better translations for the
92680         "Written by ..." part of --version output.
92681         * lib/version-etc.h: Include stdarg.h.
92682         (version_etc_copyright): Declare as readonly.
92683         (version_etc): Make this function variadic with a NULL-terminated list
92684         of author name strings.
92685         (version_etc_va): New declaration.
92686         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92687         (version_etc_copyright): Declare as readonly.
92688         (version_etc_va): New function. Provide a different translatable string
92689         for each possible number of authors < 10. Abbreviate when there are 10
92690         authors or more.
92691         (version_etc): Make this function variadic. Call version_etc_va.
92692         Suggestion from Gary V. Vaughan.
92693
92694         * lib/long-options.h (parse_long_options): Change prototype: the
92695         authors string is moved to the end and becomes variadic.
92696         * lib/long-options.c: Include stdarg.h.
92697         (parse_long_options): Make this function variadic, too.
92698         Call version_etc_va, not version_etc.
92699
92700 2003-10-06  Bruno Haible  <bruno@clisp.org>
92701
92702         * modules/version-etc-2: Remove file.
92703         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92704
92705 2003-10-06  Bruno Haible  <bruno@clisp.org>
92706
92707         * modules/fatal-signal: New file.
92708         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92709
92710 2003-10-06  Bruno Haible  <bruno@clisp.org>
92711
92712         * m4/fatal-signal.m4: New file.
92713         * m4/signalblocking.m4: New file, from GNU gettext.
92714
92715 2003-10-06  Bruno Haible  <bruno@clisp.org>
92716
92717         * lib/version-etc-2.h: Remove file.
92718         * lib/version-etc-2.c: Remove file.
92719
92720 2003-10-06  Bruno Haible  <bruno@clisp.org>
92721
92722         * lib/fatal-signal.h: New file, from GNU gettext.
92723         * lib/fatal-signal.c: New file, from GNU gettext.
92724
92725 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92726
92727         * README: Rework advice for preventing empty .o files.
92728         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92729         not <sys/types.h>.
92730
92731 2003-10-04  Karl Berry  <karl@gnu.org>
92732
92733         * lib/argp*: update from libc.
92734
92735 2003-10-04  Karl Berry  <karl@gnu.org>
92736
92737         * config/config.{guess,sub}: update from config.
92738
92739 2003-10-02  Bruno Haible  <bruno@clisp.org>
92740
92741         * modules/lchown (Include): Add lchown.h.
92742         * modules/time_r (Include): Use "..." syntax.
92743         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92744
92745 2003-10-01  Simon Josefsson  <jas@extundo.com>
92746
92747         * MODULES.html.sh (func_all_modules): Move gethostname from section
92748         'based on' to section 'lacking' POSIX:2001.
92749
92750 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92751
92752         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92753         to output mode on the same stream.
92754
92755 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92756
92757         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92758         Fix arg typo in previous patch.
92759
92760 2003-09-28  Jim Meyering  <jim@meyering.net>
92761
92762         * lib/error.c: Correct cpp indentation.
92763
92764 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92765
92766         * modules/free: New file.
92767
92768 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92769
92770         * m4/free.m4: New file.
92771
92772 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92773
92774         * lib/minmax.h (MIN, MAX)
92775         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92776         Omit the special code that used __typeof__, since we worry that
92777         it could be more trouble than it's worth.  See:
92778         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92779         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92780
92781         * lib/free.c: New file.
92782
92783 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92784
92785         Trivial fixes to Makefile.am parts of module listings.
92786         * modules/strstr: Append strstr.h to lib_SOURCES.
92787         * modules/strcase: Likewise, for strcase.h.
92788
92789 2003-09-27  Karl Berry  <karl@gnu.org>
92790
92791         * config/mkinstalldirs: update from automake.
92792
92793 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92794
92795         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92796         (error_tail): Do not loop, reallocating temporary buffer, since
92797         the output cannot contain more wide characters than the input
92798         contains bytes, the size must be big enough already.  This avoids
92799         one potential size overflow calculation.  Check for size overflow
92800         when calculating temporary buffer size.  Free temporary buffer
92801         when done, if it was allocated with malloc; this plugs a memory
92802         leak.  Remove casts from void * to pointers, that are no longer
92803         needed now that we're assuming C89 or better.
92804
92805         Merge error changes from glibc.
92806
92807         * lib/error.c, error.h: Update copyright notice header to match glibc.
92808         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92809         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92810         Disable cancellation while printing error.
92811         * lib/error.h: Prepend __ to parameter names.
92812
92813 2003-09-26  Jim Meyering  <jim@meyering.net>
92814
92815         * lib/error.c (error_tail): Move some declarations
92816         into inner scope where the local variables are used.
92817
92818 2003-09-26  Bruno Haible  <bruno@clisp.org>
92819
92820         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92821         stpncpy().
92822         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92823
92824 2003-09-26  Bruno Haible  <bruno@clisp.org>
92825
92826         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92827         (stpncpy): Define as alias for gnu_stpncpy.
92828         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92829
92830 2003-09-25  Simon Josefsson  <jas@extundo.com>
92831
92832         * lib/xgetdomainname.h: New file.
92833         * lib/xgetdomainname.c: New file.
92834
92835 2003-09-25  Simon Josefsson  <jas@extundo.com>
92836             Bruno Haible  <bruno@clisp.org>
92837
92838         * modules/getdomainname: New file.
92839         * modules/xgetdomainname: New file.
92840         * MODULES.html.sh (func_all_modules): Add getdomainname,
92841         xgetdomainname.
92842
92843 2003-09-25  Simon Josefsson  <jas@extundo.com>
92844             Bruno Haible  <bruno@clisp.org>
92845
92846         * m4/getdomainname.m4: New file.
92847
92848 2003-09-25  Simon Josefsson  <jas@extundo.com>
92849             Bruno Haible  <bruno@clisp.org>
92850
92851         * lib/getdomainname.h: New file.
92852         * lib/getdomainname.c: New file.
92853
92854 2003-09-25  Karl Berry  <karl@gnu.org>
92855
92856         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92857
92858 2003-09-25  Karl Berry  <karl@gnu.org>
92859
92860         * config/install-sh: update from automake.
92861
92862 2003-09-25  Bruno Haible  <bruno@clisp.org>
92863
92864         * modules/version-etc-2: New file, from modules/version-etc with
92865         modifications.
92866         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92867
92868 2003-09-25  Bruno Haible  <bruno@clisp.org>
92869
92870         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92871         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92872
92873 2003-09-24  Simon Josefsson  <jas@extundo.com>
92874
92875         * modules/xgethostname: Add xgethostname.h.
92876
92877 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92878
92879         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92880         the buffer associated with the argument.  Bug reported by
92881         Simon Josefsson.
92882
92883 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92884
92885         * README: Document assumptions that 'int' is at least 32 bits
92886         wide, that integer arithmetic is 2's complement without overflow,
92887         that there are no holes in integer values, that adding sizes of
92888         two nonoverlapping objects can't overflow, and that all-bits-zero
92889         yields scalar zero.  Fix spelling and capitalization typos.
92890
92891 2003-09-19  Karl Berry  <karl@gnu.org>
92892
92893         * lib/argp.h: update from libc.
92894
92895 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92896
92897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92898         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92899         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92900
92901 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92902
92903         * gnulib-tool: Use "test -h", not "test -L", for portability
92904         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92905         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92906         (sed_extract_prog): Issue s commands one-by-one, rather than
92907         using \| in one s command.
92908
92909 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92910
92911         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92912         input error, instead of returning NULL the next time we are called
92913         (and therefore losing track of errno).
92914
92915 2003-09-16  Bruno Haible  <bruno@clisp.org>
92916
92917         * gnulib-tool (func_create_testdir): Warn about duplicated
92918         dependencies.
92919
92920 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92921
92922         * modules/argmatch, modules/fatal, modules/obstack,
92923         modules/xalloc, modules/xgethostname: Sort dependencies by
92924         importance, not alphabetically.
92925
92926 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92927
92928         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92929         fails, so that the caller gets the proper errno.
92930
92931         * lib/readutmp.c (read_utmp): Likewise.
92932         Check for fstat error.  Close stream and free storage
92933         when failing.
92934
92935 2003-09-14  Karl Berry  <karl@gnu.org>
92936
92937         * config/srclist.txt (strdup.c): disable for c89 changes.
92938
92939 2003-09-14  Jim Meyering  <jim@meyering.net>
92940
92941         * lib/getloadavg.c: Correct cpp indentation.
92942         * lib/strdup.c: Likewise.
92943         * lib/vasnprintf.c: Likewise.
92944
92945 2003-09-14  Bruno Haible  <bruno@clisp.org>
92946
92947         * modules/fwriteerror: New file.
92948         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92949
92950 2003-09-14  Bruno Haible  <bruno@clisp.org>
92951
92952         * lib/fwriteerror.h: New file.
92953         * lib/fwriteerror.c: New file.
92954
92955 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92956
92957         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92958         modules/xgethostname, modules/xalloc: Depend on exit.
92959
92960 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92961
92962         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92963
92964         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92965         and AC_MINIX, too, so that their extensions are available.
92966
92967         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92968         This macro has been superseded by gl_BACKUPFILE.
92969
92970         More patches to assume C89 or better.
92971
92972         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92973
92974         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92975         unconditionally.
92976         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92977         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92978         Include <string.h>, <stdlib.h> unconditionally.
92979         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92980         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92981         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92982         headers or for string.h.
92983         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92984         or strtoul.
92985
92986         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92987         headers.
92988         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92989         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92990         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92991         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92992         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92994         memcpy, memset.
92995         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92996         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92997         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92998         strtol.
92999         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93000         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93001         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93002         strtoul.
93003
93004 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93005
93006         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93007         * lib/obstack.c [!defined _LIBC]: Likewise.
93008         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93009         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93010         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93011
93012         More changes to assume C89 or better.
93013
93014         * lib/error.c (error_tail): Assume vprintf.
93015
93016         * lib/argmatch.c (getenv): Remove decl.
93017         * lib/progreloc.c (get_full_program_name): Define via prototype.
93018         * lib/setenv.c (clearenv): Likewise.
93019         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93020         needed.
93021         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93022         (malloc, memcpy): Remove decls.
93023         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93024         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93025         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93026         (memcpy): Remove macro.
93027         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93028         (__P): Remove.  All uses removed.
93029         (PTR): Remove.  All uses changed to void *.
93030         (CHAR_BIT, NULL): Remove.
93031         (spaces, zeros, memset_space, memset_zero)
93032         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93033         Remove.
93034         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93035         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93036         Define with prototype.
93037         Remove now-unnecessary prototype decl.
93038         (extra_args_spec): Assume ANSI C.  All uses changed.
93039         (extra_args_spec_iso): Remove.
93040         (my_strftime, emacs_strftimeu): Define via prototype.
93041         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93042         unconditionally.
93043         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93044         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93045         (strtoul, strtol): Remove decls.
93046         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93047         LONG_MAX): Remove.
93048         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93049         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93050         (LOCALE_PARAM_PROTO): New macro.
93051         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93052         (INTERNAL (strtol), strtol): Define with a prototype.
93053         (PARAMS): Remove.  All uses removed.
93054         * lib/tempname.c: Include <string.h> unconditionally.
93055         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93056         * lib/xgethostname.c (main): Define with a prototype.
93057         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93058         Include <stdlib.h> unconditionally.
93059         (calloc, malloc, realloc, free): Remove decls.
93060         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93061         Include <stdlib.h> unconditionally.  Sort include file names.
93062         (strtod): Remove.
93063         (xstrtod): Define with a prototype.
93064         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93065         (strtol, strtoul): Remove decls.
93066
93067 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93068
93069         More patches to assume C89 or better.
93070         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93071         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93072         string.h, memchr, STDC_HEADERS.
93073
93074 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93075
93076         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93077         Include <stdlib.h>, <string.h> unconditionally.
93078         Remove now-unnecessary cast to char *.
93079         * lib/strnlen.c: Include <string.h> unconditionally.
93080         * lib/yesno.c (yesno): Define with a prototype.
93081
93082 2003-09-11  Bruno Haible  <bruno@clisp.org>
93083
93084         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93085
93086 2003-09-10  Jim Meyering  <jim@meyering.net>
93087
93088         * lib/error.c: Correct indentation of cpp directives.
93089
93090 2003-09-10  Bruno Haible  <bruno@clisp.org>
93091
93092         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93093         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93094         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93095         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93096         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93097         <stdlib.h> and <string.h> checks.
93098         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93099         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93100
93101 2003-09-10  Bruno Haible  <bruno@clisp.org>
93102
93103         * lib/strcspn.c: Include <string.h> unconditionally.
93104         * lib/strpbrk.c: Include <string.h> unconditionally.
93105         * lib/strstr.c: Include <string.h> unconditionally.
93106         * lib/unicodeio.c: Include <string.h> unconditionally.
93107         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93108         * lib/unsetenv.c: Likewise.
93109         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93110         * lib/yesno.c: Include <stdlib.h> unconditionally.
93111         (rpmatch): Add prototype.
93112
93113 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93114
93115         More patches to assume C89 or better.
93116         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93117         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93118         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93119         or for string.h.
93120         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93121         stdlib.h.
93122         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93123         C headers.
93124         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93125         string.h.
93126         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93127         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93128         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93129         or for string.h.
93130         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93131         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93132         C headers.
93133         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93134         memcpy.
93135         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93136         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93137         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93138         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93139         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93140         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93141         string.h, free.
93142         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93143         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93144         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93145         C headers, or for string.h.
93146         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93147         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93148         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93149         headers, memory.h, stdlib.h, string.h, strings.h.
93150         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93151         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93152         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93153         strchr.
93154         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93155         headers, memory.h, string.h.
93156         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93157         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93158         free.
93159         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93160         headers.
93161         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93162         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93163         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93164         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93165         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93166
93167 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93168
93169         More K&R removal.
93170
93171         * lib/acosl.c (main): Use a prototype.
93172         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93173         tanl.c: Likewise.
93174
93175         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93176
93177         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93178         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93179         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93180         with a prototype.
93181         * lib/getopt.c (const): Remove macro.
93182         Include <string.h> unconditionally.
93183         (my_index): Remove; all uses changed to strchr.
93184         (strlen): Remove decl.
93185         (exchange): Remove forward decl; no longer needed.
93186         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93187         Define with prototype.
93188         * lib/getopt1.c (const): Remove macro.
93189         (getopt_long, getopt_long_only, main): Define with prototype.
93190
93191         * lib/getugroups.c: Include <string.h> unconditionally.
93192
93193         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93194         (getusershell, setusershell, endusershell, readname, main):
93195         Define with prototypes.
93196
93197         * lib/group-member.c: Include group-member.h first.
93198         Include <stdlib.h> unconditionally.
93199
93200         * lib/hard-locale.c: Include hard-locale.h first.
93201         Include <stdlib.h>, <string.h> unconditionally.
93202
93203         * lib/hash.c (free, malloc): Remove decls.
93204         Include <stdlib.h> unconditionally.
93205
93206         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93207         (getenv): Do not declare.
93208
93209         * lib/idcache.c: Include <string.h> unconditionally.
93210
93211         * lib/long-options.c: Include long-options.h first, to test interface.
93212         Include <stdlib.h> unconditionally.
93213
93214         * lib/makepath.c: Include makepath.h first, to test interface.
93215         Include <stdlib.h> and <string.h> unconditionally.
93216
93217         * lib/linebuffer.c: Include <stdlib.h>.
93218         (free): Remove decl.
93219
93220         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93221         stddef.h. rpl_malloc returns void *, not char *.
93222         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93223         prototype.
93224
93225         * lib/md5.h: Include <limits.h> unconditionally.
93226         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93227         (__P): Remove; all uses removed.
93228         * lib/md5.c: Include "md5.h" first.
93229         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93230         md5_buffer, md5_process_bytes, md5_process_block):
93231         Define with prototypes.
93232         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93233         * lib/sha.c: Include "sha.h" first.
93234         Include <stdlib.h>, <string.h> unconditionally.
93235
93236         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93237         * lib/memcmp.c (__ptr_t): Likewise.
93238         * lib/memrchr.c (__ptr_t): Likewise.
93239         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93240         Include <string.h> unconditionally.
93241         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93242         * lib/memchr.c: Include <stdlib.h> unconditionally.
93243         * lib/memchr.c (LONG_MAX): Remove.
93244         * lib/memrchr.c (LONG_MAX): Likewise.
93245         * lib/memchr.c (__memchr): Define via a prototype.
93246         * lib/memrchr.c (__memrchr): Likewise.
93247         * lib/memcmp.c (__P): Remove, and remove all uses.
93248         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93249         Remove forward decls; no longer needed.
93250         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93251         Use types required by C89 in prototype.
93252
93253         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93254         * lib/savedir.c: Likewise.
93255         * lib/mkdir.c (free): Remove decl.
93256         * lib/rmdir.c (rmdir): Define with a prototype.
93257         * lib/savedir.c: Include savedir.h first, to test interface.
93258
93259         * lib/mktime.c (STDC_HEADERS): Remove.
93260         Include <stdlib.h>, <string.h> unconditionally.
93261
93262         * lib/modechange.c: Include <stdlib.h> unconditionally.
93263         (malloc): Remove decl.
93264
93265         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93266         (free): Remove decl.
93267
93268         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93269         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93270         (This type really should be intptr_t, but that's a C99ism.)
93271         (_obstack_memcpy): Remove: all uses changed to memcpy.
93272         Include <string.h> unconditionally.
93273         (struct obstack): Assume __STDC__ for types of members
93274         chunkfun, freefun, extra_arg.
93275         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93276         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93277         obstack_begin, obstack_specify_allocation,
93278         obstack_specify_allocation_with_arg, obstack_chunkfun,
93279         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93280         Remove unprototyped decls and the macros that use them.
93281         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93282         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93283         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93284         (defined __STDC__ && __STDC__)]:
93285         Remove nonprototyped code.
93286         Include <stdlib.h> unconditionally.
93287         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93288         _obstack_allocated_p, _obstack_free, obstack_free,
93289         _obstack_memory_used, print_and_abort):
93290         Define using prototypes.
93291         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93292         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93293         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93294         obstack_next_free, obstack_object_size, obstack_room) [0]:
93295         Remove unused, unprototyped code.
93296
93297         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93298
93299         * lib/physmem.c (physmem_total, physmem_available, main): Define
93300         with prototypes.
93301
93302         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93303         (main): Define with a prototype.
93304
93305         * lib/posixver.c (getenv): Remove decl.
93306
93307         * lib/putenv.c (malloc): Returns void *, not char *.
93308         Include <string.h> unconditionally.
93309         (strchr, memcpy, NULL): Do not define.
93310
93311         * lib/readtokens.c: Include readtokens.h first, to test interface.
93312         Include <stdlib.h>, <string.h> unconditionally.
93313         (init_tokenbuffer): Define with a prototype.
93314
93315         * lib/regex.c (PARAMS): Remove.  All uses removed.
93316         All uses of _RE_ARGS removed, too.
93317         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93318         unconditionally.
93319         (bzero): Assume memset exists.
93320         (memcmp, memcpy, NULL): Remove.
93321         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93322         char, or assignments to local vars of type signed char.
93323         (init_syntax_once, PREFIX(extract_number_and_incr),
93324         PREFIX(print_partial_compiled_pattern),
93325         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93326         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93327         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93328         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93329         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93330         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93331         wcs_compile_range, byte_compile_range, truncate_wchar,
93332         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93333         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93334         count_mbs_length, wcs_re_match_2_internal,
93335         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93336         PREFIX(alt_match_null_string_p),
93337         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93338         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93339         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93340         now-unnecessary declaration, if any.
93341         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93342         regcomp, regexec):
93343         Remove now-unnecessary casts among pointer types.
93344         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93345
93346         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93347         (free): Remove decl.
93348
93349         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93350
93351         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93352         (free): Remove decl.
93353
93354         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93355         * lib/xgetcwd.c: Likewise.
93356
93357         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93358         (free): Remove decl.
93359
93360         * lib/strchrnul.c (strchrnul): Define with a prototype.
93361         Fix bug: c_in was not converted to char before searching.
93362
93363         The following changes are not K&R related:
93364
93365         * lib/group-member.h: Include <sys/types.h>, so that this file is
93366         self-contained.
93367         * lib/makepath.h: Likewise.
93368
93369         * lib/getusershell.c (readname, default_index, line_size, readname):
93370         Use size_t, not int, for sizes.
93371         (readname): If the size overflows, report an error instead of
93372         looping forever.
93373
93374 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93375
93376         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93377         libc.
93378
93379 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93380
93381         * README: New section: portability guidelines.
93382
93383 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93384
93385         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93386         C89 spec.
93387
93388 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93389
93390         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93391
93392 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93393
93394         Assume C89 or better; remove K&R cruft.
93395         A few of these changes were first proposed by Derek Robert Price
93396         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93397
93398         * lib/addext.c: Include <string.h> unconditionally.
93399         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93400         Don't declare getenv or malloc.
93401
93402         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93403         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93404         (NULL): Remove.
93405         (find_stack_direction, alloca): Use prototypes.
93406
93407         * lib/atexit.c (atexit): Define using a prototype.
93408
93409         * lib/basename.c, dirname.c, stripslash.c:
93410         Include <string.h> unconditionally.
93411
93412         * lib/bcopy.c: Include <stddef.h>.
93413         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93414
93415         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93416
93417         * lib/error.h (error, error_at_line, error_print_progname)
93418         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93419         * lib/error.c: Include error.h first, to check interface.
93420         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93421         (VA_START): Remove; all uses changeed to va_start.
93422         (exit, strerror): Remove decls.
93423         (error_print_progname): Prototype uncondionally.
93424         Don't include <errno.h>; no longer needed.
93425         (private_strerror): Remove.
93426         (error_tail): Always define.
93427         (error, error_at_line): Assume C89 or better; always use prototypes.
93428         * lib/fatal.c: Include "fatal.h" first, to test interface.
93429         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93430         (VA_START): Remove; all uses changed to va_start.
93431         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93432         this case.
93433         (exit): Remove decl.
93434         (fatal): Prototype unconditionally.  Assume va_start works.
93435         Abort at end, to pacify gcc.
93436
93437         * lib/euidaccess.c (main): Define with a prototype.
93438
93439         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93440
93441         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93442
93443         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93444         prototypes.
93445         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93446         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93447         (getenv): Remove decl.
93448         (fnmatch): Define using a prototype.
93449         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93450         (FCT): Define using a prototype.
93451
93452         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93453
93454         * lib/gethostname.c: Include <stddef.h>.
93455         (gethostname): Define with prototype.  Length is size_t, not int.
93456
93457 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93458
93459         Assume C89 or better; remove K&R cruft.
93460         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93461         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93462         string.h, getenv, malloc.
93463         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93464         headers.
93465         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93466         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93467         do not check for strerror.
93468         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93469         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93470         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93471         do not check for doprnt or vprintf.
93472         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93473         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93474
93475 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93476
93477         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93478         getversion.c should have been removed then, but was accidentally
93479         preserved.
93480
93481         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93482         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93483
93484 2003-09-08  Karl Berry  <karl@gnu.org>
93485
93486         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93487                 config, forget about prep.
93488
93489         * config/depcomp, missing: update from automake.
93490
93491 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93492
93493         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93494         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93495
93496 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93497
93498         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93499         copy_tm_result.  Bug reported by Simon Josefsson in
93500         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93501
93502 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93503
93504         * m4/time_r.m4: New file.
93505         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93506         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93507         is. Check for timegm declaration.
93508         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93509         Do not check for gmtime_r.
93510         Replace mktime if __mktime_internal does not exist and if mktime
93511         hasn't been replaced already.
93512
93513 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93514
93515         * lib/time_r.c, lib/time_r.h: New files.
93516
93517         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93518         __localtime_r.
93519         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93520         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93521
93522         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93523         __gmtime_r.
93524         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93525         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93526         Include <time_r.h>.
93527
93528         * lib/timegm.c: Switch to glibc implementation, with the following
93529         changes:
93530         [defined HAVE_CONFIG_H]: Include <config.h>.
93531         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93532         (__mktime_internal) [!defined _LIBC]: New decl.
93533         (__gmtime_r) [!defined _LIBC]: New macro and function.
93534         (timegm): Use a prototype, since gnulib assumes C89.
93535         Do not bother declaring tmp to be const, as it's not really usefu.
93536         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93537         (timegm): Declare only if HAVE_DECL_TIMEGM.
93538
93539 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93540
93541         * MODULES.html.sh (func_all_modules): Add time_r.
93542         * modules/time_r: New file.
93543         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93544         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93545
93546 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93547
93548         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93549         Bug reported by Lute Kamstra in
93550         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93551
93552         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93553         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93554         course with correspondingly smaller numbers for tomorrow and
93555         yesterday.  From Tadayoshi Funaba.  Originally installed into
93556         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93557         coreutils merge?).
93558
93559 2003-08-31  Simon Josefsson  <jas@extundo.com>
93560
93561         * modules/timegm: New file.
93562         * MODULES.html.sh (func_all_modules): Add timegm.
93563
93564 2003-08-31  Simon Josefsson  <jas@extundo.com>
93565
93566         * m4/timegm.m4: New file.
93567
93568 2003-08-31  Simon Josefsson  <jas@extundo.com>
93569
93570         * lib/timegm.h: New file.
93571         * lib/timegm.c: New file.  Based on
93572         wget-1.8.2/src/http.c:mktime_from_utc.
93573
93574 2003-08-31  Karl Berry  <karl@gnu.org>
93575
93576         * lib/argp.h: update from libc.
93577
93578 2003-08-28  Bruno Haible  <bruno@clisp.org>
93579
93580         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93581         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93582         followed by '#define fnmatch fnmatch_posix' gives an error.
93583
93584 2003-08-28  Bruno Haible  <bruno@clisp.org>
93585
93586         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93587         warning on QNX, which defines O_BINARY to 000000.
93588
93589 2003-08-27  Jim Meyering  <jim@meyering.net>
93590
93591         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93592         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93593         would fail after 32.  Reported by Danny Levinson.  Details here:
93594         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93595
93596 2003-08-24  Bruno Haible  <bruno@clisp.org>
93597
93598         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93599         MSVC7 <stdio.h> is included later.
93600
93601 2003-08-22  Simon Josefsson  <jas@extundo.com>
93602
93603         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93604
93605 2003-08-20  Karl Berry  <karl@gnu.org>
93606
93607         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93608
93609 2003-08-20  Bruno Haible  <bruno@clisp.org>
93610
93611         * modules/progname: New file.
93612         * MODULES.html.sh (func_all_modules): Add progname.
93613
93614 2003-08-20  Bruno Haible  <bruno@clisp.org>
93615
93616         * lib/progname.h: New file, from GNU gettext.
93617         * lib/progname.c: New file, from GNU gettext.
93618         * lib/progreloc.c: New file, from GNU gettext.
93619
93620 2003-08-19  Jim Meyering  <jim@meyering.net>
93621
93622         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93623         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93624
93625 2003-08-19  Bruno Haible  <bruno@clisp.org>
93626
93627         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93628         more.
93629
93630 2003-08-19  Bruno Haible  <bruno@clisp.org>
93631
93632         * lib/xstrdup.c: Assume <string.h> exists.
93633
93634 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93635
93636         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93637         in makefile rules.
93638
93639 2003-08-18  Jim Meyering  <jim@meyering.net>
93640
93641         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93642         * m4/lib-ld.m4: Likewise.
93643
93644 2003-08-18  Jim Meyering  <jim@meyering.net>
93645
93646         * lib/setenv.h: Indent nested cpp directive.
93647         * lib/vasnprintf.c: Remove trailing blanks.
93648
93649 2003-08-17  Simon Josefsson  <jas@extundo.com>
93650
93651         * modules/xstrndup: New file.
93652         * MODULES.html.sh (func_all_modules): Add xstrndup.
93653
93654 2003-08-17  Simon Josefsson  <jas@extundo.com>
93655
93656         * modules/argp: Fix autoconf macro name. Add more dependencies.
93657
93658 2003-08-17  Simon Josefsson  <jas@extundo.com>
93659
93660         * m4/xstrndup.m4: New file.
93661
93662 2003-08-17  Simon Josefsson  <jas@extundo.com>
93663
93664         * m4/argp.m4: New file.
93665
93666 2003-08-17  Simon Josefsson  <jas@extundo.com>
93667             Bruno Haible  <bruno@clisp.org>
93668
93669         * lib/xstrndup.h: New file.
93670         * lib/xstrndup.c: New file.
93671
93672 2003-08-17  Bruno Haible  <bruno@clisp.org>
93673
93674         * modules/strndup (Files, Include): Add lib/strndup.h.
93675
93676 2003-08-17  Bruno Haible  <bruno@clisp.org>
93677
93678         * modules/euidaccess (Files): Add lib/euidaccess.h.
93679
93680 2003-08-17  Bruno Haible  <bruno@clisp.org>
93681
93682         * lib/strndup.h: New file.
93683
93684 2003-08-17  Bruno Haible  <bruno@clisp.org>
93685
93686         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93687         like AC_GNU_SOURCE.
93688         * modules/extensions (configure.ac): Comment out the invocation of
93689         gl_USE_SYSTEM_EXTENSIONS.
93690
93691 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93692
93693         Merges from coreutils, etc.
93694         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93695         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93696         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93697         fixing a typo.
93698         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93699         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93700
93701 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93702
93703         Document merge from coreutils.
93704         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93705         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93706         * modules/utime: Add m4/utimes-null.m4.
93707
93708 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93709
93710         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93711         space, undoing this 2003-08-12 change:
93712         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93713
93714 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93715
93716         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93717         strtoul.c from libc, undoing this 2003-08-12 change:
93718         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93719
93720 2003-08-16  Jim Meyering  <jim@meyering.net>
93721
93722         Merges from coreutils.
93723         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93724         prefix.  Adjust cache variables similarly.  Create 500 rather than
93725         just 300 files, to exercise bug on Darwin6.5, too.
93726         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93727         $missing_dir.
93728         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93729         AM_SYS_POSIX_TERMIOS.
93730         Reported by mkc@mathdogs.com.
93731         Also change use of $am_cv_sys_posix_termios
93732         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93733         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93734         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93735         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93736         in /proc/mounts until it finds one with matching device number.  This
93737         is unnecessary when the FILE argument *is* a mount point.  No stat call
93738         is necessary in that case.  So, disable the statvfs-testing code on
93739         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93740         as RedHat bug# 84846.
93741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93742         to 1MB, so as not to render systems with no stack size limit (e.g.,
93743         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93744         Include <unistd.h>.  On some systems,
93745         it is required for the definition of _SC_PAGESIZE.
93746
93747 2003-08-16  Jim Meyering  <jim@meyering.net>
93748
93749         Merge from coreutils.
93750         * lib/xstrtoimax.c: #else #if -> #elif.
93751         * lib/xstrtoumax.c: Likewise.
93752
93753 2003-08-16  Jim Meyering  <jim@meyering.net>
93754
93755         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93756         * m4/utimes.m4: Removed.
93757         * m4/utimes-null.m4: Renamed from utimes.m4.
93758
93759         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93760         to 1MB, so as not to render systems with no stack size limit (e.g.,
93761         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93762         Include <unistd.h>.  On some systems,
93763         it is required for the definition of _SC_PAGESIZE.
93764
93765 2003-08-16  Jim Meyering  <jim@meyering.net>
93766         and Paul Eggert  <eggert@cs.ucla.edu>
93767
93768         Merges from coreutils, etc.
93769
93770         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93771         using the latest version from cvs.  This avoids problems with #line
93772         directives using a vendor (Sun) compiler.
93773         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93774         Don't set GETGROUPS_LIB here; now it's
93775         done via getgroups.m4's wrapper function.
93776         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93777         rather than just in sh-util/configure.in, so that the
93778         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93779         same.
93780         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93781         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93782         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93783         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93784         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93785         Remove code that is now done by the newly-required macros.
93786         Append $(EXEEXT) to DF_PROG.
93787         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93788         Do not invoke or require the following here,
93789         since prereq.m4 or some gnulib .m4 now does this for us:
93790         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93791         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93792         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93793         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93794         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93795         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93796         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93797         AC_FUNC_OBSTACK.
93798         Do not replace the following functions, as this is now the job
93799         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93800         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93801         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93802         atexit getpass, strdup, getpagesize.
93803         Replace 'raise'.
93804         Do not check for the following functions, as this is now the job
93805         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93806         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93807         setregid.
93808         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93809         Check for sys/sysctl.h.
93810         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93811         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93812         of checking for ssize_t ourselves.
93813
93814         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93815         Require every macro that gnulib/modules/* suggests for us.
93816         (jm_PREREQ_ADDEXT): New macro.
93817         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93818         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93819
93820         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93821         (gl_PHYSMEM): Use it.
93822         Also check for `table' function.
93823         Check for new headers and functions.
93824         Add check for sys/sysmp.h.
93825         With suggestions from Kaveh Ghazi.
93826         Ignore headers that are present but cannot be compiled.  This
93827         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93828         C 5.4.
93829
93830 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93831
93832         Document merge from coreutils.
93833         * modules/userspec: Depend on posixver.
93834         * modules/strftime: Depend on tzset.
93835
93836 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93837
93838         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93839         rather than tab, after '#' in shell-script copyright notices.
93840         Suggested by Bruno Haible.
93841
93842 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93843
93844         * config/srclist-update: Use three spaces, rather than tab, after '#'
93845         in shell-script copyright notices.  Suggested by Bruno Haible.
93846         Remove unnecessary parenthesization in regular expression.
93847
93848 2003-08-15  Jim Meyering  <jim@meyering.net>
93849
93850         Merge from coreutils.
93851         * lib/xgethostname.c: Include <stdlib.h>.
93852         (xghostname): Don't exit for anything other than memory-related
93853         failure; just return NULL.
93854         * lib/userspec.c: Include "posixver.h".
93855         (parse_user_spec): Accept `.' as a separator only
93856         in pre-POSIX-200112 mode.
93857         * lib/strtoimax.c: Use #elif rather than #else #if.
93858         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93859         Remove function, now that we can rely on a working tzset function.
93860         [!_LIBC]: Ensure that the required autoconf test has been run.
93861         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93862         Use underlying_strftime for %r.
93863         * lib/sha.c: Merge in some clean-up and optimization changes from
93864         glibc.
93865         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93866         Ensure that it is a multiple of 64.
93867         Rearrange loop exit tests so as to avoid performing an
93868         additional fread after encountering an error or EOF.
93869         * lib/realloc.c: Update copyright date.
93870
93871 2003-08-15  Jim Meyering  <jim@meyering.net>
93872         and Paul Eggert  <eggert@twinsun.com>
93873
93874         Merge from coreutils.
93875         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93876         member but strut utmpx does not.  Needed for AIX 4.3.3.
93877         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93878
93879 2003-08-15  Jim Meyering  <jim@meyering.net>
93880         and Paul Eggert  <eggert@cs.ucla.edu>
93881
93882         Merges from coreutils, etc.
93883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93884         Require gl_FUNC_TZSET_CLOBBER.
93885         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93886         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93887         members.
93888
93889 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93890
93891         Help the merge from coreutils.
93892         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93893         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93894         * m4/tzset.m4: Use it too.
93895
93896 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93897
93898         * modules/tzset: New file.
93899
93900 2003-08-14  Jim Meyering  <jim@meyering.net>
93901
93902         Merges from coreutils.
93903         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93904         variable names, rather than @FNMATCH_H@.
93905         * modules/alloca: Likewise for $(ALLOCA_H).
93906
93907         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93908         the three copies of the literal target, `fnmatch.h'.
93909         * modules/alloca (alloca.h): Likewise.
93910
93911 2003-08-14  Jim Meyering  <jim@meyering.net>
93912
93913         Merge from coreutils.
93914         * m4/tzset.m4: New file.
93915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93916         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93917         otherwise, AIX 5.1 systems would end up using the latter.
93918         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93919         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93920         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93921         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93922
93923 2003-08-14  Jim Meyering  <jim@meyering.net>
93924
93925         Merge from coreutils.
93926         * lib/obstack.h: Whitespace changes.
93927         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93928         and xcalloc return values.
93929         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93930         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93931         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93932         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93933         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93934         error from mntctl.
93935         Use mntctl's return value to drive the entry-processing loop, since
93936         we can't rely on the value of the vmt_length member in the last
93937         entry.  On some systems doing so could result in exhausting
93938         virtual memory.  Based in part on a patch from Mike Jetzer.
93939
93940 2003-08-14  Jim Meyering  <jim@meyering.net>
93941         and Paul Eggert  <eggert@twinsun.com>
93942
93943         Merges from coreutils, plus other fixes.
93944         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93945         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93946         for credits and details.  Thanks to Kaveh Ghazi for helping
93947         to keep these files in sync.
93948         (ARRAY_SIZE): Define it.
93949         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93950         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93951         (memcasecmp): Don't assume size_t fits in unsigned int.
93952         Remove casts and duplicate code.
93953         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93954         (memcpy): Remove definition.
93955         Merge in some clean-up and optimization changes from glibc.
93956         [BLOCKSIZE]: Move definition to top of file.
93957         Ensure that it is a multiple of 64.
93958         Rearrange loop exit tests so as to avoid performing an
93959         additional fread after encountering an error or EOF.
93960         * lib/md5.h (md5_uintptr): Define.
93961         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93962         return to the initial working directory.  Preserve errno
93963         for caller.
93964         * lib/idcache.c: Include "xalloc.h".
93965         (xmalloc, xrealloc): Remove decls.
93966         (getuser): Remove casts no longer required in C89.
93967         * lib/human.c: Include stdio.h, for sprintf.
93968         * lib/group-member.c: Include "xalloc.h".
93969         (xmalloc, xrealloc): Remove decls.
93970         (get_group_info): Remove casts no longer required in C89.
93971         * lib/getusershell.c (readname): Remove casts no longer required in
93972         C89.
93973         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93974         * lib/getline.c: Whitespace fix, from coreutils.
93975
93976 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93977
93978         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93979         Check for isascii.
93980
93981         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93982         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93983         Undo previous (whitespace-only) change.
93984
93985 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93986
93987         * lib/exclude.c: Include <ctype.h>
93988         (IN_CTYPE_DOMAIN): New macro.
93989         (is_space): New fn.
93990         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93991         and empty lines.
93992
93993         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93994         Undo previous (whitespace-only) change.
93995
93996 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93997
93998         * config/srclist-update: Change update back to the old behavior,
93999         leaving whitespace alone.  Use one 'sed' command rather than a
94000         pipeline.
94001         (fixlicense): Now a variable, not a function.
94002         (remove_trailing_blanks): Remove.
94003         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94004         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94005         Undo previous (whitespace-only) change.
94006
94007 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94008
94009         Merge from coreutils.
94010         * modules/euidaccess: Add lib_SOURCES, include for new
94011         file euidaccess.h
94012
94013 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94014
94015         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94016         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94017         Normalize leading white space and remove trailing white space.
94018
94019         Merge from coreutils
94020         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94021
94022         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94023         0.12.1.  These files are now being upgraded automatically by
94024         ../config/srclist-update.
94025
94026 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94027
94028         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94029         Normalize leading white space and remove trailing white space.
94030         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94031         notice, as per ../config/srclist-update.
94032
94033         Merge from coreutils.
94034         * lib/euidaccess.h: New file.
94035         * lib/euidaccess.c: Include it.
94036         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94037         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94038         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94039
94040 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94041
94042         * config/srclist-update: Add copyright notice.
94043         (remove_id_lines, remove_trailing_blanks): New constants.
94044         (fixfile): Use them to normalize spacing a bit in copied files.
94045         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94046         Normalize leading white space and remove trailing white space.
94047
94048         * config/texinfo.tex: Sync with texinfo.
94049
94050         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94051         strtoul.c from libc, to merge coreutils whitespace changes.
94052
94053         * config/srclist.txt: Get the following m4 files from gettext:
94054         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94055         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94056         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94057         wint_t.m4.
94058
94059 2003-08-12  Karl Berry  <karl@gnu.org>
94060
94061         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94062         been made.
94063
94064 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94065
94066         * modules/gnu-source, m4/gnu-source.m4:
94067         Remove; we're assuming Autoconf 2.54 or later now.
94068         Suggested by Bruno Haible.
94069         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94070
94071 2003-08-11  Bruno Haible  <bruno@clisp.org>
94072
94073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94074
94075 2003-08-11  Bruno Haible  <bruno@clisp.org>
94076
94077         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94078         (vasnprintf): Use it instead of wcslen.
94079
94080 2003-08-11  Bruno Haible  <bruno@clisp.org>
94081
94082         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94083         value to ensure that _Bool promotes to int. Use #define for _Bool when
94084         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94085
94086 2003-08-10  Karl Berry  <karl@gnu.org>
94087
94088         * lib/regex.h: update from libc (whitespace fix).
94089
94090 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94091
94092         Merge some files from coreutils.  These changes were
94093         originally made by Jim Meyering.
94094         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94095         many older Unixes require this.
94096         * lib/alloca.c (alloca): Remove cast to argument of free;
94097         no longer needed in C89.
94098         * lib/alloca_.h, regex.h: Fix white space to match
94099         what GNU indent does.
94100
94101 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94102
94103         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94104         apparently Emacs's Unicode mode got confused before my 2003-08-05
94105         checkin.
94106
94107 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94108
94109         * m4/extensions.m4: New file.
94110         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94111         Require gl_USE_SYSTEM_EXTENSIONS.
94112         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94113         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94114
94115 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94116
94117         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94118         * modules/extensions, modules/gnu-source: New files.
94119         * modules/timespec, modules/unlocked-io: Depend on extensions.
94120
94121 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94122
94123         * modules/restrict: New file.
94124         * MODULES.html.sh (func_all_modules): Add restrict.
94125         * modules/regex: Depend on restrict.
94126
94127 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94128
94129         * m4/restrict.m4: New file.
94130         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94131
94132 2003-08-07  Bruno Haible  <bruno@clisp.org>
94133
94134         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94135         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94136
94137 2003-08-07  Bruno Haible  <bruno@clisp.org>
94138
94139         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94140         makes the module 'getndelim2' compatible with the module 'getline'.
94141
94142 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94143
94144         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94145         byte with "\201" to avoid glitches when editing that source file
94146         with multi-gnome-terminal.
94147
94148 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94149
94150         * lib/bumpalloc.h: Remove.
94151
94152 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94153
94154         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94155         * modules/bumpalloc: Remove.
94156
94157 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94158
94159         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94160         GNU coding style.
94161
94162         Merge from coreutils.
94163         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94164         1. From glibc.
94165         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94166         from Karl Berry, implemented by Jim Meyering.
94167         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94168         from Dmitry V. Levin.
94169         Remove anachronistic cast of xrealloc.
94170         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94171         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94172         type. Otherwise, it wouldn't compile with at least /bin/cc on
94173         ymp-cray-unicos9.0.2.X.
94174         Combine two mostly-identical uses of alloca into one.
94175         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94176
94177 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94178
94179         [From Emacs.]
94180
94181         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94182         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94183         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94184         obsolete NLIST_NAME_UNION.
94185         [__GNU__]: Undef BSD and FSCALE.
94186         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94187
94188 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94189
94190         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94191         an enum type, so that it's guaranteed to promote to int.  See:
94192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94193
94194 2003-08-03  Karl Berry  <karl@gnu.org>
94195
94196         * config/depcomp: update from automake.
94197
94198 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94199
94200         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94201         (strerror): Don't assume that a printable int fits in 14 bytes.
94202
94203 2003-07-31  Bruno Haible  <bruno@clisp.org>
94204
94205         * modules/getpass-gnu: New file.
94206         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94207
94208 2003-07-31  Bruno Haible  <bruno@clisp.org>
94209
94210         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94211
94212 2003-07-24  Karl Berry  <karl@gnu.org>
94213
94214         * config/missing: update from automake.
94215
94216 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94217             Bruno Haible  <bruno@clisp.org>
94218
94219         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94220         * lib/getline.c (getline, getdelim): Likewise.
94221         Remove _GNU_SOURCE define; now it's defined in config.h through
94222         m4/getline.m4.
94223
94224 2003-07-23  Karl Berry  <karl@gnu.org>
94225
94226         * config/config.sub: update from prep.
94227
94228 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94229
94230         * modules/xalloc (Depends-on): Add exitfail.
94231         * modules/xmemcoll: Likewise.
94232
94233 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94234
94235         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94236         over-parenthesization in macros.
94237
94238         Sync with coreutils.
94239
94240         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94241         required by C99.
94242
94243         Use `exit_failure' for xalloc and xmemcoll instead of their own
94244         private exit-failure variables.
94245         * lib/xalloc.h (xalloc_exit_failure): Remove.
94246         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94247         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94248         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94249         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94250         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94251
94252 2003-07-20  Jim Meyering  <jim@meyering.net>
94253
94254         * modules/closeout (Depends-on): Add exitfail.
94255         Suggestion from Bruno Haible.
94256
94257 2003-07-19  Karl Berry  <karl@gnu.org>
94258
94259         * config/config.sub: update from prep.
94260
94261 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94262
94263         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94264         Remove.
94265         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94266         to test that it can stand by itself.  Include "exitfail.h".
94267         Clients should set exit_failure instead.
94268         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94269
94270 2003-07-18  Bruno Haible  <bruno@clisp.org>
94271
94272         * modules/getndelim2: New file.
94273         * modules/getline: Share files with module getndelim2.
94274         * modules/getnline: Depend on getndelim2 instead of sharing files with
94275         it. Add getnline.c to lib_SOURCES.
94276         * MODULES.html.sh (func_all_modules): Add getndelim2.
94277
94278 2003-07-18  Bruno Haible  <bruno@clisp.org>
94279
94280         * m4/getndelim2.m4: New file.
94281         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94282         invoke gl_PREREQ_GETNDELIM2.
94283         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94284         gl_PREREQ_GETNDELIM2.
94285         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94286         gl_GETNDELIM2.
94287
94288 2003-07-18  Bruno Haible  <bruno@clisp.org>
94289
94290         * lib/getndelim2.h: New file.
94291         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94292         getndelim2.h.
94293         (getndelim2): Make non-static. Change return type to ssize_t.
94294         * lib/getline.h: Change argument names.
94295         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94296         * lib/getnline.c: Include getndelim2.h.
94297
94298 2003-07-18  Andreas Schwab  <schwab@suse.de>
94299
94300         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94301
94302 2003-07-17  Karl Berry  <karl@gnu.org>
94303
94304         * config/config.sub: update from prep.
94305
94306 2003-07-17  Bruno Haible  <bruno@clisp.org>
94307
94308         * modules/getnline: New file.
94309         * modules/getline: Add lib/getndelim2.c to source file list.
94310         * MODULES.html.sh (func_all_modules): Add getnline.
94311
94312 2003-07-17  Bruno Haible  <bruno@clisp.org>
94313
94314         * m4/getnline.m4: New file.
94315
94316 2003-07-17  Bruno Haible  <bruno@clisp.org>
94317
94318         * m4/Makefile.am.in: Remove file.
94319         * m4/Makefile.am: Remove file.
94320         * m4/Makefile.in: Remove file.
94321
94322 2003-07-17  Bruno Haible  <bruno@clisp.org>
94323
94324         * lib/getnline.h: New file.
94325         * lib/getnline.c: New file.
94326         * lib/getndelim2.c: New file, extracted from getline.c.
94327         (getndelim2): Renamed from getdelim2, with added nmax argument.
94328         * lib/getline.c: Include getndelim2.c.
94329         (getdelim2): Moved out to getndelim2.c.
94330         (getline, getdelim): Update.
94331
94332 2003-07-17  Bruno Haible  <bruno@clisp.org>
94333
94334         * lib/Makefile.am: Remove file.
94335         * lib/Makefile.in: Remove file.
94336
94337 2003-07-17  Bruno Haible  <bruno@clisp.org>
94338
94339         * configure.in: Remove file.
94340         * Makefile.in: Remove file.
94341
94342 2003-07-17  Bruno Haible  <bruno@clisp.org>
94343
94344         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94345
94346 2003-07-16  Karl Berry  <karl@gnu.org>
94347
94348         * config/srclist-update: was running fixlicense twice, which caused
94349                 texinfo.tex to be nullified for some reason.  Simplify,
94350                 $gplsrc is no longer needed as far as I can see?
94351
94352 2003-07-16  Jim Meyering  <jim@meyering.net>
94353
94354         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94355
94356 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94357
94358         * config/srclist.txt: Get the following files from gettext-runtime/intl
94359         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94360         ref-del.sin.  From Bruno Haible.
94361         * config/srclist-update (fixfile): Change grep pattern again, since the
94362         previous fix didn't work (there was another trailing $).  Use
94363         '[$]' to escape the $s.
94364
94365 2003-07-15  Karl Berry  <karl@gnu.org>
94366
94367         * lib/vasnprintf.c: update from gettext.
94368
94369 2003-07-15  Karl Berry  <karl@gnu.org>
94370
94371         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94372         gets expanded when surrounded by '$'.
94373
94374 2003-07-15  Jim Meyering  <jim@meyering.net>
94375
94376         * modules/save-cwd: Don't depend on error.  From Derek Price.
94377
94378 2003-07-15  Jim Meyering  <jim@meyering.net>
94379
94380         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94381
94382 2003-07-14  Simon Josefsson  <jas@extundo.com>
94383
94384         * modules/mempcpy: New file.
94385         * MODULES.html.sh (func_all_modules): Add mempcpy.
94386
94387 2003-07-14  Simon Josefsson  <jas@extundo.com>
94388
94389         * m4/mempcpy.m4: New file.
94390
94391 2003-07-14  Simon Josefsson  <jas@extundo.com>
94392
94393         * lib/mempcpy.h: New file.
94394         * lib/mempcpy.c: New file.
94395
94396 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94397
94398         * modules/getdate, modules/posixtm: Depend on mktime.
94399
94400 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94401
94402         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94403         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94404         unicodeio.c, unicodeio.h, unlocked-io.h:
94405         Switch from LGPL to GPL.
94406
94407 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94408
94409         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94410         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94411         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94412         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94413         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94414         updated automatically by ../config/srclist-update.  This changes
94415         their license from LPGL to GPL.
94416
94417 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94418
94419         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94420         assumed to refer to the root of the most recent stable gettext version.
94421         * config/srclistvars.sh: Add defaults for eggert.
94422         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94423         Match "This program" as well as "The program".  This is needed
94424         for gettext.
94425
94426 2003-07-14  Jim Meyering  <jim@meyering.net>
94427
94428         Don't emit diagnostics.  Let callers do that.
94429         * lib/save-cwd.c: Don't include "error.h".
94430         (save_cwd): Don't call error.  Ensure that errno is valid
94431         when returning nonzero.
94432
94433         * lib/save-cwd.h (restore_cwd): Update prototype.
94434         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94435         Simplify.  Don't call error upon failure.  Let callers do that.
94436         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94437         when auditing is enabled.  But don't bother updating the #if.
94438
94439 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94440
94441         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94442         it breaks C++ compilation.
94443         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94444
94445 2003-07-10  Simon Josefsson  <jas@extundo.com>
94446
94447         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94448
94449 2003-07-10  Jim Meyering  <jim@meyering.net>
94450
94451         * m4/clock_time.m4: Remove trailing blank.
94452         * m4/intmax_t.m4: Likewise.
94453
94454 2003-07-10  Jim Meyering  <jim@meyering.net>
94455
94456         * lib/vasnprintf.c: Remove trailing blanks.
94457         Make cpp indentation consistent.
94458
94459 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94460
94461         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94462         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94463         Switch from LGPL to GPL.
94464
94465 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94466
94467         * config/srclist.txt: Sort sublists.  Add
94468         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94469         that differ from gnulib for one reason or another; we'd like this list
94470         to be smaller but for now let's document what we have.
94471
94472 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94473
94474         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94475         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94476         and sweeter "eval x=$x".
94477         * config/srclist.txt: Get lib/argp* from glibc.
94478
94479 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94480
94481         * lib/mktime.c: Fix some boundary cases and remove need for floating
94482         point.
94483
94484         Issue a compile-time diagnostic if time_t is floating point, or if
94485         two's complement arithmetic is not in effect, or if arithmetic
94486         right shift does not propagate the sign.  These assumptions were
94487         all in the original code but they weren't checked.
94488
94489         (TIME_T_MIDPOINT, verify): New macros.
94490         (__isleap): Remove; it has integer overflow problems.
94491         (leapyear): New function, without those problems.
94492         (ydhms_tm_diff): Remove; splitting into two parts.
94493         (ydhms_diff): New function, containing the arithmetic part of
94494         the old ydhms_tm_diff function.  Issue a compile-time
94495         diagnostic if we are not using C99 integer division.
94496         Avoid casts when possible.
94497         (guess_time_tm): New function, containing the checking part of
94498         the old ydhms_tm_diff function.  Return the new value, rather than
94499         the difference between it and the old.  Accept a new argument T
94500         so that *T specifies the old value.  Check for overflow in the result.
94501
94502         (__mktime_internal): Use a time_t offset, not a long int offset.
94503         This undoes the 2003-06-04 change, which is no longer needed now
94504         that we have better overflow checking.
94505         (localtime_offset): Likewise.
94506
94507         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94508         and long are 64-bit but int is only 32-bit.
94509         (ydhms_diff): Use long int to store year1 and yday1.
94510         Issue a compile-time diagnostic if long int is not wide enough.
94511
94512         (__mktime_internal): Use long int to store adjusted year and yday.
94513         Use plain C rather than preprocessor commands, if that doesn't
94514         affect efficiency.
94515         Check for overflow (and try to repair) after each probe
94516         rather than checking only at the very end.  This avoids some bugs
94517         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94518         does not equal GMT offset at maximum time).
94519         Use integer to check for overflow rather than floating point; this
94520         is more portable to non-IEEE hosts, and is a tad faster.
94521         When we detect that we are oscillating between two values,
94522         don't check whether tm_isdst has the requested value, since
94523         we already know the answer.  When tm_isdst has the wrong value,
94524         use a different heuristic to find the right one, based on the
94525         extreme values actually observed in practice in tz2003a,
94526         rather than the (overly optimistic) "previous 3 calendar quarters".
94527
94528         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94529         "T const" to accommodate glibc style.
94530         (check_result): Use less-confusing report format.  "long" -> "long int.
94531         (main): Likewise.
94532         Don't loop if the iteration overflows time_t.
94533         Allow a negative step in the iteration.
94534
94535 2003-07-06  Karl Berry  <karl@gnu.org>
94536
94537         * config/depcomp: update from automake.
94538         * config/config.sub: update from prep.
94539
94540 2003-07-03  Karl Berry  <karl@gnu.org>
94541
94542         * config/config.guess: update from prep.
94543
94544 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94545
94546         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94547         xreadlink.c now includes it unconditionally.
94548
94549 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94550
94551         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94552         having it depend on HAVE_SYS_TYPES_H.
94553
94554 2003-07-01  Bruno Haible  <bruno@clisp.org>
94555
94556         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94557         <sys/types.h> should be sufficient.
94558         Reported by Paul Eggert.
94559
94560 2003-06-26  Karl Berry  <karl@gnu.org>
94561
94562         * config/depcomp: update from automake.
94563
94564 2003-06-26  Bruno Haible  <bruno@clisp.org>
94565
94566         * modules/human: Depend on module stdbool.
94567
94568 2003-06-25  Bruno Haible  <bruno@clisp.org>
94569
94570         * modules/readlink: New file.
94571         * modules/xreadlink: Depend on it.
94572         * MODULES.html.sh (func_all_modules): Add readlink.
94573
94574 2003-06-25  Bruno Haible  <bruno@clisp.org>
94575
94576         * m4/readlink.m4: New file.
94577
94578 2003-06-25  Bruno Haible  <bruno@clisp.org>
94579
94580         * lib/readlink.c: New file.
94581
94582 2003-06-22  Karl Berry  <karl@gnu.org>
94583
94584         * config/srclist.txt: update mkinstalldirs from automake.
94585         * config/mkinstalldirs: update.
94586
94587 2003-06-22  Bruno Haible  <bruno@clisp.org>
94588
94589         Portability to mingw32.
94590         * m4/ssize_t.m4: New file, from GNU gettext.
94591         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94592         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94593
94594 2003-06-22  Bruno Haible  <bruno@clisp.org>
94595
94596         * modules/safe-read: Add m4/ssize_t.m4.
94597         * modules/xreadlink: Add m4/ssize_t.m4.
94598
94599 2003-06-20  Bruno Haible  <bruno@clisp.org>
94600
94601         Assume C89, so PARAMS isn't needed.
94602         * lib/unicodeio.h (PARAMS): Remove.
94603         * lib/unicodeio.c: Don't use PARAMS.
94604
94605 2003-06-18  Karl Berry  <karl@gnu.org>
94606
94607         * config/config.{guess,sub}: update from prep.
94608
94609 2003-06-18  Jim Meyering  <jim@meyering.net>
94610
94611         Merge changes from coreutils.
94612         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94613         Remove explicit declarations of xmalloc and realloc.
94614         Include xalloc.h.
94615         (read_utmp): Remove anachronistic cast of xmalloc.
94616
94617 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94618
94619         Assume C89, so PARAMS isn't needed.
94620         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94621         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94622         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94623         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94624         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94625         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94626         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94627         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94628         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94629         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94630         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94631         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94632         no longer needed. Anyway, config.h should always be included before any
94633         other file.
94634
94635 2003-06-11  Simon Josefsson  <jas@extundo.com>
94636
94637         * modules/sysexits: New file.
94638         * MODULES.html.sh (func_all_modules): Add sysexits.
94639
94640 2003-06-11  Simon Josefsson  <jas@extundo.com>
94641
94642         * lib/sysexit_.h: New file.
94643
94644 2003-06-11  Derek Price  <derek@ximbiot.com>
94645
94646         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94647         necessary.
94648
94649 2003-06-11  Bruno Haible  <bruno@clisp.org>
94650
94651         * m4/sysexits.m4: New file.
94652
94653 2003-06-10  Simon Josefsson  <jas@extundo.com>
94654
94655         * lib/argp.h: New file, from glibc.
94656         * lib/argp-ba.c: New file, from glibc.
94657         * lib/argp-eexst.c: New file, from glibc.
94658         * lib/argp-fmtstream.c: New file, from glibc.
94659         * lib/argp-fmtstream.h: New file, from glibc.
94660         * lib/argp-fs-xinl.c: New file, from glibc.
94661         * lib/argp-help.c: New file, from glibc.
94662         * lib/argp-namefrob.h: New file, from glibc.
94663         * lib/argp-parse.c: New file, from glibc.
94664         * lib/argp-pv.c: New file, from glibc.
94665         * lib/argp-pvh.c: New file, from glibc.
94666         * lib/argp-xinl.c: New file, from glibc.
94667
94668 2003-06-10  Simon Josefsson  <jas@extundo.com>
94669
94670         * modules/strchrnul: New file.
94671
94672 2003-06-10  Simon Josefsson  <jas@extundo.com>
94673
94674         * modules/argp: New file.
94675
94676 2003-06-10  Simon Josefsson  <jas@extundo.com>
94677
94678         * m4/strchrnul.m4: New file.
94679
94680 2003-06-10  Simon Josefsson  <jas@extundo.com>
94681
94682         * lib/strchrnul.h: New file.
94683         * lib/strchrnul.c: New file.
94684
94685 2003-06-10  Bruno Haible  <bruno@clisp.org>
94686
94687         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94688
94689 2003-06-07  Karl Berry  <karl@gnu.org>
94690
94691         * config/config.{guess,sub}: update from prep.
94692
94693 2003-06-07  Jim Meyering  <jim@meyering.net>
94694
94695         * modules/strtod: Use $(...) notation, not @...@ for
94696         AC_REPLACE'd variables.
94697         * modules/localcharset: Likewise.
94698
94699 2003-06-07  Jim Meyering  <jim@meyering.net>
94700
94701         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94702         in place of my name in the copyright comment.
94703         Remove definition and uses of __P.
94704
94705         From coreutils.
94706         * lib/stat.c: Don't declare xmalloc explicitly.
94707         Instead, include "xalloc.h".
94708         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94709         xrealloc, and xcalloc return values.
94710         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94711         Improve comment.
94712         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94713
94714 2003-06-07  Bruno Haible  <bruno@clisp.org>
94715
94716         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94717         avoid AC_CONFIG_LINKS.
94718         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94719         fnmatch.h, to avoid AC_CONFIG_LINKS.
94720         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94721
94722 2003-06-07  Bruno Haible  <bruno@clisp.org>
94723
94724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94725         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94726         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94727         directory.
94728         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94729         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94730         directory.
94731
94732 2003-06-06  Jim Meyering  <jim@meyering.net>
94733
94734         Merge from coreutils.
94735         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94736         Consolidate declarations and initializations of *_base* locals.
94737
94738         Merge from coreutils.
94739         This avoids a core dump on systems without GNU putenv,
94740         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94741         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94742         (unsetenv): New static function, from GNU libc.
94743         (rpl_putenv): Use it.
94744
94745         * lib/modechange.c: Remove trailing blanks.
94746
94747         Merge from coreutils.
94748         * lib/fsusage.c: Remove declaration of statfs.
94749         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94750
94751         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94752
94753 2003-06-06  Jim Meyering  <jim@meyering.net>
94754
94755         * lib/stdbool_.h: Renamed from stdbool.h.in.
94756
94757 2003-06-06  Jim Meyering  <jim@meyering.net>
94758             Bruno Haible  <bruno@clisp.org>
94759
94760         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94761         Adjust Makefile.am snippet not to redirect directly to target.
94762         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94763
94764 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94765
94766         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94767         mismatch, look in future quarters as well as past.  This fixes a
94768         bug when processing fall-backwards gaps immediately after a long
94769         period of daylight-saving time.
94770
94771         * lib/mktime.c: Assume freestanding C89 or better.
94772         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94773         (__P): Remove; not used.
94774         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94775         (mktime, not_equal_tm, print_tm, check_result,
94776         main): Use prototypes.  Use const * where appropriate.
94777         (main): Fix typo in testing code that uncovered by above changes.
94778         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94779
94780 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94781
94782         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94783         locale.h, localeconv.  This merges changes from coreutils.
94784
94785         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94786         It can be removed after the next Autoconf is released.
94787         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94788         needed.
94789
94790 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94791
94792         * lib/mktime.c: Fix Debian bug 177940
94793         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94794         (localtime_offset): Now long int, not time_t, because we want it
94795         to be guaranteed to be signed.  All uses changed.
94796         (__mktime_internal): If overflow would occur when adding offset,
94797         don't add it.
94798
94799         Merge 'human' changes from coreutils.  Rewrite to support
94800         locale-specific notations like thousands separators.
94801         * lib/human.c: Simplify authorship notice.
94802         Include human.h immediately after config.h.
94803         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94804         <limits.h>: Do not include, since human.h does.
94805         (SIZE_MAX, UINTMAX_MAX): New macros.
94806         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94807         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94808         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94809         (power_letter): Renamed from suffixes.
94810         (generate_suffix_backwards): Remove.
94811         (adjust_value): Now takes int style (because of human.h changes)
94812         and long double value (for greater precision on some platforms).
94813         (group_number): New function.
94814         (human_readable): Use it.  Use integer options, not enum.
94815         Put the options before the sizes in the arg list.
94816         Support all the new options.
94817         The old human_readable function has been removed;
94818         use inttostr.h instead.
94819         (human_readable, default_block_size, humblock):
94820         Use uintmax_t, not int, for block sizes.
94821         (human_readable_inexact, block_size_types): Remove.
94822         (block_size_opts): New constant.
94823         (human_options): Renamed from human_block_size, with new signature
94824         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94825         * lib/human.h: Add copyright and authorship notice.
94826         Include <limits.h> and <stdbool.h> unconditionally.
94827         (PARAMS): Remove.  All uses removed.
94828         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94829         (enum human_inexact_style): Remove tag; now a nameless enum.
94830         (human_floor, human_ceiling, human_round_to_even): Now have
94831         values 2, 0, 1 rather than -1, 1, 0.
94832         (human_group_digits, human_suppress_point_zero, human_autoscale,
94833         human_base_1024, human_SI, human_B): New constants.
94834         (human_readable_inexact, human_block_size): Remove.
94835         (human_readable): Size args are now uintmax_t, not int.
94836         (human_options): New decl.
94837
94838         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94839         unnecessary now that we assume C89 or better.  This change
94840         imported from coreutils.
94841
94842         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94843         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94844         in the 2003-05-30 sync from glibc.
94845
94846         .h files should stand alone, but we shouldn't include <sys/types.h>
94847         if we can get away with just <stddef.h>.
94848
94849         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94850         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94851         rather than <sys/types.h>, as we merely need size_t.
94852         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94853         to get size_t.
94854         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94855         Include <stdio.h>, to get FILE.
94856         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94857         memcasecmp.h has included <stddef.h> and all we need is size_t.
94858         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94859         our interface, instead of including <sys/types.h>
94860
94861 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94862
94863         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94864         now, as glibc mktime is buggy on non-glibc systems.
94865
94866 2003-06-03  Karl Berry  <karl@gnu.org>
94867
94868         * config/config.sub: update from prep.
94869
94870 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94871
94872         [from coreutils]
94873         Fix some minor time-related bugs with POSIX time arguments.
94874         Some valid time stamps were being rejected (notably -1, and
94875         time stamps before 1900 on 64-bit hosts).  And some invalid
94876         time stamps were being accepted, e.g. September 31.
94877
94878         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94879         that we can return (time_t) -1 successfully.
94880         * lib/posixtm.c: Likewise.
94881         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94882         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94883         (t): Remove static var.
94884         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94885         of static var.  All uses changed.
94886         (year): Do not reject years before 1900; they can occur with
94887         64-bit time_t.
94888         (posix_time_parse): Do not check for out-of-range components;
94889         that is now the caller's responsibility, since our checks were
94890         only approximations.
94891         (posixtime): Use mktime to check for out-of-range components,
94892         since it knows them exactly.
94893         If mktime returns (time_t) -1, check whether an error actually occurred
94894         by invoking localtime on -1.
94895         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94896         posixtime failures better.
94897         Improve the test data (in comments only).
94898
94899 2003-06-02  Karl Berry  <karl@gnu.org>
94900
94901         * config/mkinstalldirs (version): new variable.
94902         (--version): new option.
94903         (usage): improve message.
94904
94905 2003-05-30  Karl Berry  <karl@gnu.org>
94906
94907         * lib/mktime.c: update from libc.
94908
94909 2003-05-30  Bruno Haible  <bruno@clisp.org>
94910
94911         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94912         * config/config.rpath: Upgrade to gettext-0.12.1.
94913
94914 2003-05-30  Bruno Haible  <bruno@clisp.org>
94915
94916         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94917         * m4/nls.m4: New file, from gettext-0.12.1.
94918         * m4/po.m4: New file, from gettext-0.12.1.
94919         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94920
94921 2003-05-30  Bruno Haible  <bruno@clisp.org>
94922
94923         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94924         * lib/localcharset.h: Likewise.
94925         * lib/localcharset.c: Likewise.
94926
94927 2003-05-29  Karl Berry  <karl@gnu.org>
94928
94929         * config/config.rpath: update from gettext.
94930
94931 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94932
94933         Assume the headers required for C89 freestanding compilers.
94934         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94935         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94936         * m4/human.m4 (gl_HUMAN): Likewise.
94937         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94938         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94939         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94940         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94941         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94942         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94943
94944 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94945
94946         Assume the headers required for C89 freestanding compilers.
94947         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94948         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94949         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94950         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94951         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94952         define, since <limits.h> is guaranteed to do that.
94953         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94954         * lib/exclude.c: Include <stdbool.h> unconditionally.
94955         * lib/tempname.c: Include <stddef.h> unconditionally.
94956         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94957         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94958         <stddef.h> does that.
94959         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94960         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94961         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94962         needed.
94963         * lib/xstrtol.c: Likewise.
94964         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94965         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94966
94967         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94968         warnings on some platforms.
94969
94970         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94971         arbitrarily.
94972
94973 2003-05-26  Jim Meyering  <jim@meyering.net>
94974
94975         Merge in a change from coreutils:
94976         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94977         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94978         that condition, rather than `-1' which is slightly misleading.
94979         Change the name of the cache variable to have the gl_ prefix.
94980         Prompted by a patch from Richard Dawe for DJGPP.
94981
94982 2003-05-24  Karl Berry  <karl@gnu.org>
94983
94984         * config/config.guess: update from prep.
94985
94986 2003-05-22  Karl Berry  <karl@gnu.org>
94987
94988         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94989
94990 2003-05-20  Karl Berry  <karl@gnu.org>
94991
94992         * config/config.guess: update from prep.
94993
94994 2003-05-18  Karl Berry  <karl@gnu.org>
94995
94996         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94997         might actually be set by the user.
94998
94999         * config/depcomp, install-sh, mdate-sh: update from automake.
95000
95001 2003-05-17  Bruno Haible  <bruno@clisp.org>
95002
95003         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95004         invalid expansion for AC_EGREP_CPP.
95005         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95006         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95007         Suggested by Akim Demaille <akim@epita.fr> in
95008         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95009
95010 2003-05-12  Jim Meyering  <jim@meyering.net>
95011
95012         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95013         the space-padded-by-default conversion specifiers, %e, %k, %l.
95014
95015 2003-05-12  Bruno Haible  <bruno@clisp.org>
95016
95017         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95018         the string is longer than 4 KB.
95019
95020 2003-05-11  Karl Berry  <karl@gnu.org>
95021
95022         * config/config.{guess,sub}: update from prep.
95023
95024 2003-05-09  Bruno Haible  <bruno@clisp.org>
95025
95026         * modules/error: Add m4/strerror_r.m4 to file list.
95027
95028 2003-05-03  Bruno Haible  <bruno@clisp.org>
95029
95030         Upgrade to Unicode-4.0.
95031         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95032         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95033         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95034         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95035         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95036         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95037         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95038         Change width of U+E0100..U+E01EF from 1 to 0.
95039
95040 2003-04-25  Jim Meyering  <jim@meyering.net>
95041
95042         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95043         of type size_t, not int.
95044
95045 2003-04-25  Bruno Haible  <bruno@clisp.org>
95046
95047         * lib/copy-file.c: Include <stddef.h>, for size_t.
95048
95049 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95050
95051         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95052         code which expansion is under static control.  Patch imported from
95053         Akim Demaille's patch to Bison; see
95054         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95055
95056 2003-04-14  Bruno Haible  <bruno@clisp.org>
95057
95058         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95059
95060 2003-04-11  Jim Meyering  <jim@meyering.net>
95061
95062         Merge changes from Coreutils.
95063
95064         2003-03-22  Jim Meyering  <jim@meyering.net>
95065
95066         * lib/strftime.c (widen): Cast alloca return value to proper type.
95067
95068         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95069
95070         From GNU libc.
95071         * lib/strftime.c (my_strftime): Handle very large width
95072         specifications for numeric values correctly.  Improve checks for
95073         overflow.
95074
95075         2003-01-19  Jim Meyering  <jim@meyering.net>
95076
95077         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95078         definitions.
95079         (nl_get_alt_digit) [! defined my_strftime]: Define.
95080         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95081         _nl_get_alt_digit and _nl_get_walt_digit.
95082
95083         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95084         libc. These changes have no effect outside of _LIBC.
95085
95086 2003-04-10  Bruno Haible  <bruno@clisp.org>
95087
95088         * modules/findprog: New file.
95089         * MODULES.html.sh (func_all_modules): Add it.
95090
95091 2003-04-10  Bruno Haible  <bruno@clisp.org>
95092
95093         * m4/findprog.m4: New file.
95094         * m4/eaccess.m4: New file.
95095
95096 2003-04-10  Bruno Haible  <bruno@clisp.org>
95097
95098         * lib/findprog.h: New file, from GNU gettext.
95099         * lib/findprog.c: New file, from GNU gettext.
95100
95101 2003-04-05  Jim Meyering  <jim@meyering.net>
95102
95103         Merge changes from Coreutils.
95104
95105         * lib/exclude.h (PARAMS): Remove definition and uses.
95106         * lib/exclude.c: Remove uses of `PARAMS'.
95107
95108         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95109         Add test-cases for DOS filenames. Declare program_name.
95110         (main): Set up program_name.  Patch by Rich Dawe.
95111
95112         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95113         error from mntctl.
95114         Use mntctl's return value to drive the entry-processing loop, since
95115         we can't rely on the value of the vmt_length member in the last
95116         entry.  On some systems doing so could result in exhausting
95117         virtual memory.  Based in part on a patch from Mike Jetzer.
95118
95119 2003-04-04  Bruno Haible  <bruno@clisp.org>
95120
95121         * modules/linebreak: New file.
95122         * MODULES.html.sh (func_all_modules): Add it.
95123
95124 2003-04-04  Bruno Haible  <bruno@clisp.org>
95125
95126         * m4/linebreak.m4: New file.
95127
95128 2003-04-04  Bruno Haible  <bruno@clisp.org>
95129
95130         * lib/linebreak.h: New file, from GNU gettext.
95131         * lib/linebreak.c: New file, from GNU gettext with slight
95132         modifications.
95133         * lib/lbrkprop.h: New file, from GNU gettext.
95134
95135 2003-04-03  Bruno Haible  <bruno@clisp.org>
95136
95137         * modules/utf8-ucs4: New file.
95138         * modules/utf16-ucs4: New file.
95139         * modules/ucs4-utf8: New file.
95140         * modules/ucs4-utf16: New file.
95141         * MODULES.html.sh (func_all_modules): Add them.
95142
95143 2003-04-03  Bruno Haible  <bruno@clisp.org>
95144
95145         * m4/utf-ucs4.m4: New file.
95146         * m4/ucs4-utf.m4: New file.
95147
95148 2003-04-03  Bruno Haible  <bruno@clisp.org>
95149
95150         * lib/utf8-ucs4.h: New file, from GNU gettext.
95151         * lib/utf16-ucs4.h: New file, from GNU gettext.
95152         * lib/ucs4-utf8.h: New file, from GNU gettext.
95153         * lib/ucs4-utf16.h: New file, from GNU gettext.
95154
95155 2003-04-02  Bruno Haible  <bruno@clisp.org>
95156
95157         * modules/binary-io: New file.
95158         * MODULES.html.sh (func_all_modules): Add it.
95159
95160 2003-04-02  Bruno Haible  <bruno@clisp.org>
95161
95162         * lib/binary-io.h: New file, from GNU gettext.
95163
95164 2003-04-01  Bruno Haible  <bruno@clisp.org>
95165
95166         * modules/pathname: New file.
95167         * MODULES.html.sh (func_all_modules): Add it.
95168
95169 2003-04-01  Bruno Haible  <bruno@clisp.org>
95170
95171         * lib/pathname.h: New file, from GNU gettext.
95172         * lib/concatpath.c: New file, from GNU gettext.
95173
95174 2003-03-30  Bruno Haible  <bruno@clisp.org>
95175
95176         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95177
95178 2003-03-30  Bruno Haible  <bruno@clisp.org>
95179
95180         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95181         function chown() doesn't exist.
95182
95183 2003-03-28  Bruno Haible  <bruno@clisp.org>
95184
95185         * modules/copy-file: New file.
95186         * MODULES.html.sh (func_all_modules): Add it.
95187
95188 2003-03-28  Bruno Haible  <bruno@clisp.org>
95189
95190         * m4/copy-file.m4: New file.
95191
95192 2003-03-28  Bruno Haible  <bruno@clisp.org>
95193
95194         * lib/copy-file.h: New file, from GNU gettext.
95195         * lib/copy-file.c: New file, from GNU gettext.
95196
95197 2003-03-18  Jim Meyering  <jim@meyering.net>
95198
95199         * lib/quote.c (quote_n): Fix typo in comment.
95200
95201 2003-03-18  Bruno Haible  <bruno@clisp.org>
95202
95203         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95204         checking.
95205         * m4/onceonly_2_57.m4: Likewise.
95206
95207 2003-03-17  Bruno Haible  <bruno@clisp.org>
95208
95209         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95210         (m4_quote): Remove macro.
95211         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95212
95213 2003-03-14  Jim Meyering  <jim@meyering.net>
95214
95215         Merge changes from Coreutils.
95216         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95217         to be const, in order to avoid warnings.
95218         (obstack_room): Likewise.
95219         (obstack_empty_p): Likewise.
95220
95221 2003-03-14  Bruno Haible  <bruno@clisp.org>
95222
95223         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95224         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95225
95226 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95227
95228         Merge changes from Bison.
95229         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95230         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95231         when compiling Bison 1.875's `bitset bset = obstack_alloc
95232         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95233         * lib/hash.c: Include <stdbool.h> unconditionally.
95234
95235 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95236
95237         * m4/onceonly.m4 (m4_quote): New macro.
95238         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95239         Quote AC_FOREACH variable-expansions properly.
95240
95241 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95242
95243         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95244
95245 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95246
95247         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95248         Reported by Bruce Becker; see:
95249         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95250
95251 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95252             Bruno Haible  <bruno@clisp.org>
95253
95254         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95255         Reported by John Hughes, see
95256         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95257
95258 2003-02-20  Bruno Haible  <bruno@clisp.org>
95259
95260         * MODULES.html.sh (func_all_modules): Add poll.
95261
95262 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95263
95264         * modules/poll: New file.
95265
95266 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95267
95268         * lib/poll_.h: New file.
95269         * lib/poll.c: New file.
95270
95271 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95272
95273         * m4/poll.m4: New file.
95274
95275 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95276
95277         * modules/mathl: New file.
95278
95279 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95280
95281         * lib/mathl.h: New file.
95282         * lib/acosl.c: New file.
95283         * lib/asinl.c: New file.
95284         * lib/atanl.c: New file.
95285         * lib/ceill.c: New file.
95286         * lib/cosl.c: New file.
95287         * lib/expl.c: New file.
95288         * lib/floorl.c: New file.
95289         * lib/frexpl.c: New file.
95290         * lib/ldexpl.c: New file.
95291         * lib/logl.c: New file.
95292         * lib/sincosl.c: New file.
95293         * lib/sinl.c: New file.
95294         * lib/sqrtl.c: New file.
95295         * lib/tanl.c: New file.
95296         * lib/trigl.c: New file.
95297         * lib/trigl.h: New file.
95298
95299 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95300
95301         * m4/mathl.m4: New file.
95302
95303 2003-02-18  Bruno Haible  <bruno@clisp.org>
95304
95305         * MODULES.html.sh (func_all_modules): Add mathl.
95306
95307 2003-02-17  Bruno Haible  <bruno@clisp.org>
95308
95309         * modules/mkdtemp: New module.
95310         * MODULES.html.sh (func_all_modules): Add it.
95311
95312 2003-02-17  Bruno Haible  <bruno@clisp.org>
95313
95314         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95315
95316 2003-02-17  Bruno Haible  <bruno@clisp.org>
95317
95318         * lib/mkdtemp.h: New file, from GNU gettext.
95319         * lib/mkdtemp.c: New file, from GNU gettext.
95320
95321 2003-02-02  Jim Meyering  <jim@meyering.net>
95322
95323         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95324         e.g. glibc-2.2.93.
95325
95326 2003-01-31  Bruno Haible  <bruno@clisp.org>
95327
95328         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95329         'rpl_rename'.
95330         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95331         'rpl_strnlen'.
95332         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95333         'rpl_strtod'.
95334         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95335         'rpl_utime'.
95336
95337 2003-01-31  Bruno Haible  <bruno@clisp.org>
95338
95339         * lib/rename.c: #undef rename before defining rpl_rename.
95340         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95341
95342 2003-01-30  Bruno Haible  <bruno@clisp.org>
95343
95344         * modules/vasnprintf, modules/vasprintf: New modules.
95345         * MODULES.html.sh (func_all_modules): Add them.
95346
95347 2003-01-30  Bruno Haible  <bruno@clisp.org>
95348
95349         * m4/signed.m4: New file, from GNU gettext.
95350         * m4/longdouble.m4: New file, from GNU gettext.
95351         * m4/wchar_t.m4: New file, from GNU gettext.
95352         * m4/wint_t.m4: New file, from GNU gettext.
95353         * m4/vasnprintf.m4: New file.
95354         * m4/vasprintf.m4: New file.
95355
95356 2003-01-30  Bruno Haible  <bruno@clisp.org>
95357
95358         * lib/printf-args.h: New file, from GNU gettext.
95359         * lib/printf-args.c: New file, from GNU gettext.
95360         * lib/printf-parse.h: New file, from GNU gettext.
95361         * lib/printf-parse.c: New file, from GNU gettext.
95362         * lib/vasnprintf.h: New file, from GNU gettext.
95363         * lib/vasnprintf.c: New file, from GNU gettext.
95364         * lib/asnprintf.c: New file, from GNU gettext.
95365         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95366         * lib/vasprintf.c: New file, from GNU gettext.
95367         * lib/asprintf.c: New file, from GNU gettext.
95368
95369 2003-01-29  Bruno Haible  <bruno@clisp.org>
95370
95371         * modules/stpncpy: New module.
95372         * MODULES.html.sh (func_all_modules): Add it.
95373
95374 2003-01-29  Bruno Haible  <bruno@clisp.org>
95375
95376         * m4/stpncpy.m4: New file.
95377
95378 2003-01-29  Bruno Haible  <bruno@clisp.org>
95379
95380         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95381         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95382
95383 2003-01-28  Bruno Haible  <bruno@clisp.org>
95384
95385         * modules/c-ctype: New module.
95386         * MODULES.html.sh (func_all_modules): Add it.
95387
95388 2003-01-28  Bruno Haible  <bruno@clisp.org>
95389
95390         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95391         Paul Eggert.
95392         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95393         Paul Eggert.
95394
95395 2003-01-27  Bruno Haible  <bruno@clisp.org>
95396
95397         * modules/xsetenv: New module.
95398         * MODULES.html.sh (func_all_modules): Add it.
95399
95400 2003-01-27  Bruno Haible  <bruno@clisp.org>
95401
95402         * lib/xsetenv.h: New file, from GNU gettext.
95403         * lib/xsetenv.c: New file, from GNU gettext.
95404
95405 2003-01-23  Jim Meyering  <jim@meyering.net>
95406
95407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95408         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95409
95410 2003-01-23  Bruno Haible  <bruno@clisp.org>
95411
95412         * modules/minmax: New module.
95413         * MODULES.html.sh (func_all_modules): Add it.
95414
95415 2003-01-23  Bruno Haible  <bruno@clisp.org>
95416
95417         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95418         Eggert.
95419
95420 2003-01-22  Bruno Haible  <bruno@clisp.org>
95421
95422         * modules/exit: New module.
95423         * MODULES.html.sh (func_all_modules): Add it.
95424
95425 2003-01-22  Bruno Haible  <bruno@clisp.org>
95426
95427         * lib/exit.h: New file, from GNU gettext.
95428
95429 2003-01-19  Bruno Haible  <bruno@clisp.org>
95430
95431         * gnulib-tool: Recognize option --extract-maintainer.
95432         (func_get_maintainer): New function.
95433         * modules/*: Add Maintainer entry.
95434
95435 2003-01-16  Jim Meyering  <jim@meyering.net>
95436
95437         * m4/regex.m4: The `regex' struct is both input and output.
95438         Initialize it before each use.  Patch by Tim Waugh.
95439
95440 2003-01-16  Bruno Haible  <bruno@clisp.org>
95441
95442         * MODULES.html.sh: Add a table of contents. Add the module name as
95443         leftmost column. Add hyperlinks.
95444
95445 2003-01-15  Bruno Haible  <bruno@clisp.org>
95446
95447         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95448
95449 2003-01-15  Bruno Haible  <bruno@clisp.org>
95450
95451         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95452         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95453         suffix.
95454
95455 2003-01-15  Bruno Haible  <bruno@clisp.org>
95456
95457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95458
95459 2003-01-15  Bruno Haible  <bruno@clisp.org>
95460
95461         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95462         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95463
95464 2003-01-14  Jim Meyering  <jim@meyering.net>
95465
95466         * lib/same.c (same_name): Tweak a comment.
95467
95468 2003-01-14  Bruno Haible  <bruno@clisp.org>
95469
95470         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95471         when a string comparison is sufficient.
95472
95473 2003-01-14  Bruno Haible  <bruno@clisp.org>
95474
95475         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95476         'unsigned int'.
95477
95478 2003-01-14  Bruno Haible  <bruno@clisp.org>
95479
95480         * lib/hash-pjw.c: Add comment about low quality of this function.
95481
95482 2003-01-13  Bruno Haible  <bruno@clisp.org>
95483
95484         * modules/stpcpy: Distribute lib/stpcpy.h.
95485         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95486
95487 2003-01-13  Bruno Haible  <bruno@clisp.org>
95488
95489         * modules/*: Add a description.
95490         * modules/strpbrk: Fix Makefile.am snippet.
95491         * modules/strtoimax: Fix dependencies.
95492         * modules/strtoumax: Likewise.
95493
95494 2003-01-13  Bruno Haible  <bruno@clisp.org>
95495
95496         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95497         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95498         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95499
95500 2003-01-13  Bruno Haible  <bruno@clisp.org>
95501
95502         * gnulib-tool (func_create_testdir): Store config/* files in the main
95503         directory.
95504         * config.rpath: Move to ...
95505         * config/config.rpath: ... here.
95506         * modules/gettext: Contains config/config.rpath, not config.rpath.
95507         * modules/iconv: Likewise.
95508
95509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95510
95511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95512         to avoid collisions with libcurses and libreadline.
95513
95514         * m4/getstr.m4: Remove.
95515         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95516
95517 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95518
95519         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95520         to avoid collisions with libcurses and libreadline.
95521
95522         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95523         * lib/getstr.h, getstr.c: Remove.
95524         * lib/getline.c: Include "getline.h", to check interface.
95525         Move body of old getstr.c here: this defines MIN_CHUNK and
95526         declares getdelim2, which is renamed from getstr.
95527         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95528
95529         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95530         All uses changed.
95531         * lib/linebuffer.h: Likewise.
95532         (readline): Remove backward-compatibility macro.
95533
95534 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95535
95536         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95537         to avoid collisions with libcurses and libreadline.
95538         * getstr: Remove.
95539         * MODULES.html.sh: Remove getstr.
95540         * modules/getline: Depend on unlocked-io, not getstr.
95541
95542 2003-01-12  Jim Meyering  <jim@meyering.net>
95543
95544         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95545
95546 2003-01-10  Bruno Haible  <bruno@clisp.org>
95547
95548         * modules/alloca: Change Makefile.am requirements. Simplify Include
95549         requirements. Add lib/alloca_.h to file list.
95550
95551 2003-01-10  Bruno Haible  <bruno@clisp.org>
95552
95553         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95554
95555 2003-01-10  Bruno Haible  <bruno@clisp.org>
95556
95557         * lib/alloca_.h: New file.
95558         * lib/getdate.y: Unconditionally include alloca.h.
95559         * lib/makepath.c: Likewise.
95560         * lib/setenv.c: Likewise.
95561         * lib/userspec.c: Likewise.
95562
95563 2003-01-09  Karl Berry  <karl@gnu.org>
95564
95565         * MODULES.html.sh: include `dirname $0` in PATH, to find
95566         gnulib-tool.
95567
95568 2003-01-09  Bruno Haible  <bruno@clisp.org>
95569
95570         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95571         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95572
95573 2003-01-09  Bruno Haible  <bruno@clisp.org>
95574
95575         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95576
95577 2003-01-09  Bruno Haible  <bruno@clisp.org>
95578
95579         * lib/stdbool.h.in: New file.
95580
95581 2003-01-09  Bruno Haible  <bruno@clisp.org>
95582
95583         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95584         * MODULES.html.sh: Likewise.
95585
95586 2003-01-08  Jim Meyering  <jim@meyering.net>
95587
95588         * lib/full-write.c: Undefine and define-away `const' after inclusion
95589         of errno.h, not before.  Suggestion from Bruno Haible.
95590
95591 2003-01-08  Bruno Haible  <bruno@clisp.org>
95592
95593         * modules/full-read: Depend on full-write.
95594
95595 2003-01-08  Bruno Haible  <bruno@clisp.org>
95596
95597         * lib/safe-read.c: Include specification header first, to ensure its
95598         selfcontainedness.
95599         * lib/full-write.c: Likewise.
95600
95601 2003-01-07  Jim Meyering  <jim@meyering.net>
95602
95603         * lib/full-write.c: Rework so that it may serve to define full_read,
95604         too.
95605         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95606
95607 2003-01-07  Bruno Haible  <bruno@clisp.org>
95608
95609         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95610         <inttypes.h>.
95611         * lib/xstrtol.h: Likewise.
95612         * lib/xstrtoimax.c: Likewise.
95613         * lib/xstrtoumax.c: Likewise.
95614         * lib/human.h: Likewise.
95615
95616         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95617         on systems that have <inttypes.h> but not <stdint.h>.
95618
95619 2003-01-07  Bruno Haible  <bruno@clisp.org>
95620
95621         * MODULES.html.sh: Add copyright notice.
95622         (missed_files): Omit CVS directory entries.
95623         (func_module): Make it work with sed-3.02.
95624         * MODULES.txt: Remove file.
95625
95626 2003-01-06  Jim Meyering  <jim@meyering.net>
95627
95628         * lib/version-etc.c: Update year in translatable copyright string.
95629
95630 2003-01-03  Karl Berry  <karl@gnu.org>
95631
95632         * config/config.{guess,sub}: update from prep.
95633
95634 2003-01-02  Karl Berry  <karl@gnu.org>
95635
95636         * doc/COPYING.DOC: belatedly updated to 1.2.
95637
95638 2003-01-01  Karl Berry  <karl@gnu.org>
95639
95640         * gnulib-tool (func_verify_module): report module name $module in
95641         error message, not $1.
95642         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95643         be created, only if it doesn't exist.
95644         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95645
95646 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95647
95648         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95649
95650 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95651
95652         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95653         memcmp if strcoll doesn't work.
95654
95655 2002-12-31  Bruno Haible  <bruno@clisp.org>
95656
95657         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95658         nonempty.
95659
95660 2002-12-31  Bruno Haible  <bruno@clisp.org>
95661
95662         * lib/memcoll.c (STRCOLL): New macro.
95663         (memcoll): Use it.
95664
95665 2002-12-31  Bruno Haible  <bruno@clisp.org>
95666
95667         * lib/localcharset.h: New file.
95668         * lib/localcharset.c: Include it.
95669         * lib/unicodeio.c: Likewise.
95670
95671 2002-12-31  Bruno Haible  <bruno@clisp.org>
95672
95673         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95674         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95675
95676 2002-12-31  Bruno Haible  <bruno@clisp.org>
95677
95678         * lib/getline.h: Include <stddef.h>, for size_t.
95679
95680         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95681         * lib/unicodeio.c: Don't include <stddef.h>.
95682
95683 2002-12-31  Bruno Haible  <bruno@clisp.org>
95684
95685         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95686         HAVE_TM_ZONE.
95687
95688 2002-12-24  Karl Berry  <karl@gnu.org>
95689
95690         * config/config.guess: update from prep.
95691
95692 2002-12-24  Bruno Haible  <bruno@clisp.org>
95693
95694         General infrasructure.
95695         * m4/README: Rewritten.
95696         * m4/onceonly.m4: New file.
95697         * m4/onceonly_2_57.m4: New file.
95698
95699         Module atexit.
95700         * m4/atexit.m4: New file.
95701
95702         Module strtod.
95703         * m4/strtod.m4: New file.
95704
95705         Module strtol.
95706         * m4/strtol.m4: New file.
95707
95708         Module strtoul.
95709         * m4/strtoul.m4: New file.
95710
95711         Module memchr.
95712         * m4/memchr.m4: New file.
95713
95714         Module memcmp.
95715         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95716         (jm_FUNC_MEMCMP): Invoke it.
95717
95718         Module memcpy.
95719         * m4/memcpy.m4: New file.
95720
95721         Module memmove.
95722         * m4/memmove.m4: New file.
95723
95724         Module memset.
95725         * m4/memset.m4: New file.
95726
95727         Module strcspn.
95728         * m4/strcspn.m4: New file.
95729
95730         Module strpbrk.
95731         * m4/strpbrk.m4: New file.
95732
95733         Module strstr.
95734         * m4/strstr.m4: New file.
95735
95736         Module strerror.
95737         * m4/strerror.m4: New file.
95738
95739         Module mktime.
95740         * m4/mktime.m4: Renamed from jm-mktime.m4.
95741         (gl_PREREQ_MKTIME): New macro.
95742         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95743
95744         Module malloc.
95745         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95746         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95747         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95748
95749         Module realloc.
95750         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95751         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95752         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95753
95754         Module strftime.
95755         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95757         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95758         gl_TM_GMTOFF.
95759         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95760
95761         Module xalloc.
95762         * m4/xalloc.m4: New file.
95763
95764         Module alloca.
95765         * m4/alloca.m4: New file.
95766
95767         Module putenv.
95768         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95769         (jm_FUNC_PUTENV): Invoke it.
95770
95771         Module setenv.
95772         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95773         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95774         when invoked twice.
95775         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95776         gt_FUNC_SETENV.
95777
95778         Module memrchr.
95779         * m4/memrchr.m4: New file.
95780
95781         Module stpcpy.
95782         * m4/stpcpy.m4: New file.
95783
95784         Module strcase.
95785         * m4/strcase.m4: New file.
95786
95787         Module strdup.
95788         * m4/strdup.m4: New file.
95789
95790         Module strnlen.
95791         * m4/strnlen.m4: New file.
95792
95793         Module strndup.
95794         * m4/strndup.m4: New file.
95795
95796         Module xstrtod.
95797         * m4/xstrtod.m4: New file.
95798
95799         Module xstrtol.
95800         * m4/xstrtol.m4: New file.
95801
95802         Module getdate.
95803         * m4/getdate.m4: New file.
95804
95805         Module unlocked-io.
95806         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95807         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95808         * m4/jm-glibc-io.m4n: Remove file.
95809
95810         Module long-options.
95811         * m4/long-options.m4: New file.
95812
95813         Module md5.
95814         * m4/md5.m4: New file.
95815
95816         Module sha.
95817         * m4/sha.m4: New file.
95818
95819         Module getstr.
95820         * m4/getstr.m4: New file.
95821
95822         Module getline.
95823         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95824         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95825         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95826         simply getline. Infoke gl_PREREQ_GETLINE.
95827
95828         Module obstack.
95829         * m4/obstack.m4: New file.
95830
95831         Module hash.
95832         * m4/hash.m4: New file.
95833
95834         Module readtokens.
95835         * m4/readtokens.m4: New file.
95836
95837         Module strverscmp.
95838         * m4/strverscmp.m4: New file.
95839
95840         Module stdbool.
95841         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95842         OSF/1.
95843
95844         Module strtoll.
95845         * m4/strtoll.m4: New file.
95846
95847         Module strtoull.
95848         * m4/strtoull.m4: New file.
95849
95850         Module strtoimax.
95851         * m4/strtoimax.m4: New file.
95852
95853         Module strtoumax.
95854         * m4/strtoumax.m4: New file.
95855
95856         Module xstrtoimax.
95857         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95858         jm_AC_PREREQ_XSTRTOIMAX.
95859         Moved the strtol prerequisites to strtol.m4.
95860         Moved the strtoll prerequisites to strtoll.m4.
95861         Moved the strtoimax prerequisites to strtoimax.m4.
95862
95863         Module xstrtoumax.
95864         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95865         jm_AC_PREREQ_XSTRTOUMAX.
95866         Moved the strtoul prerequisites to strtoul.m4.
95867         Moved the strtoull prerequisites to strtoull.m4.
95868         Moved the strtoumax prerequisites to strtoumax.m4.
95869
95870         Module chown.
95871         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95872         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95873
95874         Module dup2.
95875         * m4/dup2.m4: New file.
95876
95877         Module ftruncate.
95878         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95879         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95880
95881         Module getgroups.
95882         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95883         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95884
95885         Module gettimeofday.
95886         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95887         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95888         gl_PREREQ_GETTIMEOFDAY.
95889
95890         Module mkdir.
95891         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95892         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95893
95894         Module mkstemp.
95895         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95896         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95897         jm_AC_TYPE_UINTMAX_T.
95898         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95899
95900         Module stat.
95901         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95902         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95903
95904         Module lstat.
95905         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95906         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95907
95908         Module timespec.
95909         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95910         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95911         * m4/st_mtim.m4: Indentation.
95912
95913         Module nanosleep.
95914         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95915         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95916         gl_PREREQ_NANOSLEEP.
95917
95918         Module regex.
95919         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95920         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95921         (gl_REGEX): New macro.
95922
95923         Module rename.
95924         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95925         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95926
95927         Module rmdir.
95928         * m4/rmdir.m4: New file.
95929
95930         Module utime.
95931         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95932         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95933         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95934
95935         Module dirname.
95936         * m4/dirname.m4: New file.
95937
95938         Module getopt.
95939         * m4/getopt.m4: New file.
95940
95941         Module unistd-safer.
95942         * m4/unistd-safer.m4: New file.
95943
95944         Module fnmatch.
95945         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95946         declaration.
95947         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95948         (gl_FUNC_FNMATCH_POSIX): New macro.
95949         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95950         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95951         simply fnmatch.
95952
95953         Module exclude.
95954         * m4/exclude.m4: New file.
95955
95956         Module human.
95957         * m4/human.m4: New file.
95958
95959         Module acl.
95960         * m4/acl.m4: Nop.
95961
95962         Module backupfile.
95963         * m4/backupfile.m4: New file.
95964         * m4/d-ino.m4: Indentation.
95965
95966         Module fsusage.
95967         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95968         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95969         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95970
95971         Module dirfd.
95972         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95973         requirements.
95974
95975         Module euidaccess.
95976         * m4/euidaccess.m4: New file.
95977
95978         Module file-type.
95979         * m4/file-type.m4: New file.
95980
95981         Module fileblocks.
95982         * m4/fileblocks.m4: New file.
95983
95984         Module filemode.
95985         * m4/filemode.m4: New file.
95986
95987         Module isdir.
95988         * m4/isdir.m4: New file.
95989
95990         Module lchown.
95991         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95992         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95993
95994         Module makepath.
95995         * m4/makepath.m4: New file.
95996
95997         Module modechange.
95998         * m4/modechange.m4: New file.
95999
96000         Module mountlist.
96001         * m4/mountlist.m4: New file.
96002         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96003         Indentation.
96004
96005         Module path-concat.
96006         * m4/path-concat.m4: New file.
96007
96008         Module pathmax.
96009         * m4/pathmax.m4: New file.
96010
96011         Module same.
96012         * m4/same.m4: New file.
96013
96014         Module save-cwd.
96015         * m4/save-cwd.m4: New file.
96016
96017         Module savedir.
96018         * m4/savedir.m4: New file.
96019
96020         Module xgetcwd.
96021         * m4/xgetcwd.m4: New file.
96022         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96023
96024         Module xreadlink.
96025         * m4/xreadlink.m4: New file.
96026
96027         Module safe-read.
96028         * m4/safe-read.m4: New file.
96029
96030         Module safe-write.
96031         * m4/safe-write.m4: New file.
96032
96033         Module closeout.
96034         * m4/closeout.m4: New file.
96035
96036         Module stdio-safer.
96037         * m4/stdio-safer.m4: New file.
96038
96039         Module getpass.
96040         * m4/getpass.m4: New file.
96041
96042         Module getugroups.
96043         * m4/getugroups.m4: New file.
96044
96045         Module group-member.
96046         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96047         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96048
96049         Module idcache.
96050         * m4/idcache.m4: New file.
96051
96052         Module userspec.
96053         * m4/userspec.m4: New file.
96054
96055         Module gettime.
96056         * m4/clock_time.m4: New file.
96057         * m4/gettime.m4: New file.
96058
96059         Module settime.
96060         * m4/settime.m4: New file.
96061
96062         Module posixtm.
96063         * m4/posixtm.m4: New file.
96064
96065         Module gethostname.
96066         * m4/gethostname.m4: New file.
96067
96068         Module canon-host.
96069         * m4/canon-host.m4: New file.
96070
96071         Module gettext.
96072         * m4/codeset.m4: New file, from gettext-0.11.5.
96073         * m4/gettext.m4: New file, from gettext-0.11.5.
96074         * m4/glibc21.m4: New file, from gettext-0.11.5.
96075         * m4/iconv.m4: New file, from gettext-0.11.5.
96076         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96077         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96078         * m4/inttypes.m4: New file, from gettext-0.11.5.
96079         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96080         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96081         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96082         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96083         * m4/lib-link.m4: New file, from gettext-0.11.5.
96084         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96085         * m4/progtest.m4: New file, from gettext-0.11.5.
96086         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96087         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96088         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96089
96090         Module localcharset.
96091         * m4/localcharset.m4: New file.
96092
96093         Module hard-locale.
96094         * m4/hard-locale.m4: New file.
96095
96096         Module mbswidth.
96097         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96098         onceonly macros.
96099         * m4/mbrtowc.m4: Add comment.
96100
96101         Module memcasecmp.
96102         * m4/memcasecmp.m4: New file.
96103
96104         Module memcoll.
96105         * m4/memcoll.m4: New file.
96106
96107         Module unicodeio.
96108         * m4/unicodeio.m4: New file.
96109
96110         Module rpmatch.
96111         * m4/rpmatch.m4: New file.
96112
96113         Module yesno.
96114         * m4/yesno.m4: New file.
96115
96116         Module exitfail.
96117         * m4/exitfail.m4: New file.
96118
96119         Module c-stack.
96120         * m4/c-stack.m4 (gl_C_STACK): New macro.
96121         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96122
96123         Module error.
96124         * m4/error.m4 (gl_ERROR): New macro.
96125         (jm_PREREQ_ERROR): Use onceonly macros.
96126
96127         Module fatal.
96128         * m4/fatal.m4: New file.
96129
96130         Module getloadavg.
96131         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96132         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96133
96134         Module getpagesize.
96135         * m4/getpagesize.m4: New file.
96136
96137         Module getusershell.
96138         * m4/getusershell.m4: New file.
96139
96140         Module physmem.
96141         * m4/physmem.m4: New file.
96142
96143         Module posixver.
96144         * m4/posixver.m4: New file.
96145
96146         Module quotearg.
96147         * m4/quotearg.m4: New file.
96148
96149         Module quote.
96150         * m4/quote.m4: New file.
96151
96152         Module readutmp.
96153         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96154
96155         Module sig2str.
96156         * m4/sig2str.m4: New file.
96157
96158         Other.
96159         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96160         ulonglong.m4.
96161         * m4/intmax_t.m4: New file.
96162         * m4/d-type.m4: Indentation.
96163         * m4/jm-macros.m4: Update.
96164         * m4/prereq.m4 (jm_PREREQ): Update.
96165         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96166         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96167         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96168         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96169         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96170         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96171         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96172         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96173         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96174         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96175         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96176         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96177         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96178         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96179         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96180         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96181         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96182         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96183         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96184
96185 2002-12-24  Bruno Haible  <bruno@clisp.org>
96186
96187         * MODULES.txt: Update according to m4/ changes.
96188
96189         Module gettext.
96190         * config.rpath: New file, from gettext-0.11.5.
96191
96192         * modules/*: New module descriptions.
96193         * gnulib-tool: New file.
96194         * MODULES.html.sh: New file.
96195
96196 2002-12-21  Karl Berry  <karl@gnu.org>
96197
96198         * doc/fdl.texi: update to version 1.2.
96199
96200 2002-12-19  Karl Berry  <karl@gnu.org>
96201
96202         * config/config.guess: update from prep.
96203
96204 2002-12-18  Bruno Haible  <bruno@clisp.org>
96205
96206         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96207         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96208
96209 2002-12-17  Bruno Haible  <bruno@clisp.org>
96210
96211         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96212         stdlib.h, string.h.
96213
96214 2002-12-17  Bruno Haible  <bruno@clisp.org>
96215
96216         * lib/canon-host.c (strdup): Remove unused declaration.
96217
96218         * lib/fsusage.c: Include full_read.h.
96219         (get_fs_usage): Use full_read instead of safe_read.
96220
96221         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96222
96223 2002-12-12  Karl Berry  <karl@gnu.org>
96224
96225         * config/config.guess: update from prep.
96226
96227 2002-12-11  Bruno Haible  <bruno@clisp.org>
96228
96229         * m4/setenv.m4: New file, from gettext-0.11.5.
96230
96231 2002-12-11  Bruno Haible  <bruno@clisp.org>
96232
96233         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96234         not unsetenv().
96235         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96236         modifications:
96237
96238         2002-12-11  Bruno Haible  <bruno@clisp.org>
96239
96240                 * setenv.c (alloca): Fall back to malloc.
96241                 (freea): New macro.
96242                 (setenv): Use freea() to free memory allocated with alloca().
96243
96244         2002-11-13  Bruno Haible  <bruno@clisp.org>
96245
96246                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96247                 function declarations.
96248                 * unsetenv.c (unsetenv): Likewise.
96249
96250         2002-03-04  Bruno Haible  <bruno@clisp.org>
96251
96252                 Portability to AIX 4.3.3.
96253                 * unsetenv.c: New file, extracted from setenv.c.
96254                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96255
96256         2001-12-20  Bruno Haible  <bruno@clisp.org>
96257
96258                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96259                 use malloc instead. For SunOS 4.
96260
96261         2001-12-11  Bruno Haible  <bruno@clisp.org>
96262
96263                 * setenv.c: Declare alloca.
96264                 (compar_fn_t): New typedef.
96265                 (KNOWN_VALUE, STORE_VALUE): Use it.
96266
96267         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96268         setenv.h.
96269
96270 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96271
96272         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96273         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96274         Choose values that are less likely to collide with system fnmatch
96275         options.
96276         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96277         defined (e.g., a pure POSIX system).
96278         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96279         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96280
96281 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96282
96283         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96284         a pain in practice to deal with generated m4 files.  This change
96285         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96286
96287         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96288         and jm-glibc-io.m4, as they are no longer a special case.
96289         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96290         kludge and the auto-generation stuff.  Check only whether the
96291         functions are declared, not whether they exist, since older hosts
96292         that don't declare the functions can't use the optimization anyway.
96293
96294 2002-12-06  Jim Meyering  <jim@meyering.net>
96295
96296         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96297
96298         Merge in changes from libc's misc/error.c, in preparation
96299         for the merge of gnulib's changes back into libc.
96300
96301         * lib/error.c (_): Define only if not already defined.
96302         Move definition to follow all #include directives.
96303         Include unlocked-io.h only if !_LIBC.
96304         [_LIBC]: Include <libio/libioP.h>.
96305         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96306         (fflush): Tweak definition to use INTUSE.
96307         (putc): Define.
96308
96309 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96310
96311         * lib/alloca.c [defined emacs]: Include "lisp.h".
96312         (xalloc_die) [defined emacs]: New macro.
96313         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96314         [! defined emacs]: Include <xalloc.h>.
96315         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96316         (pointer): Typedef to POINTER_TYPE *.
96317         (malloc): Remove decl; we now always use xmalloc.
96318         (alloca): Use old-style definition, since Emacs needs this.
96319         Check for arithmetic overflow when computing combined size.
96320
96321 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96322
96323         Do not generate unlocked-io.h automatically, since it's easier to
96324         maintain it by hand.
96325
96326         * lib/unlocked-io.h: New file, from GNU diffutils,
96327         but with proper copyright notice and attribution.
96328         * lib/gen-uio: Remove.
96329         * lib/Makefile.am: Add copyright notice.
96330         (libfetish_a_SOURCES): Add unlocked-io.h.
96331         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96332         (DISTCLEANFILES, io_functions): Remove macros.
96333         (EXTRA_DIST): Remove gen_uio.
96334         (unlocked-io.h): Remove rule.
96335
96336 2002-12-04  Jim Meyering  <jim@meyering.net>
96337
96338         Reflect the fact that stat.c and lstat.c are no longer generated.
96339         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96340         (DISTCLEANFILES): Likewise.
96341         (EXTRA_DIST): Likewise.
96342         (all_local): Don't depend on stat.c or lstat.c.
96343         (stat.c, lstat.c): Remove rules.
96344         (EXTRA_DIST): Remove xstat.in.
96345
96346         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96347         * lib/stat.c: New file.  Contents mostly from xstat.in.
96348         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96349         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96350
96351         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96352         too.
96353         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96354
96355 2002-12-03  Jim Meyering  <jim@meyering.net>
96356
96357         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96358         but not semantics, to minimize the differences between these two files.
96359         (safe_read): Change comment to mention SAFE_READ_ERROR.
96360
96361         * lib/safe-read.c (IS_EINTR): Define.
96362         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96363
96364 2002-12-02  Jim Meyering  <jim@meyering.net>
96365
96366         * lib/safe-read.c (EINTR): Define.
96367         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96368         (INT_MAX): Provide fallback.
96369         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96370
96371         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96372
96373 2002-12-02  Bruno Haible  <bruno@clisp.org>
96374
96375         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96376         Define, taken from safe-read.c.
96377         (INT_MAX): Provide fallback.
96378         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96379         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96380
96381         * lib/safe-read.c (EINTR): Remove definition.
96382         (safe_read): Don't use EINTR if it is absent.
96383
96384 2002-12-01  Jim Meyering  <jim@meyering.net>
96385
96386         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96387         zero.
96388         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96389
96390 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96391
96392         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96393         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96394         with `if (! (value < limit)) abort ();', for readability.
96395
96396 2002-11-26  Karl Berry  <karl@gnu.org>
96397
96398         * lib/strdup.c: copy from libc again, with jim's ok.
96399         * lib/.cppi-disable: re-add strdup.c
96400
96401 2002-11-25  Karl Berry  <karl@gnu.org>
96402
96403         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96404         instead of "strtol.c".
96405
96406 2002-11-25  Karl Berry  <karl@gnu.org>
96407
96408         * config/install-sh: update from automake for variable quoting, $0 in
96409         error msgs, etc.
96410
96411         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96412         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96413         entry.
96414
96415 2002-11-25  Jim Meyering  <jim@meyering.net>
96416
96417         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96418
96419 2002-11-24  Karl Berry  <karl@gnu.org>
96420
96421         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96422         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96423
96424 2002-11-24  Jim Meyering  <jim@meyering.net>
96425
96426         Update from coreutils:
96427
96428         * lib/mktime.c: Merge in changes from libc.
96429
96430         Avoid a link-time failure on some Linux systems.
96431         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96432         (otherwise).
96433         (__mon_yday): Declare with the STATIC attribute.
96434         (__mktime_internal): Likewise.
96435         Based on a report from Greg Schafer.
96436
96437 2002-11-23  Jim Meyering  <jim@meyering.net>
96438
96439         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96440         Use `unsigned', not `int', as type of index.
96441
96442         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96443
96444         * lib/fsusage.c: Remove unneeded parentheses around operands of
96445         `defined'.
96446
96447 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96448
96449         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96450         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96451         so that we can be included first.
96452         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96453         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96454         No need to include stddef.h or sys/types.h any more.
96455         Surround local include files with "", not "<>".
96456         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96457         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96458         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96459         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96460         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96461         (ISPRINT): Remove; no longer needed now that we assume C89.
96462
96463         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96464         Preserve errno.
96465
96466         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96467         quotearg_char): Use SIZE_MAX rather than
96468         (size_t) -1 when we are talking about "infinity".
96469
96470         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96471
96472 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96473
96474         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96475         hint that one should use `if (! x) abort ();' rather than `assert
96476         (x);', and anyway it's one less thing to worry about configuring.
96477         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96478         hash_rehash, hash_insert): Use abort rather than assert.
96479
96480 2002-11-22  Bruno Haible  <bruno@clisp.org>
96481
96482         * lib/safe-read.h: Assume C89. Add comments.
96483         (safe_read): Change return type to size_t.
96484         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96485         byte counts > SSIZE_MAX correctly.
96486         * lib/safe-write.h: New file.
96487         * lib/safe-write.c: New file.
96488         * lib/full-read.h: New file.
96489         * lib/full-read.c: New file.
96490         * lib/full-write.h: Assume C89. Add comments.
96491         * lib/full-write.c: Include safe-write.h.
96492         (full_write): Rewritten to use safe_write.
96493         Suggested by Jim Meyering and Paul Eggert.
96494
96495 2002-11-21  Jim Meyering  <jim@meyering.net>
96496
96497         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96498
96499         Merge in changes from the coreutils.
96500
96501         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96502         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96503         <stdint.h>.
96504         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96505         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96506         int.  Work more efficiently if X is the same width as uintmax_t.
96507         Do not compare X to -1, to avoid bogus compiler warning.
96508         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96509         Don't assume that f_frsize and f_bsize are the same type.
96510
96511         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96512         warning on FreeBSD.
96513
96514         * lib/makepath.c (make_path): Restore umask *before* creating the final
96515         component.
96516         (make_path): Minor reformatting.
96517
96518         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96519         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96520         HAVE_MALLOC/HAVE_REALLOC.
96521
96522         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96523         dummy ones.  At least on GNU/Linux systems, `auto' means something
96524         else.
96525         From Michael Stone.
96526
96527 2002-11-21  Bruno Haible  <bruno@clisp.org>
96528
96529         Remove case insensitive option matching.
96530         * lib/argmatch.h (argcasematch): Remove declaration.
96531         (ARGCASEMATCH): Remove macro.
96532         (__xargmatch_internal): Remove case_sensitive argument.
96533         (XARGMATCH): Update.
96534         (XARGCASEMATCH): Remove macro.
96535         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96536         case_sensitive argument.
96537         (argcasematch): Remove function.
96538         (__xargmatch_internal): Remove case_sensitive argument.
96539         (main): Use XARGMATCH instead of XARGCASEMATCH.
96540
96541         * lib/xmalloc.c: Change compile-time error message. Add comment about
96542         required autoconf version.
96543
96544 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96545
96546         Merge argmatch cleanups from Bison.  Assume C89.
96547
96548         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96549         Include stdlib.h, for EXIT_FAILURE.
96550         Always include <string.h>, since we assume C89.
96551         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96552         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96553         Include <stddef.h> instead, since it's all we need for size_t.
96554         (PARAMS): Remove.  All uses removed.
96555         (ARRAY_CARDINALITY): Do not bother to #undef.
96556         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96557         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96558         Remove unnecessary parentheses.
96559         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96560         Insert necessary parentheses.
96561         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96562         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96563
96564 2002-11-19  Bruno Haible  <bruno@clisp.org>
96565
96566         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96567         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96568
96569         * lib/mbswidth.h (PARAMS): Remove macro.
96570         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96571         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96572
96573         * lib/gcd.h (PARAMS): Remove macro.
96574         (gcd): Use ANSI C function declarations.
96575         * lib/gcd.c (gcd): Likewise.
96576
96577 2002-11-15  Bruno Haible  <bruno@clisp.org>
96578
96579         * lib/strcspn.c: Include <stddef.h>.
96580         (strcspn): Use ANSI C function declaration. Change return type to
96581         size_t. Use NULL.
96582         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96583         (strpbrk): Use NULL.
96584         * lib/strpbrk.h (PARAMS): Remove macro.
96585         (strpbrk): Use ANSI C function declaration.
96586         * lib/strstr.c: Don't include <sys/types.h>.
96587         * lib/strstr.h (PARAMS): Remove macro.
96588         (strstr): Use ANSI C function declarations.
96589
96590 2002-11-14  Karl Berry  <karl@gnu.org>
96591
96592         * config/mkinstalldirs: `do' on separate line, instead of
96593         `for var; do'.
96594
96595 2002-11-06  Bruno Haible  <bruno@clisp.org>
96596
96597         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96598         * lib/gcd.c (gcd): Likewise.
96599
96600 2002-11-05  Bruno Haible  <bruno@clisp.org>
96601
96602         * lib/gcd.h: New file, from gettext-0.11.5.
96603         * lib/gcd.c: New file, from gettext-0.11.5.
96604
96605 2002-11-05  Bruno Haible  <bruno@clisp.org>
96606
96607         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96608         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96609         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96610         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96611
96612         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96613         <libintl.h>.
96614         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96615         <libintl.h>.
96616
96617         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96618         * lib/human.c: Include gettext.h instead of <libintl.h>.
96619         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96620         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96621         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96622         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96623         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96624         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96625         (textdomain): Remove definition.
96626         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96627
96628         * lib/long-options.c: Remove include of <libintl.h> and definition of
96629         _.
96630         * lib/same.c: Remove include of <libintl.h> and definition of _.
96631
96632 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96633
96634         * lib/config.charset: A few additions for Solaris.
96635
96636 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96637
96638         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96639         * lib/localcharset.c (locale_charset): Declare as extern "C".
96640
96641 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96642
96643         * lib/config.charset: msdos in uk_UA uses CP1125.
96644
96645 2002-11-04  Bruno Haible  <bruno@clisp.org>
96646
96647         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96648         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96649         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96650         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96651         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96652
96653 2002-11-04  Bruno Haible  <bruno@clisp.org>
96654
96655         * lib/localcharset.c (locale_charset): Don't return an empty string.
96656
96657 2002-11-04  Bruno Haible  <bruno@clisp.org>
96658
96659         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96660         aliases.
96661
96662 2002-11-04  Bruno Haible  <bruno@clisp.org>
96663
96664         * lib/config.charset: Update for newest glibc. Add canonical names
96665         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96666
96667 2002-11-04  Bruno Haible  <bruno@clisp.org>
96668
96669         * lib/config.charset: Add support for NetBSD.
96670
96671 2002-11-04  Bruno Haible  <bruno@clisp.org>
96672
96673         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96674
96675 2002-11-01  Bruno Haible  <bruno@clisp.org>
96676
96677         * configure.in: Add AC_CONFIG_AUX_DIR call.
96678         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96679         test/Makefile.
96680         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96681
96682 2002-09-28  Karl Berry  <karl@gnu.org>
96683
96684         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96685         installed automake until the next release, since changes have been
96686         made.
96687
96688 2002-09-25  Karl Berry  <karl@gnu.org>
96689
96690         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96691         * lib/getopt*: copy from libc/posix.
96692         * lib/gettext.h: copy from gettext.
96693         * lib/.cppi-disable: add strdup.c, gettext.h.
96694
96695 2002-09-25  Karl Berry  <karl@gnu.org>
96696
96697         * config/srclist.txt: enable gettext.h check.
96698         * config/config.{guess,sub}: update from prep.
96699         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96700                 from automake 1.6.3.
96701         See srclist*.
96702
96703 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96704
96705         * regex.c (PATFETCH): Remove the translating fetch.
96706         (PATFETCH_RAW): Rename to PATFETCH.
96707         (set_image_of_range): New fun.
96708         (SET_RANGE_TABLE_WORK_AREA): Use it.
96709         (regex_compile): Don't translate the pattern chars so eagerly.
96710         Only do it when inserting an `exactn' bytecode or when handling
96711         a char-range.
96712         (mutually_exclusive_p): Avoid empty statement.
96713
96714 2002-07-06  Jim Meyering  <meyering@lucent.com>
96715
96716         * m4/README: Don't mention Makefile.am.in.
96717         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96718
96719 2002-07-01  Jim Meyering  <meyering@lucent.com>
96720
96721         * lib/c-stack.c: Include sys/time.h.
96722         From Volker Borchert.
96723
96724 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96725
96726         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96727
96728 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96729
96730         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96731         New macro.  Use it uniformly instead of
96732         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96733         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96734         reported by Vin Shelton.
96735
96736 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96737
96738         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96739         Do not assume SA_SIGINFO behavior.
96740         Bug reported by Jim Meyering on NetBSD 1.5.2.
96741
96742 2002-06-22  Jim Meyering  <meyering@lucent.com>
96743
96744         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96746
96747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96748         now that configure.ac uses AC_GNU_SOURCE.
96749         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96750         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96751
96752         Update to latest tools.  Suggestions from Paul Eggert.
96753         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96754         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96755         * m4/fnmatch.m4: Likewise.
96756         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96757         to AC_HEADER_STDBOOL
96758
96759 2002-06-22  Jim Meyering  <meyering@lucent.com>
96760
96761         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96762         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96763
96764 2002-06-22  Jim Meyering  <meyering@lucent.com>
96765
96766         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96767
96768         * lib/exitfail.c, exitfail.h: Likewise.
96769         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96770
96771         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96772         of fnmatch.h.
96773         (EXTRA_DIST): Add fnmatch_loop.c.
96774         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96775
96776         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96777         * lib/fnmatch.c: Update from diffutils-2.8.2.
96778         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96779         * lib/fnmatch.h: Remove file.
96780
96781 2002-06-21  Jim Meyering  <meyering@lucent.com>
96782
96783         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96784         * m4/mbrtowc.m4: Likewise.
96785
96786         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96787         * m4/mbswidth.m4: Reflect name change:
96788         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96789         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96790
96791         * m4/lib-link.m4: Update from gettext-0.11.2.
96792         * m4/gettext.m4: Likewise.
96793
96794         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96795         From Alfred M. Szmidt.
96796
96797 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96798
96799         * lib/file-type.h: Report an error if neither S_ISREG nor
96800         S_IFREG is defined, instead of using a test specific to glibc
96801         2.2.  This should be safe, since POSIX requires S_ISREG and
96802         Unix Version 7 had S_IFREG.  We don't need to check for
96803         <sys/types.h> since we don't use any symbols that it defines.
96804
96805 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96806
96807         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96808         $@-t, so that each temporary file name is unique and valid in the first
96809         8 characters, for operation under DOS.
96810
96811 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96812
96813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96814
96815 2002-06-15  Jim Meyering  <meyering@lucent.com>
96816
96817         Work even with DJGPP 2.03, which lacks support for symlinks.
96818         From Richard Dawe.
96819         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96820         is defined.
96821         * lib/lchown.c (S_ISLNK): Likewise.
96822
96823 2002-06-15  Jim Meyering  <meyering@lucent.com>
96824
96825         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96826         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96827         have been included before this file.
96828
96829 2002-06-14  Jim Meyering  <meyering@lucent.com>
96830
96831         * lib/file-type.h: Use the version from diffutils-2.8.2.
96832         * lib/file-type.c: Likewise.
96833
96834 2002-06-07  Jim Meyering  <meyering@lucent.com>
96835
96836         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96837         They're needed at least for NetBSD 1.5.2.
96838         ($statxfs_includes): Include those same headers.
96839         ($statxfs_includes): Include sys/vfs.h if available.
96840         ($statxfs_includes): Likewise for sys/statvfs.h.
96841         Check for the following members in both structs statfs and statvfs:
96842         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96843
96844 2002-06-01  Jim Meyering  <meyering@lucent.com>
96845
96846         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96847         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96848
96849 2002-05-28  Jim Meyering  <meyering@lucent.com>
96850
96851         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96852         Reported by Volker Borchert.
96853
96854 2002-05-27  Jim Meyering  <meyering@lucent.com>
96855
96856         Fix a problem seen only on nonconforming systems whereby ls.c's
96857         use of localtime, and then of gettimeofday would cause trouble:
96858         the localtime call used to initialize rpl_gettimeofday's save
96859         mechanism would clobber ls's current local time information so
96860         that in any long listing the first file would always be listed
96861         with date 1970-01-01.  Analysis by Volker Borchert.
96862
96863         * lib/gettimeofday.c (localtime): Undefine.
96864         (rpl_localtime): New function.
96865
96866 2002-05-27  Jim Meyering  <meyering@lucent.com>
96867
96868         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96869         localtime.
96870
96871         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96872         use the replacement function; it wouldn't resolve at link time.
96873         Reported by Volker Borchert.
96874
96875 2002-05-22  Jim Meyering  <meyering@lucent.com>
96876
96877         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96878         file-type.h.
96879         * lib/file-type.h: New file.
96880         * lib/file-type.c (file_type): New file/function.  Extracted from
96881         diffutils.
96882
96883 2002-04-30  Jim Meyering  <meyering@lucent.com>
96884
96885         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96886
96887 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96888
96889         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96890
96891 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96892
96893         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96894         Do not check for alloca.h (no longer used) or stdbool.h (was never
96895         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96896
96897 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96898
96899         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96900
96901 2002-04-29  Jim Meyering  <meyering@lucent.com>
96902
96903         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96904         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96905         Use AC_FUNC_STRNLEN here instead.
96906
96907         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96908         With autoconf-2.53a, it's part of AC_PROG_CC.
96909
96910 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96911
96912         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96914
96915 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96916
96917         * lib/sig2str.h, lib/sig2str.c: New files.
96918         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96919
96920 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96921
96922         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96923         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96924         of 127, since 64 is the largest conceivable number for ancient
96925         nonstandard hosts.
96926         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96927
96928 2002-04-28  Jim Meyering  <meyering@lucent.com>
96929
96930         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96931
96932 2002-04-24  Jim Meyering  <meyering@lucent.com>
96933
96934         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96935         (jm_PREREQ): Use it.
96936
96937         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96938         mach/mach.h fcntl.h.
96939         Check for this function: setlocale.
96940
96941 2002-04-24  Jim Meyering  <meyering@lucent.com>
96942
96943         * lib/gettext.h: New file, from Gettext.
96944         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96945         (libfetish_a_SOURCES): Add gettext.h.
96946
96947 2002-04-16  Jim Meyering  <meyering@lucent.com>
96948
96949         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96950         ut_pid, ut_id, ut_exit.
96951
96952 2002-04-16  Jim Meyering  <meyering@lucent.com>
96953
96954         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96955         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96956         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96957
96958 2002-04-12  Jim Meyering  <meyering@lucent.com>
96959
96960         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96961         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96962         existence of the getmntinfo function.  Needed for Darwin 5.3.
96963
96964         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96965         This is necessary at least on Darwin 5.3.
96966
96967         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96968         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96969         strnlen.o in the library, and that makes some versions of ranlib
96970         object.
96971
96972 2002-04-12  Jim Meyering  <meyering@lucent.com>
96973
96974         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96975
96976 2002-04-09  Jim Meyering  <meyering@lucent.com>
96977
96978         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96979         to be more precise.  Rather than saying we're checking whether the
96980         function `works', say what we're testing.
96981         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96982         Reported by Bruno Haible.
96983
96984 2002-03-10  Jim Meyering  <meyering@lucent.com>
96985
96986         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96987         Suggestion from Santiago Vila.
96988
96989 2002-03-08  Jim Meyering  <meyering@lucent.com>
96990
96991         * lib/rename.c: Mention that this wrapper is needed also on
96992         mips-dec-ultrix4.4 systems.
96993
96994 2002-03-02  Jim Meyering  <meyering@lucent.com>
96995
96996         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96997         not HAVE_CLOCK_SETTIME.
96998
96999 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97000
97001         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97002         Check for clock_settime.
97003
97004 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97005
97006         * lib/nanosleep.h: Rename to....
97007         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97008
97009         * lib/gettime.c: New file.
97010         * lib/settime.c: New file.
97011         * lib/stime.c: Remove.
97012
97013         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97014         timespec.h.  Remove nanosleep.h.
97015
97016 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97017
97018         * m4/acl.m4: New file.
97019         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97020         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97021
97022 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97023
97024         * lib/acl.c, lib/acl.h: New files.
97025         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97026
97027 2002-02-24  Jim Meyering  <meyering@lucent.com>
97028
97029         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97030         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97031         cause trouble.  Reported by Nelson Beebe.
97032
97033 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97034
97035         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97036         compilers that don't know that xalloc_die never returns.
97037
97038 2002-02-20  Jim Meyering  <meyering@lucent.com>
97039
97040         * lib/getdate.c: Regenerate using bison-1.33.
97041
97042 2002-02-17  Jim Meyering  <meyering@lucent.com>
97043
97044         * config/config.guess (main): Don't use `head -1'; it's no longer
97045         portable. Use `sed 1q' instead.
97046
97047 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97048
97049         * m4/codeset.m4: Upgrade to gettext-0.11.
97050         * m4/gettext.m4: Upgrade to gettext-0.11.
97051         * m4/glibc21.m4: Upgrade to gettext-0.11.
97052         * m4/iconv.m4: Upgrade to gettext-0.11.
97053         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97054         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97055         * m4/lib-ld.m4: New file, from gettext-0.11.
97056         * m4/lib-link.m4: New file, from gettext-0.11.
97057         * m4/lib-prefix.m4: New file, from gettext-0.11.
97058         * m4/progtest.m4: Upgrade to gettext-0.11.
97059
97060 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97061
97062         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97063         (jm_PREREQ): Use it.
97064
97065 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97066
97067         * lib/posixver.c, lib/posixver.h: New files.
97068         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97069
97070 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97071             Bruno Haible  <bruno@clisp.org>
97072
97073         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97074         (fwrite_success_callback): New declaration.
97075         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97076         print_unicode_char. Call failure callback instead of error.
97077         (fwrite_success_callback): New function.
97078         (exit_failure_callback): New function.
97079         (fallback_failure_callback): New function.
97080         (print_unicode_char): Call unicode_to_mb.
97081
97082 2002-01-26  Jim Meyering  <meyering@lucent.com>
97083
97084         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97085         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97086
97087 2002-01-26  Jim Meyering  <meyering@lucent.com>
97088
97089         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97090
97091 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97092
97093         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97094
97095 2002-01-22  Jim Meyering  <meyering@lucent.com>
97096
97097         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97098         Otherwise, some versions of automake would omit the rule that makes
97099         Makefile from Makefile.in.
97100
97101 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97102
97103         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97104         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97105         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97106         (memcoll): Set errno to zero if there is no error.
97107
97108         * lib/quotearg.c (quotearg_buffer_restyled):
97109         Fix bug with quoting buffers containing NUL when backslashing escapes.
97110         This bug was exposed by the other changes in this patch.
97111         (quotearg_n_options): New arg ARGSIZE.
97112         All callers changed.
97113         (quoting_options_from_style): New function.
97114         (quotearg_n_style): Use it.
97115         (quotearg_n_style_mem): New function.
97116
97117         * lib/quotearg.h (quotearg_n_style_mem): New function.
97118
97119 2002-01-19  Jim Meyering  <meyering@lucent.com>
97120
97121         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97122         Remove useless quotes: DF_PROG="df".
97123         * m4/strnlen.m4: New file.
97124
97125 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97126
97127         * lib/backupfile.c (ISDIGIT): Comment fix.
97128         * lib/getdate.y (ISDIGIT): Likewise.
97129         * lib/posixtm.c (ISDIGIT, year): Likewise.
97130         * lib/strverscmp.c (ISDIGIT): Likewise.
97131         * lib/userspec.c (ISDIGIT): Likewise.
97132
97133 2002-01-16  Jim Meyering  <meyering@lucent.com>
97134
97135         * lib/getdate.y: Add three semicolons, each just before a closing
97136         brace. Bison (as of version 1.31) no longer papers over that mistake.
97137
97138 2002-01-05  Jim Meyering  <meyering@lucent.com>
97139
97140         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97141
97142 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97143
97144         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97145         not silently exit merely because the output buffer happens to
97146         have nothing pending.
97147
97148 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97149
97150         See the big note in ../ChangeLog.
97151         * lib/human.c (suffixes): Prefer K to k for 1024.
97152         (generate_suffix_backwards): New function.
97153         (human_readable_inexact): Use it.
97154         * lib/xstrtol.c (__xstrtol): If there is no number but there
97155         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97156         Accept 'K' as well as 'k'.
97157
97158 2001-12-15  Jim Meyering  <meyering@lucent.com>
97159
97160         * lib/regex.h (__restrict_arr): Update from libc.
97161
97162         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97163         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97164         (STREQ): Define.
97165
97166 2001-12-14  Jim Meyering  <meyering@lucent.com>
97167
97168         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97169         Suggestion from Bruno Haible.
97170
97171 2001-12-10  Jim Meyering  <meyering@lucent.com>
97172
97173         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97174         xrealloc, Instead, include "xalloc.h".
97175         (initbuffer): Don't cast xmalloc return value to char*.
97176         (readline): Reword comment.
97177         Don't cast xrealloc return value to char*
97178         Return NULL, not 0.
97179
97180 2001-12-09  Jim Meyering  <meyering@lucent.com>
97181
97182         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97183         about `signed and unsigned type in conditional expression'.
97184         * lib/posixtm.c (posix_time_parse): Likewise.
97185
97186         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97187
97188         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97189         to avoid a pedantic warning.
97190
97191         * lib/getstr.c: Don't include assert.h.
97192         (getstr): Remove warning-evoking assertions.
97193         Return -1 if offset parameter is out of bounds.
97194         Change the type of a local from int to size_t.
97195
97196         * lib/strftime.c (my_strftime_localtime_r): Include this function
97197         definition in the `#if ! HAVE_TM_GMTOFF' block.
97198
97199         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97200         Include xalloc.h instead.
97201
97202 2001-12-02  Jim Meyering  <meyering@lucent.com>
97203
97204         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97205         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97206         included.
97207
97208         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97209         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97210
97211 2001-11-30  Akim Demaille  <akim@epita.fr>
97212
97213         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97214         before being defined.
97215
97216 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97217
97218         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97219         First arg is int, not unsigned.
97220         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97221         (SIZE_MAX, UINT_MAX): New macros.
97222         (quotearg_n_options): Abort if N is negative.
97223         Avoid overflow check on hosts where size_t is 64 bits and int
97224         is 32 bits, as overflow is impossible there.
97225         Fix off-by-one typo that caused unnecessary reallocation.
97226
97227 2001-11-27  Jim Meyering  <meyering@lucent.com>
97228
97229         * lib/tempname.c: Merge with version from libc.
97230         * lib/regex.c: Likewise.
97231
97232         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97233         systems for which STDC_HEADERS is 0, it was not included, resulting in
97234         a warning about an integer-to-pointer conversion problem with getenv.
97235         Reported by Volker Borchert.
97236
97237 2001-11-26  Jim Meyering  <meyering@lucent.com>
97238
97239         * lib/gtod.h: Remove file.
97240         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97241         * lib/gettimeofday.c: Don't include gtod.h.
97242         (GTOD_init): Remove function.
97243         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97244         Suggestion from Volker Borchert.
97245
97246 2001-11-23  Jim Meyering  <meyering@lucent.com>
97247
97248         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97249         it.
97250         * lib/hash.c (struct hash_table): Define it here instead.
97251
97252 2001-11-22  Jim Meyering  <meyering@lucent.com>
97253
97254         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97255
97256 2001-11-20  Jim Meyering  <meyering@lucent.com>
97257
97258         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97259         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97260
97261 2001-11-19  Jim Meyering  <meyering@lucent.com>
97262
97263         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97264         directory.  Use "conftestXXXXXX" as the template.
97265         Suggestion from Paul Eggert.
97266
97267         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97268         immediately, so the test doesn't mistakenly hit the max-open-files
97269         limit.
97270
97271 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97272
97273         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97274         (TEMPORARIES): New macro.
97275         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97276         removes an artificial limitation (e.g. HP-UX 10.20, where
97277         TMP_MAX is 17576).
97278
97279 2001-11-18  Jim Meyering  <meyering@lucent.com>
97280
97281         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97282
97283 2001-11-18  Jim Meyering  <meyering@lucent.com>
97284
97285         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97286         on SunOS 4.
97287
97288         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97289         files will be created before anything else.
97290
97291 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97292
97293         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97294         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97295
97296 2001-11-17  Jim Meyering  <meyering@lucent.com>
97297
97298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97299         Prompted by a report from Bob Proulx.
97300
97301         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97302         Instead, require UTILS_FUNC_MKSTEMP.
97303
97304 2001-11-17  Jim Meyering  <meyering@lucent.com>
97305
97306         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97307         Now, that's done as part of AC_FUNC_STRTOD.
97308
97309 2001-11-17  Jim Meyering  <meyering@lucent.com>
97310
97311         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97312         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97313         rather than group writable.  Patch by Juan F. Codagnone.
97314
97315         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97316         xrealloc, Instead, include "xalloc.h".
97317
97318         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97319         Remove explicit declarations of xmalloc, xrealloc,
97320         and xstrdup.  Instead, include "xalloc.h".
97321
97322         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97323         unlocked-io.h.
97324         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97325         Likewise.
97326         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97327
97328         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97329         Reported by Padraig Brady.
97330
97331         * lib/mkstemp.c: #undef mkstemp.
97332         Include config.h.
97333         (rpl_mkstemp): Rename from mkstemp.
97334         Protoize.
97335
97336 2001-11-16  Jim Meyering  <meyering@lucent.com>
97337
97338         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97339         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97340         determine the amount of total physical memory, use pstat_getstatic.
97341         HPUX-11 doesn't define _SC_PHYS_PAGES.
97342         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97343         If sysconf couldn't be used to determine the amount of available
97344         physical memory, use both pstat_getstatic and pstat_getdynamic.
97345         Based on a patch from Bob Proulx.
97346
97347 2001-11-10  Jim Meyering  <meyering@lucent.com>
97348
97349         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97350         (jm_PREREQ): Use it.
97351
97352 2001-11-09  Jim Meyering  <meyering@lucent.com>
97353
97354         * m4/jm-macros.m4: Require autoconf-2.52f.
97355         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97356         Use these AC_-prefixed names, not the AM_-prefixed ones.
97357
97358         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97359
97360 2001-11-05  Jim Meyering  <meyering@lucent.com>
97361
97362         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97363
97364 2001-11-04  Jim Meyering  <meyering@lucent.com>
97365
97366         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97367         $DEFS.
97368
97369 2001-11-03  Jim Meyering  <meyering@lucent.com>
97370
97371         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97372         of AC_DEFUN.
97373
97374         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97375         know the name of the variable in the macro definition.
97376
97377 2001-11-03  Jim Meyering  <meyering@lucent.com>
97378
97379         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97380         in argmatch_to_argument call.
97381
97382         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97383         argument.
97384
97385         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97386         e.g., a fault due to an attempt to free a NULL pointer.
97387
97388 2001-11-01  Jim Meyering  <meyering@lucent.com>
97389
97390         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97391         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97392
97393 2001-11-01  Jim Meyering  <meyering@lucent.com>
97394
97395         * lib/dirfd.c, lib/dirfd.h: New files.
97396         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97397
97398         * lib/hash.c (hash_print) [TESTING]: Clean up.
97399
97400 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97401
97402         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97403         to avoid a warning if -Wall.
97404
97405 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97406
97407         * README: New file
97408         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97409         (per RMS's instructions, this is now the canonical source)
97410         * lgpl/, gpl/: New directories.
97411
97412 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97413
97414         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97415
97416 2001-10-21  Jim Meyering  <meyering@lucent.com>
97417
97418         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97419         this code would end up calling gettext even in packages built
97420         with --disable-nls.
97421         * lib/getopt.c (_): Likewise.
97422         * lib/regex.c (_): Likewise.
97423
97424 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97425
97426         * m4/error.m4 (jm_PREREQ_ERROR):
97427         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97428         AC_FUNC_STRERROR_R does that.
97429         Check for strerror declaration.
97430
97431         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97432         are supposed to have them these days.
97433         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97434         Merge changes from latest Autoconf CVS.
97435         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97436         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97437         POSIX decided to standardize on the int flavor of strerror_r.
97438
97439 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97440
97441         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97442         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97443         Use strerror_r that is only a macro, even if it is not a function.
97444         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97445         (private_strerror): Use prototypes, not old-style function definition.
97446         (print_errno_message): New function.
97447         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97448         char*-flavored one.
97449         (error_tail, error, error_at_line): Use it.
97450
97451 2001-10-11  Jim Meyering  <meyering@lucent.com>
97452
97453         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97454         and quote_n (1, ... to avoid clobbering a buffer.
97455
97456 2001-10-05  Jim Meyering  <meyering@lucent.com>
97457
97458         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97459         hash-pjw.h.
97460         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97461         * lib/hash-pjw.h: New file.
97462
97463 2001-09-30  Jim Meyering  <meyering@lucent.com>
97464
97465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97466         `struct fsstat' has the `f_fstypename' member.
97467         Use that to define FS_TYPE, which is now used to make
97468         the getfsstat link test tighter.
97469
97470 2001-09-30  Jim Meyering  <meyering@lucent.com>
97471
97472         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97473         Include <sys/ucred.h>, for Apple Darwin.
97474         Include sys/mount.h and sys/fs_types.h only if available.
97475         (FS_TYPE): Define.
97476         (read_filesystem_list): Use FS_TYPE.
97477
97478 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97479
97480         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97481         a boolean context.
97482
97483 2001-09-29  Jim Meyering  <meyering@lucent.com>
97484
97485         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97486         [one-argument getmntent function]): Include stdio.h before mntent.h.
97487         SunOS 4.1.x needs it for the declaration of `FILE'.
97488         Patch by Volker Borchert.
97489
97490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97491         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97492         sys/fs_types.h, and make the link-test for getfsstat guard #include
97493         directives with appropriate #if HAVE_*_H tests so that we can
97494         detect getfsstat on Apple Darwin1.3.7 systems.
97495         Reported by Nelson Beebe.
97496         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97497
97498 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97499
97500         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97501         #defines strtoimax.  Also treat the other strto* functions
97502         like strtoimax.
97503
97504         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97505         Check for strtoul and strtoumax,
97506         as those declarations are made even in the signed case.
97507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97508         Likewise, for strtol and strtoimax.
97509
97510 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97511
97512         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97513         #defines strtoimax.  Also treat the other strto* functions
97514         like strtoimax.
97515
97516         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97517         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97518         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97519
97520 2001-09-26  Jim Meyering  <meyering@lucent.com>
97521
97522         Most macros in unlocked-io.h had the wrong number of arguments.
97523         * lib/gen-uio: New script.
97524         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97525         * lib/unlocked-io.hin: Remove file.
97526         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97527         rather than trying to embed it here.
97528         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97529         Reported by Padraig Brady.
97530
97531 2001-09-25  Volker Borchert  <bt@teknon.de>
97532
97533         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97534         `result'.
97535
97536 2001-09-24  Jim Meyering  <meyering@lucent.com>
97537
97538         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97539
97540 2001-09-23  Jim Meyering  <meyering@lucent.com>
97541
97542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97543         instead of the mere test for existence of mntent.h.  The latter
97544         would get a false-positive on AIX 3.4 systems.
97545         In the outer getmntent if-block, don't die if neither of the getmntent
97546         tests succeeds.  Instead, just fall through and continue with the
97547         remaining tests.
97548
97549 2001-09-23  Jim Meyering  <meyering@lucent.com>
97550
97551         * lib/mountlist.c: Remove useless parentheses in #if directives.
97552         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97553         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97554
97555 2001-09-22  Jim Meyering  <meyering@lucent.com>
97556
97557         * m4/gettext.m4: New file.  From gettext.
97558         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97559         * m4/progtest.m4: Likewise
97560         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97561         * m4/glibc21.m4: Likewise.
97562
97563         * m4/libintl.m4: Remove.  No longer used.
97564
97565 2001-09-22  Jim Meyering  <meyering@lucent.com>
97566
97567         * lib/localcharset.c: Update from latest gettext.
97568         * lib/config.charset: Likewise.
97569
97570 2001-09-20  Jim Meyering  <meyering@lucent.com>
97571
97572         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97573         strtoimax.
97574         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97575         strtoumax.
97576
97577 2001-09-20  Jim Meyering  <meyering@lucent.com>
97578
97579         * lib/xstrtol.c (strtoimax): Guard declaration with
97580         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97581         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97582         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97583         (strtoumax): Likewise, for completeness (it wasn't necessary).
97584
97585 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97586
97587         * lib/strtoimax.c (HAVE_LONG_LONG):
97588         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97589         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97590         to work around bug in IBM C compiler.
97591
97592 2001-09-17  Jim Meyering  <meyering@lucent.com>
97593
97594         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97595         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97596         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97597         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97598         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97599         whenever the right hand side need not be expanded by the shell.
97600
97601 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97602
97603         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97604         library.  It's not correct, as some older glibcs are buggy.
97605         fnmatch wasn't fixed until glibc 2.2.
97606
97607         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97608         special shell magic here.
97609
97610 2001-09-16  Jim Meyering  <meyering@lucent.com>
97611
97612         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97613         * m4/jm-macros.m4: Require it.
97614
97615 2001-09-16  Jim Meyering  <meyering@lucent.com>
97616
97617         * lib/mkdir.c: New file.
97618
97619 2001-09-15  Jim Meyering  <meyering@lucent.com>
97620
97621         * m4/jm-macros.m4: Check for help2man.
97622
97623 2001-09-11  Jim Meyering  <meyering@lucent.com>
97624
97625         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97626         The body, by Paul Eggert, was moved here from configure.in.
97627         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97628
97629 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97630
97631         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97632         (jm_PREREQ): Use it.
97633
97634 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97635
97636         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97637         Use ssize_t, not int, to store result of readlink.
97638         Check for ssize_t overflow as well as size_t overflow,
97639         as POSIX says the result of readlink is implementation-defined
97640         when ssize_t overflows.
97641         Remove unnecessary cast to char*.
97642         Use free+malloc instead of realloc, as the storage doesn't need
97643         to be preserved and it's clearer and can be more efficient that way.
97644         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97645         * lib/xreadlink.h (xreadlink): Update prototype.
97646
97647 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97648
97649         * lib/xgetcwd.c: Revert some of the previous change; intead,
97650         fix the HAVE_GETCWD_NULL code to behave more like the
97651         !HAVE_GETCWD_NULL code used to.
97652
97653         Include "xalloc.h".
97654         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97655         invoke xalloc_die.
97656
97657 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97658
97659         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97660         sys/param.h, as pathmax.h includes them.
97661
97662 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97663
97664         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97665         (jm_PREREQ_XGETCWD): New macro.
97666
97667         * m4/getcwd.m4: New file.
97668
97669 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97670
97671         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97672         like the HAVE_GETCWD_NULL code.
97673         Include pathmax.h if not HAVE_GETCWD.
97674         Do not include xalloc.h.
97675         (INITIAL_BUFFER_SIZE): New symbol.
97676         Do not use xmalloc / xrealloc, since the caller is responsible for
97677         handling errors.  Preserve errno around `free' during failure.
97678         Do not overrun buffer when using getwd.
97679
97680 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97681
97682         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97683         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97684         getcwd (NULL, 0).
97685
97686 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97687
97688         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97689         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97690         spotted by Jim Meyering.
97691
97692 2001-09-03  Jim Meyering  <meyering@lucent.com>
97693
97694         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97695         failure.
97696
97697 2001-09-02  Jim Meyering  <meyering@lucent.com>
97698
97699         * lib/error.c: Update from GNU libc.
97700
97701 2001-09-01  Jim Meyering  <meyering@lucent.com>
97702
97703         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97704         Used by df.
97705
97706 2001-09-01  Jim Meyering  <meyering@lucent.com>
97707
97708         * lib/xreadlink.c: New file.
97709         * lib/xreadlink.h: New file.
97710         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97711         xreadlink.h.
97712
97713         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97714         doesn't conflict with sparc Solaris 7's definition in
97715         /usr/include/sys/int_types.h.
97716
97717         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97718         files.
97719         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97720         and strncasecmp as r-values.  Unixware didn't have declarations.
97721
97722 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97723
97724         * lib/xstrtol.h: Add copyright notice.
97725         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97726         LONGINT_INVALID_SUFFIX_CHAR.
97727
97728 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97729
97730         * lib/xstrtol.c (strtoimax): New decl.
97731
97732 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97733
97734         * lib/xgetcwd.c: Don't include pathmax.h.
97735         Include stdlib.h and unistd.h if available.
97736         Include xalloc.h.
97737         (xmalloc, xstrdup, free): Remove decls.
97738         (xgetcwd): Don't assume sizes fit in unsigned.
97739         Check for overflow when computing sizes.
97740         Simplify reallocation code.
97741
97742 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97743
97744         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97745         a directory's st_size can have an arbitrary value, so the old
97746         usage could waste an arbitrary amount of memory.  All uses
97747         changed.
97748         * lib/savedir.h: Update prototype.
97749
97750 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97751
97752         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97753
97754         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97755         old strtoimax.c.
97756
97757         Also, make the following further changes to make this file's
97758         configuration more similar to that of strtol.c:
97759         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97760         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97761         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97762         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97763         changed to signed values.
97764
97765         And make the following changes as well:
97766         Fix copyright notice, as 1999 was missing.
97767         (verify): New macro.
97768         (strtoimax): Check sizes at compile-time, not run-time.
97769         Prefer strtol to strtoll if both work.
97770         (main): Remove; it was not that useful and was a pain to maintain.
97771
97772         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97773
97774 2001-08-31  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97777         Use an initial, malloc'd, buffer of length 128 rather than
97778         a statically allocated one of length 1024.
97779
97780 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97781
97782         Simplify code, partly by assuming autoconf 2.52 semantics.
97783
97784         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97785
97786         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97787         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97788         All uses removed.
97789         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97790         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97791         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97792         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97793         jm_AC_HEADER_INTTYPES_H.
97794         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97795
97796         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97797
97798         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97799         Quote first arg of AC_DEFUN.
97800         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97801         since they are needed to parse the include file even if we need
97802         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97803         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97804         but with opposite signedness.
97805
97806 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97807
97808         Merge 'exclude' changes from tar 1.13.22.
97809         This fixes one or two unlikely storage allocation overflow bugs,
97810         but doesn't change user-visible behavior otherwise.
97811
97812 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97813
97814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97815         (jm_PREREQ_EXCLUDE): New macro.
97816
97817 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97818
97819         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97820         tm to be declared.
97821
97822 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97823
97824         * lib/hash.c: Remove '2001' from copyright notice.
97825
97826 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97827
97828         * lib/full-write.h: New file.
97829         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97830         * lib/full-write.c: Correct credits, as cccp.c no longer
97831         exists and anyway it was so heavily changed from the old cccp
97832         code as to be unrecognizable.  Include full-write.h.
97833         (full_write): Return size_t, with short writes meaning failure.
97834         All callers changed.  This fixes a bug with large buffers
97835         on 64-bit hosts.
97836         * lib/utime.c: Include full-write.h.
97837
97838 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97839
97840         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97841         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97842         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97843         Include if available.
97844         (<xalloc.h>): Include
97845         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97846         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97847         collide with FNM macros.
97848         (struct patopts): New struct.
97849         (struct exclude): Use it, as exclude patterns now come with options.
97850         (new_exclude): Support above changes.
97851         (new_exclude, add_exclude_file):
97852         Initial size must now be a power of two to simplify overflow checking.
97853         (free_exclude, fnmatch_no_wildcards): New function.
97854         (excluded_filename): No longer requires options arg, as the options
97855         are determined by add_exclude.  Now returns bool, not int.
97856         (excluded_filename, add_exclude):
97857         Add support for the fancy new exclusion options.
97858         (add_exclude, add_exclude_file): Now takes int options arg.
97859         Check for arithmetic overflow when computing sizes.
97860         (add_exclude_file): xrealloc might modify errno, so don't
97861         realloc until after errno might be used.
97862
97863         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97864         New macros.
97865         (free_exclude): New decl.
97866         (add_exclude, add_exclude_file): Now takes int options arg.
97867         (excluded_filename): No longer requires options arg, as the options
97868         are determined by add_exclude.  Now returns bool, not int.
97869
97870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97871
97872         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97873
97874 2001-08-27  Jim Meyering  <meyering@lucent.com>
97875
97876         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97877
97878         * lib/version-etc.c (N_): Remove definition.
97879         Revert most of last change.
97880         Instead, simply don't mark the `Copyright...' string for translation.
97881         Based on advice from Paul Eggert.
97882
97883         * lib/strtoxmax.c: Tweak comment.
97884
97885 2001-08-26  Jim Meyering  <meyering@lucent.com>
97886
97887         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97888
97889         * m4/xstrtoimax.m4: New file.
97890         * m4/xstrtoumax.m4: Add comments explaining why we
97891         AC_REPLACE_FUNCS(strtol).
97892
97893 2001-08-26  Jim Meyering  <meyering@lucent.com>
97894
97895         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97896         of copyright with `%s' so translators don't get an untranslated
97897         message in 2002.
97898         (COPYRIGHT_YEAR): Define.
97899         (version_etc): Use fprintf rather than fputs.
97900         Suggestion from Ulrich Drepper.
97901
97902         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97903
97904         * lib/strtoll.c: New file, from GNU libc.
97905         * lib/xstrtoimax.c: New file.
97906
97907         * lib/xstrtol.h: Add xstrtoimax.
97908         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97909         * lib/strtoimax.c: New file.  Likewise, but first define
97910         STRTOUXMAX_SIGNED.
97911
97912         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97913         ...
97914         * lib/strtoxmax.c: ... then renamed to this.
97915
97916 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97917
97918         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97919         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97920         (jm_AC_TYPE_INTMAX_T): New macro.
97921         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97922
97923         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97924
97925         * m4/longlong.m4: Renamed from ulonglong.m4.
97926         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97927         * m4/uintmax_t.m4: Removed.
97928
97929 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97930
97931         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97932         Port to Solaris 8, where 'sed' requires a space after the 'r'
97933         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97934         Redirect output to $tmp just once.
97935
97936 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97937
97938         * lib/addext.c (<errno.h>): Include.
97939         (errno): Declare if not defined.
97940         (addext): Work correctly when pathconf returns -1 and leaves
97941         errno alone because there is no limit.  Also, work even if
97942         pathconf returns a value greater than SIZE_MAX.
97943
97944 2001-08-12  Jim Meyering  <meyering@lucent.com>
97945
97946         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97947         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97948         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97949         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97950         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97951         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97952         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97953         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97954         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97955         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97956         utime.m4, utimes.m4, xstrtoumax.m4:
97957         Quote the first argument in each use of AC_DEFUN.
97958
97959 2001-08-12  Jim Meyering  <meyering@lucent.com>
97960
97961         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97962         Simply `return getcwd (NULL, 0);'.
97963         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97964         Use 1300 as initial value for length, not PATH_MAX.
97965
97966         * lib/pathmax.h: Clean up cpp syntax.
97967
97968 2001-08-12  Jim Meyering  <meyering@lucent.com>
97969
97970         * lib/gettimeofday.c: New file.
97971         * lib/gtod.h: New file.
97972         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97973
97974 2001-08-05  Jim Meyering  <meyering@lucent.com>
97975
97976         * m4/jm-macros.m4: Require autoconf-2.52.
97977
97978 2001-08-04  Jim Meyering  <meyering@lucent.com>
97979
97980         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97981         stmt, to get in sync with glibc.
97982
97983 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97984
97985         The following changes are from gettext 0.10.39 as maintained by
97986         Bruno Haible.
97987
97988         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97989         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97990         with inverted sense.  All uses changed.
97991
97992         * lib/mbswidth.c: Don't include <limits.h>.
97993         Include <stdlib.h> and <string.h> unconditionally.
97994         (iswcntrl, mbsinit, ISCNTRL): New macros.
97995         (mbsnwidth): Use K&R style function declarations.
97996         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97997         can optimize it when MB_CUR_MAX == 1.
97998         The width of control characters is zero, not 1.
97999
98000 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98001
98002         The following changes are from gettext 0.10.39 as maintained by
98003         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98004
98005         * m4/codeset.m4: Upgrade to serial AM1.
98006         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98007         all uses changed.  Quote first arg of AC_DEFUN.
98008         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98009
98010         * m4/iconv.m4: Upgrade to serial AM2.
98011         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98012         Add --with-libconv-prefix.
98013         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98014         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98015         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98016         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98017         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98018
98019         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98020         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98021         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98022         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98023         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98024         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98025         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98026         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98027         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98028
98029         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98030         string.h any more.
98031
98032         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98033         not the default value.
98034
98035         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98036         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98037         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98038         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98039         Also check for iswcntrl, used for wcwidth fallback.
98040         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98041         to Autoconf 2.13.
98042
98043 2001-08-03  Jim Meyering  <meyering@lucent.com>
98044
98045         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98046         as it was in the original.  Reported by Paul Eggert.
98047
98048 2001-07-16  Jim Meyering  <meyering@lucent.com>
98049
98050         * m4/gettimeofday.m4: New file.
98051         Prompted by a report from Bernhard Baehr.
98052
98053 2001-07-15  Jim Meyering  <meyering@lucent.com>
98054
98055         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98056         stuff. Now it's in ../Makefile.cfg.
98057
98058 2001-07-15  Jim Meyering  <meyering@lucent.com>
98059
98060         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98061         (BUILT_SOURCES): Add unlocked-io.h.
98062         (io_functions): Define.
98063         (unlocked-io.h): New rule.
98064         (DISTCLEANFILES): Add unlocked-io.h.
98065         (all-local): Depend on unlocked-io.h, to ensure it is created.
98066
98067         * lib/unlocked-io.hin: New file
98068
98069         * lib/regex.c: Update from glibc.
98070
98071 2001-07-05  Jim Meyering  <meyering@lucent.com>
98072
98073         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98074         recommendation.
98075         (libfetish_a_SOURCES): Put all .h files here instead.
98076         Remove a thus-exposed (better checks in automake) duplicate and
98077         two unnecessary .h files.
98078
98079 2001-07-04  Jim Meyering  <meyering@lucent.com>
98080
98081         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98082         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98083         distcheck failure.
98084
98085 2001-07-02  Jim Meyering  <meyering@lucent.com>
98086
98087         The following changes were prompted by suggestions from Bruno Haible.
98088
98089         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98090         is now generated.
98091         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98092         definition of EXTRA_DIST.
98093         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98094         ensure that the generated file is created/updated whenever the list
98095         of $(unlocked_functions) is changed.
98096         (jm-glibc-io.m4): New rule.
98097         (unlocked-io.h): New rule -- currently unused.
98098
98099 2001-06-24  Jim Meyering  <meyering@lucent.com>
98100
98101         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98102         unmatched right bracket, rather than kludging it with an extra,
98103         falsely-matching quote in a comment.  Patch by Akim Demaille.
98104
98105 2001-06-11  Jim Meyering  <meyering@lucent.com>
98106
98107         * lib/regex.c: Update from GNU libc.
98108
98109 2001-05-27  Jim Meyering  <meyering@lucent.com>
98110
98111         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98112         Check for ut_type in struct utmp.
98113
98114 2001-05-27  Jim Meyering  <meyering@lucent.com>
98115
98116         * lib/readutmp.h (UT_TYPE): Define.
98117
98118 2001-05-24  Jim Meyering  <meyering@lucent.com>
98119
98120         * lib/argmatch.c: Include "quote.h".
98121         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98122         quote function.  Reported by Göran Uddeborg.
98123
98124 2001-05-22  Jim Meyering  <meyering@lucent.com>
98125
98126         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98127         now that we use the package-supplied version unconditionally.
98128         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98129
98130 2001-05-21  Jim Meyering  <meyering@lucent.com>
98131
98132         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98133         shell syntax errors.
98134
98135 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98136
98137         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98138
98139 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98140
98141         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98142         Don't bother to check library strftime, since
98143         we'll be using our own my_strftime function anyway.
98144         Define my_strftime instead of strftime.
98145
98146 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98147
98148         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98149         which is not yet declared.
98150
98151 2001-05-15  Jim Meyering  <meyering@lucent.com>
98152
98153         * m4/regex.m4: Use proper quoting so brackets appear in the test
98154         program.
98155         Reported by, and with help from, Bruno Haible.
98156
98157 2001-05-13  Jim Meyering  <meyering@lucent.com>
98158
98159         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98160         undefined.
98161
98162 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98163
98164         dirname code cleanup.  base_name now behaves more compatibly
98165         with POSIX basename when given file names that have trailing
98166         slashes, and similarly for dir_name.  Add new primitives
98167         base_len and dir_len.  Put the directory-name-related decls
98168         into dirname.h.
98169
98170         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98171         * lib/backupfile.c (base_name): Likewise.
98172         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98173         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98174         * lib/makepath.c (strip_trailing_slashes): Likewise.
98175         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98176         ISSLASH): Likewise.
98177         * lib/rename.c (strip_trailing_slashes): Likewise.
98178         * lib/same.c (base_name): Likewise.
98179         * lib/stripslash.c (ISSLASH): Likewise.
98180
98181         * lib/addext.c: Include <dirname.h> after size_t is defined.
98182         * lib/backupfile.c: Likewise.
98183
98184         * lib/addext.c (addext): Use base_len to trim redundant
98185         trailing slashes instead of doing it ourselves.
98186         But do not trim the last slash if it is not redundant.
98187
98188         * lib/backupfile.c (find_backup_file_name,
98189         max_backup_version): Use base_len instead of rolling it ourselves.
98190         Handle the case of "" and (on DOS) "C:" correctly.
98191
98192         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98193         needed. Include <string.h>, <dirname.h>.
98194         (base_name): Allow file names ending in slashes, other than names
98195         that are all slashes.  In this case, return the basename followed
98196         by the slashes.  This is more general, and can be used in places
98197         where the original base_name purposely had an assertion failure.
98198         (base_len): New function.
98199
98200         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98201         Do not include <assert.h>; no longer needed.
98202         Include xalloc.h.
98203         (memrchr): Remove decl.
98204         (dir_name_r): Remove.
98205         (dir_len): Renamed from dirlen.  All callers changed.
98206         Rewrite in terms of base_name, for simplicity and consistency.
98207         (dir_name): Never return NULL.  All callers changed.
98208         Do not include <stdlib.h> in test program; no longer needed.
98209         return 0; is fine for test program.
98210
98211         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98212         New macros.
98213         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98214
98215         * lib/path-concat.c (path_concat): Use base_len to compute
98216         base length, not strlen; this means we cannot rely on memcpy
98217         to null-terminate.
98218
98219         * lib/same.c (STREQ): Remove.
98220         (same_name): Handle the case where the basename ends in trailing '/'.
98221
98222         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98223         a slash was stripped.  Do not strip the last slash after a
98224         file system prefix.
98225
98226 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98227
98228         * lib/Makefile.am (libfetish_a_SOURCES):
98229         Add strftime.c, since we now compile it on all hosts.
98230
98231         * lib/strftime.c (my_strftime):
98232         Define to nstrftime if emacs, but only if my_strftime is not defined.
98233         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98234         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98235         Add one more extra argument: a nanoseconds value.
98236         All uses changed.
98237         (ns): New macro.
98238         (my_strftime function): Add %N format.
98239         (emacs_strftimeu): Renamed from emacs_strftime,
98240         with extra ut argument.
98241
98242 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98243
98244         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98245
98246 2001-04-21  Jim Meyering  <meyering@lucent.com>
98247
98248         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98249         doesn't interfere.
98250
98251 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98252
98253         * m4/ftruncate.m4: Check for chsize.
98254         Link with ftruncate.o unconditionally if ftruncate is missing.
98255         This was required when cross-compiling to i586-mingw32msvc.
98256
98257 2001-04-08  Jim Meyering  <meyering@lucent.com>
98258
98259         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98260         recomputed; that's necessary when the offset spans a DST transition.
98261         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98262
98263 2001-04-02  Jim Meyering  <meyering@lucent.com>
98264
98265         * lib/regex.h, regex.c: Update from GNU libc.
98266
98267 2001-03-24  Jim Meyering  <meyering@lucent.com>
98268
98269         * m4/jm-macros.m4: Require autoconf-2.49d.
98270
98271 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98272
98273         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98274
98275 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98276
98277         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98278
98279 2001-03-17  Jim Meyering  <meyering@lucent.com>
98280
98281         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98282         now that the version in autoconf is equivalent.
98283         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98284
98285         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98286         Suggestion from Akim Demaille.
98287
98288         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98289         (jm_PREREQ_TEMPNAME): New function.
98290
98291 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98292
98293         * lib/tempname.c (uint64_t): Define to uintmax_t if
98294         not defined, and if UINT64_MAX is not defined.
98295         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98296         Reported by John David Anglin.
98297
98298 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98299
98300         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98301         resolve alias if codeset is empty.
98302         * lib/config.charset (BeOS): Use wildcard syntax.
98303
98304 2001-03-13  Jim Meyering  <meyering@lucent.com>
98305
98306         * lib/path-concat.c (path_concat)
98307         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98308         concatenating e.g., `C:' and `foo'.
98309         From Bruno Haible.
98310
98311 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98312
98313         * lib/localcharset.c (locale_charset): Don't use
98314         setlocale(LC_CTYPE,NULL). Don't return NULL.
98315         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98316
98317 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98318
98319         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98320         support for DOS/DJGPP.
98321
98322 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98323
98324         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98325         lacks mkstemp.  Compile our own tempname.c if we compile our own
98326         mkstemp.c, as mkstemp relies on tempname.
98327
98328 2001-03-01  Jim Meyering  <meyering@lucent.com>
98329
98330         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98331         AH_VERBATIM really does output its argument verbatim.
98332
98333 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98334
98335         * lib/Makefile.am (libfetish_a_SOURCES):
98336         Add dup-safer.c, fopen-safer.c.
98337         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98338
98339         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98340         * lib/unistd-safer.h: New files.
98341
98342 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98343
98344         The mkstemp replacement is taken from glibc 2.2.2, with some
98345         portability fixes for use outside glibc, as follows:
98346
98347         * lib/tempname.c (struct_stat64): New macro.
98348         (direxists, __gen_tempname): Use it.
98349         This avoids a portability problem with Solaris 8.
98350
98351         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98352         (<stddef.h>, <stdint.h>, <string.h>):
98353         Include only if STDC_HEADERS || _LIBC.
98354         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98355         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98356         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98357         (__set_errno): Define this macro if <errno.h> doesn't.
98358         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98359         Define these macros if <stdio.h> doesn't.
98360         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98361         Define these macros if <sys/stat.h>
98362         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98363         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98364         __xstat64): Define if not _LIBC.
98365         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98366         (__gen_tempname): Invoke gettimeofday only if
98367         HAVE_GETTIMEOFDAY || _LIBC;
98368         otherwise, fall back on plain "time".
98369         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98370
98371         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98372
98373         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98374
98375 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98376
98377         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98378
98379 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98380
98381         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98382         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98383         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98384         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98385
98386 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98387
98388         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98389         Remove workaround macros for hosts that have mbrtowc but not
98390         mbstate_t, as we now insist on proper declarations for both
98391         before using mbrtowc.
98392
98393 2001-02-17  Jim Meyering  <meyering@lucent.com>
98394
98395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98396         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98397         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98398         UnixWare 7.1.1.
98399
98400         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98401         rather than AC_CACHE_VAL.
98402
98403 2001-02-17  Jim Meyering  <meyering@lucent.com>
98404
98405         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98406         around included file name.
98407
98408         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98409
98410         * lib/strftime.c: Update from GNU libc (the only changes were to
98411         comments).
98412
98413 2001-02-17  Jim Meyering  <meyering@lucent.com>
98414
98415         * lib/regex.c: Update from libc.
98416
98417 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98418
98419         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98420         clash.
98421
98422 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98423
98424         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98425         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98426         Reported by Mark Hounschell via Paul Eggert.
98427
98428 2001-02-07  Jim Meyering  <meyering@lucent.com>
98429
98430         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98431
98432 2001-02-05  Jim Meyering  <meyering@lucent.com>
98433
98434         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98435         it includes the patch required for `large file' support with at least
98436         HP-UX's 10.20 /bin/cc.
98437
98438 2001-02-03  Jim Meyering  <meyering@lucent.com>
98439
98440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98441         AS_IF, now that it works once again (mysteriously).
98442         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98443
98444 2001-01-30  Jim Meyering  <meyering@lucent.com>
98445
98446         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98447         * m4/chown.m4: Rename conftestchown to conftest.chown.
98448         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98449         s/conftestdir2/conftest.d2/.
98450         * m4/utimes.m4: s/conftestdata/conftest.data/
98451         Inspired by Pavel Roskin's change in autoconf.
98452
98453 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98454
98455         * lib/config.charset: Update for FreeBSD 4.2.
98456
98457 2001-01-27  Jim Meyering  <meyering@lucent.com>
98458
98459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98460         a use of AS_IF.
98461         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98462
98463 2001-01-26  Jim Meyering  <meyering@lucent.com>
98464
98465         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98466         quotearg.c includes it.
98467
98468 2001-01-26  Jim Meyering  <meyering@lucent.com>
98469
98470         * lib/quotearg.c: Include stddef.h.
98471         * lib/quote.c: Include stddef.h.
98472         Reported by Axel Kittenberger.
98473
98474         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98475         line in double quotes so that it evokes a better diagnostic.
98476         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98477         Reported by Axel Kittenberger.
98478
98479 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98480
98481         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98482         as if it was a `charset'.
98483
98484 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98485
98486         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98487         has const.
98488
98489 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98490
98491         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98492         to avoid a warning.  Add back 'const' to inptr.
98493
98494 2001-01-20  Jim Meyering  <meyering@lucent.com>
98495
98496         Be sure that headers are checked before used in code compiled
98497         for the type checks.
98498         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98499         In place of that, invoke jm_CHECK_ALL_TYPES.
98500         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98501         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98502         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98503         The check for ssize_t was mistakenly run before the test for unistd.h.
98504
98505         The configure-time check for stdbool.h was missing.
98506         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98507         (jm_PREREQ_HASH): New function.
98508
98509 2001-01-17  Jim Meyering  <meyering@lucent.com>
98510
98511         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98512         for autoconf-2.49c.
98513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98514
98515 2001-01-16  Jim Meyering  <meyering@lucent.com>
98516
98517         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98518         From Bruno Haible.
98519
98520 2001-01-14  Jim Meyering  <meyering@lucent.com>
98521
98522         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98523         foo and bar.  Create conftestdir/ in the script, not in the C code.
98524         Remove directories in the script, not in the C code.
98525         Remove conftestdir{,2} before trying to create the directory.
98526         Make the entire configure script fail if the mkdir fails.
98527
98528 2001-01-14  Jim Meyering  <meyering@lucent.com>
98529
98530         * lib/rename.c: New file.  From Volker Borchert.
98531         Include stdlib.h, string.h or strings.h, and xalloc.h.
98532         Use strip_trailing_slashes rather than open-coding it.
98533
98534 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98535
98536         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98537
98538 2001-01-03  Jim Meyering  <meyering@lucent.com>
98539
98540         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98541         of local `inptr' to avoid warning with some system declarations of
98542         iconv.
98543
98544 2001-01-02  Volker Borchert  <bt@teknon.de>
98545
98546         * m4/rename.m4: New file.
98547         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98548
98549 2001-01-01  Jim Meyering  <meyering@lucent.com>
98550
98551         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98552         even on systems with utmpx.h.  It's necessary for the declaration of
98553         utmp's ut_user member.  Reported by Andreas Jaeger.
98554
98555         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98556         available. They are required for the declarations of getgrgid and
98557         getpwuid resp.
98558         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98559         Reported by Andreas Jaeger.
98560
98561 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98562
98563         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98564         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98565         so `make install' also works in VPATH builds.
98566
98567 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98568
98569         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98570         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98571         can be used in subdirectories.
98572
98573 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98574
98575         * lib/modechange.c: Do not assume that mode_t uses the
98576         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98577         the other-execute bit of FOO even if S_IXOTH != 1.
98578
98579         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98580         WOTH, XOTH, ALLM): New macros.
98581         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98582          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98583         Use them.
98584         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98585         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98586         (mode_compile):
98587         No need to use uintmax_t; unsigned long is long enough.
98588         Don't bother to get suffix since we don't use it.
98589
98590 2000-12-26  Jim Meyering  <meyering@lucent.com>
98591
98592         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98593         better with autoheader.
98594
98595 2000-12-24  Jim Meyering  <meyering@lucent.com>
98596
98597         * lib/hash.c (is_prime): Return explicit boolean values.
98598         (hash_get_first): Return NULL to appease Irix5.6's 89.
98599         Reported by Nelson Beebe.
98600
98601 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98602
98603         * lib/localcharset.c (locale_charset): Add support for Win32.
98604
98605 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98606
98607         * lib/physmem.h, lib/physmem.c: New files.
98608
98609         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98610         (noinst_HEADERS): Add physmem.h.
98611
98612         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98613         't' for compatibility with Solaris 8 sort.
98614
98615 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98616
98617         * lib/config.charset: Add support for BeOS.
98618
98619 2000-12-17  Jim Meyering  <meyering@lucent.com>
98620
98621         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98622         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98623
98624 2000-12-16  Jim Meyering  <meyering@lucent.com>
98625
98626         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98627         N and M) would have treated it like `chown N:N FILE'.
98628
98629         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98630
98631 2000-12-16  Jim Meyering  <meyering@lucent.com>
98632
98633         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98634         SHELLS_FILE to a file name that's useful on djgpp systems.
98635         Include stdlib.h.
98636         (ADDITIONAL_DEFAULT_SHELLS): Define.
98637         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98638         Based mostly on a patch from Prashant TR.
98639
98640 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98641
98642         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98643         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98644         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98645
98646 2000-12-08  Andreas Schwab  <schwab@suse.de>
98647
98648         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98649         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98650
98651 2000-12-07  Jim Meyering  <meyering@lucent.com>
98652
98653         * lib/stripslash.c (ISSLASH): Define.
98654         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98655         `/'.
98656         From Prashant TR.
98657
98658         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98659         (dir_name_r): Declare this function as static.
98660         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98661         manifest itself on a name containing a mix of slashes and
98662         backslashes.
98663         Make this function work with names starting with a DOS-style
98664         drive letter and colon prefix.
98665         (dir_name): Append `.' if necessary.
98666         Based mostly on patches from Prashant TR and Eli Zaretskii.
98667
98668         * lib/dirname.h (dir_name_r): Remove prototype.
98669
98670 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98671
98672         * m4/off_t-format.m4: Remove this file.
98673         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98674
98675 2000-12-06  Jim Meyering  <meyering@lucent.com>
98676
98677         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98678         replacement strtoull, we may well need the replacement strtoul, too.
98679         Check for declarations of strtoul and strtoull.
98680         Check for strtol.  Mainly as a cue to cause automake to include
98681         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98682         Check for limits.h -- strtol.c needs it.
98683
98684 2000-12-05  Jim Meyering  <meyering@lucent.com>
98685
98686         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98687
98688 2000-12-04  Jim Meyering  <meyering@lucent.com>
98689
98690         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98691         Also include memory.h, stdlib.h, unistd.h if appropriate.
98692         Reported by Andreas Jaeger (conflicting declaration of malloc).
98693
98694 2000-12-02  Jim Meyering  <meyering@lucent.com>
98695
98696         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98697         * m4/jm-macros.m4 (jm_MACROS): require it.
98698
98699 2000-12-02  Jim Meyering  <meyering@lucent.com>
98700
98701         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98702
98703 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98704
98705         * lib/memrchr.c: Include <config.h> before any system include file.
98706
98707 2000-11-30  Jim Meyering  <meyering@lucent.com>
98708
98709         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98710
98711 2000-11-30  Jim Meyering  <meyering@lucent.com>
98712
98713         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98714
98715 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98716
98717         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98718
98719 2000-11-26  Jim Meyering  <meyering@lucent.com>
98720
98721         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98722
98723 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98724
98725         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98726         size of (size_t) -1; it's not portable.
98727
98728 2000-11-17  Jim Meyering  <meyering@lucent.com>
98729
98730         * lib/strstr.c: Update from GNU libc.
98731
98732 2000-11-17  Akim Demaille  <akim@epita.fr>
98733
98734         * lib/obstack.h: Formatting changes.
98735         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98736         prevent type checking.
98737         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98738         cast the value to (void *): assigning a `foo *' to a `void *'
98739         variable is valid.
98740         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98741
98742 2000-11-16  Jim Meyering  <meyering@lucent.com>
98743
98744         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98745
98746 2000-11-11  Jim Meyering  <meyering@lucent.com>
98747
98748         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98749
98750 2000-11-10  Jim Meyering  <meyering@lucent.com>
98751
98752         * lib/obstack.h: Update from GNU libc.
98753         * lib/obstack.c: Likewise.
98754
98755 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98756
98757         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98758
98759 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98760
98761         * lib/getusershell.c (setusershell): Use rewind rather than
98762         fseek/fseeko, to avoid configuration hassles with fseeko.
98763         Don't bother opening SHELLS_FILE if shellstream is NULL;
98764         it's not necessary.
98765
98766 2000-11-05  Jim Meyering  <meyering@lucent.com>
98767
98768         * lib/makepath.h (make_dir): Declare.
98769         * lib/makepath.c (make_dir): Remove `static' attribute.
98770         Tweak a comment.
98771
98772 2000-11-04  Jim Meyering  <meyering@lucent.com>
98773
98774         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98775
98776 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98777
98778         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98779         last one in a bucket, advance to the next bucket.
98780
98781 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98782
98783         * lib/fnmatch.c: Do not comment out all the code if we are using
98784         the GNU C library, because in some cases we are replacing buggy
98785         code in the GNU C library itself.
98786
98787 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98788
98789         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98790         (regex_compile): Catch bogus \(\1\).
98791
98792 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98793
98794         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98795         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98796         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98797
98798 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98799
98800         * lib/error.h, getline.h, modechange.h:
98801         Remove "2000" from Copyright line, as the file hasn't been
98802         changed this year other than in the copyright notice.
98803
98804         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98805         was changed this year.
98806
98807 2000-10-29  Jim Meyering  <meyering@lucent.com>
98808
98809         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98810         renaming.
98811         * m4/ls-mntd-fs.m4: Likewise
98812
98813 2000-10-29  Jim Meyering  <meyering@lucent.com>
98814
98815         * lib/xstat.in: Fix grammar in comment.
98816
98817 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98818
98819         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98820         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98821         doesn't define __restrict_arr.
98822
98823 2000-10-28  Jim Meyering  <meyering@lucent.com>
98824
98825         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98826         (jm_PREREQ_MEMCHR): New function.
98827
98828 2000-10-28  Jim Meyering  <meyering@lucent.com>
98829
98830         * lib/memchr.c: Update from libc.
98831         Adjust for portability:
98832         [HAVE_STDLIB_H]: Include stdlib.h.
98833         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98834         Undef __memchr, too.
98835         [!weak_alias]: Define __memchr to memchr.
98836
98837         * lib/regex.c: Update from libc.
98838         * lib/regex.h: Likewise.
98839         * lib/getopt1.c: Likewise.
98840         * lib/memcmp.c: Likewise.
98841
98842         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98843         Avoid using fseek, when possible -- it's broken by design.
98844         Patch by Ulrich Drepper.
98845
98846 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98847
98848         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98849         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98850         Giving in to popular pressure to shut up the compiler with casts.
98851
98852 2000-10-26  Jim Meyering  <meyering@lucent.com>
98853
98854         * lib/strftime.c: Update from libc.
98855
98856 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98857
98858         * regex.c: More `unsigned char' -> `re_char' changes.
98859         Also change several `int' into `re_wchar_t'.
98860         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98861         (PUSH_FAILURE_POINTER): Don't cast any more.
98862         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98863         We want GCC to complain, since this piece of code makes
98864         re_match non-reentrant, which *should* be fixed.
98865         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98866         (EXTEND_BUFFER): Use RETALLOC.
98867         (SET_LIST_BIT): Don't cast.
98868         (re_wchar_t): New type.
98869         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98870         that those two functions will always properly return.
98871         (IMMEDIATE_QUIT_CHECK): Cast to void.
98872         (analyse_first): Use recursion rather than an explicit stack.
98873         (re_compile_fastmap): Can't fail anymore.
98874         (re_search_2): Don't check re_compile_fastmap for failure.
98875         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98876         Now also sets the new value (passed in a new argument).
98877         (re_match_2_internal): Use it.
98878         Also, use a new var `reg' of type size_t when looping through regs
98879         rather than reuse the inappropriate `mcnt'.
98880
98881 2000-10-25  Jim Meyering  <meyering@lucent.com>
98882
98883         * lib/obstack.c: Update from libc.
98884
98885 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98886
98887         * regex.c (regex_compile): Change the way of handling a range from
98888         a char less than 256 to a char not less than 256.
98889
98890 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98891
98892         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98893         NT-Emacs only.
98894         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98895         so that re_search functions only quit when callers expect them to.
98896
98897 2000-10-23  Jim Meyering  <meyering@lucent.com>
98898
98899         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98900         wrong.  That set_locale call must not have any side effects.
98901         From Paul Eggert.
98902
98903 2000-10-22  Jim Meyering  <meyering@lucent.com>
98904
98905         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98906         [CYCLIC]: Remove now-unused definition.
98907
98908         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98909         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98910         Suggestion from Ulrich Drepper.
98911
98912 2000-10-21  Jim Meyering  <meyering@lucent.com>
98913
98914         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98915         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98917
98918 2000-10-21  Jim Meyering  <meyering@lucent.com>
98919
98920         * lib/dirname.c (memrchr): Declare if necessary.
98921         (dir_name): Remove the restriction that there be no
98922         trailing slashes.  Now, this code skips past them, effectively
98923         ignoring them.
98924         [TEST_DIRNAME] (main): New unit tests.
98925
98926         * lib/memrchr.c: New file from GNU libc.
98927         Undef __memrchr, too.
98928         [!weak_alias]: Define __memrchr to memrchr.
98929         Guard weak_alias use with `#ifdef weak_alias'.
98930
98931 2000-10-21  Jim Meyering  <meyering@lucent.com>
98932
98933         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98934         (dir_name): Use dir_name_r.
98935         * lib/dirname.h (dir_name_r): Declare it.
98936
98937 2000-10-17  Jim Meyering  <meyering@lucent.com>
98938
98939         * lib/quote.h (PARAMS): Define and use.
98940         Reported by Akim Demaille.
98941
98942         * lib/getopt.c: Update from libc.
98943
98944 2000-10-16  Jim Meyering  <meyering@lucent.com>
98945
98946         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98947         setlocale.
98948         From Jan Fedak.
98949
98950 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98951
98952         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98953
98954 2000-09-25  Jim Meyering  <meyering@lucent.com>
98955
98956         * lib/md5.h (rol): Define (from GnuPG).
98957
98958         * lib/sha.c: Give credit (GnuPG) where due.
98959         (M): Use rol rather than open-coding it.
98960         Add a FIXME comment.
98961
98962 2000-09-21  Jim Meyering  <meyering@lucent.com>
98963
98964         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98965         Reported by Michael Stone.
98966
98967 2000-09-20  Jim Meyering  <meyering@lucent.com>
98968
98969         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98970         (noinst_HEADERS): Add sha.h.
98971         Based on code from Scott G. Miller and from GnuPG.
98972
98973 2000-09-18  Jim Meyering  <meyering@lucent.com>
98974
98975         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98976         LIBS. Otherwise, everyone ends up linking with -lelf for some
98977         configurations.
98978         Reported by Mike Stone.
98979
98980 2000-09-15  Jim Meyering  <meyering@lucent.com>
98981
98982         * lib/regex.c: Update from libc.
98983
98984 2000-09-10  Jim Meyering  <meyering@lucent.com>
98985
98986         * lib/getopt.c (_getopt_internal): Update from glibc.
98987
98988 2000-09-09  Jim Meyering  <meyering@lucent.com>
98989
98990         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98991         think it should be used as a general replacement for isascii.
98992         * lib/fnmatch.c: Likewise.
98993         * lib/mbswidth.c: Likewise
98994         * lib/regex.c: Likewise.
98995
98996         Don't use atoi.
98997         * lib/userspec.c: Include sys/param.h and limits.h.
98998         Include xstrtol.h.
98999         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99000         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99001         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99002         UID, GID.  Check range.
99003
99004 2000-09-06  Jim Meyering  <meyering@lucent.com>
99005
99006         * lib/getopt.c (_getopt_internal): Update from glibc.
99007
99008 2000-08-30  Jim Meyering  <meyering@lucent.com>
99009
99010         * lib/strftime.c: Merge in changes from GNU libc.
99011
99012 2000-08-26  Jim Meyering  <meyering@lucent.com>
99013
99014         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99015         * m4/fpending.m4: New file.
99016
99017 2000-08-26  Jim Meyering  <meyering@lucent.com>
99018
99019         * lib/closeout.c: Include "__fpending.h".
99020         (close_stdout_status): Return right away if there's nothing to flush.
99021
99022         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99023         * lib/__fpending.c: New file.
99024         * lib/__fpending.h: New file.
99025
99026 2000-08-20  Jim Meyering  <meyering@lucent.com>
99027
99028         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99029         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99030         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99031
99032 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99033
99034         Improve fileutils installation on systems where running
99035         programs (like install) can't be unlinked.
99036         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99037         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99038
99039 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99040
99041         Standardize on "memory exhausted" instead of "Memory exhausted"
99042         or "virtual memory exhausted".
99043         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99044         "virtual memory exhausted".
99045         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99046         our own message.
99047         * lib/userspec.c (parse_user_spec): Likewise.
99048         * lib/bumpalloc.h: comment fix
99049         * lib/same.c, userspec.c: Include xalloc.h.
99050
99051         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99052         not char *const and pointing to a constant array.
99053         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99054         (xrealloc): Comment fix.
99055
99056         * lib/userspec.c (parse_user_spec):
99057         Don't translate a message until just before returning,
99058         to avoid unnecessary translation.
99059
99060 2000-08-07  Jim Meyering  <meyering@lucent.com>
99061
99062         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99063         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99064         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99065         getgroups.c, gethostname.c, getopt.h, group-member.c,
99066         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99067         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99068         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99069         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99070         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99071         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99072         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99073         yesno.c: Back out Copyright date changes for each file with no change
99074         this year.  This eases coordination with other programs using the same
99075         source code modules.  From Paul Eggert.
99076
99077 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99078
99079         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99080         not char, for compatibility with glibc 2.1.3 strftime.c.
99081
99082 2000-08-03  Greg McGary  <greg@mcgary.org>
99083
99084         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99085         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99086         (EXTEND_BUFFER): Use them.
99087
99088 2000-08-01  Jim Meyering  <meyering@lucent.com>
99089
99090         * lib/dirname.c (ISSLASH): Define.
99091         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99092         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99093         both `\' and `/' may be use as path separators.
99094         Based on a patch from Prashant TR.
99095
99096 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99097
99098         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99099         slot vector a constant, since it might get modified.
99100
99101 2000-07-31  Jim Meyering  <meyering@lucent.com>
99102
99103         * lib/xmalloc.c: Use `virtual memory exhausted', not
99104         `Memory exhausted'.
99105         * lib/obstack.c (print_and_abort): Likewise.
99106
99107 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99108
99109         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99110         buffer, so that the caller can always quote one small
99111         component of a "memory exhausted" message in slot 0.
99112         From a suggestion by Jim Meyering.
99113
99114 2000-07-30  Jim Meyering  <meyering@lucent.com>
99115
99116         * lib/makepath.c (make_path): Quote the other instance, too.
99117
99118         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99119         (STATIC_BUF_SIZE): Define.
99120         (quotearg_n_options): Use only statically allocated storage when
99121         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99122         than STATIC_BUF_SIZE.
99123
99124 2000-07-29  Jim Meyering  <meyering@lucent.com>
99125
99126         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99127         * lib/dirname.c (dir_name): Likewise.
99128
99129         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99130         `/'.
99131
99132         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99133         (dir_name): Assert that there are no trailing slashes.
99134
99135 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99136
99137         * lib/mbswidth.h (mbswidth): Add a flags argument.
99138         (mbswidth): New declaration.
99139         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99140         * lib/mbswidth.c (mbswidth): Add a flags argument.
99141         (mbsnwidth): New function.
99142
99143 2000-07-24  Jim Meyering  <meyering@lucent.com>
99144
99145         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99146
99147 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99148
99149         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99150
99151 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99152
99153         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99154         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99155         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99156         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99157         invoke multibyte primitives.
99158
99159 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99160
99161         * lib/quotearg.c:
99162         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99163         so that mbstate_t is always defined.
99164
99165         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99166         be 1 in at least one GCC installation, and this configuration
99167         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99168         performance on hosts that have mbrtowc but have only unibyte
99169         locales, but I assume these hosts are rare.
99170
99171 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99172
99173         * lib/mbswidth.c (_XOPEN_SOURCE):
99174         Don't define; this causes problems on Solaris 7.
99175         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99176
99177 2000-07-23  Jim Meyering  <meyering@lucent.com>
99178
99179         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99180         too: getgrgid, getpwuid, getuid.
99181
99182 2000-07-23  Jim Meyering  <meyering@lucent.com>
99183
99184         * lib/basename.c (base_name): Add an assertion.
99185
99186 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99187
99188         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99189         shadow its mbsinit function.
99190
99191 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99192
99193         * lib/mbswidth.h: New file.
99194         * lib/mbswidth.c: New file.
99195         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99196         (noinst_HEADERS): Add mbswidth.h.
99197
99198 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99199
99200         * lib/config.charset: Add support for FreeBSD. Improve support for
99201         HP-UX and IRIX 6.
99202
99203 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99204
99205         * m4/mbswidth.m4: New file.
99206         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99207
99208 2000-07-15  Jim Meyering  <meyering@lucent.com>
99209
99210         * lib/makepath.c: Include quote.h.
99211         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99212         corresponding argument in a `quote (...)' call.
99213         Give better diagnostics.
99214
99215         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99216         (noinst_HEADERS): Add quote.h.
99217
99218         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99219         from tar's src/misc.c.
99220         * lib/quote.h: New file.  Prototypes for same.
99221
99222 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99223
99224         From a suggestion by Bruno Haible.
99225         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99226         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99227         to decide whether to define the BeOS workaround macro;
99228         this adjusts to the change to AC_MBSTATE_T.
99229
99230 2000-07-14  Jim Meyering  <meyering@lucent.com>
99231
99232         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99233         jm_AC_TYPE_UINTMAX_T.
99234
99235 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99236
99237         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99238
99239         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99240         quotearg_buffer_restyled): Add support for
99241         clocale_quoting_style.  Undo previous change to
99242         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99243         and "{RIGHT QUOTATION MARK}" msgids.
99244
99245 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99246
99247         From a suggestion by Bruno Haible.
99248         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99249         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99250         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99251         and mbstate_t, to a single-part test that simply defines mbstate_t.
99252         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99253         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99254
99255 2000-07-10  Jim Meyering  <meyering@lucent.com>
99256
99257         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99258
99259         * m4/gnu-source.m4: Output to confdefs.h directly.
99260         Suggestion from Akim Demaille.
99261
99262 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99263
99264         The old behavior of quoting `like this' doesn't look good with
99265         newer, ISO-style fonts.  See:
99266         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99267
99268         Instead, quote "like this" by default.  Let the translator
99269         tailor the locale-specific quoting behavior by providing
99270         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99271
99272         * lib/quotearg.c (N_): New macro.
99273         (gettext_default): New function.
99274         (quotearg_buffer_restyled): Use
99275         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99276         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99277
99278 2000-07-09  Jim Meyering  <meyering@lucent.com>
99279
99280         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99281         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99282
99283         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99284         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99285
99286 2000-07-09  Jim Meyering  <meyering@lucent.com>
99287
99288         * lib/Most files: Update copyright dates to include 2000.
99289
99290 2000-07-08  Jim Meyering  <meyering@lucent.com>
99291
99292         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99293         if not defined.
99294         (xgethostname): Remove now-unnecessary #ifdef.
99295         Move declaration of `err' into loop where it's used.
99296
99297 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99298         and Bruno Haible  <haible@clisp.cons.org>
99299
99300         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99301         only if the test for an object-type mbstate_t fails.  This
99302         prevents us from mistakenly reporting that mbstate_t is a
99303         system object type after we "#define mbstate_t int" to work
99304         around its lack.
99305
99306 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99307         and Bruno Haible  <haible@clisp.cons.org>
99308
99309         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99310
99311 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99312
99313         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99314         to strerror_r.
99315         Include <ctype.h> for use of isalpha.
99316
99317 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99318
99319         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99320         by allocating a larger buffer. Test the gethostname return value for
99321         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99322         returns an error and ENAMETOOLONG isn't defined.
99323
99324 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99325
99326         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99327         dimension.
99328
99329 2000-07-04  Jim Meyering  <meyering@lucent.com>
99330
99331         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99332         of the deprecated AC_CHECKING.
99333
99334 2000-07-04  Jim Meyering  <meyering@lucent.com>
99335
99336         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99337         Reported by Bruno Haible.
99338
99339 2000-07-04  Jim Meyering  <meyering@lucent.com>
99340
99341         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99342         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99343         lacks mbrtowc.
99344
99345 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99346
99347         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99348         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99349
99350 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99351         and Bruno Haible  <haible@clisp.cons.org>
99352
99353         * lib/quotearg.c (mbrtowc):
99354         Assign to *pwc, and return 1 only if result is nonzero.
99355         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99356
99357 2000-07-03  Jim Meyering  <meyering@lucent.com>
99358
99359         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99360
99361 2000-07-03  Jim Meyering  <meyering@lucent.com>
99362
99363         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99364         This is necessary to get a definition of e.g., UTMP_FILE on
99365         HP-UX 10.20.
99366         From Bob Proulx.
99367
99368 2000-07-02  Jim Meyering  <meyering@lucent.com>
99369
99370         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99371
99372         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99373         AC_LIBOBJ(function_name).
99374         * m4/chown.m4: Likewise.
99375         * m4/fnmatch.m4: Likewise.
99376         * m4/ftruncate.m4: Likewise.
99377         * m4/getgroups.m4: Likewise.
99378         * m4/getline.m4: Likewise.
99379         * m4/group-member.m4: Likewise.
99380         * m4/jm-macros.m4: Likewise.
99381         * m4/lstat.m4: Likewise.
99382         * m4/malloc.m4: Likewise.
99383         * m4/memcmp.m4: Likewise.
99384         * m4/nanosleep.m4: Likewise.
99385         * m4/putenv.m4: Likewise.
99386         * m4/realloc.m4: Likewise.
99387         * m4/regex.m4: Likewise.
99388         * m4/stat.m4: Likewise.
99389         * m4/strftime.m4: Likewise.
99390
99391 2000-07-02  Jim Meyering  <meyering@lucent.com>
99392
99393         * lib/quotearg.c (mbstate_t): Don't define here.
99394
99395 2000-07-02  Jim Meyering  <meyering@lucent.com>
99396
99397         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99398
99399 2000-07-01  Jim Meyering  <meyering@lucent.com>
99400
99401         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99402
99403 2000-07-01  Jim Meyering  <meyering@lucent.com>
99404
99405         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99406         problem.
99407
99408 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99409
99410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99411         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99412
99413 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99414
99415         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99416         per change in ../m4/ls-mntd-fs.m4.
99417         (read_filesystem_list): Ignore symbolic links.
99418
99419 2000-06-29  Jim Meyering  <meyering@lucent.com>
99420
99421         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99422         for declaration of strcmp.
99423
99424         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99425
99426         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99427         Avoid warning by casting result to `char *' to remove `const'.
99428
99429 2000-06-28  Jim Meyering  <meyering@lucent.com>
99430
99431         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99432         included by quotearg.c, for which we perform this test.  From
99433         Bruno Haible.
99434
99435 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99436
99437         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99438         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99439         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99440
99441 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99442
99443         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99444
99445 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99446
99447         savedir now sets errno on failure and invokes xmalloc to get memory.
99448         Fix a couple of other minor bugs while we're at it.
99449
99450         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99451         (NAMLEN): Remove macro.
99452         (malloc, realloc): Remove decls.
99453         (stpcpy): Likewise.
99454         ("xalloc.h"): Include.
99455         (NAME_SIZE_DEFAULT): New macro.
99456         (savedir): Use xmalloc / xrealloc to allocate memory.
99457         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99458         Skip "" directory entries.
99459         Use strlen to calculate directory entry length, since the old method
99460         is rarely used these days and isn't worth supporting.
99461         Don't use a pointer after freeing it.
99462         Check for integer overflow when calculating allocation size.
99463         Use memcpy to copy entries, instead of stpcpy.
99464         Set errno properly when returning NULL.
99465         Check for readdir error.
99466
99467 2000-06-26  Jim Meyering  <meyering@lucent.com>
99468
99469         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99470
99471 2000-06-25  Jim Meyering  <meyering@lucent.com>
99472
99473         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99474         Linux header bug when _XOPEN_SOURCE is defined to 500.
99475
99476 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99477
99478         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99479         deficiency.
99480
99481 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99482
99483         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99484         Include xalloc.h.
99485         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99486
99487 2000-06-24  Jim Meyering  <meyering@lucent.com>
99488
99489         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99490         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99491         for which strerror does return char*, but which lacks a conveniently
99492         accessible declaration of the function.  If the compile-test says
99493         strerror_r doesn't work, then resort to a `run'-test that works on
99494         BeOS and segfaults on DEC Unix.
99495
99496 2000-06-24  Jim Meyering  <meyering@lucent.com>
99497
99498         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99499
99500 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99501
99502         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99504
99505 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99506
99507         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99508         (mbrtowc, mbstate_t): Define substitutes if
99509         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99510         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99511         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99512
99513 2000-06-23  Jim Meyering  <meyering@lucent.com>
99514
99515         * m4/afs.m4: Add missing AC_MSG_RESULT.
99516         Reported by Bruno Haible.
99517
99518         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99519         Suggestion from Bruno Haible.
99520
99521 2000-06-23  Jim Meyering  <meyering@lucent.com>
99522
99523         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99524
99525 2000-06-21  Jim Meyering  <meyering@lucent.com>
99526
99527         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99528
99529 2000-06-21  Jim Meyering  <meyering@lucent.com>
99530
99531         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99532         (noinst_HEADERS): Add getstr.h.
99533
99534         * lib/getline.c (getstr): Move into a separate file.
99535         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99536         the following changes: new parameter, delim2; both delim[12]
99537         parameters have type `int', not `char'.  The latter would lose
99538         with 8-bit delimiters.
99539         * lib/getstr.h: New file.
99540
99541 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99542
99543         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99544         than 1024, return a memory chunk of least possible size, instead
99545         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99546         Use free/xmalloc instead of xrealloc to avoid copying for very long
99547         paths.
99548
99549 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99550
99551         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99552         the empty string.
99553
99554 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99555
99556         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99557         address, not strdup.  Include <stdlib.h> and don't declare free().
99558
99559 2000-06-19  Jim Meyering  <meyering@lucent.com>
99560
99561         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99562
99563 2000-06-18  Jim Meyering  <meyering@lucent.com>
99564
99565         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99566
99567         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99568         `checking whether...' message to be consistent with that of the
99569         lstat test.
99570
99571 2000-06-18  Jim Meyering  <meyering@lucent.com>
99572
99573         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99574         Besides, these days every porting target provides a mkdir function.
99575
99576         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99577         needed. (this snippet comes from src/system.h).
99578
99579 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99580
99581         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99582
99583 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99584
99585         * lib/human.c (adjust_value): New function.
99586         (human_readable_inexact): Apply rounding style even when
99587         printing approximate values.
99588
99589 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99590
99591         * lib/human.c (human_readable_inexact): Allow an input block
99592         size that is not a multiple of the output block size, and vice versa.
99593         Reported by Piergiorgio Sartor.
99594
99595 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99596
99597         * lib/getdate.y (get_date): Apply relative times after time
99598         zone indicator, not before.  Reported by Todd A. Jacobs.
99599
99600 2000-06-13  Jim Meyering  <meyering@lucent.com>
99601
99602         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99603
99604         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99605
99606 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99607
99608         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99609
99610 2000-06-12  Jim Meyering  <meyering@lucent.com>
99611
99612         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99613         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99614         optional argument.
99615         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99616         the optional argument, `lib'.
99617
99618 2000-06-08  Jim Meyering  <meyering@lucent.com>
99619
99620         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99621
99622 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99623
99624         Rewrite largefile configuration so that we don't need to run
99625         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99626         AC_CANONICAL_HOST in configure.in -- jmm]
99627
99628         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99629         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99630         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99631         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99632         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99633         All uses changed.
99634         Instead of inspecting the output of getconf, try to compile the
99635         test program without and with the macro definition.
99636         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99637         for getconf.  Instead, check for the needed flags by compiling
99638         test programs.
99639
99640 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99641
99642         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99643
99644 2000-06-04  Jim Meyering  <meyering@lucent.com>
99645
99646         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99647         SunOS 4.1.4 for which gid_t is an unsigned type.
99648
99649 2000-06-03  Jim Meyering  <meyering@lucent.com>
99650
99651         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99652         now that autoconf requires that.
99653
99654         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99655         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99656         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99657
99658 2000-06-03  Jim Meyering  <meyering@lucent.com>
99659
99660         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99661
99662 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99663
99664         * m4/glibc21.m4: New file.
99665         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99666
99667 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99668
99669         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99670         newer, don't install charset.alias.
99671         * lib/config.charset: Change the Linux/glibc rules so they become empty
99672         on glibc-2.1 or newer.
99673
99674 2000-06-02  Jim Meyering  <meyering@lucent.com>
99675
99676         * lib/mountlist.c: Back out last change.  Instead, do this...
99677         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99678         me_dummy member using the same `ignore'-testing code.
99679         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99680         fs_type strings.
99681         From Mark D. Roth.
99682
99683 2000-05-29  Jim Meyering  <meyering@lucent.com>
99684
99685         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99686         mounts with the `ignore' attribute.  Based on a patch from
99687         Mark D. Roth.
99688
99689 2000-05-28  Jim Meyering  <meyering@lucent.com>
99690
99691         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99692         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99693         * m4/stat.m4: Likewise.
99694         * m4/lstat.m4: Likewise.
99695         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99696
99697         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99698         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99699
99700 2000-05-26  Jim Meyering  <meyering@lucent.com>
99701
99702         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99703
99704 2000-05-24  Jim Meyering  <meyering@lucent.com>
99705
99706         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99707         autoconf requires that.
99708         * m4/lib-check.m4: Likewise.
99709         * m4/jm-macros.m4: Likewise.
99710         * m4/strftime.m4: Likewise.
99711
99712         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99713         AC_CHECK_DECLS, now that autoconf requires that.
99714
99715 2000-05-22  Jim Meyering  <meyering@lucent.com>
99716
99717         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99718         * m4/lstat.m4: Likewise.
99719
99720 2000-05-22  Jim Meyering  <meyering@lucent.com>
99721
99722         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99723
99724 2000-05-20  Jim Meyering  <meyering@lucent.com>
99725
99726         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99727         (jm_PREREQ): Use it.
99728
99729 2000-05-18  Jim Meyering  <meyering@lucent.com>
99730
99731         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99732         back, too, since it may have been modified by allocate_entry.
99733         (hash_delete): Rewrite to use neither the assignment operator
99734         nor the comma operator in an if-expression.
99735
99736 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99737
99738         * lib/closeout.c:
99739         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99740         Remove; no longer needed.
99741         "quotearg.h": Add include.
99742         (file_name): Do not bother to explicitly initialize to NULL; it's less
99743         efficient on some hosts.
99744         (close_stdout_status): Remove test as to whether stdout was already
99745         closed; it breaks for the case "echo x | sort >&-".
99746         Quote file name colons.
99747         Do not assume that _("write error") lacks format strings.
99748
99749 2000-05-15  Jim Meyering  <meyering@lucent.com>
99750
99751         * lib/version-etc.c (version_etc_copyright): Update the copyright
99752         string used in all --version output.
99753
99754 2000-05-14  Jim Meyering  <meyering@lucent.com>
99755
99756         * lib/closeout.c (close_stdout_set_file_name): New function.
99757         (close_stdout_status): Use new file-scoped global.
99758         Return right away if fstat says the stdout file descriptor is invalid.
99759         * lib/closeout.h (close_stdout_set_file_name): Declare.
99760
99761 2000-05-10  Jim Meyering  <meyering@lucent.com>
99762
99763         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99764         (close_stdout_set_status): New function.
99765         * lib/closeout.h (close_stdout_set_status): Declare.
99766
99767 2000-05-09  Jim Meyering  <meyering@lucent.com>
99768
99769         * m4/gettext.m4: Rename this...
99770         * m4/libintl.m4: ...to this.
99771
99772 2000-05-08  Jim Meyering  <meyering@lucent.com>
99773
99774         * lib/long-options.c: Don't include closeout.h.
99775         (parse_long_options): Don't call close_stdout for --version.
99776
99777 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99778
99779         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99780         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99781         2.1.3 bug.  This avoids a clash when files like regex.c define
99782         _GNU_SOURCE.
99783
99784 2000-05-06  Jim Meyering  <meyering@lucent.com>
99785
99786         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99787         (AC_REPLACE_FUNCS): Add strnlen.
99788
99789         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99790         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99791
99792         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99793         AC_SEARCH_LIBS call for nanosleep.
99794         (LIB_NANOSLEEP): Set and AC_SUBST.
99795
99796 2000-05-06  Jim Meyering  <meyering@lucent.com>
99797
99798         * lib/strnlen.c: Undefine __strnlen and strnlen.
99799         [!weak_alias]: Define __strnlen to strnlen.
99800
99801         * lib/atexit.c: New file, from libiberty.
99802
99803 2000-05-06  Jim Meyering  <meyering@lucent.com>
99804
99805         * lib/closeout.c (close_stdout_status): Also check for errors on the
99806         stderr stream.
99807
99808 2000-05-05  Jim Meyering  <meyering@lucent.com>
99809
99810         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99811         AC_SEARCH_LIBS call for clock_gettime.
99812         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99813
99814         * m4/search-libs.m4: Update from autoconf.
99815
99816         su doesn't work on Solaris 2.6.
99817         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99818         <shadow.h>.  Reported by Dragos Harabor.
99819
99820 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99821
99822         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99823         memcpy instead of xmalloc, xrealloc, path_concat.
99824         (locale_charset): Treat empty environment variables as absent.
99825         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99826
99827 2000-05-04  Jim Meyering  <meyering@lucent.com>
99828
99829         * lib/getopt.c: Update from glibc.
99830         * lib/obstack.c: Likewise.
99831         * lib/obstack.h: Likewise.
99832         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99833         file
99834
99835         * lib/regex.h: Likewise.
99836         * lib/strndup.c: Likewise.
99837         * lib/strnlen.c: New file, from glibc.
99838
99839 2000-05-03  Jim Meyering  <meyering@lucent.com>
99840
99841         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99842
99843 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99844
99845         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99846         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99847         compile-time test, rather than inspecting host and OS, to
99848         decide whether to define _LARGEFILE_SOURCE.
99849
99850 2000-05-01  Jim Meyering  <meyering@lucent.com>
99851
99852         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99853
99854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99855         Based on a patch from Bruno Haible.
99856
99857 2000-05-01  Jim Meyering  <meyering@lucent.com>
99858
99859         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99860
99861 2000-04-29  Jim Meyering  <meyering@lucent.com>
99862
99863         * lib/path-concat.c: Declare strdup only if it's not defined.
99864         * lib/canon-host.c: Likewise.
99865
99866 2000-04-28  Jim Meyering  <meyering@lucent.com>
99867
99868         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99869         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99870         is included first, then limits.h is included by locale.h by libintl.h.
99871         From John David Anglin.
99872
99873 2000-04-25  Jim Meyering  <meyering@lucent.com>
99874
99875         * lib/makepath.c (S_IRWXUGO): Define.
99876         (make_path): Always perform explicit chmod if MODE specifies any
99877         of the `special' permission bits.  Prompted by a bug report against
99878         install from Mate Wierdl and Joost van Baal.
99879
99880 2000-04-18  Jim Meyering  <meyering@lucent.com>
99881
99882         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99883         (jm_PREREQ): Use it.
99884
99885 2000-04-18  Jim Meyering  <meyering@lucent.com>
99886
99887         * lib/README: New file.
99888
99889         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99890         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99891
99892 2000-04-17  Jim Meyering  <meyering@lucent.com>
99893
99894         Get it right :-)
99895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99896         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99897         Suggestion from Akim Demaille.
99898
99899 2000-04-17  Jim Meyering  <meyering@lucent.com>
99900
99901         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99902         the definition of it to rpl_strftime also defined-away the system's
99903         declaration.
99904
99905 2000-04-15  Jim Meyering  <meyering@lucent.com>
99906
99907         Use `C' to denote so-called `contiguous' files, the same way
99908         that tar does.
99909         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99910         (ftypelet): Use S_ISCTG.
99911         From Michael Deutschmann.
99912
99913 2000-04-14  Jim Meyering  <meyering@lucent.com>
99914
99915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99916         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99917         clobbered.
99918
99919 2000-04-14  Jim Meyering  <meyering@lucent.com>
99920
99921         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99922
99923 2000-04-13  Jim Meyering  <meyering@lucent.com>
99924
99925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99926         AH_VERBATIM to insert required #ifndef into config.h.in.
99927         Suggestion from Akim Demaille.
99928
99929 2000-04-12  Jim Meyering  <meyering@lucent.com>
99930
99931         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99932         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99933         Christian Krackowizer.
99934
99935         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99936         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99937         (AC_SYS_LARGEFILE): Require.
99938         (AM_C_PROTOTYPES): Require.
99939
99940 2000-04-08  Jim Meyering  <meyering@lucent.com>
99941
99942         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99943         names don't conflict.  Reported by Eli Zaretskii.
99944
99945 2000-04-07  Jim Meyering  <meyering@lucent.com>
99946
99947         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99948         sys/types.h, to work around system header problems on AIX 3.2.5.
99949         From Bruno Haible.
99950
99951 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99952
99953         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99954         bug.  Deal with the different error behavior of Irix iconv.
99955
99956 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99957
99958         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99959         IRIX if the installer said otherwise.
99960
99961 2000-04-05  Jim Meyering  <meyering@lucent.com>
99962
99963         Portability tweaks required for ultrix4.3.
99964         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99965         (jm_CHECK_DECLS): Add getutent to the list of functions.
99966         (_jm_DECL_HEADERS): Add utmpx.h.
99967         From John David Anglin.
99968
99969         * m4/strftime.m4: Back out the 2000-04-02 change.
99970         Instead of that change, simply undefine putenv in the test program.
99971
99972 2000-04-05  Jim Meyering  <meyering@lucent.com>
99973
99974         Portability tweaks required for ultrix4.3.
99975         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99976         getutent.
99977         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99978         * lib/canon-host.c: Declare strdup.
99979         * lib/path-concat.c: Likewise.
99980         From John David Anglin.
99981
99982 2000-04-04  Jim Meyering  <meyering@lucent.com>
99983
99984         Be more DOS 8.3-friendly.
99985         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99986         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99987         * lib/Makefile.am: Reflect renaming.
99988         Reported by Eli Zaretskii.
99989
99990         Use a temporary file name that won't clash with `charset.alias'
99991         in the DOS 8.3 name space.
99992         * lib/Makefile.am (charset_tmp): Define.
99993         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99994         (uninstall-local): Likewise.
99995         Reported by Eli Zaretskii.
99996
99997 2000-04-03  Jim Meyering  <meyering@lucent.com>
99998
99999         * m4/gettext.m4: Fix typo in comment.
100000
100001         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100002         textutils/configure.in).  Suggestion from Paul Eggert.
100003         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100004
100005 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100006
100007         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100008         variable in the shell rather than using putenv, which isn't
100009         portable.  This avoids the configure-time inter-test dependency
100010         on the potentially-renamed putenv function.
100011
100012 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100013
100014         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100015         before checking struct stat.st_blksize, so that
100016         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100017
100018 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100019
100020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100021         since strftime.c uses HAVE_STRFTIME to decide whether to use
100022         the underlying strftime.
100023
100024 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100025
100026         * lib/time/strftime.c (my_strftime): Make sure we call the system
100027         strftime, not ourselves, when invoking the underlying strftime.
100028
100029 2000-03-24  Jim Meyering  <meyering@lucent.com>
100030
100031         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100032         (charset_alias): Define.
100033         (install-exec-local): Factor out common code.
100034         (uninstall-local): Split lines longer than 80.
100035         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100036         (SUFFIXES): Define.
100037         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100038         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100039
100040 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100041
100042         * lib/config.charset: Output a line containing "Packages using this
100043         file".
100044         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100045         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100046         ref-del.sed): New rules.
100047
100048 2000-03-17  Jim Meyering  <meyering@lucent.com>
100049
100050         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100051         Otherwise, include <strings.h>
100052
100053 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100054
100055         * lib/unicodeio.c (utf8_wctomb): New function.
100056         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100057         format instead of in UCS-4 with platform dependent endianness.
100058
100059 2000-03-10  Jim Meyering  <meyering@lucent.com>
100060
100061         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100062         From Marco Franzen.
100063
100064 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100065
100066         * lib/savedir.c (savedir): Work even if directory size is
100067         negative; this can happen with some screwy NFS configurations.
100068
100069 2000-03-06  Jim Meyering  <meyering@lucent.com>
100070
100071         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100072         if it's NULL (because we ran out of memory).  From Bruno Haible.
100073
100074 2000-03-05  Jim Meyering  <meyering@lucent.com>
100075
100076         * lib/localcharset.c ("path-concat.h"): Include.
100077         (get_charset_aliases): Use path_concat instead of ANSI string
100078         concatenation.
100079
100080         * lib/unicodeio.h (PARAMS): Define.
100081         Use it to guard prototype.
100082
100083 2000-03-04  Jim Meyering  <meyering@lucent.com>
100084
100085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100086         for lib/localcharset.c.
100087
100088 2000-03-04  Jim Meyering  <meyering@lucent.com>
100089
100090         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100091         installing into it.
100092         (uninstall-local): Uncomment this rule so `make distcheck' works
100093         once again.
100094
100095         * lib/unicodeio.c (<errno.h>): Include it.
100096         (errno): Declare if not defined.
100097
100098         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100099
100100         * lib/config.charset: New version, incorporating remarks from a linux
100101         i18n mailing list.  From Bruno Haible.
100102
100103 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100104
100105         * m4/codeset.m4: New file.
100106         * m4/iconv.m4: New file.
100107         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100108
100109 2000-03-03  Jim Meyering  <meyering@lucent.com>
100110
100111         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100112
100113 2000-03-02  Jim Meyering  <meyering@lucent.com>
100114
100115         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100116         the messages come out on separate lines.
100117
100118         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100119         rather than jm_CHECK_DECLARATIONS.
100120         * m4/decl.m4: Remove now-unused file.
100121
100122         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100123         geteuid.
100124
100125 2000-03-02  Jim Meyering  <meyering@lucent.com>
100126
100127         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100128
100129 2000-03-01  Jim Meyering  <meyering@lucent.com>
100130
100131         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100132         * lib/unicodeio.c: Likewise.
100133
100134 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100135
100136         * lib/config.charset: New file.
100137         * lib/localcharset.c: New file.
100138         * lib/unicodeio.h, lib/unicodeio.c: New files.
100139         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100140         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100141         (noinst_HEADERS): Add unicodeio.h.
100142         (all-local, install-exec-local, charset.alias): New targets.
100143
100144 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100145
100146         * lib/quotearg.c (ALERT_CHAR): New macro.
100147         (quotearg_buffer_restyled): Use it.
100148
100149 2000-02-27  Jim Meyering  <meyering@lucent.com>
100150
100151         * m4/check-decl.m4: Add getenv to the list.
100152
100153 2000-02-27  Jim Meyering  <meyering@lucent.com>
100154
100155         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100156         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100157
100158         * lib/backupfile.c: Guard inclusion of stdlib.h with
100159         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100160         Declare malloc if needed.
100161
100162         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100163         `#ifndef HAVE_DECL..'
100164         now that autoconf always defines the HAVE_DECL_ symbols.
100165         * lib/human.c: Likewise.
100166         * lib/same.c: Likewise.
100167         * lib/strtoumax.c: Likewise.
100168
100169         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100170         declaration check was not run.
100171         * lib/hash.c: Likewise.
100172         * lib/human.c: Likewise.
100173         * lib/same.c: Likewise.
100174         * lib/strtoumax.c: Likewise.
100175
100176         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100177         `.', then first look up the entire `.'-containing string as a login
100178         name.
100179
100180 2000-02-23  Jim Meyering  <meyering@lucent.com>
100181
100182         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100183         in place of my hack.
100184
100185 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100186
100187         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100188         (textint): New typedef.
100189         (parser_control): Member year changed from int to textint.
100190         All uses changed.
100191         (YYSTYPE): Removed; replaced by %union with int and textint members.
100192         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100193         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100194         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100195         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100196         (date, number, to_year): Use width of number in digits, not its value,
100197         to determine whether it's a 2-digit year, or a 2-digit time.
100198         (yylex): Store number of digits of numeric tokens.
100199         Reported by John Kendall.
100200
100201         (parser_control): Changed from struct parser_control to typedef (for
100202         consistency).  All uses changed.
100203
100204         (tID): Removed; not used.
100205         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100206
100207 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100208
100209         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100210         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100211
100212 2000-02-12  Jim Meyering  <meyering@lucent.com>
100213
100214         * lib/userspec.c (ISDIGIT): Define it.
100215         (isdigit): Remove definition.
100216         (is_number): Use ISDIGIT, not isdigit.
100217         <libintl.h>: Include.
100218         (_ and N_): Define.
100219         (parse_user_spec): Mark translatable strings.
100220
100221 2000-02-10  Jim Meyering  <meyering@lucent.com>
100222
100223         With these changes, nanosleep.[ch] are finally enough like the other
100224         lib/* replacement files to compile on a few more losing systems.
100225
100226         * lib/nanosleep.h: Don't include config.h.
100227         Remove prototype from declaration of nanosleep.
100228         (PARAMS): Remove now-unneeded definition.
100229         * lib/nanosleep.c: #undef nanosleep.
100230         (rpl_nanosleep): Rename from nanosleep.
100231
100232 2000-02-10  Jim Meyering  <meyering@lucent.com>
100233
100234         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100235         gnu_nanosleep to rpl_nanosleep.
100236
100237 2000-02-09  Jim Meyering  <meyering@lucent.com>
100238
100239         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100240         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100241
100242 2000-02-08  Akim Demaille  <akim@epita.fr>
100243
100244         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100245         `[' and `]' and remove uses of `changequote'.
100246         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100247         (AC_SYS_LARGEFILE): Likewise.
100248         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100249         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100250         of changequote.
100251         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100252         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100253         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100254         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100255
100256 2000-02-05  Jim Meyering  <meyering@lucent.com>
100257
100258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100259         Remove explicit use of AC_HEADER_TIME.  It is required by
100260         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100261         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100262         in autoconf whereby the expansion of the latter ended up preceding
100263         the expansion of its prerequisite, AC_HEADER_TIME.
100264         Reported by Volker Borchert.
100265
100266 2000-02-03  Jim Meyering  <meyering@lucent.com>
100267
100268         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100269
100270 2000-02-03  Jim Meyering  <meyering@lucent.com>
100271
100272         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100273         rather than with `#if HAVE_UTMPNAME'.
100274
100275 2000-02-02  Jim Meyering  <meyering@lucent.com>
100276
100277         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100278         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100279         Reported by Eli Zaretskii.
100280
100281 2000-02-01  Jim Meyering  <meyering@lucent.com>
100282
100283         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100284
100285 2000-01-31  Jim Meyering  <meyering@lucent.com>
100286
100287         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100288         functions.  Add the time.h and sys/time.h headers along with the
100289         AC_REQUIRE'ment of AC_HEADER_TIME.
100290
100291 2000-01-31  Jim Meyering  <meyering@lucent.com>
100292
100293         * lib/nanosleep.h (nanosleep): Guard declaration with
100294         `#if ! HAVE_DECL_NANOSLEEP'.
100295         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100296         the declaration in that vendor's sys/timers.h.
100297         Reported by Christian Krackowizer.
100298
100299         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100300         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100301         (ISPRINT): Likewise.
100302         Reported by Tom Tromey.
100303
100304 2000-01-30  Jim Meyering  <meyering@lucent.com>
100305
100306         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100307
100308         * m4/prereq.m4 (utmp_includes): Define.
100309         Check for ut_user and ut_name members in both struct utmpx
100310         and struct utmp.
100311
100312 2000-01-30  Jim Meyering  <meyering@lucent.com>
100313
100314         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100315         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100316         header files where only utmpx.ut_user is declared.
100317
100318         * lib/readutmp.h (UT_USER): Define.
100319
100320 2000-01-29  Jim Meyering  <meyering@lucent.com>
100321
100322         * m4/lib-check.m4: New file containing library-related checks from
100323         fileutils and sh-utils (textutils had none).
100324
100325 2000-01-28  Jim Meyering  <meyering@lucent.com>
100326
100327         * m4/perl.m4: Change format of warning message to look more like that
100328         from the missing script.  Suggestion from François Pinard.
100329
100330 2000-01-25  Jim Meyering  <meyering@lucent.com>
100331
100332         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100333         well as time.h in the compile check.
100334         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100335         Fix typo in cross-compiling case: s/yes/no/.
100336
100337 2000-01-23  Jim Meyering  <meyering@lucent.com>
100338
100339         * m4/jm-macros.m4: Move df-related tests here from
100340         fileutils/configure.in
100341
100342         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100343         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100344
100345         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100346         s/space/ac_fsusage_space/.
100347         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100348
100349         * m4/ftruncate.m4: New file (derived from part of
100350         fileutils/configure.in).
100351         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100352         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100353
100354         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100355         AC_SUBST these here, rather than just in sh-util/configure.in, so
100356         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100357         all the same.
100358         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100359         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100360         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100361         (AC_SUBST(POW_LIBM)): Likewise.
100362         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100363
100364 2000-01-23  Jim Meyering  <meyering@lucent.com>
100365
100366         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100367         obstack.c.
100368
100369 2000-01-22  Jim Meyering  <meyering@lucent.com>
100370
100371         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100372
100373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100374
100375         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100376         configure.in
100377         (AC_CHECK_HEADERS): Likewise for sh-utils.
100378         (AC_CHECK_HEADERS): Likewise for textutils.
100379         Merge the three lists of headers.
100380
100381         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100382         from fileutils' configure.in.
100383
100384         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100385         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100386         check-decl.m4.
100387
100388         * m4/check-decl.m4: Use #if rather than #ifdef.
100389         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100390         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100391         (_jm_DECL_HEADERS): Define new function.
100392         (jm_CHECK_DECLARATIONS): Require it.
100393
100394 2000-01-22  Jim Meyering  <meyering@lucent.com>
100395
100396         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100397         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100398         Required for some AIX systems.  Reported by Christian Krackowizer.
100399         [TESTING] (main): New function.
100400
100401         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100402         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100403         letters.
100404
100405         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100406         iswprint.
100407
100408         * lib/strverscmp.c (ISDIGIT): Define.
100409         (strverscmp): Use ISDIGIT, not isdigit.
100410
100411 2000-01-19  Jim Meyering  <meyering@lucent.com>
100412
100413         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100414         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100415         defines `struct timespec' in <sys/time.h>
100416
100417         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100418         Thanks to Akim for explaining.
100419
100420 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100421
100422         * lib/nanosleep.c (nanosleep):
100423         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100424         POSIX.1 doesn't require SA_INTERRUPT and some systems
100425         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100426         it's been part of POSIX.1 since day 1 (in 1988).
100427
100428 2000-01-17  Jim Meyering  <meyering@lucent.com>
100429
100430         * lib/interlock: Remove unused file.  Reported by François Pinard.
100431
100432 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100433
100434         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100435         alert, backslash, formfeed, and vertical tab unnecessarily in
100436         shell quoting style.
100437
100438 2000-01-16  Jim Meyering  <meyering@lucent.com>
100439
100440         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100441         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100442         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100443         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100444
100445 2000-01-16  Jim Meyering  <meyering@lucent.com>
100446
100447         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100448         because the latter didn't work.
100449
100450 2000-01-15  Jim Meyering  <meyering@lucent.com>
100451
100452         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100453         (AC_REPLACE_FUNCS): Add memcpy and memset.
100454         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100455         Add strpbrk.
100456         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100457
100458 2000-01-12  Jim Meyering  <meyering@lucent.com>
100459
100460         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100461         (jm_PREREQ): Use it.
100462         (jm_PREREQ_READUTMP): New macro.
100463         (jm_PREREQ): Use it.
100464
100465 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100466
100467         Quote multibyte characters correctly.
100468         * m4/c-bs-a.m4: New file.
100469         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100470         (jm_PREREQ): Use it.
100471
100472 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100473
100474         * m4/uintmax_t.m4: Port to autoconf 2.13.
100475
100476 2000-01-08  Jim Meyering  <meyering@ascend.com>
100477
100478         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100479         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100480
100481 2000-01-04  Jim Meyering  <meyering@ascend.com>
100482
100483         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100484         jm_STRUCT_DIRENT_D_TYPE.
100485         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100486         jm_STRUCT_DIRENT_D_INO.
100487         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100488         jm_STRUCT_UTIMBUF.
100489         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100490         renamings.
100491         * m4/utime.m4: Likewise.
100492
100493         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100494         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100495
100496 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100497
100498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100499         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100500
100501 2000-01-02  Jim Meyering  <meyering@ascend.com>
100502
100503         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100504         remember if this is necessary.
100505
100506 1999-12-26  Jim Meyering  <meyering@ascend.com>
100507
100508         * m4/jm-macros.m4: Use it here.
100509         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100510
100511 1999-12-23  Jim Meyering  <meyering@ascend.com>
100512
100513         * m4/jm-macros.m4: Check for clock_gettime (moved from
100514         fileutils/configure.in)
100515         Check for gettimeofday.
100516
100517 1999-12-20  Jim Meyering  <meyering@ascend.com>
100518
100519         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100520         autoconf-2.14a-1999-12-20.
100521
100522 1999-12-19  Jim Meyering  <meyering@ascend.com>
100523
100524         * m4/lstat-slash.m4: New file.
100525         * m4/jm-macros.m4: Use the new macro:
100526         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100527
100528 1999-12-07  Jim Meyering  <meyering@ascend.com>
100529
100530         * m4/perl.m4: Require that File::Compare be available, too.
100531         Too many systems seem to lack it.
100532
100533         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100534         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100535
100536 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100537
100538         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100539         problem with the QNX 4.25 shell, which doesn't propagate exit
100540         status of failed commands inside shell assignments.
100541
100542 1999-11-17  Jim Meyering  <meyering@ascend.com>
100543
100544         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100545
100546 1999-11-07  Jim Meyering  <meyering@ascend.com>
100547
100548         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100549
100550 1999-11-06  Jim Meyering  <meyering@ascend.com>
100551
100552         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100553         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100554
100555 1999-11-05  Jim Meyering  <meyering@ascend.com>
100556
100557         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100558         configure.in of textutils, fileutils, and sh-utils into this one
100559         (shared between those packages) file.
100560         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100561         AC_STRUCT_ST_BLKSIZE.
100562
100563 1999-11-03  Jim Meyering  <meyering@ascend.com>
100564
100565         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100566         of AC_CHECK_TYPE checks includes unistd.h.
100567         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100568         Suggestion from Akim Demaille.
100569
100570 1999-10-30  Jim Meyering  <meyering@ascend.com>
100571
100572         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100573         m4-quoted string.
100574         * m4/ls-mntd-fs.m4: Likewise.
100575         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100576         * m4/jm-winsz1.m4: Likewise.
100577
100578         * m4/const.m4: Remove file, since the fix made it into the experimental
100579         version of autoconf.
100580         * m4/mktime.m4: Likewise.
100581
100582         * m4/check-type.m4: Remove file, now that the latest version of
100583         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100584
100585         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100586         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100587         AC_CHECK_TYPE.
100588
100589 1999-10-04  Jim Meyering  <meyering@ascend.com>
100590
100591         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100592
100593 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100594
100595         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100596         2.95.1 bug with HP-UX 10.20.
100597
100598 1999-09-17  Jim Meyering  <meyering@ascend.com>
100599
100600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100601         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100602         due to missing strdup (against sh-utils-2.0).
100603
100604 1999-08-29  Jim Meyering  <meyering@ascend.com>
100605
100606         * m4/jm-macros.m4: Require jm_BISON.
100607         * m4/bison.m4: New file.
100608
100609 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100610
100611         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100612         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100613
100614 1999-08-05  Jim Meyering  <meyering@ascend.com>
100615
100616         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100617         to avoid conflicts with `conftest' on 8+3 filesystems.
100618         Suggestion from Eli Zaretskii.
100619
100620 1999-08-04  Jim Meyering  <meyering@ascend.com>
100621
100622         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100623         fileutils and sh-utils (textutils's getline test was inadequate).
100624         (AM_FUNC_GETLINE): Run this test.
100625         (AC_CHECK_FUNCS): Check for getdelim.
100626         Reported by Bob Proulx.
100627
100628 1999-08-02  Jim Meyering  <meyering@ascend.com>
100629
100630         * m4/jm-macros.m4: Add a comment.
100631
100632 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100633
100634         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100635         <inttypes.h> defines strtoumax as a macro (and not as a
100636         function).
100637
100638 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100639
100640         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100641         that we can shift, multiply and divide unsigned long long
100642         values; Ultrix cc can't do it.
100643
100644 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100645
100646         * m4/mktime.m4: New file, which is a preview of what should appear
100647         in the next public autoconf release.
100648
100649 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100650
100651         * m4/lfs.m4: Remove this file.
100652         * m4/largefile.m4: New file.  It contains the old contents of
100653         lfs.m4, except that all names with prefix AC_LFS have been
100654         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100655         compatible with future autoconf versions.  Also, some minor m4
100656         quoting problems have been fixed.
100657
100658 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100659
100660         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100661         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100662         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100663         and simplify the shell code.
100664
100665 1999-08-01  Jim Meyering  <meyering@ascend.com>
100666
100667         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100668         m4.
100669
100670 1999-07-20  Jim Meyering  <meyering@ascend.com>
100671
100672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100673
100674 1999-07-15  Jim Meyering  <meyering@ascend.com>
100675
100676         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100677
100678 1999-05-22  Jim Meyering  <meyering@ascend.com>
100679
100680         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100681
100682 1999-05-20  Jim Meyering  <meyering@ascend.com>
100683
100684         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100685         Add a colon after each `then' in case $4 is empty.
100686
100687 1999-05-16  Jim Meyering  <meyering@ascend.com>
100688
100689         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100690
100691 1999-05-10  Jim Meyering  <meyering@ascend.com>
100692
100693         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100694
100695         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100696         AC_FUNC_MKTIME.
100697
100698 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100699
100700         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100701
100702 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100703
100704         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100705         not CPPFLAGS, so that linking works correctly in IRIX.
100706
100707 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100708
100709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100710
100711 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100712
100713         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100714         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100716         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100717         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100718
100719         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100720
100721 1999-04-20  Jim Meyering  <meyering@ascend.com>
100722
100723         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100724         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100725         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100726
100727 1999-04-18  Jim Meyering  <meyering@ascend.com>
100728
100729         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100730         * m4/jm-macros.m4: Use it.
100731
100732 1999-04-06  Jim Meyering  <meyering@ascend.com>
100733
100734         * m4/strftime.m4: Remove test for %f.
100735
100736 1999-03-29  Jim Meyering  <meyering@ascend.com>
100737
100738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100739         superset of the AC_TYPE_* checks in the textutils, fileutils,
100740         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100741         AC_TYPE_PID_T.
100742
100743 1999-03-28  Jim Meyering  <meyering@ascend.com>
100744
100745         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100746         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100747         replaced e.g., in the *.sh files of the sh-utils.
100748
100749 1999-03-20  Jim Meyering  <meyering@ascend.com>
100750
100751         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100752         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100753         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100754
100755 1999-03-19  Jim Meyering  <meyering@ascend.com>
100756
100757         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100758
100759 1999-03-12  Jim Meyering  <meyering@ascend.com>
100760
100761         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100762
100763 1999-03-07  Jim Meyering  <meyering@ascend.com>
100764
100765         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100766         declared.
100767
100768 1999-02-17  Jim Meyering  <meyering@ascend.com>
100769
100770         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100771         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100772
100773 1999-02-07  Jim Meyering  <meyering@ascend.com>
100774
100775         * m4/group-member.m4: New file -- extracted from sh-utils'
100776         configure.in.
100777
100778         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100779         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100780
100781 1999-02-06  Jim Meyering  <meyering@ascend.com>
100782
100783         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100784         * m4/fnmatch.m4: Likewise.
100785         * m4/getgroups.m4: Likewise.
100786         * m4/lstat.m4: Likewise.
100787         * m4/malloc.m4: Likewise.
100788         * m4/putenv.m4: Likewise.
100789         * m4/realloc.m4: Likewise.
100790         * m4/regex.m4: Likewise.
100791         * m4/stat.m4: Likewise.
100792         * m4/strftime.m4: Likewise.
100793         Suggestion from Alain Magloire.
100794
100795         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100796         * m4/fnmatch.m4: Likewise.
100797         * m4/getgroups.m4: Likewise.
100798         * m4/getline.m4: Likewise.
100799         * m4/lstat.m4: Likewise.
100800         * m4/malloc.m4: Likewise.
100801         * m4/memcmp.m4: Likewise.
100802         * m4/putenv.m4: Likewise.
100803         * m4/realloc.m4: Likewise.
100804         * m4/regex.m4: Likewise.
100805         * m4/stat.m4: Likewise.
100806         * m4/strftime.m4: Likewise.
100807         Suggestion from Alain Magloire.
100808
100809         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100810         an argument.
100811
100812         * m4/regex.m4: Add a run-time Test for proper operation of
100813         re_compile_pattern.
100814
100815 1999-01-31  Jim Meyering  <meyering@ascend.com>
100816
100817         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100818
100819 1999-01-30  Jim Meyering  <meyering@ascend.com>
100820
100821         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100822
100823         * m4/jm-mktime.m4: Make this a wrapper around the official
100824         AM_FUNC_MKTIME rather than my private copy, now that the official one
100825         is up to date.
100826         * m4/mktime.m4: Remove file.
100827
100828         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100829         * m4/uptime.m4: Likewise.
100830         * m4/uintmax_t.m4: Likewise.
100831
100832 1999-01-28  Jim Meyering  <meyering@ascend.com>
100833
100834         * m4/jm-macros.m4: Use jm_AFS.
100835         * m4/afs.m4: New file (from fileutils' configure.in).
100836
100837         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100838         * m4/chown.m4: Likewise.
100839         * m4/d-ino.m4: Likewise.
100840         * m4/d-type.m4: Likewise.
100841         * m4/fnmatch.m4: Likewise.
100842         * m4/getgroups.m4: Likewise.
100843         * m4/gettext.m4: Likewise.
100844         * m4/jm-mktime.m4: Likewise.
100845         * m4/jm-winsz2.m4: Likewise.
100846         * m4/lcmessage.m4: Likewise.
100847         * m4/ls-mntd-fs.m4: Likewise.
100848         * m4/malloc.m4: Likewise.
100849         * m4/memcmp.m4: Likewise.
100850         * m4/putenv.m4: Likewise.
100851         * m4/realloc.m4: Likewise.
100852         * m4/st_mtim.m4: Likewise.
100853         * m4/strftime.m4: Likewise.
100854
100855 1999-01-16  Jim Meyering  <meyering@ascend.com>
100856
100857         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100858         (ARGMATCH_DIE_DECL): Define.
100859
100860 1999-01-12  Jim Meyering  <meyering@ascend.com>
100861
100862         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100863         Reported by Lars Hecking.
100864
100865 1999-01-10  Jim Meyering  <meyering@ascend.com>
100866
100867         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100868         gross kludge.
100869         * m4/inttypes_h.m4: Likewise.
100870         * m4/lstat.m4: Likewise.
100871         * m4/malloc.m4: Likewise.
100872         * m4/readdir.m4: Likewise.
100873         * m4/realloc.m4: Likewise.
100874         * m4/st_dm_mode.m4: Likewise.
100875         * m4/stat.m4: Likewise.
100876         * m4/utimbuf.m4: Likewise.
100877         * m4/utimes.m4: Likewise.
100878
100879         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100880         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100881         comments in config.h.in are meaningful.
100882
100883         * m4/jm-macros.m4: Require autoconf-2.13 here.
100884
100885         * m4/regex.m4: By default, don't use the included regex.c on systems
100886         with glibc 2.  Suggestion from Uli Drepper.
100887
100888 1999-01-02  Jim Meyering  <meyering@ascend.com>
100889
100890         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100891
100892 1998-12-18  Jim Meyering  <meyering@ascend.com>
100893
100894         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100895         Based on a suggestion from Lars Hecking.
100896
100897 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100898
100899         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100900
100901 1998-11-16  Jim Meyering  <meyering@ascend.com>
100902
100903         * m4/lfs.m4: Double-quote the `uname...` expression.
100904
100905 1998-11-14  Jim Meyering  <meyering@ascend.com>
100906
100907         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100908         * m4/stat.m4: Likewise.
100909
100910 1998-11-03  Jim Meyering  <meyering@ascend.com>
100911
100912         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100913         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100914
100915 1998-10-18  Jim Meyering  <meyering@ascend.com>
100916
100917         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100918
100919 1998-10-17  Jim Meyering  <meyering@ascend.com>
100920
100921         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100922         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100923         calls for those previously hard-coded headers.  Instead, take a new
100924         parameter.
100925         (jm_CHECK_DECLARATIONS): Reflect interface change.
100926         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100927         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100928
100929         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100930
100931 1998-10-14  Jim Meyering  <meyering@ascend.com>
100932
100933         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100934         instead of "TZ=America/Vancouver".  From Paul Eggert.
100935
100936 1998-10-11  Jim Meyering  <meyering@ascend.com>
100937
100938         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100939         This adds a test for a recently added compatibility fix for mktime.c.
100940         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100941
100942 1998-09-27  Jim Meyering  <meyering@ascend.com>
100943
100944         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100945
100946         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100947         ../configure.in, including a change from Gordon Matzigkeit to allow
100948         cross-compiling for the Hurd.
100949
100950         * m4/glibc.m4: New file/macro to test for the GNU C Library
100951         versions 1 and 2.  From Gordon Matzigkeit.
100952         Indent.
100953
100954 1998-09-21  Jim Meyering  <meyering@ascend.com>
100955
100956         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100957
100958 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100959
100960         Port nanosecond-resolution times to UnixWare 2.1.2 and
100961         pedantic Solaris 2.6.
100962
100963         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100964         AC_STRUCT_ST_MTIM.
100965         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100966         Generate name of ns member, instead of just 1 or undef.
100967         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100968
100969 1998-08-15  Jim Meyering  <meyering@ascend.com>
100970
100971         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100972         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100973         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100974         instead of jm_TYPE_SSIZE_T.
100975
100976 1998-08-12  Jim Meyering  <meyering@ascend.com>
100977
100978         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100979
100980 1998-08-02  Jim Meyering  <meyering@ascend.com>
100981
100982         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100983         in acconfig.h manually.
100984
100985 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100986
100987         * m4/st_mtim.m4: New file.
100988
100989 1998-07-28  Jim Meyering  <meyering@ascend.com>
100990
100991         * m4/utimes.m4: Undef stat.
100992
100993 1998-07-25  Jim Meyering  <meyering@ascend.com>
100994
100995         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100996         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100997
100998 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100999
101000         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101001         uid and gid actually remain unchanged.
101002
101003 1998-07-07  Jim Meyering  <meyering@ascend.com>
101004
101005         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101006
101007 1998-07-04  Jim Meyering  <meyering@ascend.com>
101008
101009         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101010         to prove that this macro can be used in packages without regex.c.
101011
101012 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101013
101014         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101015         is to be used.
101016
101017 1998-07-03  Jim Meyering  <meyering@ascend.com>
101018
101019         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101020
101021         * m4/gettext.m4: New file -- from gettext-0.10.35.
101022         * m4/lcmessage.m4: Likewise.
101023         * m4/progtest.m4: Likewise.
101024
101025         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101026         * m4/jm-macros.m4: Require the new macro.
101027
101028 1998-06-29  Jim Meyering  <meyering@ascend.com>
101029
101030         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101031         for the definition of NGROUPS (used in a system header included
101032         by sys/mount.h).
101033
101034 1998-06-28  Jim Meyering  <meyering@ascend.com>
101035
101036         * m4/ls-mntd-fs.m4: New file.
101037         * m4/fstypename.m4: New file.
101038
101039         * m4/jm-macros.m4: Require the new macro.
101040         * m4/jm-glibc-io.m4: New file.
101041
101042 1998-05-19  Jim Meyering  <meyering@ascend.com>
101043
101044         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101045         * m4/lchown.m4: New file.
101046
101047         * m4/Makefile.am.in: New file.
101048         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101049
101050 1998-05-14  Jim Meyering  <meyering@ascend.com>
101051
101052         * m4/Makefile.am (EXTRA_DIST): Add them.
101053         * m4/jm-macros.m4: New file.
101054         * m4/utimbuf.m4: New file.
101055
101056 1998-05-12  Jim Meyering  <meyering@ascend.com>
101057
101058         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101059
101060 1998-05-11  Jim Meyering  <meyering@ascend.com>
101061
101062         * m4/isc-posix.m4: New file.
101063
101064 1998-05-10  Jim Meyering  <meyering@ascend.com>
101065
101066         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101067
101068 1998-05-09  Jim Meyering  <meyering@ascend.com>
101069
101070         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101071         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101072         with automake.
101073
101074         * m4/ssize_t.m4: New file.
101075         * m4/mktime.m4: Remove file -- the new automake has this now.
101076
101077 1998-04-26  Jim Meyering  <meyering@ascend.com>
101078
101079         * m4/assert.m4: New file.
101080         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101081
101082 1998-04-05  Jim Meyering  <meyering@ascend.com>
101083
101084         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101085         (jm_PREREQ): Use it here.
101086
101087 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101088
101089         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101090         in acconfig.h.
101091
101092 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101093
101094         * m4/prereq.m4: New file.
101095         * m4/error.m4: New file.
101096         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101097
101098 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101099
101100         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101101         cache-check for the same variable -- that defeated the purpose of
101102         the test; the test program was never run.  This was a problem only
101103         on systems with losing getline functions -- HP-UX 10.20 is one.
101104         Reported by Bjorn Helgaas.
101105
101106 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101107
101108         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101109
101110 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101111
101112         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101113
101114         * m4/const.m4: New file.  Use an initializer in this declaration
101115         typedef int charset[2]; const charset x;
101116         Reported by Bob Glickstein.
101117
101118 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101119
101120         * m4/chown.m4: Fix reversed types on -1 args to chown.
101121         From Kaveh Ghazi.
101122
101123 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101124
101125         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101126         Add lseek and memchr.
101127
101128         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101129         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101130         have a 20-character limit on names.
101131
101132 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101133
101134         * m4/inttypes_h.m4: New file.
101135         * m4/uintmax_t.m4: New file.
101136         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101137
101138
101139         -----
101140
101141         Local Variables:
101142         coding: utf-8
101143         End:
101144
101145         Copyright (C) 1997-2013 Free Software Foundation, Inc.
101146
101147         Copying and distribution of this file, with or without
101148         modification, are permitted provided the copyright notice
101149         and this notice are preserved.